PDA

View Full Version : XBMC not playing some XVid AVI files


tekie
2007-06-17, 21:11
Hi,

I'm able to play most movie files from the XBox hard disk. However, some AVI XVid files do not play. Whenever I try playing those, there's a short pause (and sometimes a 00:00:00 display at the left hand bottom). I'm able to play the same files perfectly on PC and have verified that the size is correct. Interestingly, one such file I can play "occassionally" on XBMC. Most of the times it doesn't work. But, if I just randomly play some other files and come back and play this one, it works.

Any clues? Any help would be greatly appreciated.

I took a dump of the xbmc.log using the X,Y combo. The movie that wasn't playing was "The Train.avi".

-- Snip --
17:31:35 M: 19267584 DEBUG: ParentPath = [F:\Videos\MoviesF]
17:31:37 M: 19156992 DEBUG: CApplication::OnKey: 166 pressed, action is 3
17:31:38 M: 19156992 DEBUG: CApplication::OnKey: 166 pressed, action is 3
17:31:38 M: 19156992 DEBUG: CApplication::OnKey: 166 pressed, action is 3
17:31:39 M: 19156992 DEBUG: CApplication::OnKey: 11 pressed, action is 7
17:31:39 M: 19144704 DEBUG: CPlayerCoreFactor::GetPlayers(F:\Videos\MoviesF\Hi ndi\The Train.avi)
17:31:39 M: 18620416 INFO: mplayer play:F:\Videos\MoviesF\Hindi\The Train.avi cachesize:256
17:31:39 M: 18620416 DEBUG: CUtil::CacheSubtitles: START
17:31:39 M: 18620416 DEBUG: CUtil::CacheSubtitles: Checking for common subirs...
17:31:39 M: 18620416 DEBUG: CUtil::CacheSubtitles: Done (time: 8 ms)
17:31:39 M: 18620416 DEBUG: CUtil::CacheSubtitles: Searching for subtitles...
17:31:39 M: 18620416 DEBUG: CUtil::CacheSubtitles: Done (time: 2 ms)
17:31:39 M: 18620416 DEBUG: CUtil::CacheSubtitles: END (total time: 11 ms)
17:31:40 M: 12189696 DEBUG: msg: set audio functions called
17:31:40 M: 12189696 DEBUG: msg: done
17:31:40 M: 12189696 INFO: Using -subcp enca:__:CP1252 to detect the subtitle charset
17:31:40 M: 12189696 INFO: Flipping bi-directional subtitles disabled
17:31:40 M: 12189696 DEBUG: msg: mplayer_init()
17:31:40 M: 12189696 DEBUG: msg: enable mplayer osd
17:31:40 M: 12189696 DEBUG: msg: MPlayer dev-CVS-070107-02:50-3.4.2 (C) 2000-2004 MPlayer Team
17:31:40 M: 12189696 DEBUG: msg: CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville
17:31:40 M: 12189696 DEBUG: msg: (Family: 6, Stepping: 10)
17:31:40 M: 12189696 DEBUG: msg: Detected cache-line size is 32 bytes
17:31:40 M: 12189696 DEBUG: msg: CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
17:31:40 M: 12189696 DEBUG: msg: Compiled for x86 CPU with extensions:
17:31:40 M: 12189696 DEBUG: msg: MMX
17:31:40 M: 12189696 DEBUG: msg: MMX2
17:31:40 M: 12189696 DEBUG: msg: SSE
17:31:40 M: 12189696 DEBUG: msg:
17:31:40 M: 12177408 DEBUG: msg:
17:31:40 M: 12189696 DEBUG: msg: Creating config file: Q:\system\players\mplayer\config
17:31:40 M: 12177408 DEBUG: msg:
17:31:40 M: 11886592 DEBUG: msg: 88 audio & 199 video codecs
17:31:40 M: 11853824 DEBUG: msg: mplayer_open_file(F:\Videos\MoviesF\Hindi\The Train.avi)
17:31:40 M: 11853824 INFO: Stating file F:\Videos\MoviesF\Hindi\The Train.avi.conf
17:31:40 M: 11853824 INFO: Stating file Q:\system\players\mplayer\F:\Videos\MoviesF\Hindi\ The Train.avi.conf
17:31:40 M: 11853824 DEBUG: msg: Playing F:\Videos\MoviesF\Hindi\The Train.avi.
17:31:40 M: 11853824 DEBUG: msg: find subtitles
17:31:40 M: 11853824 DEBUG: msg: auto open Z:\subtitle
17:31:40 M: 11022336 DEBUG: msg:
Cache fill: 0.00% (0 bytes)
17:31:40 M: 11022336 DEBUG: msg: demux_open(00E3F010,0,-1,-1,-1)
17:31:40 M: 11022336 DEBUG: msg: AVI file format detected.
17:31:41 M: 1785856 DEBUG: msg: VIDEO: [XVID] 640x272 12bpp 29.971 fps 590.6 kbps (72.1 kbyte/s)
17:31:41 M: 1785856 DEBUG: msg: Starting lookup for subs
17:31:41 M: 1785856 DEBUG: msg: Global Subsize: 0 - VOBSUB: -1, DEMUX: -1, SUBS: -1
17:31:41 M: 1785856 DEBUG: msg: Global Subpos : -1
17:31:41 M: 1785856 DEBUG: msg: ================================================== ========================
17:31:41 M: 1785856 DEBUG: msg: Forced audio codec: hwdts
17:31:41 M: 1785856 DEBUG: msg: Forced audio codec: hwac3
17:31:41 M: 1785856 DEBUG: msg: Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
17:31:41 M: 1683456 DEBUG: msg: AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
17:31:41 M: 1683456 DEBUG: msg: Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
17:31:41 M: 1683456 DEBUG: msg: ================================================== ========================
17:31:41 M: 1683456 DEBUG: CXBoxRenderManager::PreInit - Selected RGB-Renderer
17:31:41 M: 1679360 DEBUG: msg: ================================================== ========================
17:31:41 M: 1679360 DEBUG: msg: Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
17:31:42 M: 1245184 DEBUG: msg: Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
17:31:42 M: 1245184 DEBUG: msg: ================================================== ========================
17:31:42 M: 1245184 DEBUG: msg: Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/6ch/16bit...
17:31:42 M: 1245184 DEBUG: msg: AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
17:31:42 M: 1245184 DEBUG: msg: AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
17:31:42 M: 1236992 DEBUG: msg: AO: [win32] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
17:31:42 M: 1236992 DEBUG: msg: Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
17:31:42 M: 1167360 DEBUG: msg: Starting playback...
17:31:42 M: 1167360 DEBUG: msg: mplayer_open_file(F:\Videos\MoviesF\Hindi\The Train.avi) done 1.0000
17:31:42 M: 643072 INFO: Loading skin file: VideoOverlay.xml
17:31:42 M: 643072 DEBUG: Playback has started
17:31:42 M: 282624 DEBUG: msg: VDec: vo config request - 640 x 272 (preferred csp: Planar YV12)
17:31:42 M: 811008 DEBUG: msg: VDec: using Planar YV12 as output csp (no 0)
17:31:42 M: 811008 DEBUG: msg: Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
17:31:42 M: 811008 DEBUG: msg: VO: [directx] 640x272 => 640x272 Planar YV12 [fs]
17:31:42 M: 811008 DEBUG: mplayer::video_config(640, 272, 640, 272, 1, 842094169)
17:31:42 M: 811008 NOTICE: Display resolution AUTO : 1080i 16:9 (0)
17:31:42 M: 20480 ERROR: mplayer generated exception in ffmpeg_decode_decode
17:31:42 M: 20480 DEBUG: CGUIInfoManager::SetCurrentMovie(F:\Videos\MoviesF \Hindi\The Train.avi)
-- Snip --

tslayer
2007-06-17, 22:41
Looks like you are probably running out of memory. Drop resolution down to 720p or try with a lower cache.

xino
2007-06-17, 23:19
Looks like you are probably running out of memory. Drop resolution down to 720p or try with a lower cache.

what da helll!? I though when you increase the cache, it plays the movie better?

snoxbox
2007-06-18, 02:39
what da helll!? I though when you increase the cache, it plays the movie better?

what da hell? He's running in 1080i, which probably means he's running out of memory. Cache uses up memory. Less cache = more memory available.

elupus
2007-06-18, 16:37
not sure it's memory only.. ( well it's probably what causes the crash ).

These two lines are interesting.
17:31:40 M: 11022336 DEBUG: msg: AVI file format detected.
17:31:41 M: 1785856 DEBUG: msg: VIDEO: [XVID] 640x272 12bpp 29.971 fps 590.6 kbps (72.1 kbyte/s)

it goes from 11megs free to 1.6 megs free. What just ate 8 megs of memory right there??

That file seems butchered in some way. You can run in through virtualdub for example to remux it, wich will probably fix the issue.

xino
2007-06-18, 18:24
what da hell? He's running in 1080i, which probably means he's running out of memory. Cache uses up memory. Less cache = more memory available.
if you don't understand somone's post correctly, don't bother replying:/

I was talking about the cache, not that guys cache!

elupus
2007-06-18, 18:35
eh.. I think snoxbox post made total sense, yours didn't xino. the higher cache set, the less memory available to other things.