Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was finding that when watching some video files using VLC 2.0.6 (Twoflower) that I have on my hard drive, they were sputtering quite a bit (stopping and starting causing video and audio artifacts and dropouts). This is especially noticeable when I increase the playback rate above 1.0x.

These video files are small (around 300-700MB+) and my computer isn't that old (about 6 months). Its a Dell Inspiron N411Z computer with an Intel Core i5-2450M 2.5GHz, 6.00GB of RAM, 64-bit Windows 7 Home Premium SP1 OS with a rating of 4.8 (which is the graphics performance). The hard drive is a 500GB SATA drive with 8MB cache and 3GB transfer spinning at 5400RPM (complete specs can be found here).

Codec of one of the videos as reported by ffmpeg:

Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 608x336 [SAR 1:1 DAR 38:21], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 32 kb/s

This is quite annoying, and I don't think it should be happening. I did see this question, but I don't think it's quite the same issue as that one only refers to video and not audio.

How many others have had this occur and what has your fix been?

share|improve this question
    
What kind of codec (avc1, x264, xvid etc) and container (mkv, mp4, divx, ..)? –  Bora Jun 18 '13 at 23:51
    
@Bora: updated question –  Adrian Jun 19 '13 at 6:17
    
Still, have you tried turning GPU acceleration off? –  Bora Jun 19 '13 at 7:09
    
@Bora: I couldn't find any GPU options in VLC 2.0.6. However, why would this matter? Wouldn't turning off GPU acceleration make it slower? Also, since caching the video, it makes it faster, so I don't think it's a GPU thing. –  Adrian Jun 19 '13 at 16:46
    
There is an update to 2.0.7. Did you try that? –  Bora Jun 19 '13 at 21:30

1 Answer 1

This problem seems to be a disk access issue. By putting the movie into the cache, this problem goes away. The issue is how to put it in the OS's disk cache in the first place. I've written this simple batch script:

c:\cygwin\bin\cp.exe "%~1" /dev/null

That of course requires that cygwin is loaded on to the system. MinGW didn't work as it caused this error:

/usr/bin/cp: cannot create regular file `/dev/null': Invalid request code

Seems like cp isn't implemented correctly under MinGW. I did try this:

copy /b %1 nul

But for some reason, it didn't seem to work as well (though it did work better than not doing it at all).

Implementation

I named the script cacheFile.bat and put the script into a folder (like %USERPROFILE%\bin, which I created) and then created a .lnk to that file in the SendTo folder to that file which I named cache file (to get to the SendTo folder easily, type shell:SendTo and hit enter at the Start->Run prompt or on the Explorer address bar). By setting the Run properties of the .lnk file to Minimized, the window doesn't show up, except in the task bar. This is done by right clicking on the .lnk file, selecting Properties and in the Shortcut tab, set Run to Minimized.

Now I can right click on a movie and put it into the cache.

context menu

The batch file can be of course modified to cache it and then run VLC immediately after doing so, but this way I don't have to wait for the file to be fully copied before starting to view the video, or while watching the video, I can cache it again if required.

share|improve this answer
    
6 month old PC with disk access that bad? Which one is it? Are you sure the disk's not failing? –  Karan Jun 18 '13 at 22:34
    
I'm running at 1.5-2.0x playback with disk access at about 15-40MBps and CPU usage at 20%-30% while showing the video and 15-20% while not. The disk is apparently at 7% fragmentation and has about 8GB of 466GB left. I'm going to do a defrag and a disk check and see if that improves things, but doing this is a lot smoother then some other times when I've heard audio artifacts causing intermittent crackling, chirping and squelching even when the video wasn't a problem after having this computer for a month or so. Oh and I've already stated what type of computer it is. –  Adrian Jun 18 '13 at 23:29
    
By "Which one is it?" I was actually referring to your HDD, what sort of RPM it has, cache etc. –  Karan Jun 18 '13 at 23:39
    
According to Device Manager, its a Toshiba MK5076GSX which is 5400 RPM with an 8MB cache, capable of 3GB/s transfer (see here for complete specs). So it's a little on the slow side, but I think it should still be good enough for this. –  Adrian Jun 19 '13 at 4:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.