Hi!

Cengiz Gunay wrote:
> Hi, again!
> 
> On Fri, 12 Dec 2008, Michael Riepe wrote:
> 
> 
>>Actually, I consider that good news. :-)
> 
> 
> I found another file with a similar problem. This time the channel wasn't 
> to blame. Instead the starting point of the stream seems to cause it.

*sh*t*

> dvbcut cannot find the audio stream in this file (the first 20MB dd'ed), 
> although it detects the private stream:
> 
> http://cengique.2y.net/~cengiz/dvbcut-sample/monk-naked-man-sample.ts
> 
> Here're messages from dvbcut r143 with some of my additional debug 
> messages:
> 
> Analyzed transport stream, 0 bytes of initial data (IRC=-1)
> PAT: found PMT at pid 48
> PMT: found video stream at pid 1984
> but I have to guess the audio streams :-(
> Found private stream 1: SID=bd
> Payload len=184,
> payload[8]=7
> payload[9 + payload[8]]=b3
> payload[10 + payload[8]]=93
> Found private stream 1: SID=bd
> ...
> (tries a few more times. You can find the full output at 
> http://cengique.2y.net/~cengiz/dvbcut-sample/monk-naked-man-sample-dvbcut-r143-output.txt)

Ugh... yes, it's looking for the characteristic two-byte signature at
the beginning of an AC-3 frame. But there seems to be only junk. Maybe
the frames are unaligned. In that case, they are ONLY detected if there
is a valid PMT entry.

> However if I remove its first 5MB (the exact cut point did not matter), it 
> starts working.

Huh? Does it find a PMT entry in that case?

> Mplayer starts playing the audio from the beginning. But I am not sure if 
> the audio stream is missing at the very beginning. Maybe dvbcut can look 
> ahead if the stream cannot be recognized at the very beginning?

It does already. Of course we could make it try harder, but that would
also increase the time that is needed to open a file. And that's already
rather long if the file resides on a network server or USB disk.

The obvious solution is to scan for PAT/PMT segments and audio streams
while the file is indexed - we have to read the whole file for that
anyway -, probe unknown and hidden streams for well-known data patterns,
and store the information gathered that way in the index file for later use.

-- 
Michael "Tired" Riepe <mich...@mr511.de>
X-Tired: Each morning I get up I die a little

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to