~stuff
34 itemsDownload ./*

34 itemsDownload ./*

..
AnaAI-nsfw.url
TwilyApp.url
ana-ougmegle.url
anacam-adultery~.$
anacam-links.url
caramelldansen.url
chatnicks.png
dysphoria-spotify-playlist.url
euphoria-spotify-playlist.url
ffmpeg-gif-record
habitat-spotify-playlist.url
homepage.webm
linux-tools.jpg
mirrorflipnoise.mp4
new-linux-prep
newstartfile3.blend
newstartfile3.mp4
onedrivesub.vbs
openbox-size-hint-patch
pick-your-drug.url
scrot-video
serenity-spotify-playlist.url
streamit
twily-stream-service
twily.2024.nsfw.gif
twily.deviantart.url
twily.gif
twily.screenfetch.png
twily.webm
twilyScheme.png
twilypastes.url
unicode_list
void2.url
water_fantasy_art_artwork_huts_2560x1440_....


stuffffmpeg-gif-record
3 434•  9 years ago•  DownloadRawClose
9 years ago•  3 434

{}
# Record to MKV using ffmpeg
# http://twily.info/screencast#Other
# (No need to convert to webm)
sh ./screencast -k true

# Trim MKV to loop (Optional)
# http://superuser.com/questions/138331/using-ffmpeg-to-cut-up-video
ffmpeg -y -i out.mkv -ss 00:00:01.0 -t 00:00:2.5 trim.mkv

# Preview MKV looped
mpv trim.mkv -loop inf
mpv out.mkv -loop inf

# Make Palette from MKV
# http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality
# http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
# https://ffmpeg.org/ffmpeg-filters.html#palettegen
ffmpeg -y -i trim.mkv -vf palettegen=stats_mode=diff palette.png
ffmpeg -y -i out.mkv -vf palettegen=stats_mode=diff palette.png

# Make GIF using Palette
ffmpeg -y -i trim.mkv -i palette.png -lavfi paletteuse=dither=none -r 12 out.gif
ffmpeg -y -i out.mkv -i palette.png -lavfi paletteuse=dither=none -r 12 out.gif

# Clean
rm -f {out.mkv,trim.mkv,palette.png} && mv -i out.gif twily.gif

Top
©twily.info 2013 - 2024
twily at twily dot info



2 152 476 visits
... ^ v