[FFmpeg-devel] Help with demuxer
Sat Sep 13 15:14:57 CEST 2008
On Sat, Sep 13, 2008 at 07:19:29AM -0400, Jesse L. Zamora wrote:
> ? ? I am trying to write a demuxer for the SMV format. But I have one problem.
> 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.
> Xtreme Kommander
More information about the ffmpeg-devel