This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list foo the xml file names without the extention | |
find *.xml -printf "%f\n" | sed -e 's/\.xml$//' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Sort the given array by their frequency and then by their own value | |
*/ | |
import java.io.*; | |
import java.util.*; | |
class SortByValueThenKey { | |
public static void main(String[] args) { | |
Map<Integer, Integer> ageFreq = new HashMap<>(); |
OlderNewer