VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Mar 2014
    Location
    Brazil, Rio de Janeiro
    Search Comp PM
    I use x264 to .avi dump videos from a few computer game emulators, then I encode the raw .avi through VirtualDub. But the thing is, I don't want to have to go through VirtualDub anymore and use only x264's command line window. By that, I mean this one:



    What I do through VirtualDub is resize the video by 5x (with nearest neighbour/point resize) and then convert the video's fps to 60. I leave my configurations like this:





    My question is, how can I do EXACTLY what I do on virtualdub (resize and fps conversion) through x264's commandline window alone? Can someone inform me the commands I should type down to get vdub equivalent results?
    Quote Quote  
  2. Originally Posted by synnchan View Post
    My question is, how can I do EXACTLY what I do on virtualdub (resize and fps conversion) through x264's commandline window alone? Can someone inform me the commands I should type down to get vdub equivalent results?
    Not possible(*) with x264's command line alone - but possible with ffmpeg's command line:
    Code:
    ffmpeg -hide_banner -i "%~dpnx1" -ar 44100 -c:a pcm_s16le -vf "fps=60,scale=w=5*in_w:h=5*in_h:flags=neighbor" -c:v libx264 -preset veryfast -pix_fmt yuv420p -x264opts "qp=0:colorprim=bt709:transfer=bt709:colormatrix=bt709" "%~dpn1-5x-264.avi"
    Save the above as a .BAT file.
    FFmpeg must be installed and on the system path.
    Drop your videos on the .BAT file's icon in Explorer.

    BTW the "Extra command line" window is only for advanced x264 options that can't be set through the GUI.
    Hit the [?] button to see all available options.
    The following extra command line generally gives better color fidelity (but test it for yourself)
    Code:
    --colorprim bt709 --transfer bt709 --colormatrix bt709
    (*) EDIT that's incorrect; see below.
    Last edited by raffriff42; 30th Oct 2016 at 10:15.
    Quote Quote  
  3. Are you saying you don't want to use VirtualDub at all? Or just that you want to do the scaling in x264vfw?

    If you don't want to use VirtualDub at all you can use the x264 CLI encoder with a command line like:

    Code:
    x264.exe --preset=ultrafast --tune=zerolatency --qp=0 --sar=1:1 --video-filter resize:1024,768,method=point/select_every:1,0,0 --output %1.mkv %1
    Note that the size is specified as absolute width and height values (not calculated from the source width and height automatically) and select_every is used to multiply the frame rate by 2 by duplicating each frame (so if your source is 30 fps the result is 60 fps)
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!