I’ve done some recording with my Dji pocket 2 in 4k and the raw file size is around 8gb. When I put the file into Shotcut and export using “youtube” preset with 3840x2160 pixels + 85% quality, the file grows to over 20gb.
Anyone know what settings I need to use to get my file to be the same quality as my raw file with the same size? I did something like 75% quality and the outcome was way worse then my raw files quality and the file was bigger.
You don’t need 85% quality, nor 75%. You normally won’t see any quality loss down to 60…65%.
What video mode do you use?
Do you use a lot of filters like sharpening, color settings etc.?
This could increase file size quite a lot. What format/codec is your raw material?
This is normal behavior. When you edit video, it must be re-encoded, and most compression loses some quality due to the nature of how they work to compress. Every time you recompress you lose some quality. But if you compress too little to retain more quality it will create a bigger file. There are some other tools that can cut video without recompression, but they have many limitations and caveats.
Honestly i dont see much of a quality loss if i re-encode in 75% quality. But it all depends on the quality of the original material and the codec and settings it was recorded in. Also 4K with 60 fps will get you already quite huge files normally, if the size was rather small it must have been compressed a lot which leads to quality loss. How long is the orig. video?
I’m looking for the properties panel in Shotcut. It looks like this:
I looked up the specs for your camera, and I found this:
3840 x 2160p at 24/25/30/48/50/60 fps (100 Mb/s MP4 via H.264/AVC, MPEG-4)
2720 x 1530p at 24/25/30/48/50/60 fps (100 Mb/s H.264/AVC, MPEG-4)
1920 x 1080p at 24/25/30/48/60 fps (100 Mb/s MP4 via H.264/AVC, MPEG-4)
Since you are targeting the same size file, you could try to use average bitrate instead of quality based. That will result in a more predictable size. Here is an example - be sure to use two-pass for best quality:
I exported a video with your settings and it worked out great! Weird thing is the video quality looks better than my other exports and the file is now only a little bit over 4gb. While the raw file is a little bit over 5gb. How does that work out?
Do you think I need to tweak anything else to make it at least the raw file size? Or maybe changing 80M to 100M will do the trick?
The math checks out. It sounds like 100M would meet your needs. However, with a dual pass encode, I would expect the Shotcut export to be able to match the original quality with a much smaller size. I suspect that if you were to do an export at 60M, you would not be able to tell the difference in the quality.
I don’t see the point of getting Shotcut/ffmpeg to munge your video when YouTube is going to re-encode anyway. File size should be roughly the same as source files provided not a bunch of filters on the input video.