[FFmpeg-devel] RFC: setting format parameters from the URL

Michael Niedermayer michaelni
Thu Apr 10 23:37:37 CEST 2008

On Thu, Apr 10, 2008 at 11:18:58PM +0200, Nicolas George wrote:
> Le duodi 22 germinal, an CCXVI, Michael Niedermayer a ?crit?:
> > You can alraedy do this by calling ffmpeg, just pass it a string ...
> As an end-user, I can not call ffmpeg from a program I did not write that
> use directly libavformat, can I?

No but I have difficulty imaging a program which uses any libs directly but
is not capable to iterate over the tokens of a string.

Code which wants to pass a single string can call ffmpeg, code which
wants to use libav* splits that string in tokens (by , " " ; whatever)
and passes them to av_set_string().
Of course that does need a few bug fixes so it works for the 4 options
you complained about similarly would your new 1 string API.

What you want is that we provide a way so that you can pass options to
lav* behind all applications and libs, that is as part of a filename.
Fix the app!

Whats next? pass a similar string somehow encoded as part of the bitrate?
To set all the options of lavc which you cannot set through the provided
user interface?

If you want we probably could add a string tokenizer to opt.c/h. Which would
split a string and pass its tokens to av_set_string().

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080410/22698dfa/attachment.pgp>

More information about the ffmpeg-devel mailing list