[Ffmpeg-devel] Demuxing of .ts streams doesn't work anymore

Måns Rullgård mru
Wed Jun 28 23:19:59 CEST 2006


Christian Leber <christian at leber.de> writes:

> Hello,
>
> there is some regression when demuxing .ts files, it's recorded from from DVD-S.
>
> with r5536 (today) when i try:
> ~/ffmpeg/5536/ffmpeg/ffmpeg -an -i 0,64,6e,78,6a.ts  test.mpg
> FFmpeg version SVN-r5536, Copyright (c) 2000-2004 Fabrice Bellard
>   configuration:  
>   libavutil version: 49.0.0
>   libavcodec version: 51.9.0
>   libavformat version: 50.4.0
>   built on Jun 28 2006 00:32:53, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
> [mpegts @ 0x8303980]Could not find codec parameters (Audio: mp3)
> 0,64,6e,78,6a.ts: could not find codec parameters

The problem with this file is that the PMT specifies PID 0x79 as an
audio stream, but there are no packets with that PID in the file.
Rejecting the file entirely because of this is IMHO wrong.

I propose the attached patch to merely print a warning about the
missing streams, and proceed using those that were found.  Anyone
against?

> with r5370 it was still working as expected

This is because revision 5505 increased the max amount to read
searching for streams, and the error is signaled only if EOF is
reached.

> r5400 is btw. segfaulting

Well, appears to have been fixed.

-- 
M?ns Rullg?rd
mru at inprovide.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavf-missing-streams.patch
Type: text/x-patch
Size: 988 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060628/697f4e34/attachment.bin>



More information about the ffmpeg-devel mailing list