Video freeze after seeking

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
pockyboy
New Cone
New Cone
Posts: 1
Joined: 28 Mar 2007 23:21
Location: France

Video freeze after seeking

Postby pockyboy » 29 Mar 2007 00:35

Hello,
In first, the problem has been seen only on Windows :oops: , Vlc0.8.6 and Vlc0.8.6a, and only for video files containing mpeg4 codec with mp4 encapsulation.
The video files i've used to test it was recorded with Vlc from IP Camera streaming Mpeg4 video throught rtp multicast protocole.

So, the problem appears when you seek in the video, and if your computer has started since little time. Then, the slider on the wxWidget interface and time go on but the video is no more refresh. :shock:

For example:
if your video files last 2 hours and if your computer is booted since only one hour, you can seek in the first hour of the video really nicely, but if you seek over the first hour the video freeze. Then if you go back in the first hour, the video work nice. :shock: :shock:

So, i've transcode my video files in MPeg-PS (without changing codec), and in Ogg Theaura, and both works nice.
Then, i've tried my video files on Linux, and it works nice again. :?

So, i've searched where GetTickCount was used, and i've found mdate() in src/misc/mdate.c
I 've understood why it 's working on Linux and not on Windows. Linux use gettimeofday which give a huge value contrary to Windows where the value can start near 0.
So, in the windows piece of code, i've added a huge value to the both return value (inside if and inside else), and now it's working nice. :D

I know it's just a do-it-yourselfing but i don't know enough the code of VLC to find quickly the real problem, that it would be in MP4 module, certainly in instruction that use the result of mdate() in substraction and store the result in a unsigned instead of a signed variable. It's only what i feel.

However, my video files could be the source of problem too.

So, if somebody with ability that i don't have could take a look, or do the test with healthy mp4 file.

Thank you

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 29 Mar 2007 13:06

I have seen this issue in Matroska and MP4 using h.264 but have not experienced it in MP4v. I find it repeats just about every time you get Microsoft updates and then disappears again in a few hours.

Pum
New Cone
New Cone
Posts: 4
Joined: 08 Jun 2008 17:03

Re: Video freeze after seeking

Postby Pum » 08 Jun 2008 17:10

Hello,
In first, the problem has been seen only on Windows :oops: , Vlc0.8.6 and Vlc0.8.6a, and only for video files containing mpeg4 codec with mp4 encapsulation.
The video files i've used to test it was recorded with Vlc from IP Camera streaming Mpeg4 video throught rtp multicast protocole.

So, the problem appears when you seek in the video, and if your computer has started since little time. Then, the slider on the wxWidget interface and time go on but the video is no more refresh. :shock:

For example:
if your video files last 2 hours and if your computer is booted since only one hour, you can seek in the first hour of the video really nicely, but if you seek over the first hour the video freeze. Then if you go back in the first hour, the video work nice. :shock: :shock:
I'm experiencing exactly the same problem. It happens with any MP4-file with H.264 content. (The files I have were created with Nero Recode)

The maximum position to which I can seek equals almost exactly the uptime of my system!!!

I checked several times. So in order to be able to seek to 1:30:00 of a movie, I have to start my PC and wait 1.5 hours.
Other formats like AVI+XVID are ok.

Could someone please have a look at the suggested fix as described above and include it in the source? I will be happy to test if it works.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Video freeze after seeking

Postby VLC_help » 08 Jun 2008 18:37

Many people have reported that uptime equals seek time thingy. Does it happen with nightly builds too?
http://nightlies.videolan.org/

Pum
New Cone
New Cone
Posts: 4
Joined: 08 Jun 2008 17:03

Re: Video freeze after seeking

Postby Pum » 08 Jun 2008 19:18

It works with vlc-0.9.0-git-20080607-0006-win32.exe

Thanks! :)

v360ce
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2008 14:40

Re: Video freeze after seeking

Postby v360ce » 15 Jul 2008 18:50

Has anybody been able to work out a solution for this yet? We are very keen to get this working again as we have a deadline approaching.

Its very frustrating as we only found this issue at the last minute of testing. We are having the same issues that seem to be time stamp related in someway.

We also need to be able to incorporate Active X control, hence we are using 8.6e version. The later versions seemed to have issues with Active X.

Any help would be much appreciated

Chris

Pum
New Cone
New Cone
Posts: 4
Joined: 08 Jun 2008 17:03

Re: Video freeze after seeking

Postby Pum » 15 Jul 2008 20:13

I don't quite understand. It worked with the development build for 0.9 which I mentioned.
Did you try a recent snapshot of 0.9, or did you try 0.8.6?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Video freeze after seeking

Postby VLC_help » 15 Jul 2008 22:19

I think the ActiveX in nightlies doesn't work and that is why they can't use nightlies.

v360ce
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2008 14:40

Re: Video freeze after seeking

Postby v360ce » 17 Jul 2008 14:19

I think its to do with the Active X not working.
Plus Im not keen on working with the beta version. They have changed the interface and the way it is put together.

v360ce
New Cone
New Cone
Posts: 4
Joined: 15 Jul 2008 14:40

Re: Video freeze after seeking

Postby v360ce » 17 Jul 2008 19:50

We have managed to fix this issue now. One of my programmers managed to recompile the latest version and fix the code. It seems like the latest version had a big part of the active x component missing. He also managed to fix the skipping issue using part of the beta version. Clever stuff.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Video freeze after seeking

Postby VLC_help » 18 Jul 2008 15:01

Could your friend send the patch to vlc-devel mailing list?
http://mailman.videolan.org/listinfo/vlc-devel


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 25 guests