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

Lathe
27th April 2023, 03:58
Okay, here are 2 snapshots of both versions captured on screen. I guess the supposed 'HD' print does indeed look quite a bit better than the native DVD. So, I guess if I can just get rid of or 'fix' all the combing and other screwups that whomever did the encode caused, the result could possibly look better.

Remember, I mentioned that when I played the HD file with MPC for some odd reason it did look better and didn't seem to have as much combing going on. I'm ASSuming that the MPC must have some built in filters that it is employing, that if I can figure out what it is doing, maybe I can use those to help fix the image somewhat. Playing it straight with VLC player though, it does NOT do that and looks really bad. So, whatever filter(s) MPC is employing do seem to help.

DVD:
https://lh3.googleusercontent.com/3lu3TNQjo2EBYUngA6qlsLATIXYinUlA0Yn5FwsT7oMpEJp9k1Fj9csHnXsIqtrp_zzy51JBeS17We8jxpgQR5CHvvfx9wg_myxWvVRt2R44sWHxlQlcfbsBl3IIZ7ToeBQnaO3XIcFvNBiBI7Xm_FieUATJLRq_eCQxMLz9KhJyA30tYeKi5IXorsTWAcT0Ky1In8zuHWrqqOHxwQ6PTBfWHxOVa766gkuFEvxvqwHIYH39F-jk29YMsNxm64Syi16C1be1H_OxYbA2ta-rnIxESkCoi07f-HsjQLWSfazvx6WLCPW9sfy_Xu0LqPBwYvkrw4lFFMabWdnDW4Z-hi0bYU9TUc-UD9zDgvwVqG78Q6xEC3ITR2LSSQK39__yetk6hugjfjEJojj4d5Kdwbq13ppc9Mj1iQi7Ycc3znq6Cwej72hE8Ku9coyb0hKvMJAeGgT_eIvJ62Jm4TYgnkn0AGZHGErx1c4Mthdn1AhLt7Rs-gYxZ7ja0F9YOfh_UwsWW9_5BDfP4tJeUNJ0bvDYMKEhe8qbcLI-ocuCWHJgPePVKpoe5qjIAmu0AtS-WJzVY6N_cplcqdLMuuD2F31jHbxl2dhaTq2aXrE7aAOR-ZB3TQQvKXqp7Epr-wNK1gmT8BEJ1UcMtFNYREUja3_nyWKXRdmee5p5LakFJL5Q67ho9SUBD4j4uf8C4zflqMgbp1FqF_x13VQ8r-JFVcByyDBMOTXaxkNVGJfINNO4N5fkvR5HO5xla6sr-csCxYVBv3_3GeFdzaxccLh-f5lCq5ChAJFpZXVUKgB4BIuDqSKMCNAYqMHUQ-tcEjmMIejnVxuXhZia5lPP3svPH2K7U1K9jkUGmP-UDYURgdoefIhCquTeSJJBc1Q76ODbknhyNE6-5OrMQsB0N5YUI37PWKaRAdpMAwDdT1GGvdAkiPSVBCnB5vhi-Z1e2FHcLRr2_2F3fNSlfrT_g15Q=w783-h592-s-no?authuser=0

HD:
https://lh3.googleusercontent.com/t6QP-PLD3qSNRqH6I1e0gdUD3ZHylUK8gmZNXK7AZtIp4cF_1qoZF6M8EBG8Gc_ybzN3NnvkZWamNzj-vx7_QzbVvCHoRanckUi-KclbjknBwBZUvn2xnC8EpsC6ORaBdwEQFTNrchtIN8uAFS316O6NYSmRkCaciQS_QMqgSMrPE83kTA90UUaX5U3ADhtk7ZMR9IDBO-V3JWEbRSVBUpYGCW6p2lrudY15QewsVaGG95ld8wGUh9nVE22cQyRmxSUQPKIJtJ1N2sfyOtsB-EJsvYZox-4-ZRKqBrs_GsAeYUVMq0WD8PTnVnBmigjKULEfCEwI9vAaYy67lbbUfVJYBfFku8OQXIIPHgu6IjxVrXaEWKzt_lk9sUvcTMOTaDByBKe61jhoqBePxekB4U-pIEj-wNGvjpTEGh8rTY2obBxpNV1wQwF_NA0_9fSlku1O0pUKVHrOdBrxTcbQENJGTMJuAKlyJbz13V8wUFZE3Pk3VznHK7HWXTf3USBft020q6ljq29tvzQc7SGluzJsadVxB0H-214UBkjXcEaaJWOPJCa841eRM21O-mxUZ_2147oIqmdZ-ijxVjP2pcZR-TuHwwq_2K6QrZDzrTEl-N7WJIts0-9N65JYMA1irPn_ARclNEoCHiWOKQ87_dV8WWtM2AhiwKBbdwwD98TyV_jYXlTyYINVT5uPPF4U8FRq1vqh3YF5GlftRIlP4bf2N1IOmWRvORu6vi1Dn283evDrFvW0VJT3aQSDZJLoa3GvQjERon0YkvyYE0Z7hOfjE5LAsoGy1jK9uNTCk_KoegLGSnBFIP19T5-K_TjxyUZHFQkL8Y5NzZ-9F90tu77Ikl5taH0e9RAbXHHKHSttVyWIoPbIObHfWWwq4mHbIUdv3qfEJCOT5kSVNy5akB4uHqgzSP4jasnAf3XdrZFFx9ngU7065FNyM4xGhr1DPrYE9ptiInEC6E1DNka6=w879-h619-s-no?authuser=0

gonca
27th April 2023, 10:52
Same old Lathe.
You forgot the snapshots

gonca
27th April 2023, 11:06
Your clip is plain 3:2 pulldown
Here is a screencap from a quick and dirty encode with x265

