Advanced Search
Welcome to Omgili,
Omgili (Oh My God I Love It ;) is a search engine for discussions. With Omgili you can find answers and solutions, debates, discussions, personal experiences, opinions and more... To learn more about Omgili click here.

This is a complete preview of the discussion as it was indexed by Omgili crawlers. Use this preview if the original discussion is unavailable.
Click here to view the original discussion.

Playback broken for large AVI file (XBMC can't read index?)? - XBMC Community Forum

I was trying to play a large (2.2 GB) AVI file with XBMC (T3CH build from March 3rd) today and I noticed that all playback controls were broken.

By this I mean: Rewind and fast forward did nothing;

The video continued to play at normal speed.

The only difference was that the audio stopped playing.

The arrow keys (up, down, left, right) did nothing at all. When I looked through the XBMC logfile, I saw these types of messages: Code: 13:13:35 M: 29855744 DEBUG: CApplication::OnKey: 168 pressed, action is 20 13:13:35 M: 29855744 DEBUG: msg: Cannot seek in raw AVI streams.

(Index required, try with the -idx switch.) Here's some background on how I created the video file: Used DVD Decrypter to decrypt/copy a movie DVD to my hard drive.

Used Handbrake to encode the movie into an AVI file (MPEG4 + MP3). When I play the video file on my laptop with WMP11, I can seek through the file with no problems at all.

Also, if I use Handbrake to encode only a single chapter (instead of the entire movie), then XBMC can seek through the file.

My best guess is that XBMC is choking on the large AVI file and cannot read the index. I searched the forums and found this post , which references the same log message, but the solution there does not work for me. Has anyone else seen this?

Any suggestions?

I was able to work around this problem by having Handbrake use the MP4 container rather than the AVI container (while keeping everything else constant).

However, the fact still remains that I was able to seek in both files using WMP11 on my laptop, whereas XBMC could not seek in the AVI file.

This leads me to believe there is a bug with XBMC and AVI files.

XBMC uses either DVDPlayer or MPlayer, you could see which one is using by pressing the Title button on the remote (I don't know which one which button is on the controller), and there's a band of technical data at the top of the screen. You could bring the contextual menu for the video file and select "choose video player" or somethign similar, and choose DVDPlayer and see how it goes... I would try with a newer T3CH release, like 9.04 beta 1 (2009-04-23), that may include a newer MPlayer version...

I tried this again today with a (different) 1.6 GB file and everything worked correctly.

It wasn't exactly a controlled experiment though, as I also recently upgraded my XBMC build to the May 1 t3ch build.

In any case, I will keep an eye out for this in the future.

I just had this happen again with a 2.3 GB AVI file (MPEG4 + MP3).

Mplayer cannot seek through the file, but dvdplayer handles it just fine.

Mplayer on my Windows laptop can seek just fine, so the problem is solely with mplayer in XBMC. Should I file a bug about this?

Also, and this is mostly guesswork, it seems the problem could be related to the maximum size of a signed 32-bit integer (2147483648): my theory is that seeking is broken for files larger than this size (in bytes).

Http://www.xbmc.org/wiki/?title=Trou..._video_file.3F This is a problem with just the AVI format, that's why the MP4 container worked.

Quote: : http://www.xbmc.org/wiki/?title=Trou..._video_file.3F This is a problem with just the AVI format, that's why the MP4 container worked.

I actually filed a bug for this ( link ), but it seems the problem requires both mplayer and AVI.

The workaround is to change either variable (e.g.

Use MP4 or DVDplayer).