ps3mediaserver/ps3mediaserver — pull request #56 by ms777 (2012-06-02 15:43:58+00:00)
Title: BufferedOutputFileImpl corrupt ?

Hi,

I have been trying to view DVD disc structures on my hard disk with your excellent software ...

I am using a Windows7 PC, 4 physical cores, and XBMC on the same computer for testing

The only changes to the standard configuration I made are
MEncoder Expert Settings: container == iso :: -ovc copy -oac copy -forceidx -nosync
Common Transcode Settings: Chapter #Transcode# folder support / Interval in minutes: 2 (and active)

My XMBC actions:
I select the 00:00 chapter => everything is fine
I select the 02:00 chapter => sometimes the wrong part of the movie is played
I again select the 00:00 chapter => always the wrong part of the movie is played. After a while, the correct movie begins

To identify the root cause, I added logging of the read and write actions in BufferedOutputFileImpl (see the push request). All is written to a folder ps3_log on the desktop. I did not change anything in the logic od BufferedOutputFileImpl.
The ... write.dat are perfectly playable on MediaplayerClassic, and they contain what I expected to see.
The ... read.dat are perfectly playable on MediaplayerClassic, and they contain what I actually saw in XBMC.

BufferedOutputFileImpl, especially the buffer increase logic, and the dealing with offset in the write functions, are not easy to understand ... any help for further investigation would be very helpful

Cheers,

ms777