[MPlayer-dev-eng] [PATCH] Remove leading/trailing margin for VCD

Nico Sabbi nsabbi at email.it
Tue Mar 13 10:14:21 CET 2007


Zuxy Meng wrote:

> Hi,
>
> Playing around with VCD, I found that the MPEG packs don't start
> precisely at the beginning of a track, and don't end precisely at the
> end of a track either: they are wrapped by all zero sectors. I don't
> have a copy of the White Book so I can't tell if it's mandated by the
> standard or just an implementation issue.

the sources of vcdimager may help

> I guess the rationale behind
> these margins is that old VCD players have problems in accurate
> seeking. Nevertheless, the leading margin makes lavf demuxer reject it
> as a legitimate MPEG PS stream.
>
> Two notes about the patch:
> 1. Experience shows that reading sector by sector in the backward
> direction is extremely slow so I commented such code out. As a result
> trailing margin isn't stripped and fortunately it doesn't cause much
> trouble in demuxing too.
> 2. Each MPEG pack (as well as a non-null VCD sector) begins with
> 0x000001ba and I picked the last byte (0xba) as the probe.


I'd like to know what's the content that you want to skip before 
removing it.
I'll help you to search in vcdimager
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Cassine di Pietra: vini veneti di qualità subito a casa Sua 
* da un’azienda famigliare al servizio di clienti selezionati
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3919&d=13-3



More information about the MPlayer-dev-eng mailing list