AVI (M-JPEG+PCM) - audio/video desync on start
#1
Hi.

I have problem with AVIs created by NIKON S200:

- there is no audio few seconds after video start, then when audio start to play, video is slowed until audio/video get in sysnc (it happend always, so no problem to reproduce in XBMC, tested on 3 different PCs)
- some such AVI i had home even freeze in XBMC durning playback

This problem was always here since i am tryed XBMC first time (1 year now?).

Here is sample

It is stupid M-JPEG video with PCM audio
There is no problem play it in any DirectShow based player using FFDshow. If i am not wrong, FFDshow using FFMPEG as XBMC too, so where can be problem? Splitter?

Media info:
Code:
Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 71.0 MiB
Duration                         : 1mn 9s
Overall bit rate                 : 8 527 Kbps

Video
ID                               : 0
Format                           : M-JPEG
Codec ID                         : MJPG
Duration                         : 1mn 9s
Bit rate                         : 8 456 Kbps
Width                            : 640 pixels
Height                           : 480 pixels
Display aspect ratio             : 4:3
Frame rate                       : 30.000 fps
Resolution                       : 24 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.917
Stream size                      : 70.4 MiB (99%)

Audio
Format                           : PCM
Format settings, Endianness      : Little
Format settings, Sign            : Unsigned
Codec ID                         : 1
Codec ID/Hint                    : Microsoft
Duration                         : 1mn 9s
Bit rate mode                    : Constant
Bit rate                         : 64.0 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 8 000 Hz
Resolution                       : 8 bits
Stream size                      : 545 KiB (1%)
Interleave, duration             : 997 ms (29.91 video frames)
Interleave, preload duration     : 1000 ms

HOBORG
My HTPC: http://hobring.esero.net/htpc.htm
Based on XP SP3
XBMC & GB-PVR for recordings

My projects:
MCE standby tool addon
SAF - HTPC codec pack
Reply
#2
Small update:

I remux my sample from AVI to MKV by MKVMerge and it plays fine.

I bet it have something to do with AVI splitter used by XBMC.

EDIT:
Even open/save AVI (direct stream copy) in VirtualDub will fix the problem...
My HTPC: http://hobring.esero.net/htpc.htm
Based on XP SP3
XBMC & GB-PVR for recordings

My projects:
MCE standby tool addon
SAF - HTPC codec pack
Reply
#3
Hi,

I have the exact same problem with all my AVI movies shot with my Canaon Powershot. They are also MJPG / PCM.

I have a lot of these movies, and they do slow down at the beginning until the audio syncs up. This is pretty annoying especially on short videos ;(

This problem happens on my desktop, on my revo and when using linux or windows 7 64bits and windows XP.

This problem does not happen with Windows Media Center though.

Would anybody know how to fix this issue? I do not mind using an external player if it is needed.

I am using the latest stable releas (9.11).

Any help would be greatly appreciated - thanx!
Reply

Logout Mark Read Team Forum Stats Members Help
AVI (M-JPEG+PCM) - audio/video desync on start0