View Single Post
Old 1st September 2013, 21:22   #14  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
Quote:
Originally Posted by CoRoNe View Post
bf.mp4.bat
...
Because using ffmpeg for this was also a learning process for me, I'd like to revise that code to:
Code:
ffmpeg.exe -i bf.mp4 -filter_complex "[0:1]volume=30.7[a1];[0:2]volume=31.0[a2];[a1][a2]amerge[a]" ^
-map 0:v -map [a] -vf "framestep=2,scale=flags=spline:s=960x540" -c:v libx264 -preset slower ^
-level 4.1 -crf 21 -bf 8 -me_range 24 -c:a libvorbis -qscale:a 2 bf_qHD.mkv
- boost volume* of both mono tracks separately and merge them to one stereo track
- specify input-streams in output order
- convert framerate to 60fps (framestep=2 = SelectEven() (AviSynth), while -r 60 and -vf "fps=60" are not)
- resize to qHD using spline algorithm
- x264-settings, followed by vorbis-settings

*to find out the amount of dB to boost the volume with:
Code:
ffmpeg.exe -i bf.mp4 -map 0:1 -af volumedetect -f null NUL && ^
ffmpeg.exe -i bf.mp4 -map 0:2 -af volumedetect -f null NUL
__________________
My hobby website
Reino is offline   Reply With Quote