Automating turning podcast MP3s into YouTube uploads
August 11, 2016 9:49 AM   Subscribe

Any recommendations on the best way to have a Wordpress podcast blog turn its MP3s into movie content that is then uploaded to a YouTube channel?

I've seen a lot of websites that promise to do this when you manually upload your files. But I'm planning on writing a server-side script to do it without human activity.

My plan was to have some Linux program convert each MP3 into a movie format, then upload it through the YouTube API. Is this doable and does anyone know from experience what the best format or tools for this would be? And if YouTube's API is cool with this?

(Caveats: Won't be using any desktop ones like Handbrake or Quicktime -- this is just for running as an automated Dreamhost process. Also I see in an earlier Ask Metafilter post that someone recommended going with Soundcloud instead of YouTube but in this case the client insists on YouTube)

Any help much appreciated.
posted by johngoren to Computers & Internet (4 answers total) 1 user marked this as a favorite
 
The conversion can probably be scripted with FFmpeg. Here's an example from a mailing list that puts a jpg as the visual track: https://ffmpeg.org/pipermail/ffmpeg-user/2012-June/007120.html

Not sure about the YouTube API, I haven't worked with it, but it's gotta be possible.
posted by ndfine at 10:54 AM on August 11, 2016


Response by poster: Cool.
posted by johngoren at 1:44 AM on August 12, 2016


Response by poster: So far so good. For anyone else who has this question, I'm getting O.K. results with

ffmpeg -i backgroundImage.jpg -i podcast.mp3 video.flv

although while the video plays on my desktop, YouTube is rejecting it when it reaches 100 percent processing. I will try some other options and codecs.
posted by johngoren at 4:26 AM on August 12, 2016


Best answer: For future reference, this formula is what finally worked for me after my Quicktimes and MP4s were rejected many times by YouTube's processing.

ffmpeg -loop 1 -framerate 2 -i input.png -i audio.ogg -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv

When they say pay attention to these H.264 guidelines they mean it.
posted by johngoren at 6:48 AM on August 12, 2016


« Older Wedding spot near Beacon NY   |   A Pox On Knox - Mefite investigators, have at it! Newer »
This thread is closed to new comments.