Skip to content

Instantly share code, notes, and snippets.

@mancdevcarl
Last active December 17, 2015 23:49
Show Gist options
  • Save mancdevcarl/5692431 to your computer and use it in GitHub Desktop.
Save mancdevcarl/5692431 to your computer and use it in GitHub Desktop.
wf
find someDir/ -iname "*.flv" -exec ffmpeg -i {} -sameq -ar 22050 {}.mp4 ";" -ls
vlc * --sout '#transcode{vcodec=h264,vb=92,channels=1,ab=16,samplerate=1024,width=320}:standard{access=http,mux=ts,dst=:666/tv.mp4}' --random --sout-keep
awk -F'[ "]+' '$7 == "/" { ipcount[$1]++ }END { for (i in ipcount) {printf "%15s - %d\n", i, ipcount[i] } }' /var/log/apache2/access.log
ffmpeg -loop 1 -shortest -y -i img.jpg -i snd.wav -acodec copy -vcodec mjpeg out.avi
ls * |sort > play.txt
cat play.txt | while IFS= read -r f; do printf "%05d %s\n" "$RANDOM" "$f"; done | sort -n | cut -c7- >> play.m3u
sed -e 's/$/\nwf.mp4/' -i play.m3u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment