YouTube already have the Postcast support. It would be great to convert our episode audio files into mp4, then upload to YouTube automatically. For example, we could find or create a CLI to do it. Then create a GitHub workflow to trigger it.
I found some potential tools could help us:
The steps might be:
- Check if the episode exist in YouTube
- Convert the mp3 to mp4 with a picture
- Upload the mp4 file
See also the following example command:
ffmpeg -loop 1 -i logo.png -i osf2f-s01e21-richard.mp3 -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1:color=black,setsar=1,format=yuv420p" -shortest -fflags +shortest osf2f-s01e21-richard.mp4
YouTube already have the Postcast support. It would be great to convert our episode audio files into mp4, then upload to YouTube automatically. For example, we could find or create a CLI to do it. Then create a GitHub workflow to trigger it.
I found some potential tools could help us:
The steps might be:
See also the following example command:
ffmpeg -loop 1 -i logo.png -i osf2f-s01e21-richard.mp3 -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1:color=black,setsar=1,format=yuv420p" -shortest -fflags +shortest osf2f-s01e21-richard.mp4