VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 3 of 3
  1. Hi guys i need your help, I'm trying to converting the following x264 command into the syntax of ffmpeg

     --bitrate 2200 --preset slower --tune film --profile high --level 5.1 --merange 32 --bframes 8 --threads 32 --subme 11 -- me esa --rc-lookahead 250 --lookahead-threads 10 --colorprim bt709 --transfer bt709 --colormatrix bt709
    I include two choices that tried to translate into ffmpeg.

    ffmpeg syntax first choice:

     ffmpeg -i *.mpg -c:v libx264 -threads 32 -vf "colormatrix=bt601:bt709" -preset slower -b:v 2200k -tune film -profile:v high -level:v 5.1  -me_method full -me_range 32 -subq 11 -bf 8 -x264-params -rc_lookahead=250 -lookahead-threads 10 -x264opts level=51   colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=offcolorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=on -acodec copy *.mkv
    ffmpeg syntax second choice:

     ffmpeg -i *.mpg  -threads:v 32  -vf "colormatrix=bt601:bt709" -codec:v libx264 -preset slower -x264opts  colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=on -tune film -b:v 2200k -minrate 1k -maxrate 128k  -me_range 32 -g 250 -qcomp 0.9 -qmin 01 -qmax 81 -qdiff 4 -b_strategy 4 -i_qfactor 0.81  -subq 11 -me_method esa -bf 8 -refs 8 -rc- lookahead 250 -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -trellis 2  -acodec copy *.mkv

    1) What code is better for an good quality video following the commandline of x264?

    2)I need to use these commands of avisynth with ffmpeg, my goal is to improve the quality of the colors.

    ColorMatrix ()
    Tweak (sat = 1.4, bright = 2, cont = 1.0)
    What commands are used by ffmpeg to load a script Avisynth?

    Thanks in advance for any help you can provide.
    Quote Quote  
  2. This is example - modify accordingly to your needs - only to show general principle how it work in ffmpeg

    @set x264opts="level=4:qp=20:ipratio=2:cabac=1:colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off:overscan=show:pic-struct:force-cfr=1:aud=1:threads=auto"
    @ffmpeg -threads %NUMBER_OF_PROCESSORS%*1.5 -i %1 -c:v libx264 -preset ultrafast -tune zerolatency -profile:v high -x264opts %x264opts% -x264-params %x264opts% -vf "colormatrix=bt601:bt709,'tweak substitute'" -c:a copy -movflags faststart %1_.mp4
    another example
    @SET x264opts="level=4.1:qp=26:vbv_maxrate=32768:vbv_bufsize=16384:qpmin=4:cabac=1:threads=auto:nr=500:no-psnr:no-ssim"
    tweak can be substituted by one of bellow:
    Last edited by pandy; 8th Apr 2015 at 03:47.
    Quote Quote  
  3. Member racer-x's Avatar
    Join Date
    Mar 2003
    3rd Rock from the Sun
    Search Comp PM
    ffmpeg can also use Curves file. If you have PhotoShop, you can import a frame and adjust using Curves. Save the curves settings as "curves.acv" Then call it in the ffmpeg script.

    -vf curves=psfile=curves.acv
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  

Similar Threads