Calculate file size for lossless encoding
Hi, I used the following command on a 155 minute grabbing: ffmpeg -video_size 1680x888 -framerate 25 -f x11grab -i :0.0+0,81 -c:v libx264rgb -crf 0 -preset ultrafast output.mkv Assuming, the RGB range is 8 + 8 + 8 bit or 3 byte, I calculate: 3 x 25 x 60 x 155 x 1680 x 888 = 1040.6 GByte But the file is only 93.7 GByte. How can that be ? -Ulf
On 10/1/23, Ulf Zibis <Ulf.Zibis@cosoco.de> wrote:
Hi,
I used the following command on a 155 minute grabbing:
ffmpeg -video_size 1680x888 -framerate 25 -f x11grab -i :0.0+0,81 -c:v libx264rgb -crf 0 -preset ultrafast output.mkv
Assuming, the RGB range is 8 + 8 + 8 bit or 3 byte, I calculate:
3 x 25 x 60 x 155 x 1680 x 888 = 1040.6 GByte
But the file is only 93.7 GByte.
How can that be ?
Encoder was specified. Lossless encoders can still compress data.
-Ulf _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Am 01.10.23 um 16:37 schrieb Paul B Mahol:
On 10/1/23, Ulf Zibis <Ulf.Zibis@cosoco.de> wrote:
Hi,
I used the following command on a 155 minute grabbing:
ffmpeg -video_size 1680x888 -framerate 25 -f x11grab -i :0.0+0,81 -c:v libx264rgb -crf 0 -preset ultrafast output.mkv
Assuming, the RGB range is 8 + 8 + 8 bit or 3 byte, I calculate:
3 x 25 x 60 x 155 x 1680 x 888 = 1040.6 GByte
But the file is only 93.7 GByte.
How can that be ? Encoder was specified. Lossless encoders can still compress data.
So here it compresses with factor ~11, wow, great performance for ultrafast. -Ulf
On 10/1/2023 8:41 AM, Ulf Zibis wrote:
So here it compresses with factor ~11, wow, great performance for ultrafast.
Depends a lot on the content, of course. One of the great things, compression-wise, with screen grabs is that there is usually very little to no change frame-to-frame over most of the screen, and that makes for much lower bandwidth (which is recording those changes). Later, z!
Am 01.10.23 um 18:04 schrieb Carl Zwanzig:
On 10/1/2023 8:41 AM, Ulf Zibis wrote:
So here it compresses with factor ~11, wow, great performance for ultrafast.
Depends a lot on the content, of course. One of the great things, compression-wise, with screen grabs is that there is usually very little to no change frame-to-frame over most of the screen, and that makes for much lower bandwidth (which is recording those changes).
In my case I grabbed a full screen movie, so there would have been a, at minimum slight, full screen change from frame to frame, so I'm really impressed by that factor. -Ulf
Am 01.10.23 um 15:41 schrieb Ulf Zibis:
Hi,
I used the following command on a 155 minute grabbing:
ffmpeg -video_size 1680x888 -framerate 25 -f x11grab -i :0.0+0,81 -c:v libx264rgb -crf 0 -preset ultrafast output.mkv
Assuming, the RGB range is 8 + 8 + 8 bit or 3 byte, I calculate:
3 x 25 x 60 x 155 x 1680 x 888 = 1040.6 GByte
But the file is only 93.7 GByte.
How can that be ?
how can it be that a zip is smaller when it still contains bit-by-bit all data?
participants (4)
-
Carl Zwanzig -
Paul B Mahol -
Reindl Harald -
Ulf Zibis