MrVideo
28th April 2023, 00:30
I don't know how to figure out the UPC code,
It will be on the back. The barcode with the numbers underneath. Not needed now as the Amazon link was good enough. You're right, the complaints are numerous. The price also indicates that a quality source was not being used. As the saying goes: Garbage In, Garbage Out.

If it is truly 3:2 pulldown throughout the video, then doing an IVTC will greatly help. But, the video quality will still suck.

Lathe
5th May 2023, 04:15
It will be on the back. The barcode with the numbers underneath. Not needed now as the Amazon link was good enough. You're right, the complaints are numerous. The price also indicates that a quality source was not being used. As the saying goes: Garbage In, Garbage Out.

If it is truly 3:2 pulldown throughout the video, then doing an IVTC will greatly help. But, the video quality will still suck.

Yeah, I had BDRB set with that box checked, but the resulting encode did not look any different...??? Thanks though...

Lathe
5th May 2023, 04:18
Your clip is plain 3:2 pulldown
Here is a screencap from a quick and dirty encode with x265

Hmmm... I DID indeed include the snapshots above. They're hosted on one of my Google Photos folders. I copied the image addresses here and they show up just fine for me. Odd... Okay, I'll attach them then. Maybe you'll see the attachments now.

I see yours here. The still image doesn't look too bad. That's using the HD encode, right? So, if I can get it to look that good without the combing effects, then that would be okay to start with. Then I can mess around with maybe sharpening it some or whatever. But, by your brief comments I don't understand what you are trying to tell me here.

So, what can I do...? Please give me some suggestions if you would... Specifically what exact settings should I use with BDRB, or will I have to use a CMD line and then what specific AVS scripts should I use? It's been forever since I used AVS, so I don't remember, do I have to download certain scripts, or what? I totally forget... I'd rather just use BDRB and add whatever script to the AVS box if I need to do so.

I just read this on the VideoHelp board:

--pulldown 32 --pic-struct --fake-interlaced

Could I do an x264 CMD line encode and simply just include those parameters. Should I add these commands as 'Tweaks' in BDRB? I am REALLY rusty at this! :) And, remember, I want to work with the somewhat 'superiour' HD encode since the DVD looks so bad.

Thanks!

Lathe
5th May 2023, 05:56
@gonca I'm currently playing around with this:

DirectShowSource("Snippet.mkv")
tfm(mode=4, pp=6, slow=2, cthresh=4, mthresh=5)
tdecimate(mode=1, hybrid=1, dupThresh=1.1, vidThresh=1.1, nt=2, chroma=true, denoise=true)

It LOOKS like it is somewhat better, but I don't know what the HELL I'm doing! :D

gonca
5th May 2023, 11:19
Try not to use DirectShowSource, if you can.
After the tdecimate use DotKill (look it up)
Then use a sharpner.
Depending on results, we might go off the beaten track.

gonca
5th May 2023, 12:04
#####FRAME SERVER#####
LoadPlugin("C:/Program Files (Portable)/dgdecodenv/DGDecodeNV.dll")
DGSource("C:\Users\LUIS\Desktop\DOWNLOADS\Snippet.dgi", fieldop=0)

#####YOUR TFM STUFF MINUS DIRECTSHOWSOURCE#####

#####MAINTAIN HIGH BIT DEPTH#####
ConvertBits(16)

#####DENOISE#####
DGDenoise(strength=0.100)


#####DOTCRAWL#####
LoadPlugin("C:\Program Files (Portable)\AVS - VPY\AVS\PLUG-INS\DotKill-1.0.0\x64\DotKill.dll")
DotKillS(iterations=4)

#####SHARPEN#####
DGSharpen(strength=0.200)

ConvertBits(10)

Pick your frame server
Look up the other ones
Add them to the script box
Anything with # before it is just a comment (easier for me to find stuff)

EDIT
you might have to remove the ConvertBits() lines for BDRB
Also feel free to use whichever denoiser and sharpener you wish

Lathe
6th May 2023, 05:35
#####FRAME SERVER#####
LoadPlugin("C:/Program Files (Portable)/dgdecodenv/DGDecodeNV.dll")
DGSource("C:\Users\LUIS\Desktop\DOWNLOADS\Snippet.dgi", fieldop=0)

#####YOUR TFM STUFF MINUS DIRECTSHOWSOURCE#####

#####MAINTAIN HIGH BIT DEPTH#####
ConvertBits(16)

#####DENOISE#####
DGDenoise(strength=0.100)


#####DOTCRAWL#####
LoadPlugin("C:\Program Files (Portable)\AVS - VPY\AVS\PLUG-INS\DotKill-1.0.0\x64\DotKill.dll")
DotKillS(iterations=4)

#####SHARPEN#####
DGSharpen(strength=0.200)

ConvertBits(10)

Pick your frame server
Look up the other ones
Add them to the script box
Anything with # before it is just a comment (easier for me to find stuff)

EDIT
you might have to remove the ConvertBits() lines for BDRB
Also feel free to use whichever denoiser and sharpener you wish

Excellent, thanks!

Okay, I understand most of it. I remember on some of the discussion threads that they also said don't use DirectShow. So, I should then get and download the DGDecodeNV.dll somewhere and place it in my plugins folder. I notice, now you call the snippet .dgi...? Do I use the MKV file and just change the suffix from .mkv to .dgi...? I don't quite get that one. And, by 'Frame Server' do you mean using this DGDecodeNV.dll?

I'll get started on that. Did you look at the rest of the code I was trying, does it make sense what functions and parameters I chose? Because I was just going by the descriptions and mainly guessing. I don't know though if the ones I chose to incorporate are really helping or not. I figured you would be much more familiar with what those functions and modes do. I was concentrating on stuff that would get rid of the damn combing.

