2 Pass MP4 transcoding - custom ffmpeg profile
Posted: Fri Aug 19, 2016 4:18 pm
Hi Steipal
I have an existing batch ffmpeg command that I would like to incorporate into various FFAstrans work-flows but this is for a 2 pass encode and I cannot work out how to do that using the custom FFMPEG profiles.
Does each pass have to created as a separate node? I have tried this, but pass the stats from the last pass into the second.
This is the current batch file I am using
"%ffmpeg%" -y -i "%%~dpa%%~nxa" -ss 89 -s:v 852x480 -c:v libx264 -pix_fmt yuv420p -b:v 1200K -pass 1 -bf 5 -g 125 -direct-pred 3 -c:a aac -strict experimental -b:a 128K -ac 2 -sample_rate 48000 -f mp4 NUL && "%ffmpeg%" -y -i "%%~dpa%%~nxa" -ss 89 -s:v 852x480 -movflags faststart -c:v libx264 -pix_fmt yuv420p -b:v 1200K -pass 2 -rc_strategy 2 -qblur 0.5 -cplxblur 20.0 -maxrate 2400K -bufsize 1200K -level 41 -bf 5 -g 125 -me_method umh -me_range 64 -subq 7 -b_strategy 2 -refs 3 -direct-pred 3 -b-pyramid -1 -keyint_min 25 -partitions all -deblock -2:-1 -c:a aac -strict experimental -b:a 128K -ac 2 -sample_rate 48000 -f mp4 "%OutputPath%\%%~na.HD.852p.V1200.2Pass.A128.mp4"
Many thanks for any help you can give.
I have an existing batch ffmpeg command that I would like to incorporate into various FFAstrans work-flows but this is for a 2 pass encode and I cannot work out how to do that using the custom FFMPEG profiles.
Does each pass have to created as a separate node? I have tried this, but pass the stats from the last pass into the second.
This is the current batch file I am using
"%ffmpeg%" -y -i "%%~dpa%%~nxa" -ss 89 -s:v 852x480 -c:v libx264 -pix_fmt yuv420p -b:v 1200K -pass 1 -bf 5 -g 125 -direct-pred 3 -c:a aac -strict experimental -b:a 128K -ac 2 -sample_rate 48000 -f mp4 NUL && "%ffmpeg%" -y -i "%%~dpa%%~nxa" -ss 89 -s:v 852x480 -movflags faststart -c:v libx264 -pix_fmt yuv420p -b:v 1200K -pass 2 -rc_strategy 2 -qblur 0.5 -cplxblur 20.0 -maxrate 2400K -bufsize 1200K -level 41 -bf 5 -g 125 -me_method umh -me_range 64 -subq 7 -b_strategy 2 -refs 3 -direct-pred 3 -b-pyramid -1 -keyint_min 25 -partitions all -deblock -2:-1 -c:a aac -strict experimental -b:a 128K -ac 2 -sample_rate 48000 -f mp4 "%OutputPath%\%%~na.HD.852p.V1200.2Pass.A128.mp4"
Many thanks for any help you can give.