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
| for vid in *.mp4; do ffmpeg -i $vid -codec mjpeg -ss 4 -vframes 1 -q:v 1 ./covers/$vid.jpg; done |
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
| #!/bin/bash | |
| ffmpeg -y \ | |
| -ss 5 -i "elisabeth.mp4" \ | |
| -ss 0 -i "ryan.MOV" \ | |
| -ss 7.5 -i "cary.mp4" \ | |
| -ss 2.9 -i "jackie.MOV" \ | |
| -ss 9 -i "tess.MOV" \ | |
| -ss 9 -i "Water River Spirit Grace.m4a" \ | |
| -filter_complex " \ | |
| [0:v] setpts=PTS-STARTPTS, crop=608:720:in_w/2-out_w/2+100:100, scale=912:1080 [v0]; \ |
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
| # your youtube name/key | |
| KEY="1234-5678-9101-1121" | |
| # your rtsp url | |
| RTSP="rtsp://user:[email protected]:1234/cam/etc" | |
| # youtube rtmp url | |
| YTUBE="rtmp://a.rtmp.youtube.com/live2" | |
| ffmpeg \ |
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
| #!/bin/sh | |
| # use ffmpeg to concatenate all the mp4 files in the media directory | |
| # make file executable and run like this | |
| # ./make247.sh /path/to/media/folder | |
| # | |
| IN_DIR="$1"; | |
| if [ "$IN_DIR" = '' ] ; then | |
| IN_DIR="." | |
| fi | |
| for f in ${IN_DIR}/*.mp4; do echo "file '$f'" >> concat-list.txt; done |
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
| #!/bin/bash | |
| ############################### | |
| # Here You can Edit Your Data # | |
| ############################### | |
| LOG_LOCATION=/tmp | |
| ########################################## | |
| ##############END EDIT DATA############### | |
| ########################################## | |
| txtrst=$(tput sgr0) # Text reset | |
| txtred=$(tput setab 1) # Red Background |
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
| xvfb-run -s "-screen 0 1280x800x16" -e /dev/stdout -a /home/ivo/Desktop/foo.sh | |
| ./ffmpeg -r 30 -f x11grab -draw_mouse 0 -s 1280x800 -i :99 -c:v libvpx -quality realtime -cpu-used 0 -b:v 384k -qmin 10 -qmax 42 -maxrate 384k -bufsize 1000k -an screen.webm | |
| # foo.sh | |
| google-chrome --incognito --window-size=1280,800 --app=http://github.com | |
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
| #!/bin/sh | |
| sleep 5 | |
| ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log |
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
| #!/bin/bash | |
| ffmpeg \ | |
| -y \ | |
| -i input.wav \ | |
| -i paz.png \ | |
| -filter_complex "\ | |
| [1:v]scale=-1:480:flags=neighbor,loop=size=2:loop=-1[fg]; | |
| [0:a]showcqt=s=1280x720:axis_h=0:sono_h=0:basefreq=27.5:endfreq=1000.0[v]; | |
| [fg]drawtext=text='Primitive Rule':fontcolor=white:fontsize=72:font=Bebas Neue:x=(w-text_w)/2:y=(h-text_h)/2[fg]; |
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
| # Create from folder | |
| ffmpeg -framerate 1 -pattern_type glob -i '/tmp/ciao/*.png' -c:v libx264 -r 30 -pix_fmt yuv420p /tmp/out.mp4 | |
| # Repeat video until CTRL+c (is very dense! ) | |
| ffmpeg -stream_loop -1 -i /tmp/out.mp4 -c copy /tmp/out_repeat.mp4 |