Warning
These guidelines haven't been updated since 2016. Learn more…
Table of contents
| #!/bin/bash | |
| # brew install x265 | |
| # brew install ffmpeg | |
| # brew install youtube-dl | |
| # brew install imagemagick | |
| ID='U65_uY5N2WM' # YouTube video ID, i.e. https://www.youtube.com/watch?v={ID} | |
| # fetch the video file with youtube-dl |
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| #! /bin/bash -x | |
| VBR="2500k" | |
| FPS="30" | |
| QUAL="medium" | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" | |
| SOURCE="rtsp://xxx.xxx.xxx:554/Streaming/Channels/1" | |
| KEY="xxxxxxxxxxxxxxxx.xxx-xxx-qms4-emuc" | |
| #ffmpeg \ |
Warning
These guidelines haven't been updated since 2016. Learn more…
Table of contents
| #!/bin/bash | |
| # https://mtunn.wordpress.com/odroid-u2★セットアップ/radikoの録音・再生(archlinux)/ | |
| pid=$$ | |
| wkdir='/var/tmp' | |
| playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
| playerfile="${wkdir}/player.swf" | |
| keyfile="${wkdir}/authkey.png" | |
| auth1_fms="${wkdir}/auth1_fms_${pid}" | |
| auth2_fms="${wkdir}/auth2_fms_${pid}" |
| 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 | |
The -loop option is specific to the image file demuxer and gif muxer, so it can't be used for typical video files, but you can use the concat demuxer.
Make a text file. Contents of an example text file to repeat 4 times.
$ cat list.txt
file 'input.mp4'
| #!/bin/bash | |
| # Anh Nguyen <[email protected]> | |
| # 2016-04-30 | |
| # MIT License | |
| # This script takes in same-size images from a folder and make a crossfade video from the images using ffmpeg. | |
| # Make sure you have ffmpeg installed before running. | |
| # The output command looks something like the below, but for as many images as you have in the folder. |
| if [[ "$1" == *.mp4 ]] | |
| then | |
| /Users/me/bin/togif "$1" | |
| fi | |
| if [[ "$1" == *.png ]] | |
| then | |
| /Users/me/bin/topic "$1" | |
| fi |