Reducing video file size

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Reducing video file size

Morten W. Petersen
Hi.

I'm wondering what the options are for reducing video size.

Encoding in black and white / low color depth, reducing the resolution,
removing audio etc. are all options I can consider using.

Regards,

Morten
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Nicolas George
Morten W. Petersen (12019-11-04):
> I'm wondering what the options are for reducing video size.
>
> Encoding in black and white / low color depth, reducing the resolution,
> removing audio etc. are all options I can consider using.

Remove the audio and the video streams completely, the size of the file
will be 0, you cannot beat that.

Seriously, if you do not say what you want to keep in the video, this is
the best answer.

Regards,

--
  Nicolas George

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Michael Shaffer
In reply to this post by Morten W. Petersen
Reduce the frame rate.

On Mon, Nov 4, 2019 at 10:05 AM Morten W. Petersen <[hidden email]>
wrote:

> Hi.
>
> I'm wondering what the options are for reducing video size.
>
> Encoding in black and white / low color depth, reducing the resolution,
> removing audio etc. are all options I can consider using.
>
> Regards,
>
> Morten
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
In reply to this post by Nicolas George
I want to keep the video, the moving pictures.

How detailed is not decided.

Regards,

Morten

man. 4. nov. 2019, 16:22 skrev Nicolas George <[hidden email]>:

> Morten W. Petersen (12019-11-04):
> > I'm wondering what the options are for reducing video size.
> >
> > Encoding in black and white / low color depth, reducing the resolution,
> > removing audio etc. are all options I can consider using.
>
> Remove the audio and the video streams completely, the size of the file
> will be 0, you cannot beat that.
>
> Seriously, if you do not say what you want to keep in the video, this is
> the best answer.
>
> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Nicolas George
Morten W. Petersen (12019-11-04):
> I want to keep the video, the moving pictures.
>
> How detailed is not decided.

Then decide. Nobody can do it for you, and there is no answer without
that information.

> man. 4. nov. 2019, 16:22 skrev Nicolas George <[hidden email]>:

Top-posting is forbidden on this list; do not do it again if you want
help; look it up if needed.

Regards,

--
  Nicolas George

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
I find your feedback annoying. Please stop.

man. 4. nov. 2019, 17:01 skrev Nicolas George <[hidden email]>:

> Morten W. Petersen (12019-11-04):
> > I want to keep the video, the moving pictures.
> >
> > How detailed is not decided.
>
> Then decide. Nobody can do it for you, and there is no answer without
> that information.
>
> > man. 4. nov. 2019, 16:22 skrev Nicolas George <[hidden email]>:
>
> Top-posting is forbidden on this list; do not do it again if you want
> help; look it up if needed.
>
> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Carl Zwanzig
In reply to this post by Nicolas George
On 11/4/2019 8:01 AM, Nicolas George wrote:
> Morten W. Petersen (12019-11-04):
>> I want to keep the video, the moving pictures.
>> How detailed is not decided.

> Then decide. Nobody can do it for you, and there is no answer without
> that information.

You also haven't told us about the original- resolution, frame rate,
encoding/compression/etc. All of them are information; you need to decide
what info can be thrown away.

Resolution
Frame rate
Color encoding
Compression/encoding
Audio bit rate & compression
(others)

Later,

z!

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
You are unable to understand what I ask for, and send an email 2 minutes
after I replied to Nicholas who gave a similar answer, when his lack of
intelligence or good behaviour turned annoying.

I have gotten 1 good answer, 2 bad ones, and 1 case of annoying behaviour
so far.

-Morten

man. 4. nov. 2019, 17:16 skrev Carl Zwanzig <[hidden email]>:

> On 11/4/2019 8:01 AM, Nicolas George wrote:
> > Morten W. Petersen (12019-11-04):
> >> I want to keep the video, the moving pictures.
> >> How detailed is not decided.
>
> > Then decide. Nobody can do it for you, and there is no answer without
> > that information.
>
> You also haven't told us about the original- resolution, frame rate,
> encoding/compression/etc. All of them are information; you need to decide
> what info can be thrown away.
>
> Resolution
> Frame rate
> Color encoding
> Compression/encoding
> Audio bit rate & compression
> (others)
>
> Later,
>
> z!
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Moritz Barsnick
In reply to this post by Morten W. Petersen
On Mon, Nov 04, 2019 at 17:14:07 +0100, Morten W. Petersen wrote:
> I find your feedback annoying. Please stop.

You asked for feedback, please don't tell anyone to stop. ;-)

Honestly, you are asking about basics of video encoding in general, not
about ffmpeg. There are much better places to read up on this.

This is why your input is too hazy:

We might tell you that you can use a more efficient codec, such as
HEVC. You might come back and tell us "my device can't play that" or
"encoding takes way too long".

We might tell you to reduce resolution. You might come back and tell us
"but all the details are gone".

We might tell you to reduce the bitrate. You might come back and tell us
"but the quality is really horrible".

You need to be more precise in what you want to achieve (and perhaps
why).

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

kumowoon1025
In reply to this post by Morten W. Petersen
Well your first post kinda reads more like a Facebook status update more than a question, so...
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Noeck
In reply to this post by Carl Zwanzig
As others pointed out, this very much depends on what you want to
achieve (besides a small file size). But I try to offer a starting point
for you to try and find your own compromise of size and quality.

Usually, I would use a resolution of 1920x1080 (HD), but 1280x720 might
be an option to reduce the size. A frame rate of 25 frames per second
could be enough. But with typical codecs you will not get half the file
size by using half the frame rate. So 720p and 25 fps could be a
starting point. What is more important to you: a high resolution or a
smoothly moving image?

Then the vp9 codec (libvpx-vp9) and opus audio does a good job regarding
bitrate and a high CRF value reduces file size. Just try 32 and have a
look if you can tolerate the quality reduction and file size.

And only as a last resort go below a 480 resolution and 25 fps.
Audio bitrate is typically much smaller than video and there is not a
log to gain here. But with the opus codec you can go as low as 64kbit/s
if need be.

Of course there are many more ways to reach a small file size. The
numbers above are in the ball park of what could be reasonable for a
small web-quality video.

Best,
Daniel


> Resolution
> Frame rate
> Color encoding
> Compression/encoding
> Audio bit rate & compression
> (others)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
In reply to this post by Moritz Barsnick
Which codec gives the lowest size?

Let me ask in a different way, how can I encode a video to the smallest
possible size, while still discerning some movement?

Regards,

Morten

man. 4. nov. 2019, 17:29 skrev Moritz Barsnick <[hidden email]>:

> On Mon, Nov 04, 2019 at 17:14:07 +0100, Morten W. Petersen wrote:
> > I find your feedback annoying. Please stop.
>
> You asked for feedback, please don't tell anyone to stop. ;-)
>
> Honestly, you are asking about basics of video encoding in general, not
> about ffmpeg. There are much better places to read up on this.
>
> This is why your input is too hazy:
>
> We might tell you that you can use a more efficient codec, such as
> HEVC. You might come back and tell us "my device can't play that" or
> "encoding takes way too long".
>
> We might tell you to reduce resolution. You might come back and tell us
> "but all the details are gone".
>
> We might tell you to reduce the bitrate. You might come back and tell us
> "but the quality is really horrible".
>
> You need to be more precise in what you want to achieve (and perhaps
> why).
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Carl Zwanzig
In reply to this post by Morten W. Petersen
On 11/4/2019 8:22 AM, Morten W. Petersen wrote:
> You are unable to understand what I ask for, and send an email 2 minutes
> after I replied to Nicholas who gave a similar answer, when his lack of
> intelligence or good behaviour turned annoying.

a) email is not synchronous and replies overlap.

b) we are "unable to understand" because you haven't stated a question that
can be answered- you kind of asked the question "how can I make my car go
faster" without even telling us the make/model of the car.

> I have gotten 1 good answer, 2 bad ones, and 1 case of annoying behaviour
> so far.

Welcome to the ffmpeg-user mailing list; the technical content is usually
quite good, the wording can be a bit rough.


And you've already been asked not to "top-post" on this list; continuing to
do that suggests that you're not interested in actually engaging with the list.

(in a top-posted reply)
On 11/4/2019 8:36 AM, Morten W. Petersen wrote:
 > Let me ask in a different way, how can I encode a video to the smallest
 > possible size, while still discerning some movement?

set the resolution to 1x1 and the frame rate to 1 per second; that'll be a
really small file but completely useless. What's the minimum resolution you
can tolerate? What's the minimum frame-rate that won't lose information.
Maybe you need to only save the parts with detectable motion and discard the
rest.



z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Reindl Harald
In reply to this post by Morten W. Petersen


Am 04.11.19 um 17:22 schrieb Morten W. Petersen:
> You are unable to understand what I ask for, and send an email 2 minutes
> after I replied to Nicholas who gave a similar answer, when his lack of
> intelligence or good behaviour turned annoying.
>
> I have gotten 1 good answer, 2 bad ones, and 1 case of annoying behaviour
> so far.

by the lack of
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise in your
inital mail it's simply mpossible that you got any good answer which
didn't origin in a crystal ball

> man. 4. nov. 2019, 17:16 skrev Carl Zwanzig <[hidden email]>:
>
>> On 11/4/2019 8:01 AM, Nicolas George wrote:
>>> Morten W. Petersen (12019-11-04):
>>>> I want to keep the video, the moving pictures.
>>>> How detailed is not decided.
>>
>>> Then decide. Nobody can do it for you, and there is no answer without
>>> that information.
>>
>> You also haven't told us about the original- resolution, frame rate,
>> encoding/compression/etc. All of them are information; you need to decide
>> what info can be thrown away.
>>
>> Resolution
>> Frame rate
>> Color encoding
>> Compression/encoding
>> Audio bit rate & compression
>> (others)

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
In reply to this post by Noeck
Hi Daniel.

I would say a smoother flow is more important than resolution.

For now.

-Morten

man. 4. nov. 2019, 17:39 skrev Noeck <[hidden email]>:

