[MPlayer-users] Dropping Last Few Minutes of DivX AVI (NODAEMON)

D Richard Felker III dalias at aerifal.cx
Thu Apr 24 09:41:01 CEST 2003


On Thu, Apr 24, 2003 at 12:54:41AM -0300, Martin Pavon wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> On Wed, Apr 23, 2003 at 02:14:09PM -0700, Ben Jansen wrote:
> 
>  
> > I did, and I did again for good measure after receiving your email. 
> > Sadly, the same phenomenon occurs as when using time values (described 
> > in my original email).
> > 
> > Thanks,
> > 	Ben Jansen
> > 
> 
> Yeah. You're right  and I don't understand  what is goings on. I  do a test
> myself and get the following:
> 
> mencoder -ovc copy -oac copy -o test.avi -endpos 695mb lucia.avi
> 
> -rw-r--r--    1 m        users    733890560 Apr  4 05:03 lucia.avi
> -rw-r--r--    1 m        users    733882304 Apr 23 23:22 test.avi
> 
> 
> mencoder -ovc copy -oac copy -o test.avi -endpos 600mb lucia.avi
> 
> -rw-r--r--    1 m        users    733890560 Apr  4 05:03 lucia.avi
> -rw-r--r--    1 m        users    636121910 Apr 23 23:33 test.avi
> 
> Fro the  second test, endpos  works, no  very good since  636121910 approx.
> 607mb, but  works. Instead, if I  try to cut  off only 5mb endpos  fails as
> show the first test.
> 
> Now, in both case the ratio is 0.99 aprox. so to get a 700mb file, try with 
> 700*0.99, i.e -endpos 693mb    is crazy but who knows ...
> 
> Does anybody know what happend here? 

Yep. -endpos tells where *in the movie* to stop encoding. The last
5-15 megs of the avi file are not part of the movie, just the index,
so telling mencoder to stop at a point beyond the end of the actual
movie won't do anything...

BTW, your example is rather silly, since 733890560 bytes will easily
fit on a cd with about 5 megs to spare!

Rich



More information about the MPlayer-users mailing list