Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-20-2009, 02:42 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
help with broken avi file

i just bought a canon powershot that only films movie in avi form.. when i tried to download it, it says it's broken.. i tried to use VLC, which plays it, but won't repair it.. i can't share the file with anyone, as that is what i would like to do..
i run Ubuntu /Gnome

i never had any problems when i had a kodak easyshare that filmed in mov form..

any help would be appreciated in how to fix the broken file or avoid this problem in the future..

Old 07-20-2009, 03:02 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
it says it's broken.
What says it is broken?

There is a program called "avifix" that can be used to repair faulty avi header information.

The program "mediainfo" will display detailed information on video files.

You could use ffmpeg or mencoder programs to transcode the file. If the problem has to do with the container format, but the video & audio are OK, you can use ffmpeg to copy the streams into a new avi file.

ffmpeg -i infile.avi -vcodec copy -acodec copy -y outfile.avi
if you don't have audio:
ffmpeg -i infile.avi -vcodec copy -an -y outfile.avi

The extension (.avi) only indicates the type of container. The video & audio inside it may use different codecs. You may need to use ffmpeg or another encoder to re-encode the video stream using a codec that works with the program you are using, or that your friends can view. Xvid is a very common one. Even my DVD player will play xvid encoded avi files of a CD.

Look in your package manager, as there likely several ffmpeg or mencoder GUI programs available. You may find that easier than encoding from the terminal.

Last edited by jschiwal; 07-20-2009 at 03:05 PM.
Old 07-20-2009, 04:25 PM   #3
LQ Newbie
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
VLC says it's broken..
i just tried other videos using the canon powershot, and it seems they are all 'broken'.. i'm new to linux and it's all trial and error with me.. i have an old monitor that every time i try to do updates, it can't find or install the monitor, and it takes me getting my linux savvy brotherinlaw up here to fix everytime..
i'm sure i just need to update gstreamer or something..
thanks for your input.. i've been reading everything i can here.. i wish the canon would film in another format perhaps.. the kodak doesn't have a problem, and it's not in avi..

Old 07-20-2009, 04:58 PM   #4
LQ Newbie
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
update.. i tried using "iriverter" and it seems to have worked.. i managed to get my video to play AND upload it to my facebook to share..

thanks so much for you help jschiwal.. appreciate it muchly..

Old 07-31-2009, 02:22 PM   #5
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Well, I need a bit of help as well...

I downloaded an avi file that is in parts (4 to be exact) and although they seem to be self sustained (the first part plays through just fine) parts 2 and 3 say "There is no plugin to handle this movie" when using Totem Player, nothing when using GNOME player, and "LAVF_header: av_find_stream_info() failed!" when using MPlayer (which are my three options to date). I am using Mint. Any ideas? I don't even need to fix it to share, I just want to watch it.

Last edited by TheSmokingGNU; 07-31-2009 at 02:23 PM. Reason: clarification.
Old 07-31-2009, 02:35 PM   #6
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Well, thanks anyway...

but I guess I feel a little dumb. Question was answered above, I just used iriverter to join them and they all work. Yay fun!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to play broken Avi ? frenchn00b Linux - General 3 03-15-2008 01:44 AM
Gui that convert AVI to AVI DivX, with telling final avi target final size ? frenchn00b Linux - General 5 03-02-2008 05:37 AM
how can I play file avi file with DivX6.40 1280x720 24fps nos1833 Debian 2 12-27-2007 11:45 PM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 04:48 AM
My player cant play rmvb file while avi file is ok......what's going on??!!! shuvernce Linux - General 6 03-28-2006 09:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration