[FFmpeg-devel] mpegts private sections stream support

Uve W. Rick Uve.Rick
Fri Mar 14 15:18:28 CET 2008


I am doing something similar, but my data stream is coming on Pid type STREAM_TYPE_PRIVATE_DATA (0x05).  I get a descriptor with a tag of 0x05 which contains a 4 byte ASCII value.  I write this to the stream->codec->codec_tag.  When I dump the format, it prints this 4 byte value.

--------------------------------------------
Uve Rick            Senior Software Engineer
uve.rick at gat.com
General Atomics Aeronautical Systems Inc.


> -----Original Message-----
> From: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-
> bounces at mplayerhq.hu] On Behalf Of Mark Buechler
> Sent: Tuesday, March 11, 2008 4:22 PM
> To: FFmpeg development discussions and patches
> Subject: Re: [FFmpeg-devel] mpegts private sections stream support
> 
> Hi
> 
> On Tue, Mar 11, 2008 at 7:13 PM, M?ns Rullg?rd <mans at mansr.com> wrote:
> 
> > "Mark Buechler" <mark.buechler at gmail.com> writes:
> >
> > > Hi, I'm trying to add support for reading ts streams which have a PID
> of
> > > type 0x05 (STREAM_TYPE_PRIVATE_SECTION). I've defined a new codec id
> of
> >
> > Out of interest, what are those private sections, and how do you
> > identify them?
> >
> > > CODEC_ID_DVB_PRIVSEC in avcodec.h and added an entry in mpegts.c for
> > > new_pes_av_stream() to set the codec_id to CODEC_ID_DVB_PRIVSEC and
> type
> > of
> > > CODEC_TYPE_DATA for my new stream. However, calls to av_get_frame()
> > never
> > > return packets from my stream.
> > >
> > > Is there something else I need to look at? The stream has no
> > descriptors,
> > > but I wouldn't think that would have anything to do with it.
> >
> > The TS demuxer is a mess.  I'm working on and off on a replacement
> > (haven't had a lot of time for it lately, but it's getting there).  If
> > you have any interesting samples, please upload them.  I'd be
> > especially interested in samples where a stream changes PID.
> >
> > --
> > M?ns Rullg?rd
> > mans at mansr.com
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at mplayerhq.hu
> > https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> >
> 
> The streams contain plain text and don't have any distinguishing bits,
> that
> I can see. I've been staring at this for a couple days and haven't gotten
> anywhere. Any help you can provide would be much appreciated.
> 
> I'll send you a link to a sample separate from the list.
> 
> Thanks, Mark.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel




More information about the ffmpeg-devel mailing list