Bonum Certa Men Certa

Turning a Podcast Into Video Using Mencoder

Summary: A note and a tip about going from audio to video with Free/libre software

TECHBYTES, our audiocast as we call it, currently comes in two methods of delivery. One is purely audio and another is video plus audio. But YouTube is a large platform and many shows put their material in there. Turning 50 shows into video can be a tedious task with a graphical user interface, whereas with command line tools this process can be automated. After some exploration we found a way to turn audio into a slideshow and then split the files for uploading the resultant Ogg files (given the known upload limits). To encode using a command line utility or set thereof, the following chain of commands gets issued:



mencoder -ss 00:00:00 -endpos 00:10:10 mf://*.jpg -audiofile ~/TechBytes/48/techbytes0048.ogg -ovc lavc -oac mp3lame -fps 0.1 -o 48p1.ogg

mencoder -ss 00:10:00 -endpos 00:20:10 mf://*.jpg -audiofile ~/TechBytes/48/techbytes0048.ogg -ovc lavc -oac mp3lame -fps 0.1 -o 48p2.ogg

[...]

where -ss 00:00:00 means it starts at 0 seconds, -endpos 00:10:10 defines an endpoint using the same type of time format, mf://*.jpg takes all the images in the current directory -- images that are generated by duplication except for the first one. Files can be easily replicated (e.g. to serve as dummy sequence) with:

for file in *.jpg
  do
    `nice cp ${file} ${file}-dupe.jpg`
  done


The remainder of the arguments specify the -audiofile, encoders, frames per seconds (fps), and an output file at the very end. To split videos into smaller chunks, we have tried many different tools but eventually used mencoder to simplify the pipeline (thanks to all those who helped in IRC). This whole command basically turns a simple sound file into smaller ogg files that also contain images with transitions between them. Since it is scriptable, we can now apply this to all past episodes. YouTube is moving to WebM quite soon and in any case, making it a mere option using Ogg format and free software utilities simply broadens our reach.

Comments

Recent Techrights' Posts

Writing and Coding Isn't Always Enough
Last year we had to assume a role we didn't have before: litigants
 
Why We Publish Information About the SLAPPs (But Not About the Legal Process), an Abuse of Process by Americans Trying to Silence Critics of Their Employer, Microsoft
It doesn't take thousands of pages to explain something simple
Internet Relay Chat Didn't Fall Off a Cliff
IRC will turn 40 in less than 3 years from now
The UEFI 9/11 - Part V - This is Not a Drill (Disable "SecureBoot" Now)
A "9/11" Coming
There's No Obligation to Speak to Anybody
The very fact that "bkuhn" is till spending time in social control media says a lot about his poor judgment
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, September 01, 2025
IRC logs for Monday, September 01, 2025
The Register MS Says "AI Web Crawlers Are Destroying Websites", So Why Does The Register MS Help 'AI' Companies? (Spoiler: Money)
People need to call out The Register MS on its hypocrisy
Microsoft Trying to Force People to Resign (Amid Mass Layoffs) a Strategy That Takes Its Toll
Microsoft seems to be circling down the drain and the "final flush" will be the moment the "hey hi" (AI) bubble implodes completely
Google Simply Cannot Be Trusted
Only fools would trust GAFAM
Admission That a Third Party (or Parties) Funds the SLAPPs Against Techrights
This can end up costing them over a million dollars
Modifying and Writing One's Own Computer Programs is Not a Crime (or: Google Proves That Stallman Was Right)
We're generally gratified to see so many positive mentions of him
Why We Stopped Publishing Videos (for Now)
We'll probably get back to videos one day, but it's hard to say when or to what extent
What Animal Rights Activism Teaches Us About Sympathy and Focus
It's possible to believe that the planet is warming, that we must do something about it, and still eat eggs and butter
When You Turn Web Sites About Tech Into Political Sites
A lot of people fall into the trap of catering only for particular groups
Gemini Links 02/09/2025: ROOPHLOCH 2025 and Lagrange 1.19 Released
Links for the day
Gemini Links 01/09/2025: News Corp. WSJ and A Month With NixOS
Links for the day
Slopfarms Already Peaked, They Will Die When Slop Companies Run Out of Money to Borrow
slopfarms will lack an actual "engine"
“Sideloading” Never Killed Anybody
There are many online discussions this week about the misnomer "sideloading"
Slopwatch: Google News as FUD Vector Against Linux and Plagiarism Enhancer, Serial Slopper (SS) Uses LLMs to Googlebomb "Linux"
Slop destroys the Web not just by screwing with search engines and helping plagiarists. It's also responsible for de facto DDoS attacks...
Links 01/09/2025: "Attacks on Science" and China's "Soft Power" Grows
Links for the day
Links 01/09/2025: Fresh Backlash Against Slop and "Norway’s Electricity Crisis is About to Hit Britain"
Links for the day
Links 01/09/2025: Catching Up (Mostly via Deutsche Welle), "Windows TCO" Effect in UK
Links for the day
Gemini Links 01/09/2025: Linguistic Barriers and "Web 1.0 Hosting"
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, August 31, 2025
IRC logs for Sunday, August 31, 2025
Autumn Has Come
Autumn should be exciting in all sorts of ways; it'll also mark our anniversary
The UEFI 9/11 - Part IV - External Interference
They all seem to be playing a role in crushing Software Freedom and self-determination for users
Links 31/08/2025: Baggage Claim Scams, an Insurrectionist’s War on Culture, and a Sudden Robotics Hype
Links for the day
Gemini Links 31/08/2025: Reviewing Netsurf and Slightly Less Historic Ada Design
Links for the day
IBM Has Taken Control of GNOME
Don't expect a successor to be found any time soon
Links 31/08/2025: Google Gmail Data Breach and LF Puff Pieces for Pay
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, August 30, 2025
IRC logs for Saturday, August 30, 2025
This is What Google News Has Become
Moments ago