Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFMPEG interactive Mode help options

While streaming a simple command like below

ffmpeg -i "Alien.mkv" -f webm tcp://localhost:8080/listen.webm

if I press '?' ffmpeg seems to have an interactive mode with the below options

   ?      show this help

   +      increase verbosity 

   -      decrease verbosity 

   c      Send command to first matching filter supporting it 

   C      Send/Queue command to all matching filters 

   D      cycle through available debug modes

   h      dump packets/hex press to cycle through the 3 states 

   q      quit 

   s      Show QP histogram

I was curious about option 'c'

Does this mean that I can execute further commands on the running stream? Say for instance seeking a new position in a running stream? (I realise you wouldn't normally do this)

I don't really know anything about these and couldn't find much in the ffmpeg documentation or else where. If I press 'c' it suggests the syntax I should use is:

Enter command: <target>|all <time>|-1 <command>[ <argument>]

but I still don't really understand how to execute a command. Would someone please give a few examples? I suspect that this isn't used much.

like image 703
Pliny Avatar asked Feb 06 '18 04:02

Pliny


People also ask

What is FFmpeg option?

ffmpeg is a very fast video and audio converter that can also grab from a live audio/video source. It can also convert between arbitrary sample rates and resize video on the fly with a high quality polyphase filter.

Does FFmpeg support MP4?

FFmpeg can input most container formats natively, including MP4, . ts, MOV, AVI, Y4M, MKV, and many others.

What does strict mean in FFmpeg?

The FFmpeg documentation has recently been split up into multiple chapters, each describing components, including separate docs for the codecs. Here, there's a section about the strict option: strict integer (decoding/encoding,audio,video) Specify how strictly to follow the standards.

Is FFmpeg a command line?

FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing of video and audio files.


1 Answers

That feature isn't for general-purpose tweaking. Some filters support commands. These commands allow you to change the filter parameters on the fly e.g. if you are sending out a live stream and the volume has gotten too loud, you can send a command to the volume filter (if present in the filtergraph), and lower the gain.

To see the syntax, see the docs for the sendcmd filter. You can also use a zmq client.

Check the docs for a filter to see if they support commands.

like image 165
Gyan Avatar answered Oct 04 '22 11:10

Gyan