[MPlayer-dev-eng] Any plan to add libavformat mencoder -of driver?

Nico Sabbi nsabbi at tiscali.it
Sun Feb 20 19:19:20 CET 2005


Michael Niedermayer wrote:

>>
>>Michael, is there any way to separate muxer and stream writer in lavf?
>>Their binding requires ugly changes in mencoder.c that I'd like to avoid.
>>    
>>
>
>yes, u must implement a URLProtocol (see demux_lavf.c)
>and then just add a "<name_of_protocol>://" prefix to the filename, lavf will 
>then call the write / open / close / seek functions of the URLProtocol which 
>in turn will call mplayers/libcs functions
>
>[...]
>  
>

done, but  now I always get crashes: the write function is never called, and
additionally av_write_header() for avi, mov and asf segfaults (null ptr 
dereference
of s->buf_ptr in put_byte()).
The other formats (mpeg*) lock forever after a couple of 
muxer_write_chunk().
Michael, what's wrong with this patch?
P.S. I tried both menc:stream.dummy and menc://stream.dummy with the 
same results.

Thanks,
    Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavf3.diff
Type: text/x-patch
Size: 19937 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050220/94eacf5e/attachment.bin>


More information about the MPlayer-dev-eng mailing list