[FFmpeg-devel] Help with demuxer
Jesse L. Zamora
xtremek2008
Sat Sep 13 17:03:57 CEST 2008
On Saturday 13 September 2008 09:14:57 am Kostya wrote:
> On Sat, Sep 13, 2008 at 07:19:29AM -0400, Jesse L. Zamora wrote:
> > Hello,
> >
> > ? ? I am trying to write a demuxer for the SMV format. But I have one
> > problem. I
> > don't know how to tell when to send an audio or video packet to the
> > decoder. Here is the demuxer implementation I have at the current moment
> > (it's attached). It sends video packets adpcm_ima_wav decoder, which it
> > should'nt do. Any suggestions are appreciated.
>
> That's easy - look into any ffmpeg demuxer and you'll see it assigns packet
> stream ID - i.e. pkt->stream_index = 1 for video and = 0 for audio in you
> demuxer.
>
> > Thanks,
> >
> > Xtreme Kommander
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
:-O I was staring at a demuxer for a long time trying to figure this out
(idcin.c) and it was there all along! :-) Thanks! I can't believe I didn't
see that!
Thanks Again
Xtreme Kommander
More information about the ffmpeg-devel
mailing list