LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-20-2009, 03:42 PM   #1
twilightgecko
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..

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

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
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 04:05 PM.
 
Old 07-20-2009, 05:25 PM   #3
twilightgecko
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..

hmmm
 
Old 07-20-2009, 05:58 PM   #4
twilightgecko
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, 03:22 PM   #5
TheSmokingGNU
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 03:23 PM. Reason: clarification.
 
Old 07-31-2009, 03:35 PM   #6
TheSmokingGNU
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!
 
  


Reply


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 02:44 AM
Gui that convert AVI to AVI DivX, with telling final avi target final size ? frenchn00b Linux - General 5 03-02-2008 06:37 AM
how can I play file avi file with DivX6.40 1280x720 24fps nos1833 Debian 2 12-28-2007 12:45 AM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 05:48 AM
My player cant play rmvb file while avi file is ok......what's going on??!!! shuvernce Linux - General 6 03-28-2006 10:45 PM


All times are GMT -5. The time now is 03:54 PM.

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