So far, I am just previewing the code I posted using AVPmod I think it's called, so I can see the changes as I do them. I'm GUESSING though that I probably can't get away with simply dropping in all this AVS code into BDRB, right? I will eventually have to use the CMD line x264, right? I believe that is what I've done in the past unless I was just doing something simple like add borders or sharpen, then I'd add it to BDRB.

It was weird too, sometimes I would try to load a plugin that is indeed in my plugins folder, but when I'd try to run it, I would get an error in the preview saying 'no such plugin' I think I tried it with TComb and Decomb521, but even though I do have the dll's in the plugins folder, they wouldn't run. It happened with a few others I tried too. Some would run and some wouldn't. I wonder why...

***EDIT

Hmmm... DotKill will not run even though I DO have the plugin in my directory and I loaded it beforehand. I get an error that says 'There is no function DotKill' Again, I don't understand why some of these plugins either are not recognized or won't run despite the fact that I have them and load them first. It WILL load UnDot though, weird... I'll just hafta look up the parameters.

All the other commands you suggest above are not recognized except the basic 'Sharpen' I DO have a plugin called UnDot, maybe I can try that. I also have one called DGDecode.dll, is that the one I'd use as the frame server? So, would I load that dll first and then what? I don't get why a lot of this stuff is not working properly.

Well, the only other filter I could get working is Sharpen. I still don't understand how to use the DGDecode frame server. But, using DirectShow everything runs, but I'm still getting a lot of combing. There must be a way to tone that down even more.

***EDIT 2

I thought it would be super simple to find some newer AVS plugins and download them. Uh, no... All I could find was a plugin pack that was 10 years old and that I already had. Damn weird... You'd THINK if you searched for 'Avisynth plugins download' you'd easily come up with all kinds of stuff. Uh, no... Frustrating...

gonca
6th May 2023, 11:28
DGDecode will only work if you have a NVidia card, else use LSMASH
.dgi is the indexed file from DGDecode
DotKill >> make sure you are using the correct bitness (32 or 64) [yes I know that bitness is not a real word]
Same with DGSharpen and DGDenoise (which are part of DGDecode)
FRAME SERVER is basically the plug in that supplies each video frame to the encoder for encoding.
Try within BDRB first

gonca
6th May 2023, 17:36
It was weird too, sometimes I would try to load a plugin that is indeed in my plugins folder, but when I'd try to run it, I would get an error in the preview saying 'no such plugin' I think I tried it with TComb and Decomb521, but even though I do have the dll's in the plugins folder, they wouldn't run. It happened with a few others I tried too. Some would run and some wouldn't. I wonder why...
That is why I explicitly load all plug-ins
That means I can also save them where I want

Sharc
6th May 2023, 19:10
The poor DVD source is still much better than the totally flawed HD crap, IMHO.
Just IVTC it. See here:
https://forum.videohelp.com/threads/409493-HD-Video-likely-improperly-encoded-Lots-of-combing-effects#post2689126

Lathe
6th May 2023, 22:39
The poor DVD source is still much better than the totally flawed HD crap, IMHO.
Just IVTC it. See here:
https://forum.videohelp.com/threads/409493-HD-Video-likely-improperly-encoded-Lots-of-combing-effects#post2689126

Heh... Yeah, I was just going to post Sharc's reply on VideoHelp here. I could not believe that the ultra CRAPPY DVD could be made to look that much better! I'll post his reply below, but the li'l bugger got rid of just about all the combing by doing this. I can always play around with the colours/sharpening, etc. later.

Here was his reply:

Originally Posted by Sharc View Post
@Lathe
The DVD variant is telecined, with pattern glitches and/or dropped frames e.g. where the speaker leaves the desk. You may still IVTC the DVD version and continue from there (and trash the flawed HD variant IMHO):

Code:
ffms2("GCDVD.mkv") #or the source filter of your choice
assumeTFF()
TFM().TDecimate() #returns 23.976 progressive video
#... add some denoising etc. of your choice here ....

Lathe
6th May 2023, 22:41
It was weird too, sometimes I would try to load a plugin that is indeed in my plugins folder, but when I'd try to run it, I would get an error in the preview saying 'no such plugin' I think I tried it with TComb and Decomb521, but even though I do have the dll's in the plugins folder, they wouldn't run. It happened with a few others I tried too. Some would run and some wouldn't. I wonder why...
That is why I explicitly load all plug-ins
That means I can also save them where I want

Yeah, I WAS loading the dll's first, but they still wouldn't run. It could be I think you said that they may be 64 'bitness' instead of 32 which is the version I'm running as per BDRB's requirement.

But, WOW, I couldn't believe that DVD looks SO damn much better now!

Lathe
6th May 2023, 23:23
:angry:DGDecode will only work if you have a NVidia card, else use LSMASH
.dgi is the indexed file from DGDecode
DotKill >> make sure you are using the correct bitness (32 or 64) [yes I know that bitness is not a real word]
Same with DGSharpen and DGDenoise (which are part of DGDecode)
FRAME SERVER is basically the plug in that supplies each video frame to the encoder for encoding.
Try within BDRB first

Ah, yeah, I think I began to understand that certain dll's only work if you have others they depend on. Maybe that is why some of these don't load. And no, I don't have an Nvidia card. Since I can do the simpler code with the original DVD, I might try dropping it in BDRB and see what happens :)

Here is the code I am now using with the original DVD:

DirectShowSource("GC.mkv")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\UnFilter.dll")
assumeTFF()
TFM().TDecimate()
UnFilter(50, 50)

I'm still a little scared to get away from DirectShow, and I believe IIRC that BDRB can only use Avisynth with that. So far, it's not looking too bad! I want to play around with the colours too and get a bit more saturation and perhaps more contrast. I have done that before, it's just been a while and I need to go back and see the settings I used. I'll post a couple of pictures here where I did that with some films. I know some will feel it is overdone, but I liked the way they came out. Just gives it more 'pop', primarily for lower quality films or what I feel where movies were poorly mastered. Don't make fun now, this is just to my 'taste' :D

