Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


Lostnbronx creates a tiny video, from a large audio file.

<< First, < Previous, , Latest >>

Hosted by lostnbronx on 2018-02-15 is flagged as Explicit and is released under a CC-BY-SA license.
opus, opusenc, ffmpeg, avconv, webm, lostnbronx. 1.
The show is available on the Internet Archive at:

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:27:14



hosted by Lostnbronx

Turning a large audio file into a tiny video file for a very specific use case.

This solution probably won't work for you, because none of the ones I found on the Internet worked for me. Trial and error led me here, and it's probably the only guide you'll have as well.

Start with as high a quality audio file as you can manage. .wav is good, but it's big. Let's convert it to .flac. If you already have a .flac file, skip this part.

1.) Convert .wav to .flac.

sox INPUT.wav OUTPUT.flac

2.) Convert the .flac to a very small mono .opus. Bitrate can be even smaller. I went down to 14.

opusenc --bitrate 18 --downmix-mono INPUT.flac OUTPUT.opus

3.) Combine the .opus file with a single static image, and output to a .webm video. This should not be very much bigger in file size than the .opus and .jpg combined. The smaller the image file, the better. (I tried using a .gif, but it was actually bigger than the .jpg I ended up with.)

ffmpeg -i INPUT.opus -r 1 -loop 1 -i INPUT.jpg -c:v libvpx -tune stillimage -shortest -y -c:a copy OUTPUT.webm

The final file. It doesn't sound great, but it's listenable, which is all that was desired.

Here's a better quality version of the audiobook.

The process and final result can be improved upon by people smarter than I, without doubt, but this works for now.

SPECIAL THANKS to the Urandom guys (X1101, Thaj, and Pokey), Monsterjavaguns (Jason van Gumster), and the ever-fabulous Klaatu, for their suggestions and encouragement. I would not have found a solution to this, nor even thought to do an episode of HPR, without them!

Editor's Note 2018-02-15: The wrong audio was accidentally released with this show. It has been corrected and should be re-uploaded by your podcatcher.


Subscribe to the comments RSS feed.

Comment #1 posted on 2018-02-15 19:18:06 by Ken Fallon

Bin there done that. (Deliberate typo Dave)

1. Yes you describe why I hate forums. 2. Why did you not record a show describing the peoblem? I know several hosts that have ffmpeg foo. We have the exact same needs for hpr itself

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?