Linux Video / audio out of sync for some files
#1
I have two HTPC's, both running OpenELEC, both working fine for all my videos (SD + HD).
Files with the following properties however, run video and audio out of sync.
It doesn't look like an exotic codec to me, but I just want to make sure.. I tried all sorts of combination of video sync/playback settings.

Code:
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 351 MiB
Duration                                 : 41mn 38s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 180 Kbps
Writing application                      : VirtualDubMod 1.5.10.1 (build 2366/release)
Writing library                          : VirtualDubMod build 2366/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 41mn 38s
Bit rate                                 : 1 039 Kbps
Width                                    : 576 pixels
Height                                   : 320 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.225
Stream size                              : 309 MiB (88%)
Writing library                          : XviD 1.0.1 (UTC 2004-06-05)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 41mn 38s
Bit rate mode                            : Variable
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 38.1 MiB (11%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 24 ms (0.60 video frame)
Interleave, preload duration             : 144 ms
Writing library                          : LAME3.93a
Encoding settings                        : -m j -V 4 -q 2 -lowpass 17.5 --abr 128
Platforms: macOS - iOS - OSMC
co-author: Red Bull TV add-on
Reply
#2
I actually got someone to upload me a sample of this MSMPEG4 codec last weekend. Seems to be the same issue.
This post reminded me i need to do something with it Smile - I have marked it and will be coming back to it tomorrow but need to sleep right now !

@fritsch / @FernetMenta : if you see this and want a copy, let me know.
Reply
#3
Disable vdpau for those codecs for now. Error seems to be known.

Put to /storage/.xbmc/userdata/advancedsettings.xml

Code:
<advancedsettings>
<video>
<allowmpeg4vdpau>false</allowmpeg4vdpau>
</video>
</advancedsettings>

Better? mpeg4 is enabled by default in the OpenELEC builds - should not be an issue with normal mainline builds.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
Video / audio out of sync for some files0