[FFmpeg-devel] [PATCH] options to set stream id (custom TS pid)

Mike Scheutzow mjs973
Sun Jun 13 16:12:26 CEST 2010


Baptiste Coudurier wrote:
>
>> @@ -419,7 +424,28 @@
>>               goto fail;
>>           st->priv_data = ts_st;
>>           ts_st->service = service;
>> -        ts_st->pid = DEFAULT_START_PID + i;
>> +        /* MPEG pid values<  16 are reserved. Applications which set 
>> st->id in
>> +         * this range are assigned a calculated pid. */
>> +        if ( st->id<  16 ) {
>
> Space around parentheses.
Fixed in v5 patch.
>
>
> Patch ok otherwise.
>

Suggested commit description for ffmpeg_set_streamid_v3.patch:
for ffmpeg.c, add command line option -streamid to set the value of 
AVStream.id for output streams.
Patch by Mike Scheutzow mjs973 optonline net

Suggested commit description for mpegts_custom_pids_v5.patch:
for mpegts muxer, allow libav application to assign a custom pid value 
to an output stream.
Patch by Mike Scheutzow mjs973 optonline net

-- 
Mike Scheutzow


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg_set_streamid_v3.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100613/eae0d568/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mpegts_custom_pids_v5.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100613/eae0d568/attachment.asc>



More information about the ffmpeg-devel mailing list