***EDIT

BTW, I tried just adding a simple DeNoise() after loading the dll, but again, the preview says that it is missing a library...??? I mean, isn't that just a very basic AVS function? I'm really getting somewhat frustrated as to what dll's will run and which ones won't, GEEZ... :angry:

gonca
7th May 2023, 00:16
Try using avsmeter to check your script,
and let us know about the DVD next time

Sharc
7th May 2023, 00:26
I could not believe that the ultra CRAPPY DVD could be made to look that much better! .... I can always play around with the colours/sharpening, etc. later.
I would even consider to convert that movie to greyscale rather than fiddling with colors.

MrVideo
7th May 2023, 15:50
I have a separate script in which I convert the MPEG-2 1080i satellite feeds to H.264 1080p23.976 files.The sat feeds no longer exist, but the captured files that I have do. The following is the AVS script:
LoadPlugin("C:\Program Files (x86)\DGAVCDecNV\DGDecodeNV.dll")
dgsource("E:\\source.dgi")
assumetff()
telecide(guide=1)
decimate()
I want to try and see if I can use BDRB to re-encode the MPEG-2 file to HEVC while also doing IVTC on the video. My current method of doing my own encoding to H.264 takes many hours since it uses the software x264 encoder.

Unfortunately, the dgindexnv program is needed in order to create the .dgi file. I can get around that by running it before running BDRB, as the .dgi file then be there for BDRB.

The LoadPlugin line is also not necessary as I will have told BDRB to use DGDecodeNV and the path to it is part of the INI file.

I normally extract the video and audio into separate .m2v and .ac3 files.Not sure if the dgindexnv program will work with the mkv file. The manual doesn't list supported source files. I suppose I can create the separate files but tell BDRB about the MKV file, even though the AVS script will use the separate video file and pass that to the encoder.

Now I just need to tell BDRB to use the HEVC encoder and force encode it.

Oh, there is the following BDRB option:
FIXED_BITRATE=n
where n > 50. 50 what?

All of this may be moot (except the FIXED_BITRATE) if setting the IVTC of 1080i video to on works, as well as getting forced HEVC encoding to work. I'll have to do some testing in a while.

gonca
7th May 2023, 17:49
Not sure if the dgindexnv program will work with the mkv file
I believe it should

MrVideo
7th May 2023, 22:31
Not sure if the dgindexnv program will work with the mkv file
I believe it should
Thanks. Still need to know what FIXED_BITRATE's units are: > 50 Kbps?

gonca
8th May 2023, 00:16
FIXED_BITRATE is in Kb/s

MrVideo
8th May 2023, 00:58
FIXED_BITRATE is in Kb/s
Thanks. That info should be in the hidden options file.

MrVideo
8th May 2023, 02:42
Here are some options that are in the INI file, but not in the HIDDEN options file, so there is no definition. So if anyone knows what these mean, please post. Thanks.

ENCODER=1
MODE=0


I tried with a short segment of the 1080i MPEG-2 file and it was a bust. No IVTC and it was AVC, not HEVC;
The BDRB INI file contents:
[Options]
VERSION=0.61.0.28
ENCODER=1
MODE=0
TARGET_SIZE=23500
CUSTOM_TARGET_SIZE=23500
AUTO_BURN=0
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=eng;
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=0
DEINTERLACE=0
SD_TO_1080=0
IGNORE_3D=0
CONVERT_WIDE=0
DTS_REENCODE=0
AC3_REENCODE=0
AC3_640=1
AC3_192=0
KEEP_HD_AUDIO=1
AUDIO_DRC=0
DECODER=3
AVCHD=1
REMOVE_WORKFILES=0
REMOVE_OUTPUT=0
USE_FILTERS=0
BDMV_CERT_ONLY=0
IVTC_PULLDOWN=1
ASSUME_DVD_PAL=0
FRIMSOURCE=0
COMPLETION_BEEP=0
OUTPUT_SBS=0
NEROAAC=0
SUPTITLE=0
PGSTOSRT=0
AUDIO_TRACK_LIMIT=0
SUBTITLE_TRACK_LIMIT=0
MENU_BACKGROUND=C:\BD_Rebuilder-0.61.28\misc\menuback.jpg
MENU_AUDIO=C:\BD_Rebuilder-0.61.28\tools\blankclip\blank.ac3
IMPORT_THRESHOLD=0
QUICK_PLAY_THRESHOLD=0
MIN_PLAYLIST_MINS=0
MENU_AUTO_BACKGROUND=0
MENU_AUTO_DVDAUDIO=1
MENU_FORCE_QUICK=1
MENU_PLAY_SEQUENTIAL=0
MENU_START_WITH_MENU=1
IMPORT_LIMIT_LANG=0
IMPORT_KEEP_PLAYALL=0
IMPORT_VFR_SCAN=0
FORCE_NOENCODE=0
MENU_FONT=Century Gothic
MENU_FONT_BOLD=1
MENU_FONT_ITALIC=0
MENU_VERTICAL=450
MENU_HORIZONTAL=560
MENU_ACTIVE_COLOR=0xd9ba00
MENU_CUSTOM_COLOR=
MENU_INACTIVE_COLOR=0xd98200
MENU_BACKDROP_OPACITY=0
MENU_ROLLOVER=1
MENU_ITEMS_PAGE=11
ENCODE_QUALITY=2
ONEPASS_ENCODING=0
AUTO_QUALITY=0
IMPORT_VFR_FILM=0
AVSFilter01=selectevery(2,0)
IMPORT_PREPARE_MKV=0
MOVIEONLY_TYPE=28
ALTCRF=23
ALT_TARGET=1024
ALT_CRF_TARGET=1024
ALTMETHOD=0
ALTAUTOCROP=0
NVENC_CAPABLE=1
UHD_CONVERT_ENABLE=1
UHD_V3_MODE=1
FIXED_BITRATE=7000
FORCE_ENCODE=1
[Paths]
WORKING_PATH=E:\BD-REBUILDER\WORK\
SOURCE_PATH=E:\BD-REBUILDER\WORK\IMPORTS\BDRB-TEST-FILE\
DGIndexNV=C:\Program Files (x86)\DGAVCDecNV\DGIndexNV.exe
DGDecNV=C:\Program Files (x86)
\DGAVCDecNV\DGDecodeNV.dll

