[FFmpeg-user] ff* command lines that work

Mark Filipak markfilipak.windows+ffmpeg at gmail.com
Mon Mar 9 22:49:48 EET 2020

On 03/09/2020 03:39 PM, hydra3333 at gmail.com wrote:
> Well, I'm a dumb user and google gave me LOTS and LOTS of commandlines that work - simply filter the google results by the "date in the last year" to be sure you get the latest syntax.  Lots.
> You appear to continually avoid "what is it you wish to do with a specific example video that you have" type questions...

That's a fair observation. You deserve a serious response. May I provide 

It appears to me that ffmpeg commands have the following structure:
ffmpeg A [[B ...] -i C [D ...]...] [[E ...] [F ...]...]
  [[i ]...] : inputs
       A    : general options
   [B ...]  : input-specific pre-options
      C     : input URL
   [D ...]  : input-specific post-options
...[[]...] : outputs
   [E ...]  : output-specific filters
   [F ...]  : output URL
Full disclosure: I don't know if all of the above is correct.

Because ff* documentation is incomplete and disorganized, I have 
requested folks to submit command lines that are known to work. I hope 
to get thousands of them.

I hope they will send them to me as private messages.

I will then sort out commonalities in order to confirm/modify the above 
template and to provide further clues regarding option meanings and usage.

> and just pose generalities, looking like a complete troll, which is why people are unhappy with your questioning approach.

Regarding 'questioning': I do not seek to question anything. I simply 
seek command lines that are known to work. Regarding whether I'm a 
troll, I'm sure you can make your own determination.

> I occasionally have a problem working out a commandline to use a specific video filter here and there, but googling and playing with it usually resolves the issue.

Yes, I've pursued both methods.

> Here's an example of commandline I sometimes use (the numbers are calculated in a script and substituted into the commandline on the fly), so go for your life.
> "C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffmpeg.exe" -v verbose -nostats -init_hw_device opencl=ocl:0.0 -filter_hw_device ocl -i "D:\TEMP\SCRATCH\example.mp4" -map_metadata -1 -vsync 0 -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -filter_complex "[0:v]yadif=0:0:0,hwupload,unsharp_opencl=lx=3:ly=3:la=0.5:cx=3:cy=3:ca=0.5,hwdownload,format=pix_fmts=yuv420p" -strict experimental -c:v h264_nvenc -pix_fmt nv12 -preset slow -bf 2 -g 50 -refs 3 -rc:v vbr_hq -rc-lookahead:v 32 -cq 22 -qmin 16 -qmax 25 -coder 1 -movflags +faststart+write_colr -profile:v high -level 5.1 -af loudnorm=I=-16:TP=0.0:LRA=11:measured_I=-22.79:measured_LRA=15.70:measured_TP=-0.34:measured_thresh=-34.06:offset=0.40:linear=true:print_format=summary -c:a libfdk_aac -cutoff 18000 -ab 384k -ar 48000 -strict experimental -movflags +faststart+write_colr -y "T:\TEMP\example2.mp4"

Thank you!

More information about the ffmpeg-user mailing list