VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. getting started with ffmpeg command line, need assistance.

    I am using windows 10, ffmpeg version 4.1.3. I am getting getting started with ffmpeg cmdline version

    i am trying to encode video with 2 Pass with H256 8bit encoding, encode audio to aac 192kbps

    Code:
    ffmpeg.exe -probesize 50M -analyzeduration 100M -fflags +genpts -i "d:\tmp\test.mkv" -pass 1 -passlogfile "E:\Vid Edit\Out\test.TStestlog" -fastfirstpass 1 -an -map 0:0 -map 0:1 -c:v libx265 -r 25 -aspect 16:9 -pix_fmt yuv444p -preset fast -x265-params profile=main444-8:crf=25:me=hex:scenecut=40:bframes=4:min-keyint=25:keyint=50 -qmin 3 -qmax 51 -qdiff 4 -qcomp 0.6 -vtag hvc1 -metadata creation_time=now -af dynaudnorm=f=500:g=31:p=0.95:m=10:b=1:s=0 -vf scale=iw*sar:ih,crop="min(iw\,ih*(16/9)):ow/(16/9)",scale=1920:1080 -sn -aspect 16:9 -f rawvideo -y nul && ^ ffmpeg.exe -probesize 50M -analyzeduration 100M -fflags +genpts -i "d:\tmp\test.mkv" -pass 2 -passlogfile "E:\Vid Edit\Out\test.TStestlog" -map 0:0 -map 0:1 -c:a aac -ab 160k -strict -2 -async 1 -c:v libx265 -r 30 -aspect 16:9 -pix_fmt yuv444p -preset fast -x265-params profile=main444-8:crf=25:me=hex:scenecut=40:bframes=4:min-keyint=30:keyint=60 -qmin 3 -qmax 51 -qdiff 4 -qcomp 0.6 -vtag hvc1 -metadata creation_time=now -af dynaudnorm=f=500:g=31:p=0.95:m=10:b=1:s=0 -vf scale=1920:1080 -sn -y "E:\Vid Edit\Out\test.TStest.mp4"
    (above command is genrated using myFFmpeg trial version)

    also i would like to autocrop black bars and normalize audio.

    Please assist.
    Quote Quote  
  2. Split that into two command lines at the second ffmpeg.exe
    Code:
    ffmpeg.exe -probesize 50M -analyzeduration 100M -fflags +genpts -i "d:\tmp\test.mkv" -pass 1 -passlogfile "d:\tmp\test.TStestlog" -fastfirstpass 1 -an -map 0:0 -map 0:1 -c:v libx265 -r 25 -aspect 16:9 -pix_fmt yuv444p -preset fast -x265-params profile=main444-8:crf=25:me=hex:scenecut=40:bframes=4:min-keyint=25:keyint=50 -qmin 3 -qmax 51 -qdiff 4 -qcomp 0.6 -vtag hvc1 -metadata creation_time=now -af dynaudnorm=f=500:g=31:p=0.95:m=10:b=1:s=0 -vf scale=iw*sar:ih,crop="min(iw\,ih*(16/9)):ow/(16/9)",scale=1920:1080 -sn -aspect 16:9 -f rawvideo -y nul && ^
    ffmpeg.exe -probesize 50M -analyzeduration 100M -fflags +genpts -i "d:\tmp\test.mkv" -pass 2 -passlogfile "D:\tmp\test.TStestlog" -map 0:0 -map 0:1 -c:a aac -ab 160k -strict -2 -async 1 -c:v libx265 -r 30 -aspect 16:9 -pix_fmt yuv444p -preset fast -x265-params profile=main444-8:crf=25:me=hex:scenecut=40:bframes=4:min-keyint=30:keyint=60 -qmin 3 -qmax 51 -qdiff 4 -qcomp 0.6 -vtag hvc1 -metadata creation_time=now -af dynaudnorm=f=500:g=31:p=0.95:m=10:b=1:s=0 -vf scale=1920:1080 -sn -y "D:\tmp\test.TStest.mp4"
    Quote Quote  
  3. Ok but are the configs ok, for 2 Pass with H256 8bit encoding, encode audio to aac 192kbps and how do i implement autocrop black bars and normalize audio.
    Quote Quote  



Similar Threads