LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-10-2008, 09:17 AM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Rep: Reputation: 89
Recover bad asx file?


Hi. I'm wondering if it's possible to fix a video file that I downloaded from a stream using MPlayer (using -dumpstream -dumpfile out.wmv mms://blah...). It did play once; in fact, I played it with xine while it was downloading. Now, I can't play it at all. MPlayer gives this error:

Playing out.wmv.
ASF file format detected.
No data chunk following header!
libavformat file format detected.
LAVF_header: av_open_input_stream() failed

As far as I know there is no DRM involved (I tried playing it on a windows pc in WMP10 and it wouldn't even recognize the format.) Why will this not play now, when it did before? (I hope I don't have 561 MB of crap sitting on my desktop.)

I have another file from the same stream that works, and I'm wondering is it possible to copy the header from the good file onto the bad one somehow? Any thoughts? Thanks..
 
Old 03-11-2008, 06:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by ordealbyfire83 View Post
I have another file from the same stream that works, and I'm wondering is it possible to copy the header from the good file onto the bad one somehow?
I doubt it, since ASF is a media container just like AVI and the header is built specifically for and describing that stream. You could try to demux the stream and rebuild it. I don't know if GNU/Linux can handle that with the win32codecs, could try ClippyOS, AVS with Virtualdubmod. Else if you could open the .asx file (it's just text) you could try downloading the stream directly?
 
Old 03-17-2008, 05:59 PM   #3
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Original Poster
Rep: Reputation: 89
Thanks for your reply. I tried Virtualdubmod (had to use a Windows PC for that) and it too complained about a missing chunk after the header. Whatever is missing won't let me demux using ffmpeg or similar. I tried opening the file in emacs and copied/pasted headers. ffmpeg was then able to tell that it is a wmv file but it couldn't detect the sample rate. Not much of the file is human-readable so it's probably a lost cause. Fortunately the TV station posted this program on their site, so I just downloaded it from there, albeit it's of much less quality than the original stream.
 
  


Reply



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
Bad SuperBlock! How to recover data? kr5 Linux - Hardware 20 09-30-2020 12:04 PM
how can i listen to this radio station .ASX file Santorres Linux - General 3 03-12-2005 08:28 PM
Piping asx video to file Chen Linux - Newbie 2 01-07-2005 03:38 AM
recover from bad update jeffpoulsen Linux - General 0 02-11-2004 05:47 PM
can play asx,asp file in redhat9? eye Red Hat 1 10-28-2003 08:01 PM

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

All times are GMT -5. The time now is 12:43 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