ffmpeg + Linux Saves The Day

During Episode 184 (March 29, 2011), Wirecast closed itself abruptly due to a crashed MSVCR90.dll. We promptly picked things back up by re-firing the application and jumping straight back to viewer questions before people really noticed anything was up.

This is all fine and good, but come 8pm when we sign off the air, it's time for me to check to make sure the files are all okay for the record-to-disk.

With regret, the first 20 minutes were badly damaged due to the crash, or so it seemed. None of our installed applications on Windows 7 would open the file. Media Player wouldn't play it. PowerDirector wouldn't open it. Xilisoft wouldn't convert it. I'm in trouble. I answered some viewer questions in the first 20 minutes of the show, and I really would feel bad to lose those, especially considering some of the viewers involved may not be tuning in live, but might plan to catch the episode on the RSS feeds.

Rather than monkeying with the file too long on Windows (which was proving to be a futile effort), I zipped the file across my network to my Ubuntu Linux laptop.

Of course, Linux will save the day—it always does!

I try opening the "corrupt" video file by double-clicking it. Welcome to Linux: it just worked. Totem started playing the file no problem, even though Windows was hopeless to open it. The irony to me is that the files are recorded in WMV format. Last time I checked, the ".wmv" in my filename stands for "Windows Media Video". Typical.

Great! So Linux can open my botched Windows video file. Now, to get it to the point where viewers can also enjoy the video, regardless of what platform they're on.

A simple command in the terminal to tell ffmpeg to read and re-write the video in full quality...
ffmpeg -sameq -ab 192000 -ar 44 -b 1200 -i myinputfile.wmv myoutputfile.wmv
And there we have it—ffmpeg has, after only a few minutes, created a duplicate of the original file, but without the corrupted bits. I throw it back over to Windows and sure enough, it loads right up.

Xilisoft merges the two files together into a nice quality WMV, and off it goes to Blip.tv for conversion to h.264 and our other online formats for global distribution.

Once again, Linux (and ffmpeg) saves the day.
Share/Save/Bookmark

Comments  

 
0 #2 agamotto 2011-04-16 18:49
Ah yes, those wonderful blasted .dll files... Amazing how something so vital to the OS seem to be so easily corrupted/damaged, no? You would think that after 20+ years, M$ would alter Windows at some point so that all libraries, .dlls, etc... would have their own dedicated directories... like the Amiga did. Something burps with a library file, you go into \libs and replace the suspect file, test and move on.... giggle
Quote
 
 
0 #1 gsiegel 2011-04-13 04:17
Great blog entry! Nice job with the "Tuesday" video too. That would be a great show opening one day.
Quote
 

Add comment


Security code
Refresh

EPISODE 229

Nominate Robbie Ferguson for a social media award in the Shorty Awards!

Nominate Robbie Ferguson for a social media award in the Shorty Awards webshow category. Click Here.

Viewer Testimonial

Category5 is amazing!

Even when there are shows about a subject that isn't of immediate interest to myself, such as the current web design feature (no matter how much I respect the people who do these things and are capable and creative with them), to hear Robbie talk on and on and on about it all the time makes me fall asleep with boredom, so I don't need any sleeping-pills to prevent laying awake from questions like what Linux distribution to use, or what gadgets to get next.

Thanks Category5, keep up the good w...
Joshua Jot Avarius ( Home. Duh. ) 04/05/2011 03:29pm
Licensing Information Creative Commons License
Category5 Technology TV by Category5.TV is licensed under a Creative Commons Attribution 2.5 Canada License.
Category5 TV, Cat5 TV and its associated trademarks are © 2005-2012 Prodigy Digital Solutions.
Contact Information 705-739-1056
live@category5.tv
www.category5.tv
Location Category5 Technology TV
P.O. Box 29009
Barrie, Ontario
Canada L4N 7W7
Staff Details Host: Robbie Ferguson
Co-Host: Hillary Rumball
Co-Host: Eric Kidd
Co-Host: Christa Wells
Co-Host: Rachel Xu