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

How the SLAPPs From Microsoft Staff Are Connected to the Corrupt OSI, Whose Majority of Money Comes From Microsoft for Openwashing, LLM Hype, and Whitewashing GPL Violations During Class Action Trial
Let's explain how some of these things are connected
 
Red Hat's Owner is Called "America's Worst Tech Company" (IBM) and Microsoft's Liabilities Grow
Microsoft has about a quarter of a trillion (yes, trillion with a "T") in liabilities
Links 12/05/2025: Gardens and Kitchens
Links for the day
Links 12/05/2025: Media Being Attacked (New Forms of Attack on the Press), Many Data Breaches
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, May 11, 2025
IRC logs for Sunday, May 11, 2025
Links 11/05/2025: Pyotr Wrangel and Kubernetes With FreeBSD
Links for the day
What Happened to the Open Source Initiative (OSI) Elections: A Moment of Silence and Revisionism Amid US Government Investigation and Community Uproar
Not a word this month
Microsoft Florian Becomes Patent Troll, Arranges to Sue Companies (Extorting Money Out of Them)
From campaigner against software patents to paid Microsoft shill to "FOSS patents" (actually attacking FOSS) to revisionism as "books" (for Microsoft)... and now this
Links 11/05/2025: China's Fentanylware (TikTok) Tells Kids to Vandalise Schools' Chromebooks and Increased Censorship in India
Links for the day
You Need Not Be a Big Company to Defeat Microsoft If You Can Successfully Challenge Its Core "Ideas"
Maybe that's just a sign that the ideas of RMS have become too effective and thus "dangerous"
Gemini Links 11/05/2025: Yeeting Oligarch Tech, Offline Browsing
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, May 10, 2025
IRC logs for Saturday, May 10, 2025
One is Simply Doomed to Fail When Working for Violent Men From Microsoft and Attacking Women as Well as People Who Merely Expose Crimes or Report Real Crimes
Imagine saying to people that you "practice law" or "exercise law"
The Tariffs Are Accelerating Microsoft's Decline in China
Judging by the way things are going, there will be considerable adoption of GNU/Linux in years to come, China being one major contributing factor.
Control Your Systems, Control All Your Data
what does it take for us to control our own systems and data?
Misplacing Blame for Security Problems, Sometimes With LLM Slop That Blames "Linux" for Microsoft's Failures
Broken telephones and stochastic parrots beget plenty of Fear, Uncertainty, Doubt (FUD)
Links 10/05/2025: WW2 Revisionism, Further Tit-for-tat in India-Pakistan Conflict
Links for the day
Links 10/05/2025: Germany Considers Smartphone Ban in Schools, Right to Repair Bills
Links for the day
Gemini Links 10/05/2025: Git Server and Great LLM DDoS of 2025
Links for the day
Blizzard/Microsoft Unions Grow Ahead of Mass Layoffs at Microsoft, Apparently Starting Next Week (as Many as 30,000 Workers Laid Off by Year's End)
Microsoft already fired about 5,000-6,000 workers this year by our estimates; that's not counting resignations compelled through pressure (i.e. pushed, did not jump) and contractors
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, May 09, 2025
IRC logs for Friday, May 09, 2025