The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Extract A Single Frame From A Video With ffmpeg

TODO: Pull subtitle into page object
Code
ffmpeg hide_banner -loglevel panic \
-ss 2.23 -i input.mp4 -frames:v 1 \
-y output.jpg

Notes

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Extract A Single Frame From A Video With ffmpeg


-- code
-- bash

ffmpeg hide_banner -loglevel panic \
-ss 2.23 -i input.mp4 -frames:v 1 \
-y output.jpg


-- notes

- `-hide_banner`` and `-loglevel panic``
turn off the output unless something 
goes wrong. Basically they put ffmpeg into 
quite mode

- `-ss`` is for start second. It's a floating
point/decimal number for where to extract the
frame from

- `-i input.mp4`` identifies the input file

- `-frames:v 1` limits the extraction to a 
single frame

- `-y` is used to overwrite the output file
if it already exists. (Otherwise ffmpeg
asks if you want to overwrite every time it's
run)

- `output.jpg` is the output file


-- ref
-- url: https://ffmpeg.org/faq.html#How-do-I-encode-movie-to-single-pictures_003f


-- categories
-- ffmpeg 

-- metadata
-- date: 2023-04-08 14:01:22
-- id: 2o9dlfth
-- site: aws
-- type: post
-- status: published