[MPlayer-users] VCD's

Ashley Evans k0210244 at kingston.ac.uk
Wed Apr 23 19:42:24 CEST 2003


> #!/usr/bin/perl -w
> print"Insert the video size in bytes:";
> $videosize=<STDIN>;
> print"Insert the video length in seconds:";
> $length=<STDIN>;
> $videobitrate=($videosize*8)/($length*1000);
> print"The best videobitrate for this video is:$videobitrate\n";

This is good but I have a problem determining, accuratly, the length of the 
movie. Right now I get the .dat file sizes of both CD's, convert them to 
kbits and divide by the combined audio/video bitrate reported by mplayer. It 
works but a nice perl script to do it automagically would be nice. I should 
really write one!

Unfortunately my method of calculating the entire length is flawed because one 
.dat can contain more than one VCD track (it seems).

> P.S. Sorry for my english :@)

Not  a problem because I can understand you :)

Ash.




More information about the MPlayer-users mailing list