You are not logged in.

#1 2008-10-05 19:40:55

Nuwanda
Member
From: Montevideo, Uruguay
Registered: 2008-01-04
Posts: 22

Audio/video sync problems with hi-definition .mkv files

Hi.

I'm having a/v sync problems with hi-def video files (from what I know, I might have always have them, but I didn't use to play hi-def videos). This happens with different players (xine, mplayer, vlc), and different audio drivers (alsa, oss, esd).
I am runing Arch (64-bit) on an Athlon 64 x2 3600+, 1GB RAM, nVidia GeForce 6200, Sound Blaster Audigy 24bit.
I know the video files are OK, because this doesn't happen if I boot Windows.

Any help is appretiated.
Thanks!

Offline

#2 2008-10-06 00:35:05

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Audio/video sync problems with hi-definition .mkv files

************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

Do you get this in mplayer?
How high is the definition? 720 or 1080 lines?
Do the videos have fancy soft subtitles as well?
If I saw through you, I bet those files are h264 encodes in mkv container: you need quite a cpu, since there is no player supporting multiple cores.

You could try disabling deblocking for nonkey frames with -lavdopts skiploopfilter=nonkey
Or you could just follow the options mplayer suggests by itself.
I can play h264 720p mkv videos on my 2Ghz athlon XP 2400+ flawlessly using those options

Offline

#3 2008-10-07 02:07:20

Nuwanda
Member
From: Montevideo, Uruguay
Registered: 2008-01-04
Posts: 22

Re: Audio/video sync problems with hi-definition .mkv files

carlocci wrote:

************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

Do you get this in mplayer?

No. Not unless I turn on the post-processing filter tongue

carlocci wrote:

How high is the definition? 720 or 1080 lines?

720.

carlocci wrote:

Do the videos have fancy soft subtitles as well?

No.

carlocci wrote:

If I saw through you, I bet those files are h264 encodes in mkv container: you need quite a cpu, since there is no player supporting multiple cores.

Yes, they are h264-encoded video files. The CPU doesn't seem to be a problem, since no core goes above 65 %. And even if it did, like I said, I can watch the videos perfectly in Windows, so the problem cannot be the hardware.

carlocci wrote:

You could try disabling deblocking for nonkey frames with -lavdopts skiploopfilter=nonkey
Or you could just follow the options mplayer suggests by itself.

I tried -lavdopts skiploopfilter=nonkey and a couple other options. The sync problem is almost gone, but there's still some there.

I'll play with the xine performance options next, since it's the player that I prefer.

Thanks!

Offline

#4 2008-10-07 03:09:16

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Audio/video sync problems with hi-definition .mkv files

If xine or Mplayer doesn't work out for you, you may want to look into CoreAVC. It's supposed to be an amazingly fast decoder. In fact, it's the benchmark to beat at FFmpeg. There is (or maybe was?) a free version of the codec as well as a mplayer-coreavc build in AUR.

Last edited by skottish (2008-10-07 03:10:35)

Offline

#5 2008-10-07 05:21:02

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: Audio/video sync problems with hi-definition .mkv files

I fixed this problem by enabling "Sync to VBlank" under X Server XVideo Settings in nvidia-settings

if you do this...

warning: restart xorg

Last edited by NoOneImportant (2008-10-07 12:10:01)

Offline

#6 2008-10-10 00:44:47

Nuwanda
Member
From: Montevideo, Uruguay
Registered: 2008-01-04
Posts: 22

Re: Audio/video sync problems with hi-definition .mkv files

skottish wrote:

If xine or Mplayer doesn't work out for you, you may want to look into CoreAVC. It's supposed to be an amazingly fast decoder. In fact, it's the benchmark to beat at FFmpeg. There is (or maybe was?) a free version of the codec as well as a mplayer-coreavc build in AUR.

There's a mplayer-coreavc-svn package in AUR. I'll check it out. Thanks!

NoOneImportant wrote:

I fixed this problem by enabling "Sync to VBlank" under X Server XVideo Settings in nvidia-settings

if you do this...

warning: restart xorg

I have 2 "Sync to VBlank" checkboxes, one under "Video Texture Adaptor" and another one under "Video Blitter Adaptor Settings". I had the first one enabled, and I tried enabling the second one. It didn't fix the problem. Thanks anyway!

Offline

#7 2008-10-12 21:21:10

soylent_green_is_hamster
Member
Registered: 2006-11-15
Posts: 109

Re: Audio/video sync problems with hi-definition .mkv files

How did you get on with this?
I have the same sync problems in mplayer on hd vids (although I get perfect syncing with vlc player, but instead experience a very choppy playback)
Like you, I don't think it's a hardware problem, I never get more the 20% CPU usage in one core, and the videos also play fine on my xbox 360

Did you try mplayer-coreavc-svn?

Offline

#8 2008-10-13 00:25:59

Nuwanda
Member
From: Montevideo, Uruguay
Registered: 2008-01-04
Posts: 22

Re: Audio/video sync problems with hi-definition .mkv files

I couldn't use mplayer-coreavc-svn. From what I've seen, coreavc is not free, and I didn't find a free version.

Still, since it doesn't seem to be a "slow-hardware" problem, I don't see how a fast decoder could help.

I'd bet the problem is in the configuration of the hardware drivers or something like that (I hope it's there and not in the kernel itself...) :S

Offline

#9 2008-10-13 23:49:40

Nuwanda
Member
From: Montevideo, Uruguay
Registered: 2008-01-04
Posts: 22

Re: Audio/video sync problems with hi-definition .mkv files

By the way, the new version of VLC (0.9.3) doesn't have this problem!
The video performance could be a little bit better though (like mplayer's, or xine's if you play with the performance options).

Offline

#10 2008-10-14 08:43:38

soylent_green_is_hamster
Member
Registered: 2006-11-15
Posts: 109

Re: Audio/video sync problems with hi-definition .mkv files

Yeah - i get no audio sync problems with vlc, but the video is way too choppy
again, I don't think it's a resource problem, it's only using ~10%-15% of a 3.16GHz core, but just stutters along...

Offline

#11 2008-10-14 15:39:58

infestator
Member
From: Russia, SPb
Registered: 2008-03-22
Posts: 12

Re: Audio/video sync problems with hi-definition .mkv files

i had this problem untill recompiled mplayer from abs repo with this configure flags (i've nvidia card):

./configure --prefix=/usr --disable-arts --enable-x11 \
      --confdir=/etc/mplayer --disable-nas \
      --enable-gl --enable-tv-v4l2 --enable-largefiles \
      --disable-liblzo --disable-speex --disable-openal \
      --disable-fribidi --disable-libdv --disable-musepack \
      --language=all --disable-dvdnav --disable-esd --disable-mga \
      --disable-libamr_nb \
      --with-extraincdir=/usr/lib/live-media \
      --with-vidix-drivers=nvidia

after recompilation mplayer worked perfect!

p.s. all other players also have had problems with playing hd video (even hang ups with no way to shutdown process except "kill -9").

Offline

#12 2008-10-15 09:15:01

soylent_green_is_hamster
Member
Registered: 2006-11-15
Posts: 109

Re: Audio/video sync problems with hi-definition .mkv files

cheers, tried that nvidia option- but didnt make any difference
but realised later that not all of my HD files have this syncing problem
ALL of my wmv hd files have a syncing problem, but most of the .mkv/x264 stuff is actually fine...

Offline

#13 2008-10-15 20:38:37

Nuwanda
Member
From: Montevideo, Uruguay
Registered: 2008-01-04
Posts: 22

Re: Audio/video sync problems with hi-definition .mkv files

infestator wrote:

i had this problem untill recompiled mplayer from abs repo with this configure flags (i've nvidia card):

./configure --prefix=/usr --disable-arts --enable-x11 \
      --confdir=/etc/mplayer --disable-nas \
      --enable-gl --enable-tv-v4l2 --enable-largefiles \
      --disable-liblzo --disable-speex --disable-openal \
      --disable-fribidi --disable-libdv --disable-musepack \
      --language=all --disable-dvdnav --disable-esd --disable-mga \
      --disable-libamr_nb \
      --with-extraincdir=/usr/lib/live-media \
      --with-vidix-drivers=nvidia

after recompilation mplayer worked perfect!

Tried it. Didn't help.

soylent_green_is_hamster wrote:

cheers, tried that nvidia option- but didnt make any difference
but realised later that not all of my HD files have this syncing problem
ALL of my wmv hd files have a syncing problem, but most of the .mkv/x264 stuff is actually fine...

I have the problem with (at least some) .mkv/x264.

Offline

#14 2009-01-29 12:55:58

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

Re: Audio/video sync problems with hi-definition .mkv files

I have the same audio out of sync with video problem with all the videos I play on xine, whether HD videos of simple DVDrips. Audio goes out of sync only after I have played them for some time.  I am using openchrome driver for my VIA chipset.

With VLC, there is not out of sync problem but the vidoe itself runs very slow like it is redrawing itself slowly and slowly sad

Last edited by arnuld (2009-01-29 12:58:35)

Offline

#15 2009-02-19 15:47:53

Cif
Member
Registered: 2005-06-30
Posts: 29

Re: Audio/video sync problems with hi-definition .mkv files

I have problem with HD x264 content after last update of codec/vlc (january). Every player create artifacts on video, small freeze, blocking... Every player (vlc, mplayer) works bad with this file.

Offline

#16 2009-02-19 15:57:46

Vintendo
Member
From: Netherlands
Registered: 2008-04-21
Posts: 375
Website

Re: Audio/video sync problems with hi-definition .mkv files

If you have a nvidia card, you can also look into vdpau.

Offline

Board footer

Powered by FluxBB