1 (edited by Xphome 22-02-2014 23:32:15)

Topic: Video freezes for a few seconds at random intervals

Yep, what the title says. At random intervals the video freezes for a duration that varies, can be 2 seconds or 8. Audio continues. While this issue is not limited to SVP, it might be the easiest to troubleshoot, the same thing happens to Firefox and Chrome. I run MPC-HC with LAV, madVR, ffdshow and SVP. This issue very rarely happens in MPC-HC if SVP is disabled, it does still happen in Firefox.

It started a few days ago, around the time when I updated my graphics drivers. A new WHQL driver came out a few days after that so I made sure to do a clean install, the issue remains. I've used LatencyMon to see if the driver had a long execution time but it didn't, and nothing else freezes that I've noticed. I've analyzed the wait chain(?) of the most CPU intensive of the 2 avisynth threads in the MPC-HC process at the time of the freezes and it says:

Thread is waiting (alertable) for:
Handle 0x661084: (error querying handle)

The handle number changes, I've seen it be 0x1 and 0x7something. CPU usage at the time of freezes is low, as if it's waiting for something before continuing. When the freeze stop, the video fast forwards to catch up with the audio. Here is a picture of the performance graph:

http://i.imgur.com/B7jBG3I.png

I must add that the image above shows a rare occasion when several freezes happened in a small time frame, they are usually further apart than this. While I don't think it will help, here is the SVP log:

23:05:00.989; Start: SVPMgr 3.1.5 (931) starts...
23:05:00.993; AppDataPath: C:\ProgramData (ANSI)
23:05:00.995; Start: read settings file settings.ini
23:05:00.996; Start: load language file - English. Duration: 26 ms
23:05:01.022; Start: check launched instance of SVP-manager
23:05:01.023; Start: check Avisynth installed. Duration: 11868 ms
23:05:12.891; Start: clear Logs folder
23:05:12.894; Start: performance graphs prepare
23:05:12.895; Start: SVPMgr folders prepare
23:05:12.900; Start: read settings file SVPMgr.ini
23:05:12.902; Start: GPUs settings detection. Duration: 34 ms
23:05:12.936; Start: detected graphics (OpenCL) adapter: 21. GeForce GTX 680 (2131)
23:05:12.938; Start: monitors settings detection
23:05:15.537; Start: detected monitors:
1920 x 1080 @ 60.03
1280 x 1024 @ 60.021
1920 x 1080 @ 60.004
23:05:15.540; Start: disable LNG-file write when UAC enabled
23:05:15.543; Start: change SVP-manager priority
23:05:15.545; Start: register hotkeys
23:05:15.548; Start: get versions of modules used
ffdshow.ax/avisynth.dll: 1.3.4530.0/2.5.8.6
svpflow1/2.dll: 1.3.4.0/1.5.1.0
svpflow_cpu/gpu.dll: 1.7.2.0/1.7.9.0
23:05:15.549; Start: refresh autostart state in registry
23:05:15.550; Start: some more work with registry
23:05:15.554; Start: create menu. Duration: 6 ms
23:05:15.560; Start: update settings file settings.ini. Duration: 18 ms
23:05:15.578; Start: update monitor settings
23:05:15.580; Start: prepare "About the program" window. Duration: 38 ms
23:05:15.618; Start: enable ffdShow waiting mode
23:05:15.620; Start: prepare to work is complete
23:05:15.626; RefreshSVP. Duration: 6 ms
23:05:15.632; ===== Waiting for ffdshow video

23:05:16.191; ===== Detected playback with ffdShow. AppName: mpc-hc.exe PID: 26804
23:05:16.193; GetDimensionAndFPS_fromOSD start. Duration: 126 ms
23:05:16.319; GetDimensionAndFPS_fromOSD result: 1280x720 23.976 1/1
23:05:16.524; T1T: begin
23:05:16.526; T1T: GetAllMediaParams
23:05:16.528; T1T: SettingsPrepare. Duration: 6 ms
23:05:16.534; T1T: Preparing smooth playback...
23:05:16.538; T1T: WriteAllMediaParamsToIni
23:05:16.539; SVPMgr: main "C:\ProgramData\SVP 3.1\" 1280 720 23.976 1280 720 5 2. Duration: 112 ms
23:05:16.651; ===== Playback
23.976 * (5 : 2) = 59.94 fps
23:05:16.653; SetPriorityPlayer: 2. Duration: 1242 ms
23:05:17.895; this is changing FalseVFR_Dwn. ffdShow-framerate: 16.8
23:05:18.829; this is changing FalseVFR_Up. ffdShow-framerate: 17.667
23:05:19.765; this is changing FalseVFR_Up. ffdShow-framerate: 22.733
23:05:20.702; this is changing FalseVFR_Up. ffdShow-framerate: 23.779
23:05:21.639; this is changing FalseVFR_Up. ffdShow-framerate: 23.976
23:05:21.640; express clear interval
23:05:21.642; stabilized ffdShow-framerate: 23.976 fps. SVP Index:0.00/0.93

Re: Video freezes for a few seconds at random intervals

Xphome
I see you have 3 monitors and GTX 660 videocard.
Did you try to return to old video driver?
Did you test your videocard on stability: furmark, 3dmark, etc.?

Thread is waiting (alertable) for:
Handle 0x661084: (error querying handle)

I don't know what is it. Where you get it?

Re: Video freezes for a few seconds at random intervals

Xphome
Turn off gpu accel in svp and see if it helps

Re: Video freezes for a few seconds at random intervals

MAG79
Oh I see I forgot to say what I got that from, I got it from Process Hacker 2. I have a GTX 680. No, I didn't try the old driver. I've played games recently without any problems with my graphics card.

I think I might have fixed the problem, I just watched a 40 minute video with SVP without a single freeze. All I did was turn off Frame Limiter in the Nvidia drivers that I had set to 60FPS, I've had this set to 60FPS without problems before tho.