NextPVR Forums

Full Version: MVP screen freeze with skip mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi sub, sorry for the long questions. [Image: smile.gif]

1) when using the skip mode i sometimes get a screen freeze. The only way to resolve this is by reboot MVP and restart the MVP/GBPVR server program.

From reading the logs this is what I have found.



07/08/2004 00:38:26.566 VERBOSE [32] MVP Stream data available: 40
07/08/2004 00:38:26.566 VERBOSE [32] MVP Stream got data
07/08/2004 00:38:26.566 VERBOSE [32] MVP Stream waiting for data
07/08/2004 00:38:26.596 VERBOSE [31] MVP data available: 8
07/08/2004 00:38:26.596 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:26.596 VERBOSE [31] MVPSetPlaybackPosition() request to set position to: 2775 seconds
07/08/2004 00:38:26.596 VERBOSE [31] MVPSetPlaybackPosition() Set position to:2256195317.90417
07/08/2004 00:38:26.596 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:26.656 VERBOSE [32] MVP Stream data available: 40
07/08/2004 00:38:26.656 VERBOSE [32] MVP Stream got data
07/08/2004 00:38:26.656 VERBOSE [32] Set position to:2256195317.90417
07/08/2004 00:38:26.656 ERROR [32] Media stream thread caught exception: An attempt was made to move the file pointer before the beginning of the file.

07/08/2004 00:38:26.896 ERROR [32]   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
  at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
  at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
  at bv.ae()
07/08/2004 00:38:26.936 VERBOSE [31] MVP data available: 68
07/08/2004 00:38:26.936 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:27.026 VERBOSE [2] frame sent
07/08/2004 00:38:27.026 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:27.026 VERBOSE [31] MVP data available: 34
07/08/2004 00:38:27.026 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:27.026 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:27.237 VERBOSE [31] MVP data available: 10
07/08/2004 00:38:27.237 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:27.237 VERBOSE [31] recieved frame update request
07/08/2004 00:38:27.237 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:27.267 VERBOSE [31] MVP data available: 34
07/08/2004 00:38:27.267 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:27.267 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:27.397 VERBOSE [32] MVP Streaming thread waiting for connection
07/08/2004 00:38:28.018 VERBOSE [2] frame sent
07/08/2004 00:38:28.228 VERBOSE [31] MVP data available: 10
07/08/2004 00:38:28.228 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:28.228 VERBOSE [31] recieved frame update request
07/08/2004 00:38:28.228 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:28.258 VERBOSE [31] MVP data available: 34
07/08/2004 00:38:28.258 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:28.258 VERBOSE [31] MVP waiting for data
07/08/2004 00:38:28.859 VERBOSE [31] MVP data available: 34
07/08/2004 00:38:28.859 VERBOSE [31] MVP data read: 1
07/08/2004 00:38:28.859 VERBOSE [31] MVP waiting for data




now the bit about    "An attempt was made to move the file pointer before the beginning of the file."

this was caused by pressing the skip button once and there was quite some time left of the film.



2) I'm using a PVR350 with medium record level. when reading the same log i noticed my file is known as mpeg1. I thought it should be mpeg2 ?

here that part of the log
SourceConfigurationContainer.LoadAll()
07/08/2004 00:34:11.429 VERBOSE [31] About to connect to remote recording service
07/08/2004 00:34:11.439 VERBOSE [31] RecordingFactory.loadSchedule()
07/08/2004 00:34:11.879 VERBOSE [31] frame sent
07/08/2004 00:34:11.879 VERBOSE [31] MVP waiting for data
07/08/2004 00:34:12.070 VERBOSE [31] MVP data available: 10
07/08/2004 00:34:12.070 VERBOSE [31] MVP data read: 1
07/08/2004 00:34:12.070 VERBOSE [31] recieved frame update request
07/08/2004 00:34:12.070 VERBOSE [31] MVP waiting for data
07/08/2004 00:34:12.821 VERBOSE [31] MVP data available: 8
07/08/2004 00:34:12.821 VERBOSE [31] MVP data read: 1
07/08/2004 00:34:13.311 VERBOSE [31] frame sent
07/08/2004 00:34:13.311 VERBOSE [31] MVP waiting for data
07/08/2004 00:34:13.522 VERBOSE [31] MVP data available: 10
07/08/2004 00:34:13.522 VERBOSE [31] MVP data read: 1
07/08/2004 00:34:13.522 VERBOSE [31] recieved frame update request
07/08/2004 00:34:13.522 VERBOSE [31] MVP waiting for data
07/08/2004 00:34:14.273 VERBOSE [31] MVP data available: 8
07/08/2004 00:34:14.273 VERBOSE [31] MVP data read: 1
07/08/2004 00:34:14.273 VERBOSE [31] playFile(Peter Kay Live)
07/08/2004 00:34:14.283 VERBOSE [31] Sending MVP Video Playback Request: C:\Peter Kay Live\PeterKayLive_20040804_21302230.mpg
07/08/2004 00:34:14.283 VERBOSE [31] RecordingFactory.loadSchedule()
07/08/2004 00:34:14.383 VERBOSE [32] MVP Stream data available: 40
07/08/2004 00:34:14.383 VERBOSE [32] MVP Stream got data
07/08/2004 00:34:14.383 VERBOSE [32] MVP Stream waiting for data
07/08/2004 00:34:14.413 VERBOSE [32] MVP Stream data available: 65
07/08/2004 00:34:14.413 VERBOSE [32] MVP Stream got data
07/08/2004 00:34:14.413 VERBOSE [32] MVP playback requested: C:\PETERK~1\PETERK~1.MPG
07/08/2004 00:34:14.413 VERBOSE [32] bitrate: 15002
07/08/2004 00:34:14.413 VERBOSE [32] File is an MPEG1 file
07/08/2004 00:34:14.413 VERBOSE [32] MVP Stream waiting for data
07/08/2004 00:34:14.443 VERBOSE [32] MVP Stream data available: 40

any ideas sub?

cid

[Image: biggrin.gif]  [Image: biggrin.gif]
I havn't had a chance to look at the code for the errors you describe above, but some initial observations.

1) This must be some integer overflow thing happening. After 2147483647, an 32bit integer becomes a negative number, which is what you log seems to be confirming.

07/08/2004 00:38:26.596 VERBOSE [31] MVPSetPlaybackPosition() Set position to:2256195317

2) Not sure why this file is being detected as an MPEG1 file. If its really an MPEG2 file, it will stuff up the ability to skip correctly.

I'll try and find some time to look at these tomorrow.
thanx sub
[b Wrote:Quote[/b] ]07/08/2004 00:38:26.656 VERBOSE [32] Set position to:2256195317.90417
07/08/2004 00:38:26.656 ERROR [32] Media stream thread caught exception: An attempt was made to move the file pointer before the beginning of the file.

07/08/2004 00:38:26.896 ERROR [32] at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at bv.ae()

Thanks for pointing that out! I'm sure that accounts for a few peoples skip problems. It was an integer overflow occurring when I was calculating the new position in the file, when it was past the 2GB point in the file. This is corrected for the next release.

I've now added a few very big video files to set of test files on my development machine.
Thanks for the quick response sub, regarding the MPEG1 nameing - I checked the file out in powerdvd and it says its a MPEG2 stream.

I'm happy with that

cidc [Image: laugh.gif]
Yes, That would make sence since I only have skip issues on large files, probably when I skip past the 2GB point. If you have a test release I would be very happy to test it for you.

I can hardly wait, great job!
I must say that after reviewing my log files I have the same issue with the file being recognized as Mpeg1 when it is really an Mpeg 2 recorded with the PVR350.

26/07/2004 21:42:00.687 VERBOSE [28] Sending MVP Video Playback Request: C:\Program Files\Frey Technologies\SageTV\Video\Avalon-2380228-0.mpg
26/07/2004 21:42:00.703 VERBOSE [29] MVP Stream data available: 40
26/07/2004 21:42:00.703 VERBOSE [29] MVP Stream got data
26/07/2004 21:42:00.703 VERBOSE [29] MVP Stream waiting for data
26/07/2004 21:42:00.718 VERBOSE [28] MVP waiting for data
26/07/2004 21:42:00.734 VERBOSE [29] MVP Stream data available: 87
26/07/2004 21:42:00.734 VERBOSE [29] MVP Stream got data
26/07/2004 21:42:00.734 VERBOSE [29] MVP playback requested: C:\PROGRA~1\FREYTE~1\SageTV\Video\AVALON~1.MPG
26/07/2004 21:42:00.734 VERBOSE [29] bitrate: 15002
26/07/2004 21:42:00.750 VERBOSE [28] MVP data available: 34
26/07/2004 21:42:00.750 VERBOSE [28] MVP data read: 1
26/07/2004 21:42:00.750 VERBOSE [28] MVP waiting for data
26/07/2004 21:42:00.765 VERBOSE [29] File is an MPEG1 file
26/07/2004 21:42:00.796 VERBOSE [29] MVP Stream waiting for data
If I open this file in Ulead DVD MovieFactory it says:

MPEG-2 (PAL DVD), Field B
size 4389186 KB
Duration 6599.400 seconds

total frames frames 164.985
Attributes 24bits, 720*576
Frame rate 25 Frames/sec
Data rate : variable bit rate Max 6000kbps

Audio
samples 316.771.200 samples
Attributes 48000 Hz, 16 Bit, Stereo
Layer 2
Bit Rate 384 kbps
This sounds like the cure to my skip problems. Can't wait to test the next release. Great stuff.....
The MPEG1 log message was a red-herring. It said MPEG1 in the log when it detected a MPEG2 file. I've changed the message.