[MPlayer-users] Large -sb values

Andy Goth unununium at openverse.com
Sun Aug 25 12:05:05 CEST 2002


In MPlayer-0.90pre6, seek_to_byte is an off_t, which on my system is a 
32-bit value (unsigned, most likely).  This is a problem because I need to 
decss a largish dvd movie for view on a separate computer (the only 
computer with the dvd-rom drive is far too slow to view in realtime using 
mplayer [note: it gave great video with powerdvd in w95, but I don't have 
Windows anymore]).

mplayer won't write a file more than exactly two gigabytes in length.  I am 
not sure if this is a filesystem limitation... it's doubtful--the 
destination partition is formatted reiserfs.

ftp and scp won't send a two-gigabyte file.  ftp goes so far as to pretend 
that it doesn't exist... well, at least my old version of proftpd does.

So I tried making one-gigabyte files, just like on the dvd.  This worked 
fine for the first three blocks since I didn't have to cross MAXINT.  I 
used split to break up the two-gig file, and then I used -sb to jump to the 
third gigabyte (-sb 2147483648), and I ^c'ed after hitting the one-gigabyte 
mark on the third file, and I used dd to shave off the excess.  But that 
only took me halfway through the movie.  -sb 3221225472 causes mplayer to 
print "core dumped :)" and die.

Am I overlooking something here, or is it really necessary to switch to 
off64_t or equivalent?  Forgive me if this is already in the cvs, but I 
don't have the hour it would take to download another version of mplayer.  
(28.8K bites, hehehe)

-- 
Andy Goth  |  unununium at openverse.com  |  http://ioioio.net/
End communication.




More information about the MPlayer-users mailing list