[FFmpeg-devel] [PATCH] Add documentation for -ast, -vst, -sst

Stefano Sabatini stefano.sabatini-lala
Fri Feb 27 10:39:45 CET 2009


On date Friday 2009-02-27 08:56:56 +0100, Benoit Fouet encoded:
> On 02/26/2009 08:43 PM, Stefano Sabatini wrote:
> > On date Tuesday 2009-02-24 23:50:40 +0100, Stefano Sabatini encoded:
> >   
> >> Index: ffplay.c
> >> ===================================================================
> >> --- ffplay.c	(revision 17569)
> >> +++ ffplay.c	(working copy)
> >> @@ -2503,9 +2503,9 @@
> >>      { "fs", OPT_BOOL, {(void*)&is_full_screen}, "force full screen" },
> >>      { "an", OPT_BOOL, {(void*)&audio_disable}, "disable audio" },
> >>      { "vn", OPT_BOOL, {(void*)&video_disable}, "disable video" },
> >> -    { "ast", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_audio_stream}, "", "" },
> >> -    { "vst", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_video_stream}, "", "" },
> >> -    { "sst", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_subtitle_stream}, "", "" },
> >> +    { "ast", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_audio_stream}, "select desired audio stream, counting from 1", "stream_number" },
> >> +    { "vst", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_video_stream}, "select desired video stream, counting from 1", "stream_number" },
> >> +    { "sst", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_subtitle_stream}, "select desired subtitle stream, counting from 1", "stream_number" },
> >>      { "ss", HAS_ARG | OPT_FUNC2, {(void*)&opt_seek}, "seek to a given position in seconds", "pos" },
> >>      { "bytes", OPT_BOOL, {(void*)&seek_by_bytes}, "seek by bytes" },
> >>      { "nodisp", OPT_BOOL, {(void*)&display_disable}, "disable graphical display" },
> >> Index: doc/ffplay-doc.texi
> >> ===================================================================
> >> --- doc/ffplay-doc.texi	(revision 17569)
> >> +++ doc/ffplay-doc.texi	(working copy)
> >> @@ -87,6 +87,21 @@
> >>  used for debugging purposes.
> >>  @item -threads @var{count}
> >>  Set the thread count.
> >> + at item -ast @var{audio_stream_number}
> >> +Select the desired audio stream number, counting from 1. The number
> >> +refers to the list of all the input audio streams, if it is greater
> >> +than the number of audio streams then the last one is selected, if it
> >> +is non-positive the first one is selected.
> >>     
> 
> what do you mean by non-positive ?

Negative *or* zero.

Regards.
-- 
FFmpeg = Frenzy and Fiendish Muttering Proud EniGma




More information about the ffmpeg-devel mailing list