Commit 459e3ae2 authored by TheOuterLinux's avatar TheOuterLinux

...

parent 2eddd14c
###############################
# ffmpeg - Better quality GIF #
###############################
When you use 'ffmpeg -i input.mp4 output.gif', the animated GIF is very
grainy looking. You can use the following to get better quality without
increasing the file size by too much...
1. Get a color palette from the video:
ffmpeg -i <your_input.mkv> -filter_complex "fps=10;scale=480:-1:flags=lanczos,palettegen=stats_mode=full" palette.png
2. Convert video to animated GIF using color palette:
ffmpeg -i <your_input.mkv> -i palette.png -filter_complex "[0]scale=480:-1:flags=lanczos[scaled]; [scaled][1:v] paletteuse=dither=sierra2_4a" <output.gif>
######################################
# ffmpeg - Pushing desktop to webcam #
######################################
ffmpeg -f x11grab -r 15 -s 1280x720 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
......@@ -292,3 +292,6 @@ where="$1"; shift
IFS=+ curl "https://cht.sh/$where/$*"
}
#Create lists from multi-line output
function list() { awk 'BEGIN { ORS="" } { print p"'"'"'"$0"'"'"'"; p=", " } END { print "\n" }' ; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment