[FFmpeg-devel] [Ffmpeg-devel] [PATCH] Support raw mpegts streams from dvr

Wolfram Gloger wmglo
Tue Jun 5 23:47:37 CEST 2007


Hi,

> > error, non monotone timestamps 297911 >=3D 9911
> 
> true, but old revissions fail the same way with -ss and stream copy

Old revisions usually do not fail here, only sometimes.
Anyway that's very probably the famous problem with initial timestamps;
I'll get to it eventually.

> seeking with mpeg ts doesnt work very well, it didnt in the past either

Yes it did work well until a few days ago!

> ive tried it with ffplay and ffmpeg and couldnt find any difference
> between svn head and a few old binaries ive had laying around
> 
> unless the new version choose a different stream but that can hardly
> be considered a bug, its just a 50:50 chance that it might work slightly
> better (or worse) due to the stream selected

The problem is: by eliminating the admittedly ugly "goto do_pcr" you
have effectively disabled detection of the pcr pid unless there is a
valid SDT.  And with pcr_pid==0 all seeking fails.

Enabling the "mpegtsraw" demuxer in allformats.{c,h} (should I send a
patch for that?) and specifying "-f mpegtsraw" does _not_ help,
because then we get the pcr_pid but don't have auto_guess on.

What I would suggest is for the auto_guess case to auto-detect the
pcr pid as well as new streams.  Patch appended, lightly tested.

Regards,
Wolfram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 1012 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070605/609b1959/attachment.obj>



More information about the ffmpeg-devel mailing list