XBMC XVID Stuttering
#1
I find when playing most XVID movies through XBMC, the video is running at like 2 FPS.

I know it's not my hardware, as I can play the video even on my laptop perfectly.
Hardware is an Intel I5 2500k Nvidia gtx 580 8 gig ram.

How do I correct this? I have a lot of xvid videos, and re-encoding isn't an option, nor should it be, considering XVID is an extremely common codec.
Reply
#2
200+ views and not one person has any help?


The only thing I can find is that with each video that does this, the audio is always AC3 or DTS. But that shouldn't cause video problems.
Reply
#3
debug log (wiki) needed. Also see if you can run MediaInfo (wiki) on one of the problematic files.
Reply
#4
it can very well cause video problems. video is synced to audio, and if you're outputting the ac3/dts wrong, sync will be wonky. e.g. passthrough when no passthrough capable receiver is hooked up through appropriate means.
Reply
#5
Ned Scott, here is a copy of the log, and the media info for the file being played that stutters.

Code:
09:52:26 T:2384  NOTICE: DVDPlayer: Opening: E:\Video\Movies\30 Minutes or Less (2011) (BLURAY)\30 Minutes or Less (2011) (BLURAY).avi
09:52:26 T:2384 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
09:52:26 T:344  NOTICE: Thread CDVDPlayer start, auto delete: false
09:52:26 T:344  NOTICE: Creating InputStream
09:52:26 T:344  NOTICE: Creating Demuxer
09:52:26 T:344  NOTICE: Opening video stream: 0 source: 256
09:52:26 T:344  NOTICE: Creating video codec with codec id: 13
09:52:26 T:344  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
09:52:26 T:344  NOTICE: Creating video thread
09:52:26 T:344  NOTICE: Opening audio stream: 1 source: 256
09:52:26 T:344  NOTICE: Finding audio codec for: 86019
09:52:26 T:2604  NOTICE: Thread CDVDPlayerVideo start, auto delete: false
09:52:26 T:2604  NOTICE: running thread: video_thread
09:52:26 T:344  NOTICE: Creating audio thread
09:52:26 T:2880  NOTICE: Thread CDVDPlayerAudio start, auto delete: false
09:52:26 T:2880  NOTICE: running thread: CDVDPlayerAudio::Process()
09:52:26 T:2880  NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
09:52:26 T:2604  NOTICE:  fps: 23.976024, pwidth: 1280, pheight: 528, dwidth: 1280, dheight: 528
09:52:26 T:2604  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (16)
09:52:27 T:2596   ERROR: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
09:52:27 T:2596   ERROR: CAESinkWASAPI::InitializeExclusive: Unable to locate a supported output format for the device.  Check the speaker settings in the control panel.
09:52:27 T:2596   ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
09:52:27 T:2596   ERROR: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
09:52:27 T:2596   ERROR: CAESinkWASAPI::InitializeExclusive: Unable to locate a supported output format for the device.  Check the speaker settings in the control panel.
09:52:27 T:2596   ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
09:52:37 T:2880 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:53:15 T:2384 WARNING: Previous line repeats 13 times.
09:53:15 T:2384  NOTICE: CDVDPlayer::CloseFile()
09:53:15 T:2384  NOTICE: DVDPlayer: waiting for threads to exit
09:53:15 T:344  NOTICE: CDVDPlayer::OnExit()
09:53:15 T:344  NOTICE: DVDPlayer: closing audio stream
09:53:15 T:344  NOTICE: Closing audio stream
09:53:15 T:344  NOTICE: Waiting for audio thread to exit
09:53:15 T:2880  NOTICE: thread end: CDVDPlayerAudio::OnExit()
09:53:15 T:344  NOTICE: Closing audio device
09:53:15 T:344  NOTICE: Deleting audio codec
09:53:15 T:344  NOTICE: DVDPlayer: closing video stream
09:53:15 T:344  NOTICE: Closing video stream
09:53:15 T:344  NOTICE: waiting for video thread to exit
09:53:15 T:2604  NOTICE: thread end: video_thread
09:53:15 T:344  NOTICE: deleting video codec
09:53:15 T:344  NOTICE: CDVDPlayer::OnExit() deleting demuxer
09:53:15 T:344  NOTICE: CDVDPlayer::OnExit() deleting input stream
09:53:15 T:2384  NOTICE: DVDPlayer: finished waiting
09:53:15 T:2456  NOTICE: Thread Background Loader start, auto delete: false
09:53:15 T:616  NOTICE: Thread Jobworker start, auto delete: true
09:53:15 T:616   ERROR: XFILE::CDirectory::GetDirectory - Error getting E:\Video\Movies\30 Minutes or Less (2011) (BLURAY)\extrafanart/
09:53:15 T:2860   ERROR: Previous line repeats 1 times.
09:53:15 T:2860  NOTICE: Thread Jobworker start, auto delete: true
09:53:15 T:2384  NOTICE: Previous line repeats 2 times.
09:53:15 T:2384  NOTICE: CDVDPlayer::CloseFile()
09:53:15 T:2384 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
09:53:15 T:2384  NOTICE: DVDPlayer: waiting for threads to exit
09:53:15 T:2384  NOTICE: DVDPlayer: finished waiting

Code:
General
Complete name                            : E:\Movies\30 Minutes or Less (2011) (BLURAY)\30 Minutes or Less (2011) (BLURAY).avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
Format profile                           : OpenDML
File size                                : 2.08 GiB
Duration                                 : 1h 23mn
Overall bit rate                         : 3 581 Kbps
Writing library                          : MPlayer

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : 1
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Muxing mode                              : Packed bitstream
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 1h 23mn
Bit rate                                 : 3 000 Kbps
Width                                    : 1 280 pixels
Height                                   : 528 pixels
Display aspect ratio                     : 2.40:1
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.185
Stream size                              : 1.74 GiB (84%)
Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID                                       : 1
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 2000
Duration                                 : 1h 23mn
Bit rate mode                            : Constant
Bit rate                                 : 576 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 342 MiB (16%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 500 ms (11.99 video frames)
Interleave, preload duration             : 500 ms


(2012-11-13, 12:45)spiff Wrote: it can very well cause video problems. video is synced to audio, and if you're outputting the ac3/dts wrong, sync will be wonky. e.g. passthrough when no passthrough capable receiver is hooked up through appropriate means.

Spiff, ok thanks. I think that may be the issue. How do I fix this without re-encoding?
I thought coming from a pc, the audio is just converted to stereo and shipped out that way.

I have my PC hooked up via HDMI to my tv, and the tv audio output to my home theater receiver. Which is incredibly old LOL.
Would upgrading the receiver to something that supports AAC/DTS etc fix this problem?
Reply
#6
Transcoding the file into AC3 5.1.

If people have such problems with AAC audio types, why use them?
Reply
#7
it looks very much like what i suspected. go to system -> audio output. untick 'dts capable receiver / ac3 capable receiver'.
Reply
#8
(2012-11-13, 18:48)spiff Wrote: it looks very much like what i suspected. go to system -> audio output. untick 'dts capable receiver / ac3 capable receiver'.

That did it. You sir, are a genius. I thank you.

I know my receiver is an old crappy one, but it does say it is DTS capable. So I checked DTS available receiver. The other video that WAS stuttering that had DTS audio stopped stuttering, but no audio comes out. Any idea behind that one?

It's PROBABLY my home theater. It's REALLY old, and I need to upgrade it, I just haven't found a good boxed HTC in a reasonable price range.
Reply
#9
The problem is likely that the audio is being passed through the TV and the TV probably doesn't support passthrough of AC3 or DTS from an external source, in this case HDMI. Unticking "dts capable receiver / ac3 capable receiver" means that XBMC will now be decoding the AC3/DTS tracks to PCM which the TV can passthough.

I'm guessing your receiver doesn't support HDMI which is why you have it setup this way, but if you can you might be better off connecting direct from the PC to amp by SPDIF.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC XVID Stuttering0