PDA

View Full Version : Audio off sync after seeking in .OGM files, only DivX 5 encoded, not DivX 4


NetZwerg
6th March 2002, 18:31
It seems that after seeking in DivX5 OGG-Media-Streams the audio is about a second before the movie, regardless where you seek (even if you jump back to the beginning).

This does not happen with DivX 4 encoded OGMs, they play just fine and are perfectly in sync after seeking. (and they are played back with DivX 5 decoding it)

Both played back in mplayer2. Can anybody reproduce this problem?

MaTTeR
6th March 2002, 18:53
I haven't seen this problem reported yet. Did you try any other players besides WiMP? Make sure your using Direct Sound as your audio device instead of Wave Out.

NetZwerg
6th March 2002, 22:58
Tried it, no effect, still seeking produces off sync audio...

dammit, i thought OGM was immune to that...

MaTTeR
6th March 2002, 23:07
Originally posted by NetZwerg

xxxxx, i thought OGM was immune to that...

I have serious doubts that this an Ogg issue since Xvid, Divx3 and Divx 4 work fine with Ogg.

Again, which players have you tried? Turn off DeDynamic if your using it as well. It causes sync issues for me on occassion.

NetZwerg
6th March 2002, 23:13
You're right... maybe the video is off sync, not the audio (seems so, since it apparently works ok with div4 (i have not testet the others)...

BTW: Tested in wmp, mplayer2, bs, zoom...

I'll test if the same problem exists when using pure WAV in either avi or ogm. If it does, it would be rather the video codec that has sync problems when seeking, right?

MaTTeR
6th March 2002, 23:20
How were you able to force ZP, WiMP and Mplayer2 to use Direct Sound? They default to Wave Out AFAIK and gives nasty sync issues and/or crackles.

BTW- No offensive language in the forums please. I'll edit. That's the 3rd post today...it seems that Divx 5 is bringing out the vivid language. LOL

NetZwerg
7th March 2002, 07:04
_cough_ I didn't... What player do you recommend for Direct Sound?

I tested just playback and seeking since it worked so fine with divx4 and everything else... i'm still working to get sync back in mplayer2, since it is small and functional and never produced a single problem...

to the Language: Sorry, english is not my mother tongue, i'm just picking up the words others are using :D

MaTTeR
7th March 2002, 07:22
BSplayer, ZoomPlayer or PowerDivx should work just fine for Direct Sound.

Also, make sure your using the latest OggDS which I think 0.9.8.5.

Acaila
7th March 2002, 10:31
B-frame decoding is a bit slower than normal I and P frames. Especially older systems tend to have a hard time with it.
What cpu/memory are you guys experiencing the de-sync with?

NetZwerg
7th March 2002, 10:48
Should not be a problem, 512MB DDR, Athlon TB 1400, i have 60% CPU when playing back with all divx 5 toys turned on...

i'm trying a recode without QPel and mux this with uncompressed audio to see if it is an vorbis problem or a divx 5 issue...

(Turning off QPel actually blasts encoding rate form 11 fps up to 19 in the first pass... wow, too bad i can't see the second one since i'm at work ATM _grin_)

Gaia
7th March 2002, 11:11
Yeah, don't encode with B-frames if you have older cpu.

I have only 600eb and it's impossible to get decent playback. B-frames are only for faster cpu's. Also problem might be Divx Player, it's very slow compared to lot of other players.

tiki4
7th March 2002, 11:24
I also saw a problem in seeking in an OGM container with DivX5 video stream and Vorbis audio stream. As posted by Chibi Jasmin just around the corner DivX5 produces some 2 frame delay when encoding with B-frames. Does anyone know if there is a connection between 2 additional frames and seeking issues in the OGG-file?

Regards,

tiki4

NetZwerg
7th March 2002, 11:30
2 Frame delay would be 0.08 seconds for a 25 fps movie, this does not seem to be an explanation for audio being a full second ahead of video

tiki4
7th March 2002, 12:59
Yeah,

that's true. Nevertheless, I've read somewhere that OGG streams have exact time stamps in each stream => superior seeking compared to AVI. So wouldn't it screw up things when the two streams have different length (in terms of frames or samples). I'm not sure about this, as I didn't have time to test this myself yet. What's your opinion?

tiki4

NetZwerg
7th March 2002, 18:27
So far for the testing, the ogg container won't play back when muxed with uncompressed wav... i expected that in some way... i'll keep on testing...

NetZwerg
7th March 2002, 23:27
I don't believe it so far...

did recode audio & video... no changes for audio, i just recoded it because i deleted the source ogg after muxing (my fault), video same way as before but without QPel and i saw two changes:

CPU Utilisation went down from peak 70% to peak 35% (Athlon TB 1400, w/512MB-DDR), but this is an issue that is discussed in many other topics right now

