Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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


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
mencoder -rawaudio format=0x2000 -demuxer rawaudio file.avi -oac lavc -ovc lavc -o output.avi
without success.

Old 02-13-2009, 11:59 PM   #2
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!


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 - 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration