[FFmpeg-devel] [Ffmpeg-devel] [PATCH] Support raw mpegts streams from dvr
Michael Niedermayer
michaelni
Sat Jun 2 23:14:04 CEST 2007
Hi
On Thu, Mar 25, 2004 at 03:15:47PM -0000, wmglo at dent.med.uni-muenchen.de wrote:
> Hi,
>
> Here is a patch to be able to automatically detect and input raw
> mpegts streams, such as those obtained from
>
> % cat /dev/dvr/adapter0/dvr0
>
> from a linuxtv-dvb device. Without this patch, such streams are
> rejected.
>
> Some debugging fixes are also in this patch. The second hunk is
> required for the ffmpeg application to not abort on the above
> described streams.
[...]
> @@ -1126,8 +1126,12 @@
> handle_packets(ts, MAX_SCAN_PACKETS);
> }
>
> - if (ts->nb_services <= 0)
> - return -1;
> + if (ts->nb_services <= 0) {
> + /* raw transport stream */
> + ts->auto_guess = 1;
> + s->ctx_flags |= AVFMTCTX_NOHEADER;
> + goto do_pcr;
> + }
>
> /* tune to first service found */
> service = ts->services[0];
> @@ -1165,6 +1170,7 @@
> s->pts_num = 1;
> s->pts_den = 27000000;
>
> + do_pcr:
> st = av_new_stream(s, 0);
> if (!st)
> goto fail;
ive applied these 3 years ago, but i think this change is total nonsense
can someone provide me with a stream which needs these?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070602/d21b5c32/attachment.pgp>
More information about the ffmpeg-devel
mailing list