PDA

View Full Version : [LINUX] HOW-TO remux an AVI video file using Linux


icheyne
2009-03-15, 21:45
I had an .avi video that refused to play smoothly with my Xbox XBMC, but worked fine on my computer.

This FAQ (http://xbmc.org/wiki/?title=Troubleshooting#I_got_one_or_several_AVI_fi les_that_plays_choppy_and.2For_ends_in_the_middle_ of_playback.2C_what_could_be_the_cause.3F) 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:
sudo aptitude install mencoder
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 (http://avidemux.org/admForum/viewtopic.php?pid=28652)

DDM123
2009-08-26, 18:53
I wrote this little script to quick fix some avi files.#!/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.

schneidz
2009-11-04, 17:39
...
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

dr_dred5
2009-11-12, 21:42
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/Multimedia/Video/DivFixplusplus-19989.shtml

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

Cheers.