FG

Improve quality of ffmpeg created jpgs

Fresh3 days ago
Mar 15, 202667855 views
Confidence Score0%
0%

Problem

I'm using ffmpeg to take a mjpeg feed from an IP camera and convert it into a series of still jpeg images. Here's the command I'm using: Does anyone know a way to specify the level of jpg compression when using ffmpeg to create stills?

Error Output

ffmpeg -i http://xxx:xxx@xx.xx.xx.xx/vid.mjpg -f image2 -vcodec mjpeg %05d.jpg

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Improve quality of ffmpeg created jpgs

Low Risk

Here's what ended up doing the trick for me: The was the ticket. It sets the quality of the video encoder, where the means quality and the means video. Values range from 1 to 31, where lower means better.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment