Video Editing with FFmpeg: https://youtu.be/QQ-djYYpKFo
FFmpeg playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZOPDZ71Khzt5PX4X4j6flkg
Video Editing with FFmpeg: https://youtu.be/QQ-djYYpKFo
FFmpeg playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZOPDZ71Khzt5PX4X4j6flkg
Link to FFmpeg notes (including FFmpeg install
ffprobe clip1.mov ffplay clip1.mov
ffplay -i clip1.mov -vf "bwdif=1"
ffplay -i clip1.mov -vf "bwdif=1,crop=in_w:in_w*9/16"
ffplay -i clip1.mov -vf "bwdif=1,crop=in_w:in_w*9/16:(in_w-out_w)/2:0"
ffplay -i clip1.mov -vf "bwdif=1,crop=in_w:in_w*9/16:(in_w-out_w)/2:0,scale=1280:720" -aspect 16:9
*added “-aspect 16:9” to fix problem with non-square pixels
ffplay -i clip1.mov -vf "bwdif=1,pad=in_h*16/9:in_h:(in_w-out_w)/2,scale=1280:720" -aspect 16:9
files.txt:
file ‘clip1.mov’
file ‘clip2.mov’
file ‘clip3.mov’
ffplay -f concat -safe 0 -i files.txt -vf "bwdif=1,crop=in_w:in_w*9/16:(in_w-out_w)/2:0,scale=1280:720" -aspect 16:9
ffmpeg -f concat -safe 0 -i files.txt -vf "bwdif=1,crop=in_w:in_w*9/16:(in_w-out_w)/2:0,scale=1280:720" -aspect 16:9 -pix_fmt yuv420p -ss 00:00:0.0 -t 10 out.mp4
ffmpeg -codecs | grep 264
FFmpeg documentation on hardware accelerated encoding
ffmpeg -f concat -safe 0 -i files.txt -vf "bwdif=1,crop=in_w:in_w*9/16:(in_w-out_w)/2:0,scale=1280:720" -aspect 16:9 -pix_fmt yuv420p -vcodec h264_videotoolbox -ss 00:00:0.0 -t 10 out2.mp4
ffprobe out.mp4 ffprobe out2.mp4
ffmpeg -f concat -safe 0 -i files.txt -vf "bwdif=1,crop=in_w:in_w*9/16:(in_w-out_w)/2:0,scale=1280:720" -aspect 16:9 -pix_fmt yuv420p -vcodec h264_videotoolbox -b:v 5400k -ss 00:00:0.0 -t 10 out.mp4
ffmpeg -f concat -safe 0 -i files.txt -vf "bwdif=1,crop=in_w:in_w<em>9/16:(in_w-out_w)/2:0,scale=1280:720,setpts=1/7</em>PTS" -aspect 16:9 -an -pix_fmt yuv420p -vcodec h264_videotoolbox -b:v 5400k -ss 00:00:0.0 -t 10 out.mp4
ffmpeg -f concat -safe 0 -i files.txt -vf "bwdif=1,crop=in_w:in_w<em>9/16:(in_w-out_w)/2:0,scale=1280:720,setpts=1/7</em>PTS" -aspect 16:9 -an -pix_fmt yuv420p -vcodec h264_videotoolbox -b:v 5400k final_without_audio.mp4
ffmpeg -i final_without_audio.mp4 -i Rolling_Hills.mp3 -vcodec copy -acodec aac -b:a 128k -map 0:v:0 -map 1:a:0 final_with_audio.mp4
If you have questions, please leave them in the comments below or in the comments on the video.
Soldering Iron: https://amzn.to/2UmJX3A (Amazon Affiliate)