Skip to content

Instantly share code, notes, and snippets.

@neilghosh
Last active May 9, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilghosh/234e608939eff8395211789f3bf0d48b to your computer and use it in GitHub Desktop.
Save neilghosh/234e608939eff8395211789f3bf0d48b to your computer and use it in GitHub Desktop.
wget -O podcast.xml http://www.podcasts.com/rss_feed/4b07c3e0d7b52f436aba7c07bb3638a5
wget https://s3.amazonaws.com/podcasts-image-uploads/WOC2.png
grep -e '[^"]*\.mp3' podcast.xml | grep -o '[^"]*\.mp3' '-' >> list.txt
wget -i list.txt
for i in *.mp3; do
[ -f "$i" ] || break
echo $i
ffmpeg -loop 1 -i WOC2.png -i $i -c:a copy -c:v libx264 -shortest $i.mp4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment