(Notes)
Notes (2013)
Мікс відео за допомогою FFMPEG та Blender
Спочатку, друзі, головні шаблони використання FFMPEG, бо документашка на FFMPEG трохи запаморочена.
- AddImageToAudio
ffmpeg -loop 1 -i \\192.168.0.8\Volume_1\34\DSCF7984_1.JPG -i C:\Users\Administrator\Desktop\L1.mp3 -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k -pix_fmt yuv420p -shortest \\192.168.0.8\Volume_1\34\L1.avi
- AddLogo
ffmpeg -i \\192.168.0.8\Volume_1\GoogleVideo\Desen\%1-1.mov -i \\192.168.0.8\Volume_1\GoogleVideo\Desen\logo2.gif -filter_complex "overlay=x=(main_w-overlay_w-10):y=(10)" \\192.168.0.8\Volume_1\GoogleVideo\Desen\%1.mp4
- AddLogo.vbs
FOR /L %%a IN (58,172,1) DO (
echo a
a+=1
..\addlogo1 a
)
AddSubtitles
ffmpeg -i "\\192.168.0.6\Volume_1\_BBC-Films\Peoples\Cracking Your Genetic Code\Cracking.Your.Genetic.Code.PDTV.x264.AAC.mp4" -i "\\192.168.0.6\Volume_1\_BBC-Films\Peoples\Cracking Your Genetic Code\Cracking.Your.Genetic.Code.PDTV.x264.AAC.eng.srt" -map 0 -map 1 -c copy -c:s mov_text "\\192.168.0.6\Volume_1\_BBC-Films\Peoples\Cracking Your Genetic Code\Cracking.Your.Genetic.Code.PDTV.x264.mp4"
BatConvert
start /wait c:\ffmpeg\bin\ffmpeg -i "\\192.168.0.6\Volume_1\MUSIC\V\Sound1.flac" -ab 320k -map_metadata 0 -id3v2_version 3 "\\192.168.0.6\Volume_1\MUSIC\V\Sound1.mp3"
ChCodec
ffmpeg -i \\192.168.0.8\Volume_1\70\110_FUJI\00002.mts -vf scale=1920:1080 \\192.168.0.8\Volume_1\70\110_FUJI\server2.mov
ChResolution1
ffmpeg -i \\192.168.0.7\Volume_1\1\0001-104014.avi -vf scale=800:-1 \\192.168.0.7\Volume_1\1\irina-maidan.avi
ChResolution2
ffmpeg -i \\192.168.0.8\Volume_1\71\110_FUJI\tir-1.mp4 -vf scale=1920:1080 \\192.168.0.8\Volume_1\71\110_FUJI\tir-1.mov
CombineVideoAndAudio
ffmpeg -i \\192.168.0.8\Volume_1\40\Vesna1.wmv -i \\192.168.0.8\Volume_1\40\audio1.aac -map 0:1 -map 1:0 -c:v copy -c:a copy \\192.168.0.8\Volume_1\40\Vesna2.avi
# this is a comment
file '/path/to/file1'
file '/path/to/file2'
Concat
ffmpeg -f concat -i \\192.168.0.8\Volume_1\11\1.txt -c copy \\192.168.0.8\Volume_1\11\merge.mov
ConvertToFLV
ffmpeg -i \\192.168.0.8\Volume_1\Ukraine\Raw\grigorov.mp4 -c:v libx264 -ar 22050 -crf 28 -f flv \\192.168.0.8\Volume_1\Ukraine\Raw\grigorov.flv
Cut1
ffmpeg -i C:\Users\Administrator\Desktop\UKRSong\1\Ukraine.mp4 -ss 32:12 -c copy -t 0:48 \\192.168.0.8\Volume_1\47\miting-9.mov
Cut2
ffmpeg -i "\\192.168.0.8\Volume_1-1\80\9.mp4" -ss 0:14:41 -to 16:46 -map 0:v -map 0:a -vf scale=1920:1080 "\\192.168.0.8\Volume_1-1\80\91.mp4"
DelAudio
ffmpeg -i "\\192.168.0.8\Volume_1\71\RozzOil.mp4" -map 0:0 "\\192.168.0.8\Volume_1\71\RozzOil-1.mp4"
ForwardLogo
ffmpeg -i \\192.168.0.8\Volume_1-1\79\kult3.wmv -i \\192.168.0.8\Volume_1-1\79\kult-3.mp3 -filter_complex "concat=n=2:v=2:a=1 [0:0] [0:1] [1:0] " \\192.168.0.8\Volume_1-1\79\kult-31.mov
GetAudio
ffmpeg -i C:\Users\Administrator\Desktop\UKRSong\GEJ_SOKOLI.mp4 -acodec copy C:\Users\Administrator\Desktop\UKRSong\audio2.aac
GetMediaInfo
"C:\FFMPEG\bin\ffprobe" -v error -show_format -show_streams \\192.168.0.6\Volume_1\BBC-Films\History\Barbarians.Rising\Barbarians.Rising.1of4.Resistance.720p.HDTV.x264.AAC.MVGroup.org.mp4
GetSubtitlesMP4
"C:\FFMPEG\bin\ffmpeg" -i %1.mp4 -vn -an -codec:s:X.Y srt %1.srt
IncreasAudioLevel
ffmpeg -i \\192.168.0.8\Volume_1\50\VID_20150507_102023.mp4 -vcodec copy -af "volume=10dB" \\192.168.0.8\Volume_1\50\VID_1.avi
Rotate
ffmpeg -i \\192.168.0.8\Volume_1\71\20160118_100217_1.mp4 -vf "transpose=1" \\192.168.0.8\Volume_1\71\20160118_100217_2.mp4
SpeedUp
ffmpeg -i d:\20171027_1235_16.avi -filter:v "setpts=0.02*PTS" d:\200_20171027_1235_16.avi
VideoFromFoto
ffmpeg -loop 1 -i \\192.168.0.8\Volume_1\43\IMGA0242-1.jpg -vcodec mpeg4 -t 5 \\192.168.0.8\Volume_1\43\IMGA0242.mp4
Create context menu to FFPROBE:
Та коротка найважливіша інфа про кодеки.
Вибачайте, друзі, не встигаю написати про Blender. У нього існує дуже багато цікавих можливостей. Мабуть піздніше напишу.