[LINUX] HOW-TO remux an AVI video file using Linux to make them play smoothly in XBMC

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
icheyne Offline
Junior Member
Posts: 6
Joined: Jan 2009
Reputation: 0
Thumbs Up  [LINUX] HOW-TO remux an AVI video file using Linux to make them play smoothly in XBMC
Post: #1
I had an .avi video that refused to play smoothly with my Xbox XBMC, but worked fine on my computer.

This FAQ diagnosed the problem - I had to re-mux the AVI. Unfortunately it only had instructions for Windows.

To fix this in Ubuntu Linux I ran the following two commands:
Code:
sudo aptitude install mencoder
Code:
mencoder -ovc copy -oac copy -of avi -o "remuxed.avi" "original.avi"

The file processed for a few minutes and then it ran smoothly on XBMC.

via
find quote
DDM123 Offline
Senior Member
Posts: 144
Joined: Mar 2009
Reputation: 0
Post: #2
I wrote this little script to quick fix some avi files.
Code:
#!/bin/bash

for i in "$1" ;
do
    mencoder -ovc copy -oac copy -of avi -o "$i.temp" "$i"
    mv "$i.temp" "$i"
done

I don't know bash too well, so I couldn't figure out how to detect avi or mkv file types without processing an entire directory with *.avi.
(This post was last modified: 2009-08-26 21:40 by DDM123.)
find quote
schneidz Offline
Fan
Posts: 402
Joined: Jun 2009
Reputation: 0
Post: #3
DDM123 Wrote:...
I don't know bash too well, so I couldn't figure out how to detect avi or mkv file types without processing an entire directory with *.avi.

man file
find quote
dr_dred5 Offline
Junior Member
Posts: 10
Joined: Nov 2009
Reputation: 0
Post: #4
I've been using mencoder for years, but i just discovered Divfix ++. It has a GUI and is just as fast.

You can get RPMs or source code from http://divfixpp.sourceforge.net/download.php

And Ubuntu Debs from http://linux.softpedia.com/get/Multimedi...9989.shtml

I've tested it in both Jaunty and Karmic and it works great.

Cheers.
find quote
ghajejha Offline
Junior Member
Posts: 1
Joined: Nov 2009
Reputation: 0
Post: #5
dr_dred5 Wrote:I've been using mencoder for years, but i just discovered Divfix ++. It has a GUI and is just as fast.

You can get RPMs or source code from http://divfixpp.sourceforge.net/download.php

And Ubuntu Debs from http://linux.softpedia.com/get/Multimedi...9989.shtml

I've tested it in both Jaunty and Karmic and it works great.

Cheers.



whoa... a simple post and so many responses and links. My apologies for not doing the search first, that was stupid of me. Thanks for all the pointers, though!
Thanks for shairng.

__________________
Simulation rachat credit personnel reduit | Demande rachat credit personnel en ligne | Comparatif meilleur taux rachat credit pret personnel
find quote