MrVideo
8th May 2023, 02:58
I discovered that IVTC_PULLDOWN was incorrect. I set it to 0 and added IVTC_1080i=1 to the INI.

Well that was worse. At least this time the log said that it was doing IVTC, but immediately failed when starting the reencode.

Lathe
8th May 2023, 03:28
Try using avsmeter to check your script,
and let us know about the DVD next time

Will do, thanks Bro!

Lathe
8th May 2023, 03:29
I would even consider to convert that movie to greyscale rather than fiddling with colors.

Interesting idea, hadn't thought of that...

Lathe
8th May 2023, 03:37
Oh, just one more thing... How can I get a Denoise filter to work. It won't load and run any kind of Denoise dll's for some odd reason (again, the mystery of why some dll's when loaded run and some don't..) Can anyone suggest a Denoise filter that WILL run in the version of AVS that is present for BDRB? (2.58?) Just for the hell of it, here is a picture of my plugins folder. Maybe someone can tell me why some of them run and some of them are simply not recognized with the error: '***** does not exist'

MrVideo
8th May 2023, 03:41
Once last try, using my own AVS script. It too failed to reencode. The BDRB AVS script:
#Created by BD Rebuilder - v0.61.28
LoadPlugin("C:\Program Files (x86)")
DGSource("E:\BD-REBUILDER\WORK\WORKFILES\VID_00001.DGI", fieldop=0)
LoadPlugin("C:\Program Files (x86)\DGAVCDecNV\DGDecodeNV.dll")
dgsource("E:\\BDRB-test-file.dgi")
assumetff()
telecide(guide=1)
decimate()
ConvertToYV12().AssumeFPS(30000,1001)
A few things wrong. The first LoadPlugin is useless. I think the path in the INI file (shown above) is wrong. No idea how in the past it got split into two lines. Once I fixed that, the reencode no longer fails. I also removed my LoadPlugin and dgsource lines. But, look at the last line: AssumeFPS(30000,1001). That is not good. At that point in time it is now 23.976.

When it finished encoding, the video was indeed no longer 2:3 pulldown. But after the encoding BDRB claimed it failed. It might be related to the fact the video is really 23.976, not 29.97. I pulled the video and audio into VideoReDo and observed that the 2:3 was gone and that it plays a little fast.

So, I need to find out how to get rid of the AssumeFPS(30000,1001) and get it do an HEVC encoding instead of AVC.

MrVideo
8th May 2023, 03:53
Oh, just one more thing... How can I get a Denoise filter to work. It won't load and run any kind of Denoise dll's for some odd reason (again, the mystery of why some dll's when loaded run and some don't..) Can anyone suggest a Denoise filter that WILL run in the version of AVS that is present for BDRB? (2.58?) Just for the hell of it, here is a picture of my plugins folder. Maybe someone can tell me why some of them run and some of them are simply not recognized with the error: '***** does not exist'
The AVISynth DLL is installed for the whole computer, not just BDRB: C:\Windows\System32. Make sure that the plugins are 32 bit for the 32 bit installed AVISynth. Even though my Win7 is 64 bit, I've installed the 32 bit version. AIUI, the 64 bit version doesn't really gain anything.

Please list a plugin that doesn't load.

MrVideo
8th May 2023, 04:18
I got to thinking (ya I know, a dangerous thing) that the split path issue probably caused the internal IVTC to fail. It was. Once I turned off my IVTC scripting and turned back on IVTC_1080i=1, It went to completion and the ASSUME value was correct.

A big takeaway is not to do your own IVTC unless you can find a way to get the ASSUME value to either go away, or be correct.

So, that leaves only one thing: how to get the HEVC encoder to be used.

MrVideo
8th May 2023, 04:48
From what I can determine, ENCODER=0 means the x264/x265 software encoders and ENCODER=1 means the nVidia hardware encoder.

MrVideo
8th May 2023, 06:18
It has been one frustrating event after another. I've now tried Alternate Movie output, which lets me set MKV with HEVC, keeping the audio.

That goes to completion, but VideoReDoPro hangs when trying to open the MKV file. Even if I import the HEVC audio and AC3 audio into VRD, It reads in the files, but again hangs when I tell it to open the result. VLC plays the MKV file and TsMuxer will read in the MKV file.

VRD will open the MKV file from the standalone nVidia encoder. But, I can't use it for the job to go from MPEG-2 to HEVC because the encoder can't be told to do IVTC.

Sharc
8th May 2023, 07:54
Oh, just one more thing... How can I get a Denoise filter to work. It won't load and run any kind of Denoise dll's for some odd reason (again, the mystery of why some dll's when loaded run and some don't..) Can anyone suggest a Denoise filter that WILL run in the version of AVS that is present for BDRB? (2.58?) Just for the hell of it, here is a picture of my plugins folder. Maybe someone can tell me why some of them run and some of them are simply not recognized with the error: '***** does not exist'
The denoising filters which are included in standard Avisynth installation are listed here under "Pixel restoration filters":
http://avisynth.nl/index.php/Internal_filters#Pixel_restoration_filters

More advanced filters require the installation of the plugins (and dependencies). You find these plugins here under the Denoisers section:
http://avisynth.nl/index.php/External_filters#Denoisers

