LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2009, 02:51 PM   #1
odys
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
mplayer - truncated header of media (rawaudio,...)


Hi,

I had recoding from HDD-recorder, the format was AVI (MPEG2 + some audio).
Unfortunately, while cutting desirable fragment [with 'dd' command] I lost the header and now mplayer does not play the sound.
However the sound content is still there and the command:
mplayer -rawaudio format=0x2000 -demuxer rawaudio file.avi
works but then video is missing.

Does anybody could suggest how to play or encode whole content? I tried commands like:
mencoder -audio-demuxer rawaudio -audiofile file.avi file.avi -ovc lavc -o output.avi
or
mencoder -rawaudio format=0x2000 -demuxer rawaudio file.avi -oac lavc -ovc lavc -o output.avi
without success.

Thanks,
 
Old 02-13-2009, 11:59 PM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I would try and get a valid header by recording another segment from the same source. Say file1.avi. If your truncated file is file2.avi you could then try

mencoder -oac copy -ovc copy -o final.avi file1.avi file2.avi

and hope mencoder was smart enough to glue on your broken file. Then you could edit out the first bit. I have no idea if this will work, but nothing to lose!
 
  


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
MPlayer: no cyrillic subtitles, bad magic in ifo header tramni1980 Linux - Software 0 03-02-2007 06:34 AM
problem with mplayer - libc.so.6: invalid ELF header julot Linux - Software 2 02-16-2007 12:21 AM
real media and mplayer usa1234 Linux - Software 4 10-31-2004 04:45 AM
Header cannot be opened or does not match mplayer crsohan Linux - Software 1 08-25-2004 08:22 AM
mplayer and streaming media nakkaya Linux - Software 0 03-17-2003 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:39 AM.

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
Open Source Consulting | Domain Registration