[MPlayer-dev-eng] demuxer question

Alexander Neundorf neundorf at dellingsoft.de
Fri May 17 13:30:54 CEST 2002


On Friday 17 May 2002 12:34, you wrote:
> Hi,
>
> > I'm currently writing a raw dv (as played by playdv and produced by
> > dvgrab --format raw)  demuxer and decoder using libdv for mplayer.
> > Video is already working :-)
> >
> > Now I don't know exactly how to do the audio part.
> > The decoding functions for audio and video of libdv both operate on the
> > same buffer. Since a dv stream is quite big, it wouldn't be optimal to
> > handle the stream twice through mplayer (ok, didn't test yet).
>
> yep... i kno wthe problem, i also starte dto work on type-2 dv .avi support
> (when the avi file has one stream, having audio-video multiplexed).

Isn't mplayer already able to play those using the w32codecs ?

...
> when free'ing packets, check for refcount, and free() buffer only if
> refcount was 1.
>
> to make it a bit faster, simpler, and less memory pollution, do not
> allocate the pointer at the first packet. so, assume that refcount=NULL is
> equal to a pointer to value 1. when making a clone, you can
> malloc(sizeof(int)), and set both packets (master and clone) to that.
>
> i can implement this functionality, if you don't understand the above
> trick.


Well, for now I will try to get it working at all, optimizing can come later.

Thanks
Alex




More information about the MPlayer-dev-eng mailing list