The New Utovsky Bolshevik Show

Tue, 02 Nov 2010

Re-encoding an Audio File as Video

As part of my current MythTV project (about which I may blog more in future), I wanted to re-encode an audio file with a black video track.

To do this, I used the following commands:

$ convert -size 320x240 xc:black /tmp/black.jpg
$ ffmpeg -loop_input -i /tmp/black.jpg -i in.mp3 -qscale 1 -shortest -acodec copy out.avi

I hope this helps.

For those who are wondering why I wanted to do this, it's because MythTV won't play audio-only recordings, and I wanted to include BBC iPlayer radio programmes in my recordings screen. So the simplest way to fix this was to just make it so that they weren't audio-only.

Posted: Tue, 02 Nov 2010 22:36 | Tags: , | Comments: 0 |

Comments

Name:


E-mail:


URL:


Comment: