Log in

View Full Version : BD Rebuilder Beta - Bug Reports Only


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 [622] 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648

jdobbs
30th December 2021, 23:25
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. :confused: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.

MrVideo
30th December 2021, 23:30
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
30th December 2021, 23:36
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.

gonca
30th December 2021, 23:44
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

MrVideo
31st December 2021, 04:14
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.

jdobbs
31st December 2021, 16:37
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.

MrVideo
1st January 2022, 10:17
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.

Acerjen
2nd January 2022, 04:21
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 (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip) 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

DrinkLyeAndDie
2nd January 2022, 07:19
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.

jdobbs
2nd January 2022, 14:02
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 (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip). 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.

gonca
2nd January 2022, 17:00
Might be a good idea to have a HIDDENOPTS type file for NVENCCRE.
That is two apps to maintain now. ;):thanks:

DrinkLyeAndDie
2nd January 2022, 18:39
Sure. No problem.

[Edit] I added the beep. You can get the new EXE from this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip). 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.

This will be helpful when multi-tasking. Thank you!

MrVideo
3rd January 2022, 05:17
For some strange reason, I can't get the menu colors to work. Here are the related INI lines:
MENU_ACTIVE_COLOR=0xA6D1D7
MENU_CUSTOM_COLOR=
MENU_INACTIVE_COLOR=0x32819A
Instead I am getting the default white colors. Even if I change MENU_INACTIVE_COLOR to 0x0000FF, I do not get the red. It is still white.

I'm at a loss.

Emulgator
3rd January 2022, 12:41
For a quick UHD-BD-R/-RE playability test on standalones https://forum.doom9.org/showthread.php?t=183578
I would kindly ask for known to be working (hidden or open) options which enable building such disc.
I will be testing BD-RE-25, BD-RE-50, BD-RE-100 (2 of 3 layers, 3 of 3 layers)
(too long that I did not follow development, my bad, and it took longer until hardware became affordable for me)

jdobbs
3rd January 2022, 15:03
For a quick UHD-BD-R/-RE playability test on standalones https://forum.doom9.org/showthread.php?t=183578
I would kindly ask for known to be working (hidden or open) options which enable building such disc.
I will be testing BD-RE-25, BD-RE-50, BD-RE-100 (2 of 3 layers, 3 of 3 layers)
(too long that I did not follow development, my bad, and it took longer until hardware became affordable for me)If your source is a UHD disc and outputting to Full Backup or Movie-Only mode, then UHD output will be selected automatically. You can directly select BD-25 and BD-50 from the SETTINGS/OUTPUT OPTIONS menu. In order to output to BD-100, add the following to the "[Options]" area of you BDREBUILDER.INI file:

CUSTOM_TARGET_SIZE=94734

That's twice the default target size BD-RB uses for BD-50. You can use any other value if you think it suits BD-100 better.

You can then select "Custom Target Size" from SETTINGS/OUTPUT OPTIONS.

Please note that if your source is smaller than your output target, BD-RB may decide to not reencode (because if fits as-is). If you want to force reencoding, add the following line to your INI file:

FORCE_ENCODE=1

Even with that set, though, trying to take a smaller source (say BD-25) and stretching to fit a BD-100 will sometimes reach a maximum size for the encoder used. But that is less common.

If you are trying to put a standard BD source to UHD format, you can select "Convert BD to UHD-BD (HEVC) Format" from the SETTING/OUTPUT OPTIONS menu. That might occur if you do something like take two or more BDs and combine them into a single UHD disc. You can do that by simply putting the source BD structures under a single folder and selecting that folder within BD Rebuilder.

Hope that answers your question.

SeeMoreDigital
3rd January 2022, 15:34
For some strange reason, I can't get the menu colors to work......Out of interest...

If you are backing up one movie per disc, what do you need a menu for?

jdobbs
3rd January 2022, 17:14
For some strange reason, I can't get the menu colors to work. Here are the related INI lines:
MENU_ACTIVE_COLOR=0xA6D1D7
MENU_CUSTOM_COLOR=
MENU_INACTIVE_COLOR=0x32819A
Instead I am getting the default white colors. Even if I change MENU_INACTIVE_COLOR to 0x0000FF, I do not get the red. It is still white.

I'm at a loss.I just put those values into my INI file and did a test. They seem to have worked correctly. I think the the value you have for ACTIVE is high enough in all three colors (and close enough in value) that is appears whiteish (beige) (A6, D1, and D7).

Make sure the values are located in the "[Options]" section of the INI. Also make sure there are no other instances of that setting higher up in the INI file (the MS subroutine that handles reading INI files will act of the first setting it encounters).

[Edit] I also tried setting MENU_INACTIVE_COLOR=0x0000FF and it came out a bright red.

Emulgator
3rd January 2022, 18:06
Many thanks, jdobbs and Happy New Year !
If you are trying to put a standard BD source to UHD format, you can select "Convert BD to UHD-BD (HEVC) Format" from the SETTING/OUTPUT OPTIONS menu.
This setting is what I am missing (v0.61.25 here).
Under Output Options I see only 5 lines to tick: BD-5, BD-9, BD-25, BD-50 and Custom.
Encoding Options has no x265 and no UHD entry.
Do I have to specify a hidden option to expose that setting ?

jdobbs
3rd January 2022, 18:13
Many thanks, jdobbs and Happy New Year !Same to you!

musiclover
3rd January 2022, 18:29
M

This setting is what I am missing (v0.61.25 here).
Under Output Options I see only 5 lines to tick: BD-5, BD-9, BD-25, BD-50 and Custom.
Encoding Options has no x265 and no UHD entry.
Do I have to specify a hidden option to expose that setting ?

Write UHD_CONVERT_ENABLE=1 in your ini file

Emulgator
3rd January 2022, 18:50
YES ! This was missing, undocumented in Hiddenopts.txt.
Many thanks, musiclover.

There it was: 24th February 2021, 17:13 #30405 (https://forum.doom9.org/showthread.php?p=1936642#post1936642)

jdobbs
3rd January 2022, 19:10
Write UHD_CONVERT_ENABLE=1 in your ini fileWhoops. Forgot about that.

There are a lot of options that aren't documented -- mainly to prevent confusion and self-inflicted issues. The majority of BD-RB users aren't necessarily BD savvy.

There's also one called UHD_ALL_MODE=1 that allows H.265 encoding of streams that are less than 1080p. While it usually works on many (most?) players -- it violates the UHD-BD spec.

MrVideo
3rd January 2022, 22:16
If you are backing up one movie per disc, what do you need a menu for?
It is a single file.

MrVideo
3rd January 2022, 22:25
I just put those values into my INI file and did a test. They seem to have worked correctly. I think the the value you have for ACTIVE is high enough in all three colors (and close enough in value) that is appears whiteish (beige) (A6, D1, and D7).
They are more along the color of gold.
Make sure the values are located in the "[Options]" section of the INI. Also make sure there are no other instances of that setting higher up in the INI file (the MS subroutine that handles reading INI files will act of the first setting it encounters).
Yep, where they belong and the only ones.
I also tried setting MENU_INACTIVE_COLOR=0x0000FF and it came out a bright red.
I've used the color settings in the past and they have worked. More investigation is in order.

SeeMoreDigital
3rd January 2022, 22:28
It is a single file.A single file of what? Some kind of movie poster!

MrVideo
4th January 2022, 01:26
A single file of what? Some kind of movie poster!
A single video file, of course.

jdobbs
4th January 2022, 01:48
They are more along the color of gold.

Yep, where they belong and the only ones.

I've used the color settings in the past and they have worked. More investigation is in order.Where do you have the BD-RB Folder installed? Virtualization, perhaps (in the "Program Files" folder)?

MrVideo
4th January 2022, 05:08
Where do you have the BD-RB Folder installed? Virtualization, perhaps (in the "Program Files" folder)?
Actually I don't. A while back you suggested that I place it directly under C:, which I have for the past couple of releases.

But, before I continue with my findings, a problem that has been happening pretty consistantly while searching this out is that after I save changes to the configuration I get the "file not found" error. It happens right after creating the pseudo-BD. Right before it goes on to do the menu. Between those two steps a dialog box very briefly shows up. No idea what it says as it is on the screen for too short of a time. If I do nothing and restart BDRB and rerun the job, there is no error. This one has been elusive for ages.

Now, on to what I found. Mental error. It came down to my not dealing with the three button states correctly: active, inactive and selected. With only one menu item, it becomes active by default. Thereby it was given the brighter color. For some reason I kept thinking inactive. The inactive color is useless in a single menu.

I suspect that you saw the red work because you had at least two menu items. I failed to mention that I only had one.

SeeMoreDigital
4th January 2022, 10:02
A single video file, of course.If all you're muxing is a single video file, why do you need a menu (which is another video file)?

MrVideo
4th January 2022, 10:12
If all you're muxing is a single video file, why do you need a menu (which is another video file)?
As the old saying goes: Because I Can!

SeeMoreDigital
4th January 2022, 10:13
As the old saying goes: Because I Can!And what will be in this second video file?

AmigaFuture
4th January 2022, 21:10
If all you're muxing is a single video file, why do you need a menu (which is another video file)?

Sometimes it's nice just to see what the movie is, if you don't always label discs or you only put "Yuletude - 2019; via a menu.

Sometimes "Just because I can." is the fun of it.

SeeMoreDigital
4th January 2022, 21:46
Sometimes it's nice just to see what the movie is, if you don't always label discs or you only put "Yuletude - 2019; via a menu.
Personally, I don't know why anyone would need a 'movie poster menu image' when playing movie back-ups from a disc!

That being said, in days gone by when I had loads of .iso movie files stored on my NAS, if I wanted to see a movie poster image, I'd simply create a .jpeg file and name it exactly the same as the .iso movie :eek:

AmigaFuture
4th January 2022, 22:48
"Movie poster menu image"? I didn't comment on that before but I considered that to be an odd description. Also, "Yuletide - 2019" isn't a movie you may buy. I made a recording for my Son during Yuletide and that's what I named it in the menu...with the default background. On the Disc, I wrote, "This is what Christians plagerise as 'Christmas'." which he really enjoyed. So, 2 different notes. BD-RB isn't just for making personal backups of bought discs. :) It's sweet to know there are different ways to implement ideas.

I have .jpg files for some movies also.

SeeMoreDigital
4th January 2022, 23:08
Well I'm totally confused now.

Either way, I'm of the opinion that whatever/whichever way @MrVideo is going about backing up his 'single video' discs. He's making life very difficult for himself - and I suspect others...

MrVideo
5th January 2022, 01:43
Life is not more difficult. If one just burns a video file, or files, onto a BD-ROM, not all BD players will honor any chapter marks. If you use tsMuxer to create a BD/UHD format for you, when said video is finished, it does not stop, it repeats. Also, you can only put one file onto a disc with tsMuxer. With BDRB, your can have as many files on the disc that will fit within the available space. You can have a nice looking menu. If only one file on the disc, it will return to the menu when done. Plus, chapter marks will always work.

Again, Because I Can!

DrinkLyeAndDie
5th January 2022, 01:45
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...

I have one more request if possible. Is there any chance of adding audio amplify into NVENCCRe as it works in BDRB?

Thank you for the application. It's definitely a welcome addition to the toolbox.

SeeMoreDigital
5th January 2022, 10:14
.. If you use tsMuxer to create a BD/UHD format for you, when said video is finished, it does not stop, it repeats. Also, you can only put one file onto a disc with tsMuxer. With BDRB, your can have as many files on the disc that will fit within the available space. You can have a nice looking menu. If only one file on the disc, it will return to the menu when done. Plus, chapter marks will always work.
Hmmm...

With regard to the newer 'open source' builds of TSmuxer GUI, I haven't had any problems creating single movie muxes with chapters. They all play on my OPPO perfectly. Even the ones with Dolby Vision.

MrVideo
5th January 2022, 11:06
With regard to the newer 'open source' builds of TSmuxer GUI, I haven't had any problems creating single movie muxes with chapters. They all play on my OPPO perfectly. Even the ones with Dolby Vision.
I think I need to rephrase that. tsMuxer does indeed create files with chapters. The problem is the Blu-ray players ignore the skip button when the video is played as a file. I do not have any Oppo players. Do a BD format and all is well.

jdobbs
6th January 2022, 17:52
I think I need to rephrase that. tsMuxer does indeed create files with chapters. The problem is the Blu-ray players ignore the skip button when the video is played as a file. I do not have any Oppo players. Do a BD format and all is well.The chapters in a BD aren't stored in the M2TS file. They are stored in the MPLS file. So playing "as a file" doesn't have any references to chapters.

MrVideo
6th January 2022, 23:18
Sorry, a "file" in this case needs to be a MKV file. The M2TS file can keep subtitles, while a TS file can't. So, with a M2TS file and a chapter list file, I can build a MKV file with chapter marks. I need to be more specific.

jdobbs
7th January 2022, 00:59
I have one more request if possible. Is there any chance of adding audio amplify into NVENCCRe as it works in BDRB?

Thank you for the application. It's definitely a welcome addition to the toolbox.So how about if I add a hidden option that is a multiplier of the volume like:

AUDIO_VOLUME=1.5

In this case the audio would be increased by 50%

I tried testing the option to normalize -- but it slowed the encode down to 1/6th it's regular speed.

Emulgator
7th January 2022, 11:09
As a sound engineer I guess blind multiplying might lead to users complaining about resulting clipping they didn't foresee.
Normalizing is safe and would be my way to go, users of any sane processing should have to accept that well-spent time for parsing all audio.
What about making that a user's choice ?

cartman0208
7th January 2022, 13:12
Trying to reencode an UHD BD and I get an error during the CQM prediction. I looked into WORKFILES and saw the sample.m2ts is 0kb. So I executed the sample.bat, which I assume creates that sample video and this is the output
U:\BD-Output\WORKFILES>sample.bat

U:\BD-Output\WORKFILES>"U:\BD_Rebuilder\tools\ffmpeg.exe" -ss 5414.0814
-i "V:\FULLDISC\RESIDENT_EVIL_4_UHD\BDMV\STREAM\00004.m2ts" -frames 48 -an -sn
-codec copy -f mpegts - 1>>"U:\BD-OUTPUT\WORKFILES\00004.AVS.SMPL.m2ts"
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls
--enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda
--enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[mpegts @ 00000208a9356600] start time for stream 5 is not set in estimate_timings_from_pts
[mpegts @ 00000208a9356600] Could not find codec parameters for stream 5
(Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 00000208aabf38e0] missing picture in access unit
Last message repeated 1 times
Input #0, mpegts, from 'V:\FULLDISC\RESIDENT_EVIL_4_UHD\BDMV\STREAM\00004.m2ts':
Duration: 01:36:50.82, start: 600.000000, bitrate: 76142 kb/s
Program 1
Stream #0:0[0x1011]: Video: hevc (Main 10) (HDMV / 0x564D4448),
yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:1[0x1100]: Audio: dts (DTS-HD HRA) ([133][0][0][0] / 0x0085), 48000 Hz, 5.1(side), fltp
Stream #0:2[0x1101]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 224 kb/s
Stream #0:3[0x1102]: Audio: dts (DTS-HD HRA) ([133][0][0][0] / 0x0085), 48000 Hz, 5.1(side), fltp
Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 224 kb/s
Stream #0:5[0x12a0]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Output #0, mpegts, to 'pipe:':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084),
3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 00000208ad5288c0] Timestamps are unset in a packet for stream 0. This is deprecated and
will stop working in the future. Fix your code to set the timestamps properly
[mpegts @ 00000208ad5288c0] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input
frame= 1 fps=0.0 q=-1.0 Lsize= 0kB time=-00:00:00.12 bitrate= -0.0kbits/s speed=N/A
video:257kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

What could be the issue here?

jdobbs
7th January 2022, 14:34
As a sound engineer I guess blind multiplying might lead to users complaining about resulting clipping they didn't foresee.
Normalizing is safe and would be my way to go, users of any sane processing should have to accept that well-spent time for parsing all audio.
What about making that a user's choice ?Yeah. That's definitely an issue. I could do a two pass normalization (which is a lot faster) -- but it would require that ffmpeg is present (so it can do the first pass independent of NVENCC) and then NVENCC can use the volume filter using the returned maximum volume dB value for normalization. That's not a problem if you install NVENCCRE in the BD-RB folder (ffmpeg is included)... but I was hoping to make an independent installation option at some point.

What I'll probably do is have NVENCCRE look for ffmpeg.exe in the tools folder, and enable normalization if it is present.

DrinkLyeAndDie
7th January 2022, 19:00
So how about if I add a hidden option that is a multiplier of the volume like:

AUDIO_VOLUME=1.5

In this case the audio would be increased by 50%

I tried testing the option to normalize -- but it slowed the encode down to 1/6th it's regular speed.

Being a hidden option makes sense and that'd be good.

Personally, I can live without normalization. Fine control is what I'm looking for. By your example would using a lower or higher number allow more fine control? So say 1.1 would be 10%, 1.8 = 80%, etc? Or is it going to be limited to 50% increments?

I don't know how much work for you that this entails. This is just something I would find extremely useful if it's doable without being a massive PITA.

Edit: I previously mentioned an increased in decibels. I was mistaken. Normally when doing some conversions I need to add a gain of roughly 8. I erroneously said decibels.

jdobbs
7th January 2022, 23:50
Being a hidden option makes sense and that'd be good.

Personally, I can live without normalization. Fine control is what I'm looking for. By your example would using a lower or higher number allow more fine control? So say 1.1 would be 10%, 1.8 = 80%, etc? Or is it going to be limited to 50% increments?

I don't know how much work for you that this entails. This is just something I would find extremely useful if it's doable without being a massive PITA.

Edit: I previously mentioned an increased in decibels. I was mistaken. Normally when doing some conversions I need to add a gain of roughly 8. I erroneously said decibels.As far as I can tell you can make it as precise as you wish. 1.0008 would work (although I doubt anyone could tell). You could also use .75 to lower the volume by 25%.

I've also added a menu item that will do normalization. It requires ffmpeg.exe in the tools folder (otherwise it is disabled). So if you put NVENCCRE.EXE in the BD-RB folder, it should work just fine. Normalization is the best way to increase volume -- as it uses the existing audio's volume and increases only to the point that can be reached without clipping.

jdobbs
8th January 2022, 02:43
For those who are interested, I've posted a new version of NVENCCRE (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip). There is now an audio menu item called "Audio Normalization". There is also a hidden option called AUDIO_VOLUME in which you can set a multiplier to be applied against the audio. If normalization is selected, the AUDIO_VOLUME option is ignored. Normalization requires the FFMPEG.EXE exists in the tools folder (as it is in the BD-RB tools folder).

Note: Using normalization is much preferred over setting an arbitrary volume multiplier. It will set the maximum volume increase available that will not result in audio clipping.

DrinkLyeAndDie
8th January 2022, 04:09
For those who are interested, I've posted a new version of NVENCCRE (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip). There is now an audio menu item called "Audio Normalization"...

Wonderful. Thank you!

MrVideo
8th January 2022, 07:04
While I personally will never screw with the original audio level, but for those that do, isn't there some small print regarding adjusting E-AC3, TrueHD, DTS-MA, DTS-X? Won't screwing with anything other than DTS/AC3 result in the loss of the lossless audio and/or Atmos?