FFMPEG

1 min. read

Ffmpeg

Thumbnail:
http://blog.roberthallam.org/2010/06/extract-a-single-image-from-a-video-using-ffmpeg/
https://www.bugcodemaster.com/article/changing-resolution-video-using-ffmpeg

Filters
https://trac.ffmpeg.org/wiki/FancyFilteringExamples

Install

Convert

FFMPEG

Install

1
2
3
4
#!/bin/bash
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-libass --with-librsvg --with-libsoxr --with-libssh --with-tesseract --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-tools --with-webp --with-x265 --with-xz --with-zeromq --with-zimg

echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

ffmpeg -i movie.mov -vcodec copy -acodec copy out.mp4

mkdir -p out && for f in *.mov; do ffmpeg -i “$f” -c copy -movflags +faststart out/“${f%.mov}.mp4”; done

ffmpeg -i video_320x180.mp4 agif_320x180.gif -hide_banner

Loop on the first few seconds:
ffmpeg -t 2 -i MVI_6654.MOV secondtry.gif

Drop some frames:
ffmpeg -t 2 -i MVI_6654.MOV -r “15” thirdtry.gif

Thumbnail:
https://video.stackexchange.com/questions/4563/how-can-i-crop-a-video-with-ffmpeg

http://ffmpeg.org/ffmpeg-filters.html#crop

Tags:
#video #ffmpeg

FFMPEG

https://www.ffmpeg.org/ffmpeg-protocols.html

https://trac.ffmpeg.org/wiki/StreamingGuide

FFMPEG on Firebase Functions
https://medium.com/fact-tutorials/create-thumbnail-of-video-in-firebase-cloud-functions-f4f28eb5f251