Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Apr 2021
Posts: 11
|
100GB Blu-ray compression to 50GB(calculating)
Hello,
I'm trying to compress a the movie that i own for The Lion Kind 2019. I have backed up all of its content to my computer and saw the bitrate of it. The thing is my calculations of reducing it has been wrong and it costed me long night of electricity... I want to fit it into a 50GB disc which as know can only be filled up with 46.1GB total MAX. I simply just want to my own subtitles to the movie and keep all it's menus and everything. What are the necesarry parameters for my to include on my calculations ? I don't want to touch anything else rather then the bitrate. All HDR metadata and all everything will remain the same, just a diffrent bitrate parameter that will fit a 50GB of disc.. The thing is, I have 35 more physical movies to do it on, so how do i make my calculations precise? I have uploaded the BDINFO report here: https://pastebin.com/P7vdbX4B Thanks in advance and please, I would kindly request not to respong with negative comments as..I do am just need some guidings and help thats all.. Last edited by infinitesyrup; 6th January 2026 at 14:43. |
|
|
|
|
|
#2 | Link |
|
Registered User
Join Date: Oct 2012
Posts: 8,623
|
don't forget that there is like 8000kbit audio in there so halving the bit rate of the video stream will not even remotely get you close to where you want to be.
so it is data you know that stays as is 45gb minus that audio und other stuff and here you start to go. |
|
|
|
|
|
#3 | Link | |
|
Registered User
Join Date: Apr 2021
Posts: 11
|
Quote:
How is calculation though needs to be done? I tried any Bitrate calculator software that i found here, none of them is for Blu-ray stracture.. |
|
|
|
|
|
|
#5 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 675
|
You can try my old bitrate calculator. Unfortunately, it doesn't support multiple audio tracks, nor has any concept of Blu-ray structure. Perhaps work out just the video bitrate, adding the size of the audio tracks manually, say with Windows Calculator, to get something below your 46 GB target, to leave space for overhead.
https://github.com/GeoffreyAA/bitme |
|
|
|
|
|
#6 | Link |
|
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 2,037
|
BD-50 = BD-R 50: 24.438.784 Sectors * 2.048 Bytes/Sector = 50.050.629.632 Bytes * 8 bits/Byte = 400.405.037.056 bits
BD-RE50: 23.652.352 Sectors * 2.048 Bytes/Sector = 48.440.016.896 Bytes * 8 bits/Byte = 387.520.135.168 bits - UDF 2.50 Margin (491 Sectors) - BD Folder Structure Files Overhead -0,05% - Safety Margin (-2%) - .m2ts Container overhead (-4,75%) = Available Disc Space (~373.000.000.000 / 360.000.000.000 bits) Add all Tracks of Audio Bitrates (this is the 2nd place to shave off bits) Add all Tracks of Subpicture Bitrates (6300bps each) Multiply them with Feature Playing Time ???? s = Feature Audio+Sub Bit Budget Add all Tracks of Menu Audio Bitrates Add all Tracks of Menu Subpicture Bitrates (6300bps each) Add Menu Video Bitrates () Multiply them with Menu Playing Time ?? s = Menu Bit Budget Available Disc Space -Feature Audio+Sub Bit Budget -Menu Bit Budget = Feature Video Bit Budget Feature Video Bit Budget / Feature Playing Time = Remaining Video Bitrate, the first place where you intend to shave off bits. As huhn mentioned, you will be having a hard time to get this stuffed into a 50GB disc while leaving high-bitrate audio untouched. Ah, just read the BDInfo report. 00055.m2ts had used 68,77Mbps in total, 54.29Mbps for HEVC Video. Should be possible though.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 7th January 2026 at 02:40. |
|
|
|
|
|
#7 | Link | |||||||
|
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,378
|
Quote:
![]() In this case the difference is that 1 PCM 24bit 48000Hz audio track is 1152 kbit/s, so if you have 8 tracks you have 8*1152 which is 9216 kbit/s, but from the GUI you can only choose up to 8 Mbit/s. This is why the actual size is off. Digging in the source, I noticed that this was set in BitMeDlg.cpp, so I changed it to: Quote:
I've also changed Quote:
![]() The rest of the time was me trying to figure out how to build on Visual Studio 2026 as I had to remove the references to Build.c from BitMe.vcxproj as it used to be Radiance -> Build.c -> Build.obj but that's no longer allowed so obviously it was failing. I've changed Quote:
Quote:
Quote:
![]() and created a new BuildInfo.cpp file as a replacement now that Build.c is gone and will not be generated. Quote:
![]() Pull request is here in case you wanted to merge. If not, it's fine, I had fun anyway. https://github.com/GeoffreyAA/bitme/pull/1 Nice little program, Geoffrey, I'm sure I'll use it regularly as it comes in handy.
|
|||||||
|
|
|
|
|
#8 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 675
|
Thanks, FranceBB, for giving it a go, and looking at the regrettably messy code!
I haven't extended it in years, being lazy, but there is quite a bit of scope to take it further. The source code, as you doubtless saw, is in need of reorganisation and cleaning: too much is commented out from the time I tried to add an overhead system based on video and audio codecs. The idea was to look at the specs of each format and compute the exact overhead. The latter was madness, so I used a simpler approach, encoding a range of files in FFmpeg, subtracting the actual file sizes from the "ideal" calculation, and stashing the numbers in the "container interfaces." Apologies for the messy dependency on Radiance. This project came from Visual Studio 6.0, and that system was set up to create an incremental build number upon compilation. It does tie the program in a bad way to the Visual Studio configuration. In November, I migrated the project to VS2026, first going through VS2019 to import the legacy DSP. It worked and I compiled that release with 2026. It should have opened and compiled for you without issue, but I suppose I must have missed something in the configuration, or got some path wrong. Most settings went over all right but I had to change a lot manually. Thanks for the pull request. When I get a chance, I'll merge your changes. Probably the best approach is to remove Radiance, but I have got used to having the build number and time in that format. The code should be cleaned up, and moved to C++11. I'll have to look at it seriously now. ![]() *** Edit: The only place the Radiance-generated build number and time are referenced is in BitMe/Application.cpp: Code:
extern "C" const int build_number; extern "C" const time_t build_time; From Application.h, the numbers are exposed to the rest of the program by GetBuildNumber() and GetBuildTime(). The reason I did it like this was that, upon including the incremented build number straight into the source after compilation, it used to think that something had changed, and would recompile when one hit Run. Plus, in VS6, there was no automated way to get an incremented build number. Nor was the __TIME__ macro ideal for formatting the date based on the computer's regional settings. Last edited by GeoffreyA; 11th January 2026 at 18:45. |
|
|
|
|
|
#9 | Link | ||||
|
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,378
|
Quote:
Quote:
![]() Quote:
Quote:
![]() In the meantime, I tried on my beloved Windows XP and sure enough it happily runs. ![]()
|
||||
|
|
|
|
|
#10 | Link |
|
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
|
I wonder how many 4K UHD 2 hour (or so) movies would fit onto 50GB disc after all the bloat content has been removed?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
|
|
|
|
#12 | Link | |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 675
|
Quote:
I have an inkling that it could have been spaces in the project path causing Radiance not to run. I'll try this when at the computer. It did happen before, if I remember correctly. (EDIT: It was spaces. I fixed it by adding double-quotes and escaping the trailing slash to the /Fo$(OutDir) parameter of the CL command. Just quotes does not work. This helped. So Radiance should work as usual even if there are spaces in the project's path. VS6 never had this issue.) Fantastic. Knowing your love for XP, I was going to ask you to give it a go, so that's good news. It's fortunate VS2026 didn't remove XP targeting. The zipped release from Github has the XP build as BitMe32.exe, whereas the other is the non-XP x64 build. Last edited by GeoffreyA; 12th January 2026 at 11:05. |
|
|
|
|
|
|
#13 | Link | |
|
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,378
|
Quote:
Old repository (before Philip retired): https://github.com/ebu/bmx New repository: https://github.com/ebu/bmx It's not just an mxf muxer, it's "the" mxf muxer so much so that libMXF++ has become the foundation of lots of other muxers. it's free, open source, cross platform and works reliably. ![]() I also use ommcp from Harmonic which is the omneon muxer as we have Omneon hardware playback ports over here and it can do interesting things like trimming without re-encoding and adding a pre-charge value for non Intra codecs etc but anyway that one is not free, it's proprietary and only those who pay the license have access to the source code (and even that one is only the source code of ommcp, ommq etc but not the source code of the actual library, libommedia, which is the one doing the heavy lifting). |
|
|
|
|
|
|
#15 | Link | |
|
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
|
Quote:
Code:
General ID : 0 (0x0) Complete name : \\DXP2800-C670\My Movies\[4K] UHD Movies\Action & Adventure Movies\James Bond [2006] Casino Royale 138mins (48.6GB) MEL\AVCHD\BDMV\STREAM\00000.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 48.6 GiB Duration : 2 h 24 min Overall bit rate mode : Variable Overall bit rate : 48.1 Mb/s Maximum Overall bit rate : 128 Mb/s Frame rate : 23.976 FPS Video #1 ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : 36 Duration : 2 h 24 min Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2 Video #2 ID : 4117 (0x1015) Menu ID : 1 (0x1) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : 36 Duration : 2 h 24 min Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2 Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : DTS XLL Format/Info : Digital Theater Systems Commercial name : DTS-HD Master Audio Muxing mode : Stream extension Codec ID : 134 Duration : 2 h 24 min Bit rate mode : Variable Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 93.750 FPS (512 SPF) Bit depth : 24 bits Compression mode : Lossless Text #1 ID : 4768 (0x12A0) Menu ID : 1 (0x1) Format : PGS Codec ID : 144 Text #2 ID : 4769 (0x12A1) Menu ID : 1 (0x1) Format : PGS Codec ID : 144 Duration : 2 h 24 min Delay relative to video : 2 s 753 ms Code:
General ID : 1 (0x1) Complete name : \\DXP2800-C670\My Movies\[4K] UHD Movies\DC & Marvel Movies\Black Panther [2018] 134mins (54.6GB) FEL\AVCHD\BDMV\STREAM\00000.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 54.6 GiB Duration : 2 h 14 min Overall bit rate mode : Variable Overall bit rate : 58.1 Mb/s Maximum Overall bit rate : 35.5 Mb/s Frame rate : 23.976 FPS Video #1 ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : 36 Duration : 2 h 14 min Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2 Video #2 ID : 4117 (0x1015) Menu ID : 1 (0x1) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : 36 Duration : 2 h 14 min Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2 Audio #1 ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : MLP FBA AC-3 16-ch Format/Info : Meridian Lossless Packing FBA with 16-channel presentation Commercial name : Dolby TrueHD with Dolby Atmos Muxing mode : Stream extension Codec ID : 131 Duration : 2 h 14 min Bit rate mode : Variable Bit rate : 640 kb/s Maximum bit rate : 7 134 kb/s Channel(s) : 8 channels Channel layout : L R C LFE Ls Rs Lb Rb Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossless Stream size : 616 MiB (1%) Service kind : Complete Main Number of dynamic objects : 13 Bed channel count : 1 channel Bed channel configuration : LFE Dialog Normalization : -27 dB compr : -0.56 dB dynrng : -0.42 dB cmixlev : -3.0 dB surmixlev : -6 dB dmixmod : Lo/Ro ltrtcmixlev : -3.0 dB ltrtsurmixlev : -4.5 dB lorocmixlev : -3.0 dB lorosurmixlev : -4.5 dB dialnorm_Average : -27 dB dialnorm_Minimum : -27 dB dialnorm_Maximum : -27 dB Audio #2 ID : 4353 (0x1101) Menu ID : 1 (0x1) Format : E-AC-3 Format/Info : Enhanced AC-3 Commercial name : Dolby Digital Plus Format profile : Blu-ray Disc Muxing mode : Stream extension Codec ID : 132 Duration : 2 h 14 min Bit rate mode : Constant Bit rate : 1 024 kb/s Channel(s) : 8 channels Channel layout : L R C LFE Ls Rs Lb Rb Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Stream size : 986 MiB (2%) Service kind : Complete Main Dialog Normalization : -27 dB compr : -8.16 dB cmixlev : -3.0 dB surmixlev : -6 dB dmixmod : Lo/Ro ltrtcmixlev : -3.0 dB ltrtsurmixlev : -4.5 dB lorocmixlev : -3.0 dB lorosurmixlev : -4.5 dB dialnorm_Average : -27 dB dialnorm_Minimum : -27 dB dialnorm_Maximum : -27 dB Audio #3 ID : 4354 (0x1102) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : 129 Duration : 2 h 14 min Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Delay relative to video : 31 ms Stream size : 616 MiB (1%) Service kind : Complete Main Dialog Normalization : -27 dB compr : -0.56 dB dynrng : -0.28 dB cmixlev : -3.0 dB surmixlev : -6 dB dmixmod : Lo/Ro ltrtcmixlev : -3.0 dB ltrtsurmixlev : -4.5 dB lorocmixlev : -3.0 dB lorosurmixlev : -4.5 dB dialnorm_Average : -27 dB dialnorm_Minimum : -27 dB dialnorm_Maximum : -27 dB Text ID : 4768 (0x12A0) Menu ID : 1 (0x1) Format : PGS Codec ID : 144 Duration : 2 h 14 min Delay relative to video : 5 s 797 ms
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|