[MPlayer-users] encode to dvd useing nicos patch produce null size mpeg file!

Nico Sabbi nsabbi at tiscali.it
Thu Dec 9 00:34:11 CET 2004


Heine Laursen wrote:

> Nico Sabbi wrote:
>
>> you must be using the old version; did you recompile and reinstall 
>> mplayer?.
>> If you want to make it short, edit libmpdemux/muxer_mpeg.c: in
>> function mpegfile_write_chunk() remove the if() just before 
>> parse_mpeg12_video() and recompile
>
>
> is it this you want me to remove form libmdemux/muxer.c:
>
> /*    if((vsh->format == 0x10000001) ||
>         (vsh->format == 0x10000002) ||
>         (vsh->format == mmioFOURCC('m','p','g','1')) ||
>         (vsh->format == mmioFOURCC('M','P','G','1')) ||
>         (vsh->format == mmioFOURCC('m','p','g','2')) ||
>         (vsh->format == mmioFOURCC('M','P','G','2')) ||
>         (vsh->format == mmioFOURCC('m','p','e','g')) ||
>         (vsh->format == mmioFOURCC('M','P','E','G')))     */
>                 sz = parse_mpeg12_video(s, priv, spriv, vsh, len);
>
> If so. It still does the same thing!
>
> Sincerley
> Heine Laursen
>

1000l to me. I found the bug:

in mencoder.c move the line

vsh->format = mux_v->bih->biCompression;

just below and outside of the if() block it is inside. Alternatively 
adding -ffourcc mpg2 should work, too.

Last note: let mencoder run for a while, not break it immediately when 
you see [0:0]
(if this is what you are doing).

    Nico




More information about the MPlayer-users mailing list