[MPlayer-dev-eng] Transport Stream demuxer help

Nico nsabbi at libero.it
Sun Feb 16 00:22:27 CET 2003


I added these lines in demux_open_ts   (taken from demux_ogg):

        s = new_ds_stream(demuxer->video);
        od = new_demuxer(s, DEMUXER_TYPE_MPEG_PS, -2, 0, -2);
        od->priv = priv;
        sh_video = new_sh_video(od, 0);
        od->audio->id = -2;
        od->video->id = 0;
        od->video->sh = sh_video;
        sh_video->ds = od->video;
        sh_video->format = 0x10000002;

        /// Return the joined demuxers
        return new_demuxers_demuxer(od, demuxer, demuxer);


I guess this code says "treat my video stream as an input stream for 
mpeg demuxer", but when I run it, mplayer  complains:


Opened TS demuxer...
s->pos=0  newpos=0  new_bufpos=0  buflen=0
==> Found video stream: 0
No stream found.


and demux_fill_buffer doesn't get called.

Do I have to fill a part of demuxer->video before running 
new_demuxers_demuxer?
Or am I missing something?

Thanks,

       Nico









More information about the MPlayer-dev-eng mailing list