(I haven't been using BDRB for a long time, so I don't know what gets installed, but I would assume that one of the standard filters should work. You could try SpatialSoften() and TemporalSoften() for example.)

P.S.
It's pretty pointless to attach files here as these might not get approved for a long time. Upload to a file hoster instead.

Lathe
12th May 2023, 05:50
The denoising filters which are included in standard Avisynth installation are listed here under "Pixel restoration filters":
http://avisynth.nl/index.php/Internal_filters#Pixel_restoration_filters

More advanced filters require the installation of the plugins (and dependencies). You find these plugins here under the Denoisers section:
http://avisynth.nl/index.php/External_filters#Denoisers

(I haven't been using BDRB for a long time, so I don't know what gets installed, but I would assume that one of the standard filters should work. You could try SpatialSoften() and TemporalSoften() for example.)

P.S.
It's pretty pointless to attach files here as these might not get approved for a long time. Upload to a file hoster instead.

Excellent, I will check on that, thanks!

Lathe
12th May 2023, 05:55
Something else than what I was working on... I'm trying to reencode an HEVC MKV file into a regular BD. So far, the only way I can see which is fine to do that is Alternate Movie Output MKV intact audio. I set it for a CRF of 18 and a file output size of 16,000 so that I have enough room for the TSMuxer mux to BDMV overhead and so that I can add back in the HD audio file. What is interesting is that BDRB is I guess 'checking' on the CRF to use to fill the output size, but I didn't remember it taking so long to 'Analyze' the video. It's on its 3rd pass of analyzing and each pass is taking about 7 minutes! Seems like I remember doing this a long time ago and each analyzing pass only took like 30 seconds. Weird... But, as long as it works, that's okay :)

***EDIT

WHOA! It is on its 4th analyzing pass and it is going to take 45 minutes! HUH...?! Why is it taking so long to 'Analyze' the video even before it begins to process it? Am I missing something here...?

***EDIT 2

Hmmm, wait a minute... The last number, what I THOUGHT was the 4th analysis pass is in brackets [21.88] so maybe that is the final CRF it landed on, and the 45 minutes or so is how long the actual encode will take. I checked in the WORKFILES folder, and what I THINK is the resulting AVS.264 file is growing, so maybe just those first 3 passes were 'checks' But, the resulting size doesn't seem like it is going to be any where near the 16,000 that I set it...??? It's about 25% done and the resulting file is about 1 Gig. Hmmm... I am definitely missing something here. Shouldn't it have chosen a CRF setting to 'fill' the output size that I set? I was going to burn the resulting TSMuxed file to Blu-ray, so I have plenty of room to fill most of it, but somehow I didn't set it properly...

***EDIT 3

Okay, here is the log of I THINK what BDRB is doing. Doesn't it LOOK like the resulting size should be about 18 Gigs or so? Doesn't it show a Resize factor of 3.x (original size approx 6 Gigs)? I am indeed missing something... The resulting size was 3.8 Gigs...??? HUH...

[Status]
VERSION=v0.61.28
SOURCE_SIZE=5987063808
SOURCE_VIDEO_SIZE=5987063808
TARGET_SIZE=18559795200
REDUCTION=3.09998286225046
RESIZE_1080=0
RESIZE_1440=0
AUDIO_TO_KEEP=eng;
KEEP_HD_AUDIO=-1
SUBS_TO_KEEP=eng;
BACKUP_MODE=1
MOVIEONLY_TYPE=11
USE_LAVF=0
INSTANCES=1
DGDECNV=0
DGDECIM=0
FRIMSOURCE=0
FFMS2=0
SSIF_MODE=0
UHD_V3_MODE=0
QUICK=0
ENCODE_STEP=1.5
[00000]
AUDIO=
PGS=
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=18559795200
SPLITS=1



[05/11/23] BD Rebuilder v0.61.28
[21:41:38] Source: _00000
- Input BD size: 5.58 GB
- Approximate total content: [01:34:32.625]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV Container, 1920x1080, Intact Audio
- Quality: Very Good (Very Fast)
- X264 Tweak(s) enabled
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:41:38] PHASE ONE, Encoding
- [21:41:38] Processing: VID_00000 (1 of 1)
- [21:41:38] Extracting A/V streams [VID_00000]
- [21:42:04] Reencoding video [VID_00000]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 136,007 frames
- [21:42:04] Reencoding: VID_00000, Pass 1 of 1
- Analyzing 2.00 20.55 21.80 [21.88]

***EDIT 4

OH WOW! The colours look awful! Heh, I'm REALLY going to hafta get up to snuff on this stuff. The original HEVC file did have HDR which I know has something to do with the colour. When I play the original file, the colours are super deep and rich. When I play the resulting reencoded x264 file, OMG everything looks horrible and washed out.

Sooooo... Who here wants to kindly give me an education on this...? :D DAMN it looks bad!

MrVideo
12th May 2023, 07:33
When I play the resulting reencoded x264 file, OMG everything looks horrible and washed out.
HDR is H.265/HEVC only. So, you can't put the file onto a regular BD, only on a UHD formatted BD. That means you'll need a UHD BD player.

Lathe
12th May 2023, 08:19
HDR is H.265/HEVC only. So, you can't put the file onto a regular BD, only on a UHD formatted BD. That means you'll need a UHD BD player.

Ah, that is true my very detailed friend, however I just found out that I can use Handbrake (no disrespect to JD of course :)) and it has a colourspace setting, BT709 where it converts the HDR to SDR. It may not be perfect, but let me tell you, it looks a HELL of a lot better than the encode I just did above! :D I've already done a preview on it, and it looks great! I would love to use BDRB, but I don't know if it has that capability.

