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

Sounds Like IBM is Preparing for Mass Layoffs/Redundancies in Red Hat, Albeit in "PIP" (Performance Improvement Plan) or "Relocation" Clothing
This isn't the "old" IBM; they're applying pressure by confusion and humiliation
Gemini Links 17/04/2025: Role of Language and Back to Mutt for E-mail
Links for the day
Microsoft's Attack Dogs Have Failed. Now What?
It would be utterly foolish to assume that Microsoft has any intention of changing
All Your "Github Projects" Will be Gone One Day (Just Like Skype)
If you have code you wish to share and keep, then start learning how to do so on your own
Fedora Already Lost Its Soul Under IBM
Fedora used to be very strict compared to many other distros and it had attracted very bright volunteers
 
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, April 18, 2025
IRC logs for Friday, April 18, 2025
Links 18/04/2025: "Fentanylware (TikTok) Exodus Continues", Chinese Weapons Allegedly in Russia Already
Links for the day
Gemini Links 18/04/2025: Price of Games and State of Tinylog
Links for the day
"Sayonara" (さよなら), Microsoft
Windows had fallen below iOS in some countries
Links 18/04/2025: Layoffs at Microsoft Infosys and Qt Becoming Increasingly Proprietary (Plus Slop)
Links for the day
Google News is Dying
treating MElon's algorithmic/biased site as a source of verified news
To Understand Who's Truly Controlling You Follow the Trail of Censorship (or Self-Censorship)
Do not let media steal and steer the narrative; CoCs are not about "social justice", they're about corporate domination
Microsoft is Still Attacking GNU/Linux and the Net
Microsoft bribed the government using money that did not even exist
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Thursday, April 17, 2025
IRC logs for Thursday, April 17, 2025
Gemini Links 18/04/2025: Pinephone Pro and Linux is too Easy
Links for the day
Links 17/04/2025: Calling Whistleblowers at Microsoft, Slop Doing More Harm Everywhere
Links for the day
Links 17/04/2025: Russian Bot Farms Infect TikTok (Which US Government and SCOTUS Decided to Block January 19), US Hardware Stocks Crash Due to Tariffs
Links for the day
Gemini Links 17/04/2025: Sticking to Free Software, Smolnet, and Counting the Reals
Links for the day
Open Source Initiative (OSI) Privacy Fiasco in Detail: In Conclusion and Enforcement Action Proceeds Against OSI at the California Privacy Protection Agency (CPPA)
There's too much to cover in one single part
When You Fail to Filter Your Clients You End Up SLAPPing Reporters on Behalf of Bad People From Microsoft in Another Continent
“American Psycho”
Links 17/04/2025: LayoffBot and Tesla Cheats Buyers
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Wednesday, April 16, 2025
IRC logs for Wednesday, April 16, 2025