> As others pointed out, this very much depends on what you want to
> achieve (besides a small file size). But I try to offer a starting point
> for you to try and find your own compromise of size and quality.
>
> Usually, I would use a resolution of 1920x1080 (HD), but 1280x720 might
> be an option to reduce the size. A frame rate of 25 frames per second
> could be enough. But with typical codecs you will not get half the file
> size by using half the frame rate. So 720p and 25 fps could be a
> starting point. What is more important to you: a high resolution or a
> smoothly moving image?
>
> Then the vp9 codec (libvpx-vp9) and opus audio does a good job regarding
> bitrate and a high CRF value reduces file size. Just try 32 and have a
> look if you can tolerate the quality reduction and file size.
>
> And only as a last resort go below a 480 resolution and 25 fps.
> Audio bitrate is typically much smaller than video and there is not a
> log to gain here. But with the opus codec you can go as low as 64kbit/s
> if need be.
>
> Of course there are many more ways to reach a small file size. The
> numbers above are in the ball park of what could be reasonable for a
> small web-quality video.
>
> Best,
> Daniel
>
>
> > Resolution
> > Frame rate
> > Color encoding
> > Compression/encoding
> > Audio bit rate & compression
> > (others)
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

kumowoon1025
In reply to this post by Morten W. Petersen
> Which codec gives the lowest size?
>
> Let me ask in a different way, how can I encode a video to the smallest
> possible size, while still discerning some movement?


Now we’re getting somewhere. x264/x265 are like the de facto gold standards for the software encoders for the ITU/ISO/IEC codecs, h.265 is more efficient wrt file size, and vpx is comparable if you need/prefer OAM family.

It still sounds like all you want to do is compress the video until it is fubar, is there a maximum limit on the size that you need it to be? Because then multi-pass encoding could be an option.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
Hm. Well is it possible to get down to 6 MB per minute, 1 MB per 10 seconds?

Regards,

Morten

man. 4. nov. 2019, 17:48 skrev Ted Park <[hidden email]>:

> > Which codec gives the lowest size?
> >
> > Let me ask in a different way, how can I encode a video to the smallest
> > possible size, while still discerning some movement?
>
>
> Now we’re getting somewhere. x264/x265 are like the de facto gold
> standards for the software encoders for the ITU/ISO/IEC codecs, h.265 is
> more efficient wrt file size, and vpx is comparable if you need/prefer OAM
> family.
>
> It still sounds like all you want to do is compress the video until it is
> fubar, is there a maximum limit on the size that you need it to be? Because
> then multi-pass encoding could be an option.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
In reply to this post by kumowoon1025
😄😊

Yeah, you have half a point there.

Regards,

Morten


man. 4. nov. 2019, 17:55 skrev Ted Park <[hidden email]>:

> Well your first post kinda reads more like a Facebook status update more
> than a question, so...
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

kumowoon1025
In reply to this post by Morten W. Petersen
> Hm. Well is it possible to get down to 6 MB per minute, 1 MB per 10 seconds?


Oookay so 1MB = 1000KB = 976.5625KiB = 7812.5kbps.. Odd numbers @_@ is this for the whole file? Or video only?

That sounds like a pretty typical target for 1080p, but like others have said you’ll have to try out all the options you listed that can use and see what the trade-offs are. If you know you definitely prioritize “x” then you can eliminate some of the options.

For example, for multi-pass encodings, the bitrate can vary so while it may be 6MB per min at one point in the video, it might be over 1MB per 10 seconds in some other part.

Also, I’m not sure about this but changing to grayscale might not decrease the bitrate as much as you’d expect, depending on the source format.

What is the source actually? I had thought you were trying to transcode a file, have I completely misunderstood? (Like do you have an intermediate format from a 4K 60fps sequence job or something other?)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Reducing video file size

Morten W. Petersen
There are different sources, with varying existing encodings, and
resolutions. So those numbers were just thrown out there.

How about 100KB per 10 seconds, or 1MB per minute? What's possible to
squeeze in, or out there?

Regards,

Morten

man. 4. nov. 2019, 19.18 skrev Ted Park <[hidden email]>:

> > Hm. Well is it possible to get down to 6 MB per minute, 1 MB per 10
> seconds?
>
>
> Oookay so 1MB = 1000KB = 976.5625KiB = 7812.5kbps.. Odd numbers @_@ is
> this for the whole file? Or video only?
>
> That sounds like a pretty typical target for 1080p, but like others have
> said you’ll have to try out all the options you listed that can use and see
> what the trade-offs are. If you know you definitely prioritize “x” then you
> can eliminate some of the options.
>
> For example, for multi-pass encodings, the bitrate can vary so while it
> may be 6MB per min at one point in the video, it might be over 1MB per 10
> seconds in some other part.
>
> Also, I’m not sure about this but changing to grayscale might not decrease
> the bitrate as much as you’d expect, depending on the source format.
>
> What is the source actually? I had thought you were trying to transcode a
> file, have I completely misunderstood? (Like do you have an intermediate
> format from a 4K 60fps sequence job or something other?)
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
12