Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That does not sound like an easy process to me.


One the receiving side it is trivial once you download the video:

   ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3
Or, for those who don't want to deal with the command line, a Google for "how to download music from youtube" will turn up numerous friendly programs to accomplish the task. Amusingly, there are a ton of YouTube videos explaining the process. :-)

On the producing side, it would also be easy to automate. Ffmpeg can add audio to a video, and it can trim a video. You could easily have a long video of your cat, say 30 minutes, and write a shell script to take a directory of MP3 files, and for each find the length, pick a random section from your long cat video of the appropriate length, extract a section of that length, and add the audio. The script could then upload the video to YouTube, putting the artist and song name in the description, so that on the receiving side naming and basic tagging of the MP3 could be automated.


Which version of ffmpeg?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: