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.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > DVD & BD Rebuilder

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th December 2021, 13:25   #31041  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,295
Quote:
Originally Posted by MrVideo View Post
Before you ask about the chapter marks, it seems that whomever did the chapter marks failed to create them all....
Hmmm... This would suggest that you do not own the source disc!
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 30th December 2021, 14:00   #31042  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
Originally Posted by Acerjen View Post
Thank you, jdobbs. Great program. I was curious if there was a way to detect and copy the HDR metadata from a UHD source using this program and NVENC? My attempt ended up not being HDR. The colorspace reads BT.709 rather than BT.2020 in Mediainfo. Thanks. Later.

Acerjen
Yes. It can be done fairly easily. I just hadn't added that capability yet. I created the program for some specific jobs I was running (reencoding series episodes to load onto my media server), none of which was HDR, so I didn't worry much about colorspace.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 30th December 2021 at 14:16.
jdobbs is offline   Reply With Quote
Old 30th December 2021, 14:23   #31043  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
Originally Posted by DrinkLyeAndDie View Post
Quote:
Originally Posted by jdobbs View Post
For the rest of us (who are playing with a full deck of cards):

I threw together a program that uses an interface that is very similar to BD-RB that I use for reencoding groups of files using NVENCC. I call it NVENCCRE (very original, eh?). I just thought that some of the folks that use one of the NVIDIA cards with built in encoders might find it useful. You just extract the EXE file and put it in the same folder as BDRB (it accesses the tools folder of BD-RB to call NVENCC and MEDIAINFO).

Nothing complicated, I just wrote it to make some things I was doing easier. Hope you find it useful...
Thank you, jdobbs. This is extremely useful!
Thanks. By the way, there are some options you can put in the NVENCCRE.INI file (that is created in the installation folder) that can customize some of the defaults I put on the dropdown menus.

HEVC_Q_VALUES=nn,nn,nn
AVC_Q_VALUES=nn,nn,nn

These change what you want as the CQM values that show on the menu. Legal values are 1-51. The three values decide what values to use for GOOD, HIGH, and HIGHEST settings. The default setting, for example for HEVC_Q_VALUES is:

HEVC_Q_VALUES=32,30,25

Settings for bitrates:

HEVC_BR_VALUES=nnnn,nnnn,nnnn
AVC_BR_VALUES=nnnn,nnnn,nnnn

The numbers represent Kbps and are used in the program to fill in the options for bitrates for GOOD, HIGH, and HIGHEST bitrates. For example, the default for HEVC_BR_VALUES is:

HEVC_BR_VALUES=1000,2000,3000

I also added the ability to change the audio bitrates used for GOOD, HIGH, and HIGHEST settings (ACC and AC3):

AC3_BR_VALUES=nnn/nnn,nnn/nnn,nnn/nnn
AAC_BR_VALUES=nnn/nnn,nnn/nnn,nnn/nnn

The commas separate the values for each of the GOOD, HIGH, and HIGHEST settings. The slashes separate the bitrate (in Kbps) used for STEREO/MULTICHANNEL. Below, as an example, is the default setting for AC3:

AC3_BR_VALUES=128/384,192/448,224/640

Please note that the audio bitrate values used have to be legal for AC3. Here's a list of legal values (all in Kbps):

32,40,48,56,64,80,96,112,128,160,192,224,256,320,384,448,512,576,640

Any mistakes made in any of these entries will result in the default values being used.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 30th December 2021 at 14:32.
jdobbs is offline   Reply With Quote
Old 30th December 2021, 14:42   #31044  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
@MrVideo

I just want to point out that, by deciding to output and then import, you are creating your own issues. BD-RB will keep and use untouched TrueHD and EAC3 perfectly, but only if it comes directly from a BD. That's because that's pretty much the only place where a core is needed, provided, and kept. Deciding to export and then import is a self inflicted injury. As pointed out, other containers don't typically support audio streams that have a "core" -- and a core is required for TrueHD and EAC3 when it is used in a BD.

When importing, all container types that are not MKV are converted to MKV before importing. There are many very good reasons for this which I don't have time to (or care to) explain. MKV (like many container formats) does not support a "core" audio component in a stream.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 30th December 2021, 14:51   #31045  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
Quote:
Originally Posted by SeeMoreDigital View Post
Hmmm... This would suggest that you do not own the source disc!
How could you possibly come to that conclusion? No studio is perfect. There have been several occasions whereby replacement discs have been sent out. Replacing a disc because of chapter marks, IMHO, is just not worth it.
MrVideo is offline   Reply With Quote
Old 30th December 2021, 15:29   #31046  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
@jdobbs

I've sure learned a few things over these past few days. I did not know that you re-wrapped all imported files to MKV, which explains the issue with TrueHD. I have no idea why the spec that MKV uses doesn't allow for TrueHD to be left intact.

I'm not sure why you lump M2TS files into the "must recode" bucket, considering that M2TS obviously handles TrueHD just fine. I do not know how anyone could make a M2TS file with a coreless TrueHD stream. Certainly not with tsMuxer, as it throws away coreless TrueHD streams.

What I did with these couple of discs is probably going to be a one-off thing. It is something for the home theater I'm putting together. And more-then-likely, it will have been a project that I actually did not need to do. I won't know that for sure until I get all of the pieces assembled.

Limitations are now known.
MrVideo is offline   Reply With Quote
Old 30th December 2021, 16:26   #31047  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
I have no idea why the spec that MKV uses doesn't allow for TrueHD to be left intact.
Actually the "fault" belongs to the BD spec. It's the only place (I know of) where a core is needed. That's because support for TrueHD, EAC3, and several other audio codecs are allowed on a BD -- but the spec doesn't require a player to support them. So a "core" has to be included in the audio stream that consists of one of the codecs for which support is required. TrueHD doesn't normally have a core. So it is completely supported by an MKV -- only as a single stream (as it is generally meant to be). All a BD does is wrap another stream (for which support is required) in with it during muxing so a player can use that stream when it doesn't include TrueHD capability.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 30th December 2021 at 16:29.
jdobbs is offline   Reply With Quote
Old 30th December 2021, 17:36   #31048  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
Quote:
Originally Posted by Acerjen View Post
Thank you, jdobbs. Great program. I was curious if there was a way to detect and copy the HDR metadata from a UHD source using this program and NVENC? My attempt ended up not being HDR. The colorspace reads BT.709 rather than BT.2020 in Mediainfo. Thanks. Later.

Acerjen
Yes. It can be done fairly easily. I just hadn't added that capability yet. I created the program for some specific jobs I was running (reencoding series episodes to load onto my media server), none of which was HDR, so I didn't worry much about colorspace.
I went in and looked at it -- and, frankly, it was even easier than I thought. NVENCC does all the work if you pass it the appropriate command line parameters. I just recompiled NVENCCRE.exe and here is a version that supports reencoding with the HDR characteristics.

I didn't add support for HDR10+ until I test it a little. I'm trying to decide whether NVENCC's experimental setting is stable enough to add it.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 30th December 2021, 22:51   #31049  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
Quote:
Originally Posted by jdobbs View Post
All a BD does is wrap another stream (for which support is required) in with it during muxing so a player can use that stream when it doesn't include TrueHD capability.
Now I'm little more confused. If I look at a disc with TrueHD, I don't see another audio stream that is AC3 5.1. Sure, there are streams for other languages, or even descriptive/commentary audio. What I do see is the THD track listed as having a core. AIUI, it is the core that is seen if it doesn't know how to deal with the TrueHD part of the stream.

I do not know what the requirements are for UHD releases, as the specs aren't out there for the general public. A UHD Demystified book hasn't been released yet.
MrVideo is offline   Reply With Quote
Old 30th December 2021, 23:22   #31050  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Posts: 1,252
MrVideo

DTS+some more data= DTS-HD
THD interleaved with AC3 core= compliant BD stream (2 streams in one)
PS
Quite easy to replace single track in m2ts and have it work if you read my description
I do it with subtitles on occasion.
gonca is offline   Reply With Quote
Old 30th December 2021, 23:25   #31051  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
Originally Posted by MrVideo View Post
Now I'm little more confused. If I look at a disc with TrueHD, I don't see another audio stream that is AC3 5.1. Sure, there are streams for other languages, or even descriptive/commentary audio. What I do see is the THD track listed as having a core. AIUI, it is the core that is seen if it doesn't know how to deal with the TrueHD part of the stream.

I do not know what the requirements are for UHD releases, as the specs aren't out there for the general public. A UHD Demystified book hasn't been released yet.
If you selected that TrueHD from the BD menu -- and your player didn't support it, you would hear the (core) AC-3 track (and not even know it). That's why they are muxed together (and even share a stream ID). There are probably people out there that think they are listening to TrueHD without knowing that their player doesn't even support it.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 30th December 2021 at 23:32.
jdobbs is offline   Reply With Quote
Old 30th December 2021, 23:30   #31052  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
Quote:
Originally Posted by gonca View Post
Quite easy to replace single track in m2ts and have it work if you read my description
As pointed out in some postings, I had issue try to do that. I even managed to lock up my BD player.
MrVideo is offline   Reply With Quote
Old 30th December 2021, 23:36   #31053  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
Quote:
Originally Posted by jdobbs View Post
If you selected that TrueHD from the BD menu -- and your player didn't support it, you would hear the (core) AC-3 track (and not even know it). There are probably people out there that think they are listening to TrueHD without knowing that their player doesn't even support it.
That was my understanding.

What is interesting is that in order to get the lossless audio to work, one must use the HDMI connection to your AVR. The coax/optical connection is not allowed to carry the higher bitrate lossless audio. But, those that have an AVR that handles all of the audio formats, just sets the player to output the raw stream to the AVR and let it handle the decoding.

That said, if you get a UHD player, I don't know of any model that doesn't support all of the audio formats. If you have a UHD player, odds are you have a better AVR as well.
MrVideo is offline   Reply With Quote
Old 30th December 2021, 23:44   #31054  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Posts: 1,252
Start with a BD compliant structure
Load the m2ts into tsMuxeR
Uncheck existing sound and add yours
Check M2TS muxing
Start muxing
Make sure new m2ts has same name as old
Replace m2ts in original BD structure
Open structure in BDEdit
Select proper play list
Change audio properties (type language etc)
Save
Click on Apply to clpi
Go to CLPIINF tab
Make sure info looks right
Save
If it asks you if you want it to correct packets ( or anything) select yes and Save
Import this into BDRB

Note
New audio has to be Bd (UHD) compliant
gonca is offline   Reply With Quote
Old 31st December 2021, 04:14   #31055  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
Quote:
Originally Posted by gonca View Post
Start with a BD compliant structure
Load the m2ts into tsMuxeR
Uncheck existing sound and add yours
Check M2TS muxing
Start muxing
Make sure new m2ts has same name as old
Replace m2ts in original BD structure
Open structure in BDEdit
Select proper play list
Change audio properties (type language etc)
Save
Click on Apply to clpi
Go to CLPIINF tab
Make sure info looks right
Save
If it asks you if you want it to correct packets ( or anything) select yes and Save
Import this into BDRB

Note
New audio has to be Bd (UHD) compliant
Yep, that is what I have done and it has not always worked. Reason unknown.
MrVideo is offline   Reply With Quote
Old 31st December 2021, 16:37   #31056  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
That said, if you get a UHD player, I don't know of any model that doesn't support all of the audio formats. If you have a UHD player, odds are you have a better AVR as well.
I don't think I would agree with that. If the box doesn't explicitly say the player supports a specific codec -- it probably doesn't. But, the odds are probably higher you'll get more codecs with a UHD player than with a non-UHD player.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 31st December 2021 at 16:48.
jdobbs is offline   Reply With Quote
Old 1st January 2022, 10:17   #31057  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,208
Of the recent BD players that I have, all Samsung, they all handle all of the lossless formats. But as I noted, even if any of them didn't, the AVR does and I've set all of the players to send the raw streams out the HDMI and let the AVR handle it. IMHO, it is best to let the AVR handle the audio.

As always, YMMV.
MrVideo is offline   Reply With Quote
Old 2nd January 2022, 04:21   #31058  |  Link
Acerjen
Registered User
 
Join Date: Sep 2002
Posts: 86
Quote:
Originally Posted by jdobbs View Post
I went in and looked at it -- and, frankly, it was even easier than I thought. NVENCC does all the work if you pass it the appropriate command line parameters. I just recompiled NVENCCRE.exe and here is a version that supports reencoding with the HDR characteristics.

I didn't add support for HDR10+ until I test it a little. I'm trying to decide whether NVENCC's experimental setting is stable enough to add it.
Thanks for adding HDR support to this. I have tested three movies and all came out great. Your efforts are much appreciated.

Acerjen
Acerjen is offline   Reply With Quote
Old 2nd January 2022, 07:19   #31059  |  Link
DrinkLyeAndDie
Registered User
 
DrinkLyeAndDie's Avatar
 
Join Date: May 2007
Posts: 168
Quote:
Originally Posted by jdobbs View Post
Thanks. By the way, there are some options you can put in the NVENCCRE.INI file (that is created in the installation folder) that can customize some of the defaults I put on the dropdown menus...
Nice. Good to know.

Possibly considered superfluous by some but any chance of adding a beep at job completion option to NVENCCRe? It would be useful for long jobs involving many files that take a bit of time.
DrinkLyeAndDie is offline   Reply With Quote
Old 2nd January 2022, 14:02   #31060  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 21,108
Quote:
Originally Posted by DrinkLyeAndDie View Post
Nice. Good to know.

Possibly considered superfluous by some but any chance of adding a beep at job completion option to NVENCCRe? It would be useful for long jobs involving many files that take a bit of time.
Sure. No problem.

[Edit] I added the beep. You can get the new EXE from this link. It works just like BD-RB. To enable the beep on completion just add the following to you NVENCCRE.INI file:

COMPLETION_BEEP=1

It will play the contents of Ding.wav in the MISC folder under BD-RB's folder. If that doesn't exist it will play the default "Beep" for your system. The sound will only play if a job is completed (all files), and it will not play if you abort a job.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 2nd January 2022 at 14:39.
jdobbs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.