this post was submitted on 01 Mar 2024
5 points (100.0% liked)

techsupport

2469 readers
10 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 8 months ago (2 children)

There isn't a lot of detail in your question, I'm trying to get a better understanding of what your trying to do as there might be a better tool than ffmpeg to do this. I'm thinking that ImageMagick and it's convert tool could be the best tool for the job.

Is there a specific reason for ffmpeg to be the program to manipulate the files?

Is the compression factor the only thing you want to change?

I have a camera that takes 40003000 pixel images, I'd your looking to reduce the file size, would it be acceptable to also use less pixels? Converting to say 20001500 which would still look great on a full HD screen of 1920*1080 pixels.

[–] sarmale 2 points 8 months ago

would it be acceptable to also use less pixels? Converting to say 20001500 which would still look great on a full HD screen of 1920*1080 pixels.

There is no reason for ffmpeg specifically, And yeah thats exactly the problem, I accidentaly set my phone to take 48MP images and now they are too big qnd Im looking to make them smaller, around 12MP

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

Ive downloaded imagemagick and used the convert program to make them smaller.

convert -quality 85 input.jpg output.jpg

should make it smaller, the 85 is a % factor which determines how much compression the algorithm uses. 100% is big files with high quality, the default is something like 92% .

convert -resize 1920x1080 -quality 85 input.jpg output.jpg

also adjusts the resulting image size.

For the image i used, it was 3840*2160 and 3.0 meg. When compressing with 50% quality, the file size was 850kb, when resizing down, it was 250kb,

How much each file size shrinks with % compression will likely depend on what the image is.