Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.

Please support our Patrons

Our hosting is kindly provided by Josh from We would appreciate it if you could donate to help reduce his costs in funding the hosting. He is also accepting bitcoins to 1KsxJr9HtsdaUeU7yaV9bk9bQi21UPBtUq
Please also consider supporting the who are now hosting our media files. Right now, a generous supporter will match your contributions 3-to-1. So your $5 donation results in $20 for the Internet Archive.


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.
Listen in ogg, spx, or mp3 format. | Comments (1)


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-15T19:18:06Z 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

<< First, < Previous, Latest >>

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 P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?