2 Pass MP4 transcoding - custom ffmpeg profile

Questions and answers on how to get the most out of FFAStrans
Post Reply
luke
Posts: 1
Joined: Wed Aug 10, 2016 1:48 pm

2 Pass MP4 transcoding - custom ffmpeg profile

Post by luke »

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.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: 2 Pass MP4 transcoding - custom ffmpeg profile

Post by admin »

Hi luke, thank you for using FFAStrans and welcome to the forum! :-)

I think I would do this using two nodes. But where do you use this command? Is it with the "Command executor"?

-steinar
Post Reply