Skip to content

Instantly share code, notes, and snippets.

View neilghosh's full-sized avatar
🇮🇳

Neil Ghosh neilghosh

🇮🇳
View GitHub Profile
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
@neilghosh
neilghosh / ffmpeg_timlapse.sh
Last active April 29, 2020 18:04
Stitches all JPG files in the folder to a video , rotates it, cropts it, trims it and plays preview.
ffmpeg -r 5 -pattern_type glob -i '*.JPG' -s hd1080 -pix_fmt yuv420p -vcodec libx264 -crf 18 -preset slow timelapse.mp4
ffmpeg -i timelapse.mp4 -vf “rotate=-6*PI/180” out.mp4
ffmpeg -i out.mp4 -filter:v "crop=in_w/2:in_h/1.7:in_w/20:in_h/5" -c:a copy out1.mp4
ffmpeg -ss 00:00:00.5 -i out1.mp4 -c copy VideoClip.mp4
ffplay VideoClip.mp4
@neilghosh
neilghosh / listfiles.sh
Created September 28, 2020 08:30
List Files in A directory
# list foo the xml file names without the extention
find *.xml -printf "%f\n" | sed -e 's/\.xml$//'