[LINUX] HOW-TO remux an AVI video file using Linux to make them play smoothly in XBMC
#1
Thumbs Up 
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
Reply
#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.
Reply
#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
Reply
#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.
Reply
#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
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO remux an AVI video file using Linux to make them play smoothly in XBMC1