Lathe
13th May 2023, 03:32
I'm wondering if it is possible to use BDRB with the BT709 colourspace? I've currently tried Handbrake and it worked well, but it doesn't seem to have a target size, so I can't allow it do an encode that will fill a Blu-ray. I've also tried Vidcoder, which is almost identical, but it DOES have a target size, which I'm currently running now. It takes quite a LONG time. I'm guessing that there must be a TON of computations in order to resize it from UHD to HD, and also converting the HDR to SDR. I'd be very curious to see if I could run the same thing with BDRB, because I would always prefer that if possible. I'm not planning on doing a lot of these conversions, but at least it's nice to know they can be done if 'needed'

On the DVD I'm trying to improve... Spacial Soften did not seem to work, but Temporal soften does, although I read it is not as effective. It does seem to help some, but I'm getting to learn the parameters. There still is a bit of motion blur, but I'm guessing at this point after doing an IVTC to it, there is likely not much I can do about it. But, it IS much better than the HD file for sure! I wonder if there are any other denoising filters that I could use that either come with Avisynth or that I could drop in my plugins folder and then load and run it (I still haven't quite figured out why some dll's run and some don't.

I'll try to render a little snippet with the settings I have so far and post it here so that you guys can take a look and offer any other suggestions that might improve it. I'll mess with the colours, brightness, and contrast later. I HAVE used that plugin successfully many times before, so I am very familiar with that one (except I don't quite remember the actual name of it at this moment :))

MrVideo
13th May 2023, 04:17
I'm wondering if it is possible to use BDRB with the BT709 colourspace? I've currently tried Handbrake and it worked well, but it doesn't seem to have a target size, so I can't allow it do an encode that will fill a Blu-ray.
I do not know exactly what your source is. If it is smaller than a 25GB BD, then don't try and make it larger. If it is larger, then I can understand the need.

I'm beginning to believe that you do not have the capability to play 2160p UHD material. True?

Lathe
13th May 2023, 04:46
I do not know exactly what your source is. If it is smaller than a 25GB BD, then don't try and make it larger. If it is larger, then I can understand the need.

I'm beginning to believe that you do not have the capability to play 2160p UHD material. True?

Ah, always the master of deduction :D

True!

My 15 year old Plasma is still going strong and looking very good. My primary Blu-ray player is also about a 10 year old OPPO BDP-83 PreCinamvia that I just got serviced at OPPO. Sooooo... Until my television dies, which could be any moment, I must deal with 1080.

As far as the size of the output, you may very well be right (could be the very first time! :D) I guess I'm just thinking that if the encoder has to go through all this computation and conversion, that if I am making a compliant Blu-ray anyway, why not allow the space so that in all that number crunching I won't lose any/much quality. But, that may be completely wrong, IDK... I do know in principle that just taking any source and simply making it bigger does not make it any better (not counting other personal areas of course...) But, this whole converting from UHD to HD and all this HDR to SDR stuff, I honestly am a bit lost that since I have to do all this heavy duty reencoding anyway, would allowing more space help that at all...?

MrVideo
13th May 2023, 05:39
Think of MPEG-2 -> H.264 -> HEVC as two times better for each transistion. So, if you had a 30 Mbps MPEG-2 file, going to H.264 would require encoding at 15 Mbps to keep the same quality. To go from H.264 to HEVC would mean encoding at 7.5 Mbps.Plus, the size of the file would be smaller. I do not know the ratio for file size changes.

If the HEVC file you are working with is already < 25GB, you would, in theory, encode at a rate that is twice the rate of the HEVC file. But, that means a file size increase. An original file that is less than half of a BD, you'd probably be OK at twice the H.264 bitrate. The higher the bitrate, the longer it takes to encode.

You can get great H.264 files with a bitrate of 8-10 Mbps. I've done a lot of x264 encoding of MPEG-2 to H.264 (2-pass) at those bitrates, doing IVTC.

Experimentation will be required. After you've done it a few times, a pattern will fall into place so that the next job will be easy.

Just don't try and make the result ~22.5 GB each time. If it only comes out to 8 GB, so be it. Nothing will be gained by going larger.

Lathe
14th May 2023, 05:54
Think of MPEG-2 -> H.264 -> HEVC as two times better for each transistion. So, if you had a 30 Mbps MPEG-2 file, going to H.264 would require encoding at 15 Mbps to keep the same quality. To go from H.264 to HEVC would mean encoding at 7.5 Mbps.Plus, the size of the file would be smaller. I do not know the ratio for file size changes.

If the HEVC file you are working with is already < 25GB, you would, in theory, encode at a rate that is twice the rate of the HEVC file. But, that means a file size increase. An original file that is less than half of a BD, you'd probably be OK at twice the H.264 bitrate. The higher the bitrate, the longer it takes to encode.

You can get great H.264 files with a bitrate of 8-10 Mbps. I've done a lot of x264 encoding of MPEG-2 to H.264 (2-pass) at those bitrates, doing IVTC.

Experimentation will be required. After you've done it a few times, a pattern will fall into place so that the next job will be easy.

Just don't try and make the result ~22.5 GB each time. If it only comes out to 8 GB, so be it. Nothing will be gained by going larger.

That sounds like a good guide...

Also, about the plugins in my Avisynth folder NOT loading... Here is an example that you asked for:

DirectShowSource("Moontrap002.mkv")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\UnFilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TemporalDegrain.dll")
TemporalSoften(4, 4, 8, 15, 2)
TemporalDegrain()

##UnFilter(20, 20)

Now, with the DVD source that I am now working with, I've defeated the Unfilter for now. But the damn TemporalDegrain is sitting RIGHT IN my damn plugins folder, but when I try to load it I get the error, 'There is no such plugin' GRRRRRrrrrr! WTF guys? It's like Russian Roulette (no disrespect to Russians) what will load and work and what won't. It SEEMS totally random and EXTREMELY frustrating!

gonca
14th May 2023, 12:00
That sounds like a good guide...

Also, about the plugins in my Avisynth folder NOT loading... Here is an example that you asked for:

DirectShowSource("Moontrap002.mkv")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\UnFilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TemporalDegrain.dll")
TemporalSoften(4, 4, 8, 15, 2)
TemporalDegrain()

##UnFilter(20, 20)

Now, with the DVD source that I am now working with, I've defeated the Unfilter for now. But the damn TemporalDegrain is sitting RIGHT IN my damn plugins folder, but when I try to load it I get the error, 'There is no such plugin' GRRRRRrrrrr! WTF guys? It's like Russian Roulette (no disrespect to Russians) what will load and work and what won't. It SEEMS totally random and EXTREMELY frustrating!

Load your script in Vdub2, and see what it says.
If need be, test your script with AVSMeter

MrVideo
14th May 2023, 14:11
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\UnFilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TemporalDegrain.dll")

Plugins that are in that path are not specifically loaded. When the computer is started, avisynth is automatically loaded, it then automatically loads all plugins in that path.

TemporalDegrain is not a dll. Google it and go to the avisynth wiki link.

Lathe
16th May 2023, 03:52
Load your script in Vdub2, and see what it says.
If need be, test your script with AVSMeter

Actually I did DL and run AVSMeter as per Selur's suggestion. He suggested this huge C++ and Windows pack to install. I THINK that plugged some of the 'holes' He also told me to use LoadDll. I'll hafta go back and check the syntax, but basically use that Dll and then load the whole path to the FF3Wwhatever dll that wasn't recognized to run some of the other stuff.

Lathe
16th May 2023, 03:54
Plugins that are in that path are not specifically loaded. When the computer is started, avisynth is automatically loaded, it then automatically loads all plugins in that path.

TemporalDegrain is not a dll. Google it and go to the avisynth wiki link.

Yeah, in my desperation I renamed TemporalDegrain to a .dll suffix, but I did revert it back to an .avsi as it is supposed to be. ONE of these bloody days I'll understand what the hell is going on with all these plugins in Avisynth :)

MrVideo
16th May 2023, 05:32
but I did revert it back to an .avsi as it is supposed to be.
.AVS not .AVSI. Instructions for its use are in the link.

Lathe
16th May 2023, 08:44
So, I've been spending hours and hours trying to get this movie to look at least somewhat watchable. The good news is now after Selur's suggestion to install all those C++ and Visual Runtimes, and who knows what else (it took about 10 minutes) now most of the dll's do run after being loaded, so I get to try out all this stuff.

I just couldn't deal with the washed out and super ghosty/comby DVD print, so I've been working with the screwed up HD print. But, since I've been able to get the denoising and decombing filters working, I think after a LOT or trial and error, I am getting there. First, I tried TemporalSoften, but it didn't seem strong enough, so I then went to the Denoise and that is a lot stronger. Then, I'm trying to resharpen it and found a supposedly good edge sharpener vsMSharpen (it sure it great to be able to run all these dll's now :))