but

the sync issue disappeared. Or it minimized so much i don't _see_ it anymore (Since my encode i used is german dubbed, it is a little harder, but a second off is easy to see). I'll do some one or two final tests and post results.

Thank you for your help!

tiki4
8th March 2002, 09:27
Hi,

I did some tests yesterday using music videos. I encoded them in VirtualDub with DivX 5 Pro with B-frames but without QPel. I encoded the audio in MP3 and also tried Ogg Vorbis. Then I packed that stuff in two different OGM files. My experience now is that seeking is still not completely working. After seeking in the stream audio and video are off-sync (doesn't matter if MP3 or Vorbis).

I didn't try other players than mplayer2.exe. I'm quite sure this is no CPU issue on my system:

Athlon XP 1600+
W2K cleanly installed
256 MB DDR-RAM
OggDS 0.9.6
DivX 5 Pro Codec only

balbrain
8th March 2002, 16:54
Yup Tiki. You're right. I did two tests and in both I had seeking problems.
First test was with Divx pro wil Qpel, GMC, and BFrames (no psycho). Second was with
regular divx (not pro) with psycho. Both have seeking problems.
Incidentally, my CPU utilization when playing in Windown media Player is around 70%, when
I seek, it jumps up to 99% and then the freezing and the synch issues begin. Any ideas?

Well, i'll try another test with DIvx Pro without Qpel and Psycho and peost the results.
Well, gotta got to school :)

--Cheers
--------------------------------------
P4- 1.3GHz, 640 MB RDRAM, WIn XP pro

Neo Neko
8th March 2002, 21:48
Have you all tried th new OGG DSF version? With Divx5 Pro, B frames, and Qpel enabled with a vorbis track it keeps perfect synch for me. It still keeps synch with MP3 accept for the fact that MP3 audio completely drops out after seeking? Doh!

Acaila
8th March 2002, 22:47
I'm seeing de-sync on more and more of the ogg videos I encode. I just watched a movie I had done today, and it was like the video couldn't keep up with the audio sometimes. One minute it was in perfect sync, the other it started the lose it, then it was normal again and that alternated through the entire video.

Something tells me Tobias didn't optimize his filters....

balbrain
9th March 2002, 05:15
Ok Guys new test. I reencoded the movie in Divx 5 Pro. This time only GMC and B-Frames, no Qpel, no Psycho. Then muxed the same mp3 file as b4 with nandub

And Voila! No seeking problems. SO there has to be some problem with Qpel and Psycho. Yeah people have told me the it takes a lot of CPU usage and thats true. But if a P4 1.3 Ghz is having problems, then i dont know what will work.

Anyway i didnt notice any significant changes in quality. Theerfore for now, I'll let Qpel and Psycho gather some dust...

mustaneekeri
13th March 2002, 00:16
Well i allso have no seeking or sync problems with DivX 5 (with B-frames, GMC, other off) and MP3.
However with .ogg it's a completely different story. The audio is getting out of sync (ahead of video) with seeking or without.
Im using v. 0.9.8.6 DSFilters and same problem with WiMP and BSPlayer. Any solid evidence is this DSFilter .ogg or DivX problem or is it me doing something wrong??

101
13th March 2002, 16:18
generally if the cpu is close to 90% at playback then it may happen that the video can not keep up with the sound. and divx5 on my athlonxp@1520 (~1800+) uses about 70% with full post-processing. try lowering the post-processing value... it could help.

and as of divx5 psycho, i tried it briefly and it generated visible problems for me... i will keep on playing, but as i understand it does not affect the playback.

mustaneekeri
13th March 2002, 18:52
This is not an CPU issue, i now have encoded the same film with all the new DivX 5 features turned off and my CPU usage is about 25-35% (TB1400Mhz), but the audio (or video) is getting steadily out of sync towards the end (in the end of 2h movie the audio is about 1 sec ahead of video) of film.

I allso tried to demux mp3 from my previous DivX 4.12 rip and re-encode the sound to .ogg. Then muxed it back and the audio was in perfect sync (using DivX 5 filters to decode). I allso tried to make DivX 5 + .ogg sound rip from different DVD of which the AC3 has 0 delay to make sure. Again the audio was out of sync.
I wonder is this just me, and if it is then what is the problem??

osgr0Lag
11th April 2002, 19:37
Eeeh, somewhat weird, but I've found **exactly** the same problem encoding with WMA and DivX5.

I reencoded a 2CD movie:

1: Joining the two parts
2: Extracting the WAV and converting with dBpowerAMP
3: Reencoded video with VDub and DivX5
4: Muxed audio/video on the second pass

I know it's a crappy job, but it is curious that I get one second delay too.

I'll test a couple of times with other sources.

osgr0Lag