Kodi Community Forum

Full Version: Playback drops out with Gotham (final)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When watching some of my mkv rips with Gotham, XBMC suddenly drops the playback and i'll be taken to the main menu.
Odd thing is when i watch the same movie in VLC (Weatherwax), the movie will play past what is either a minor audio stutter or minor video artifact.
I understood that the XBMC video player was based on the same code as VLC so i'm surprised that XBMC seems to have a less robust playback (as compared to VLC).

The few movies where such drops happen are mkv rips of my BD's.
I could re-rip the problem movies, especially where i have forgotten to include forced subs, but i'd prefer not to.
I'd prefer Kodi was a little more robust in it's playback.

So is there any tools to verify the integrety of a BD rip?
Has video playback robustness been improved in Helix?
What could be the cause of dropping video playback?
Have others experianced such playback dropouts?
Here is my full debug log.

As shown in the log, I played the problem movie 3 separate times and changed render methods and hardware acceleration each time but video playback still drops in all cases.

Looking at the last problem movie playback within the log, the following seems interesting to the uninitiated like myself Smile
00:16:39 T:2492   DEBUG: CGUIWindowVideoBase::OnPlayMedia X:\Movies\ProblemMovie.mkv
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers(X:\Movies\ProblemMovie.mkv)
00:13:21 T:2492   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
00:13:21 T:2492   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
00:13:21 T:2492  NOTICE: DVDPlayer: Opening: X:\Movies\ProblemMovie.mkv
00:16:39 T:3132   DEBUG: CVideoDatabase::GetMovieId (X:\Movies\ProblemMovie.mkv), query = select idMovie from movie where idFile=1261
00:16:39 T:4600   DEBUG: CAESinkDirectSound::CheckPlayStatus: Resuming Playback
00:16:39 T:3372   DEBUG: CDVDPlayer::SetCaching - caching state 0
00:16:39 T:4488   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(10000.000000, 1)
00:16:39 T:4488   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:-158542.273981, should be:-158541.651973, error:0.622009
00:16:39 T:1332   DEBUG: CWinRenderer::SelectRenderMethod: Selected render method 1: Pixel Shaders
00:16:39 T:1332   DEBUG: CXBMCRenderManager::Configure - 3
00:16:39 T:2492   DEBUG: created video buffer 0
00:16:39 T:2492   DEBUG: created video buffer 1
00:16:39 T:2492   DEBUG: created video buffer 2
00:16:39 T:2492   DEBUG: CWinShader::LoadEffect - loading shader special://xbmc/system/shaders/yuv2rgb_d3d.fx
00:16:39 T:3372   DEBUG: CDVDPlayer::HandleMessages - player started 2
00:16:39 T:1332   DEBUG: ffmpeg[534]: [src] Flat options syntax is deprecated, use key=value pairs
00:16:39 T:1332   DEBUG: ffmpeg[534]: [src] w:1920 h:1080 pixfmt:yuv420p tb:1001/48000 fr:0/0 sar:1/1 sws_param:
00:16:39 T:1332   DEBUG: ffmpeg[534]: [Parsed_yadif_0] mode:0 parity:-1 deint:1
00:16:39 T:1332   ERROR: CDVDVideoCodecFFmpeg::FilterProcess - cur_buf
00:16:41 T:4488   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:1843211.790067, should be:1823455.305254, error:-19756.484813
00:16:43 T:4488   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:3842196.733199, should be:3824752.197382, error:-17444.535817
00:16:44 T:1332   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
00:16:44 T:2492   DEBUG: ------ Window Deinit (Pointer.xml) ------
00:16:48 T:2492   DEBUG: ------ Window Deinit (VideoOSD.xml) ------
00:17:05 T:1704   DEBUG: Thread JobWorker 1704 terminating (autodelete)
00:17:05 T:2928   DEBUG: Thread JobWorker 2928 terminating (autodelete)
00:17:05 T:1240   DEBUG: Thread JobWorker 1240 terminating (autodelete)
00:17:05 T:2692   DEBUG: Thread JobWorker 2692 terminating (autodelete)
00:17:09 T:3372    INFO: ffmpeg[D2C]: [matroska,webm] Unknown entry 0x277E5A
00:17:09 T:3372    INFO: ffmpeg[D2C]: [matroska,webm] Unknown entry 0x25B514
00:17:09 T:3372    INFO: ffmpeg[D2C]: [matroska,webm] Unknown entry 0xFB
00:17:09 T:3372    INFO: ffmpeg[D2C]: [matroska,webm] Unknown entry 0x71FB
00:17:09 T:3372   ERROR: ffmpeg[D2C]: [matroska,webm] Invalid EBML number size tag 0x04 at pos 223083199 (0xd4bfabf) <=== ?
00:17:16 T:4488   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_EOF                                                      <=== ?
00:17:16 T:4488 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
00:17:16 T:1332   ERROR: ffmpeg[534]: [h264] AVC: nal size -33643843                                                 <=== ?
00:17:16 T:1332    INFO: ffmpeg[534]: [h264] concealing 6120 DC, 6120 AC, 6120 MV errors in P frame
00:17:16 T:3372    INFO: CDVDPlayer::Process - eof reading from demuxer
00:17:16 T:3372  NOTICE: CDVDPlayer::OnExit()
00:17:16 T:3372  NOTICE: DVDPlayer: eof, waiting for queues to empty
00:17:16 T:3372  NOTICE: DVDPlayer: closing audio stream
00:17:16 T:3372  NOTICE: Closing audio stream
00:17:16 T:3372  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
00:17:16 T:4488   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
00:17:16 T:3372  NOTICE: Waiting for audio thread to exit
00:17:16 T:4488   DEBUG: CDVDPlayerAudio::Process - Abort received, exiting thread
00:17:16 T:4488  NOTICE: thread end: CDVDPlayerAudio::OnExit()
00:17:16 T:4488   DEBUG: Thread DVDPlayerAudio 4488 terminating
00:17:16 T:3372  NOTICE: Closing audio device
00:17:16 T:3372  NOTICE: Deleting audio codec
00:17:16 T:1688   DEBUG: CActiveAE::DiscardStream - audio stream deleted
00:17:16 T:3372  NOTICE: DVDPlayer: closing video stream
00:17:16 T:3372  NOTICE: Closing video stream