Anyway, this film is NEVER going to look 'good', but at least I THINK I'm 'improving' it considering the messed up encode I started with. Oddly, when I just tried dropping my original AVS code into BDRB and set it for Alternate Output, the same resolution, intact audio, and a CRF of 16, for some reason it still 'analized' the CRF values and chose 12.x...??? Then, when it was done 3 hours later, the audio was WAY out of sync, even though the runtime of the resulting file was the same as the original file and audio. Again...HUH??? Using those settings didn't look that great anyway, but I was very disappointed mainly in the file being out of sync.

I FINALLY figured out how to use MKVMerge to set the FPS correctly after a million tries (DAMN syntax!) Anyway, I've just been using the x264 CMD line set to ultrafast so I can do small snippets and see how they look. Again, VERY oddly when I tried to set the SAR according to Selur's values for both PAL and NTSC, none of them would render the aspect ratio correctly, so I just eliminated the line. Another really odd thing is that the original HD MKV file shows as 25 FPS in MediaInfo, but the resulting encode using the CMD line always renders it as 20 FPS...??? And, if I change it using MKVMerge to 25, then it runs too fast. WTF...?!! So, I leave it alone and it SEEMS to be the right speed. Hopefully, when I'm done screwing around with the video, I can somehow get the audio in sync with it (uh huh... sure...)

I even tried using AssumeFPS(25/1) and Assume FPS(boolean string for either PAL or NTSC) But, nope... the CMD line renders it at 20 FPS EVERY time no matter what. Oh well... :)

So, here's a snippet with the following code that I've come up with so far (still, not really knowing what the hell I'm doing, but at least doing it...) And, I'll link to the snippet on my site. I know it still looks hideous, but at least MOST of the combing and ghosting and noise is gone, so we'll see if I can figure it out before I die...

Here is the code I have currently come to after a whole bunch of trial and error (after loading all the dll's first, of course):

TComb(mode=2, fthreshC=6, othreshC=6)
assumeTFF()
TFM().TDecimate()
DeNoise(getvar=false, var=120, evar=160, xgrid=5, ygrid=7)
vsMSharpen(threshold=2.0, strength=90.0, mask=false, luma=true, chroma=true)
UnFilter(90, 90)

I just grabbed a nice USB thumb drive from Amazon so that I can put the various encoded snippets on it and then play them directly on my OPPO to see how they look. Interesting that the OPPO natively incorporates some kind of filters automatically when I play the original file which does help some, but it still looks pretty bad.

But, I have a LONG ways to go! Any suggestions would be great. It honestly IS a really good film, so I want to keep at it :)

http://lathe-of-heaven.com/AVSSnippet.mkv

MrVideo
16th May 2023, 11:19
OK, you were getting 20 fps results from 25 fps because you were doing IVTC to the video. 25 fps video doesn't have 2:3 pulldown, ever. The TFM().TDecimate() line needs to go away.