Linux >
Convert an mp3 into a video.
Requirements:
- Bash for the scripting (should come with and be default on most distros)
-
cat for merging the mp3s (should come with most distros)
- I’d love to replace this with cp, but I don’t see how that’s possible.
- I could (should?) replace it with mp3wrap for better audio quality.
-
LAME for working with mp3s
- I tried replacing lame with FFmpeg, but it doesn’t get things right.
- ExifTool for learning the duration of an mp3.
- xxd for dumping binary into text and back
- FFmpeg for working with videos
-
See:
The script: merge-mp3s-into-a-video.sh
Todo ∞
- merge my ffmpeg commands together..
-
Can I just use ffmpeg to merge multiple mp3s into the video?
- Should be possible, maybe if I specify multiple -map or delay or whatever commands somehow?
-
followup: get the length and filename of every mp3. Ignore the first three characters of the filenames. Build a subtitles file which shows each filename for the appropriate length of time. Then hard-code that subtitle into the video.
- was https://www.ibm.com/developerworks/linux/library/l-graf/
- https://web.archive.org/web/20090218184856/http://www.linux.com:80/articles/113978
- [ 1 ] www.instructables.com/id/Add_text_to_images_with_Linux_convert_command/ (dead, not archived)
Footnotes
| ^ 1 | www.instructables.com/id/Add_text_to_images_with_Linux_convert_command/ (dead, not archived) |

ported
moved the script into git