kb

View the Project on GitHub smcnally/kb

ffmpeg recipes

#ffmpeg #blender #videoediting

Working with webm video / animation files

make gifs, convert formats and containers, scale, slow, speed

ffmpeg -i 0002-0418.mkv -filter:v "setpts=0.7*PTS" Buckets-Promo-2x.mp4

16:9 Resolutions

[[Distributed Teams]]

ffmpeg -i 0001-1358.mkv -vf scale=iw/2:-1,setsar=1:1 210913-Dusky_Crows.mp4

ffmpeg -i Esquire-Moovember-Challeng.3PTS.mp4 -vf "fps=8,scale=512:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 Esquire-Moovember-Challeng.3PTS.gif

ffmpeg -i 1842-2919.mkv -filter:v "setpts=0.9*PTS" Esquire-Moovember-Challeng.9PTS.mp4

220107 - ## 6:28PM - [aside]

tail ~/.bash_history uniq

but that’s zoomed-in [[You got your Analog in my Digital]] and we need to zoom out -

220107 - ## 6:06PM - More-than enough to edit from here

* still plenty of bookmarks [[ToDo]]
* but make what's already here tight first 
* #PrematureOptimization : #GetV1Live and follow up 

ffmpeg -i 0002-0418.mkv -filter:v "setpts=0.7*PTS" Buckets-Promo-2x.mp4

presume this is an example https://cldup.com/8ZHnHGRyMt.mp4

ffmpeg -i 0496-1700.mkv -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 LeadGen_Loyalty-Samples.gif

ffmpeg -i 0496-1700.mkv LeadGen_Loyalty-Samples.mp4

ffmpeg -y -i video.webm -vf palettegen palette.png

then

ffmpeg -y -i video.webm -i palette.png -filter_complex paletteuse -r 10 animation.gif

-vcodec libwebp

220107 - ## 5:48PM

i don’t believe i got webm or webp working

https://i.giphy.com/media/FcuiZUneg1YRAu1lH2/giphy.webp

ffmpeg -i 0002-0289.mkv -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 OliveBob-600w.gif

ffmpeg -i 0568-0989.mkv -filter:v "setpts=0.7*PTS" ICB-Buckets-Promo-2x.mp4

ffmpeg -i ICB-Buckets-Promo-2x.mp4 -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 ICB-Buckets-Promo-2x-600w.gif

ICB-Overview-NoTitles-640 - lede

ffmpeg -i Esquire-Dorco-2.mkv -filter:v "setpts=0.3*PTS" Esquire-Dorco-3x.mp4

ffmpeg -i Esquire-Dorco-3x.mp4 -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 Esquire-Dorco-3x-600w.gif

ffmpeg -i ICB-Overview-NoTitles-640 -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 Esquire-StateFarm-3x-600w.gif

ICB-Overview-NoTitles-640 [[~/Downloads/About_smcnally/ContentTools]]

Esquire-StateFarm-Unscramble-640b.mp4

ffmpeg -i Esquire-StateFarm.mkv -filter:v "setpts=0.3*PTS" Esquire-StateFarm-3x.mp4

ffmpeg -i Esquire-StateFarm-3x.mp4 -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 Esquire-StateFarm-3x-600w.gif

220107 - ## 5:53PM [aside] -

* who's grabbing my right-click in ToDo workspace? 
* and why doesn't it make getting it back straightforward  
* bookmarks are cool 
  * later -- have screenshots 
  * what's linux got to do with it? 

you’re stuck in the air not knowing where you are and somehow this is my issue?

https://meanbusiness.com/wp-content/uploads/2021/08/Cosmo-Dorco-2x-600w.gif

Cosmo-Dorco-2.mkv – first 25 secs

ffmpeg -i Cosmo-Dorco-2xb.mp4 -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 Cosmo-Dorco-2x-600w.gif

ffmpeg -i EsqOnMSN-EmmyGame-Share-Skype.mkv -filter:v "setpts=0.5*PTS" EsqOnMSN-EmmyGame-Share-Skype-2x-Speed.mp4

Rearrange-ScarJo-Faster.mkv Esquire-Cosmo-Northwell-HRBlock-Skype.mkv

Esq State Farm - 2x

https://cldup.com/__mMNKgjwR.mp4

https://cldup.com/oTI2-TDst4.mp4

ffmpeg -r 10 -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4

ffmpeg -r 10 -i Skype-468x60.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" Skype-468x60_unit.mp4

Esquire-Dorco-2

https://cloudup.com/cg5-9t3EFVv

Game Play and revenue integration examples:

https://cloudup.com/cg5-9t3EFVv

ffmpeg -i ICB-Overview-Titles.mkv -vf scale=500:-1,setsar=1:1 ICB-Overview-Titles.mp4

ffmpeg -i ICB-Rearrange-ScarJo-Titles.mkv -vf scale=520:-1,setsar=1:1 ICB-Rearrange-ScarJo-Titles.mp4

ffmpeg -i ICB-Overview-Titles.mkv -vf "fps=8,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 ICB-Overview-Titles-600w.gif