Seems there is something in the mkv file the player does not like but as mentioned VLC plays past such issues with a minor audio or video glitch...

So my earlier questions remain Smile[/code]
This is a guess but might apply?

If you are using advancedsettings.xml try <buffermode>0</buffermode> and <readbufferfactor>4</readbufferfactor> instead of values you might be using that are different.

Also, delete the .nfo for the problem title and scan it in again.
Thanks for the suggestion Brazen1 but i don't use an advancedsettings.xml file and not sure that adding cache management settings will help with my local files, but i'll try anything Smile

Basically i have a simple vanilla install of Gotham and use the standard Confluense skin but i have also installed the LanguagePreferenceManager plugin and a smart play list (History Playlists i picked up from a forum thread). I have also installed the BluMote application on my system (Win7Pro) so i can use my PS3 BT/IR remote.

At the moment all my media is stored locally on my USB drives so as you can see it's reasonably basic.

The only problems i have with XBMC are related to the already mentioned "dropped playback" of some files, the unmentioned fact i alwasy loose the first 10 seconds of the video when playback starts (though it's not a big problem but it's anoying especially when watching an espuisode of a TV series). And i also experiance some audio skew issues. Otherwise XBMC works well Smile

I'll post if setting video cache buffering within advancedsetting.xml helps with my issue...

Well i played around with the suggested cache settings (and variations of them) within advancedsetting.xml but the problem is exactly the same, video still drops !

I've even used mediainfo, mkvalidator and mkvclean on one of my problem video rips and the same still occurs; the video is dropped by XBMC but plays with minor glitch in VLC...

Re-ripping can be a solution, though an undesirable one, but in at least one case, one of my BDs has some defect that always results in the rip having the same issue, the BD plays fine in a BD player and the rip plays with a momentary glitch in VLC but video drops in XBMC...

Has anybody had a chance to look at the log and is able to suggest answers to my original questions? what the problem may be and how best to fix it?
Well i downloaded the latest Kodi Alpha the other day and it plays past the problem movie with slightly more disturbance than VLC does, but it plays Smile I do see a bunch of drops and skips when viewing stats "o" but otherwise Kodi fixes/sidesteps the issue.

I'm still interested to know if there is a tool able to verify the integrity of my rips and ensure the video encoding is 100% ready for perfect playback.

I do occassionally, and sometimes periodicly, see momentary video artifacts on native DB playback when using my polycarbonate media. It seems to occurs on my PS3 and my other BD player and wonder if it is some video version of cinavia that the cabala will turn on at some stage. Either that or the disks they press are very poorly mastered...