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

Benoit Fouet benoit.fouet
Fri Feb 27 08:56:56 CET 2009


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 ?

Ben





More information about the ffmpeg-devel mailing list