[MPlayer-users] output file options for VCD

Nico Sabbi nsabbi at tiscali.it
Tue Dec 7 23:14:42 CET 2004


RC wrote:

>On Mon, 06 Dec 2004 12:12:33 +0000
>Osmany Guirola Cruz <osmany.guirola at cigb.edu.cu> wrote:
>
>  
>
>>then i got multiple lines like this
>>
>>Pos:  59.4s   1784f (99%)  85fps Trem:   0min   4mb  A-V:0.026
>>[409:223] 1 duplicate frame(s)!
>>Unknown block type, possibly non-MPEG stream!
>>    
>>
>
>You need to have "harddup" in your video filters when using "-of mpeg". 
>
>Even with that, the MPEG file you output will have the wrong blocksize
>(as Nico said), and vcdimager will have to pad it, wasting a lot of your
>VCD's disc space for no reason.  It's much better to take the mpeg file,
>then use "mplayer -dumpvideo" and "-dumpaudio", then muxing the two
>together with mplex or tcmplex (even smaller output).  Alternatively,
>you can apply Nico's MPEG patch to your mplayer source, and avoid all of
>this.
>
>_______________________________________________
>MPlayer-users mailing list
>MPlayer-users at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>  
>

I just realized that there was a nasty bug in write_mpeg_pes_header():
the block that reads:

if(h->dts)
{
      write_mpeg_ts(&buff[len], h->dts, 0x1); // 0001 before DTS
       len += 5;
 }

must be:

if(h->dts)
{
      write_mpeg_ts(&buff[len], h->dts, 0x10); // 0001 before DTS
      len += 5;
}


sorry




More information about the MPlayer-users mailing list