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

MrVideo
25th December 2021, 09:43
So, I thought I would try something else. The disc's 2nd audio stream is a descriptive track. Therefore the plan was to replace the 2nd stream with a DD5.1 stream that doesn't have Cinavia. While BDRB ws recoding the video, I replaced the audio stream in the workfiles directory. It has the same PID as the file that was replaced.

After BDRB was finished, I used BDEdit to fix the chapter marks and remove the listing of audio streams that are not there.

The disc refuses to let the player select the audio stream by pushing the "Audio" button. Even if you use the menu to select the descriptive track, only the TrueHD track is played.

No idea why the DD5.1 track can't be played.

Update: I took the M2TS file that BDRB created and fed it to tsMuxer. I had it create a BD ISO. That played just fine, allowing me to switch between audio tracks.

As this is a UHD disc, there are no special features, so I'll just use BDRB to create a disc with a simple menu.

SeeMoreDigital
25th December 2021, 11:02
The Dolby TrueHD streams are with core.
Dolby TrueHD audio streams can be encoded with or without a 'lossy' Dolby Digital core. But just as with Dolby Digital Plus, a 'lossy' Dolby Digital core is a mandatory requirement of the Blu-ray disc specification.

MrVideo
26th December 2021, 01:09
Right. My response was because it was thought that the stream I had was without a core, and in this case it wasn't.

MrVideo
26th December 2021, 02:42
Well, creating a UHD disc with a simple menu is currently a bust. It is because of the issue whereby BDRB wants to re-encode TrueHD audio to plain AC3 audio, even though the Keep HD audio is set to 1. Plus, the re-encode AC3 is set to 0.

AmigaFuture
26th December 2021, 04:10
Hello All, Happy Yuletide.

I've noticed this problem with several BDs...some of I've processed a long time ago, so I reripped my originals to check. The processing (blanking) part seems to go fine. It's when I have BD-RB make MKVs from the processed BD that this error happens. There's an "Error: -2" that happens with some. I've reripped with MakeMKV and DVDFab..doesn't matter which one.

[12/25/21] BD Rebuilder v0.61.25
[16:59:50] Source: NORTH_SHORE
- Input BD size: 29.84 GB
- Approximate total content: [02:17:35.638]
- Target BD size: 46.26 GB
- Windows Version: 6.1 [7601]
- MOVIE and MENUS mode enabled
- Auto Quality: Very Good (Very Fast), 1-Pass VBR
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[16:59:50] PHASE ONE, Encoding
- [16:59:50] Processing: VID_00000 (1 of 6)
- [16:59:50] Extracting A/V streams [VID_00000]
- [16:59:53] Reencoding video [VID_00000]
- [16:59:53] Keeping original video (no reencode)
- [16:59:53] Processing audio tracks
- [16:59:53] Multiplexing M2TS
- [16:59:57] Blanking: VID_00001 (2 of 6)
- [16:59:57] Blanking: VID_00002 (3 of 6)
- [16:59:57] Processing: VID_00004 (4 of 6)
- [16:59:57] Extracting A/V streams [VID_00004]
- [17:07:27] Reencoding video [VID_00004]
- [17:07:27] Keeping original video (no reencode)
- [17:07:27] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- [17:07:27] Multiplexing M2TS
- [17:28:26] Blanking: VID_00007 (5 of 6)
- [17:28:26] Processing: VID_00010 (6 of 6)
- [17:28:26] Extracting A/V streams [VID_00010]
- [17:28:30] Reencoding video [VID_00010]
- [17:28:30] Keeping original video (no reencode)
- [17:28:30] Processing audio tracks
- [17:28:30] Multiplexing M2TS
[17:28:33]PHASE ONE complete
[17:28:33]PHASE TWO - Rebuild Started
- [17:28:33] Rebuilding BD file Structure
[17:29:00] - Encode and Rebuild complete
[17:29:00] JOB: NORTH_SHORE finished.
[12/25/21] Checking System Settings
----------------------
[12/25/21] BD Rebuilder v0.61.25
[17:30:30] Source: NORTH_SHORE_00004
- Input BD size: 27.31 GB
- Approximate total content: [01:35:52.663]
- Windows Version: 6.1 [7601]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV, Intact Video, Intact Audio
- Quality: High Quality (Default)
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[17:30:34] PHASE ONE, Encoding
- [17:30:34] Processing: VID_00010 (1 of 3)
- [17:30:34] Extracting A/V streams [VID_00010]
EXIT CODE: -2
- Extracting video streams [VID_00010]
- Extracting audio/subtitle streams [VID_00010]
EXIT CODE: -2
- Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: L:\NORTH_SHORE\BDMV\\STREAM\00010.m2ts
- Extracting audio streams [VID_00010]
EXIT CODE: -2
- Error in attempt to extract audio.
- Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: L:\NORTH_SHORE\BDMV\\STREAM\00010.m2ts
- Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: L:\NORTH_SHORE\BDMV\\STREAM\00010.m2ts
[18:10:12] - Failed to retrieve audio, aborted

[Options]
VERSION=0.61.0.25
ENCODER=0
MODE=3
ENCODE_QUALITY=0
ONEPASS_ENCODING=2
AUTO_QUALITY=1
TARGET_SIZE=47366
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=eng;
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=0
DEINTERLACE=1
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=0
AUDIO_DRC=0
DECODER=0
AVCHD=1
REMOVE_WORKFILES=0
REMOVE_OUTPUT=0
USE_FILTERS=0
BDMV_CERT_ONLY=0
IVTC_PULLDOWN=0
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
CUSTOM_TARGET_SIZE=23500
MOVIEONLY_TYPE=28
ALTCRF=23
ALT_TARGET=1024
ALT_CRF_TARGET=1024
ALTMETHOD=0
ALTAUTOCROP=0
ENABLE_TEST=1
ENABLE_BLANKING=1
QUICK_EXTRAS=0
[Paths]
SOURCE_PATH=L:\NORTH_SHORE\
WORKING_PATH=L:\


Any ideas? I've also checked my storage HDDs and they're in good shape.

AmigaFuture
26th December 2021, 05:51
Oops...it's having problems creating an MKV from a fresh rip also.

gonca
26th December 2021, 14:10
MrVideo
Can you not encode the video(s) outside of BDRB?
If yes, then use tsMuxeR to create seperate BDs (each video/audio file)
BDRB can the import them and create a folder structure with a menu

MrVideo
26th December 2021, 15:18
Can you not encode the video(s) outside of BDRB?
No. Not set up for H265 encoding. I suspose I could use VideoReDoPro to do it, but it would be a guess as to what to configure it for in order to come out with the right size. Also, it would be a software encoding and therefore take a coon's age to do it.
If yes, then use tsMuxeR to create seperate BDs (each video/audio file) BDRB can the import them and create a folder structure with a menu
I'm not sure how that would help. BDRB extracts the video and audio streams. It then wants to recode the TrueHD to plain ole AC3.

gonca
26th December 2021, 15:32
I use the approach I described and it never re-encodes my thd files.
It just demuxes and remuxes them

You can always try x264 launcher (it does hevc as well)
It will enter the basic settings for you but you can enter all the custom command switches you want
If you have a feature capable NVidia card you can use NVEncc

Lowpro
26th December 2021, 21:17
Can you not encode the video(s) outside of BDRB? If yes, then use tsMuxeR to create seperate BDs (each video/audio file) BDRB can the import them and create a folder structure with a menu.
I'm not sure how that would help. BDRB extracts the video and audio streams. It then wants to recode the TrueHD to plain ole AC3.BD Rebuilder does the same if I import content containing EAC3 audio. To retain the EAC3 audio I first extract a copy of the audio from the content I'm working with for use later. I then use multiAVCHD to create a Blu-ray without a Blu-ray menu. When building the Blu-ray I don't include the audio. I then import the resulting Blu-ray to BD Rebuilder creating the Blu-ray menu. Once testing to ensure the Blu-ray menu is good to go I re-author the Blu-ray using multiAVCHD adding the audio back in addition to adding subtitles and updating the chapter stops if needed.

MrVideo
28th December 2021, 06:02
I just did a backup of a UHD and even though the meta file was set to do chapters every 5 minutes, the playlist had the original chapter marks.

jdobbs
28th December 2021, 18:17
Well, creating a UHD disc with a simple menu is currently a bust. It is because of the issue whereby BDRB wants to re-encode TrueHD audio to plain AC3 audio, even though the Keep HD audio is set to 1. Plus, the re-encode AC3 is set to 0.Your statement misrepresents the facts. It isn't an "issue" for BDRB to insist that your audio meets the BD standard. The "Keep HD" flag doesn't bypass the need to meet BD requirements.

I've personally created dozens of UHD discs using BD-RB, many with TrueHD. So I wouldn't say "creating a UHD disc with a simple menu is currently a bust" would be an accurate statement either.

Trying to push for something you want by making misleading statements doesn't work with me. So the concept of creating a hidden flag to keep EAC3 streams is off the table. It was a bad idea anyway.

videoh
28th December 2021, 19:09
Trying to push for something you want by making misleading statements doesn't work with me. You should show more respect to your users. Without them, you are nothing.

CV91913
28th December 2021, 23:25
You should show more respect to your users. Without them, you are nothing.
No, users should show more respect for the developer. JDobbs has worked on this "beta" software for years for FREE. I am guessing he has spent far more making changes that users request or fixing problems than he has made from donations.

Some are just lucky he has mellowed with age. In the old days...strikes may have rained down. :D

videoh
29th December 2021, 00:08
Strike for what? Offering some friendly advice?

MrVideo
29th December 2021, 05:59
Your statement misrepresents the facts. It isn't an "issue" for BDRB to insist that your audio meets the BD standard. The "Keep HD" flag doesn't bypass the need to meet BD requirements.
The TrueHD audio is just that, TrueHD audio, not EAC3 audio. I have no idea where you got the idea that this was about EAC3 audio. It isn't.

Here is the MediaInfo about the TrueHD stream:
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : MLP FBA AC-3 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 1 h 56 min
Bit rate mode : Variable
Bit rate : 640 kb/s
Maximum bit rate : 8 229 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossless
Stream size : 532 MiB (3%)
Service kind : Complete Main
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
I've personally created dozens of UHD discs using BD-RB, many with TrueHD. So I wouldn't say "creating a UHD disc with a simple menu is currently a bust" would be an accurate statement either.
I originally took the UHD structure and let BDRB do a backup of it. I was then going to take that backup and replace one of the AC3 audio streams with a different audio stream. No matter what I tried, including using BDEdit (0.49), I could not get the result to play. There are posts about it.

Since this UHD disc doesn't have any special features (most don't), I decided to create a simple menu of the M2TS file. First I put the M2TS file into tsMuxer so that I could get rid of unwanted audio and sub-title streams and add in the wanted audio stream. I also had to set the language for the audio and subtitles. I created a project for this job:
[Options]
VERSION=0.61.0.25
ENCODER=1
MODE=0
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=1
CONVERT_WIDE=0
DTS_REENCODE=0
AC3_REENCODE=0
AC3_640=1
AC3_192=0
KEEP_HD_AUDIO=1
AUDIO_DRC=0
DECODER=2
AVCHD=1
REMOVE_WORKFILES=0
REMOVE_OUTPUT=0
USE_FILTERS=0
BDMV_CERT_ONLY=0
IVTC_PULLDOWN=0
ASSUME_DVD_PAL=0
FRIMSOURCE=0
COMPLETION_BEEP=0
OUTPUT_SBS=0
NEROAAC=0
SUPTITLE=0
PGSTOSRT=0
AUDIO_TRACK_LIMIT=2
SUBTITLE_TRACK_LIMIT=4
CUSTOM_TARGET_SIZE=23500
MENU_BACKGROUND=E:\BD-Rebuilder\Passengers\Passengers-bkg.jpg
IMPORT_THRESHOLD=0
QUICK_PLAY_THRESHOLD=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=Helvetica
MENU_FONT_BOLD=1
MENU_FONT_ITALIC=0
MENU_VERTICAL=850
MENU_HORIZONTAL=850
MENU_ACTIVE_COLOR=0xCFCFCF
MENU_CUSTOM_COLOR=
MENU_INACTIVE_COLOR=0x808080
MENU_BACKDROP_OPACITY=0
MENU_ROLLOVER=1
MENU_ITEMS_PAGE=10,12
ENCODE_QUALITY=2
ONEPASS_ENCODING=0
AUTO_QUALITY=0
IMPORT_VFR_FILM=0
AVSFilter01=selectevery(2,0)
IMPORT_PREPARE_MKV=0
UHD_CONVERT_ENABLE=1
UHD_V3_MODE=1
NVENC_CAPABLE=1
MIN_M2TS_SIZE=600
MENU_AUDIO=C:\BD_Rebuilder-0.61.25\tools\blankclip\blank.ac3
[Paths]
WORKING_PATH=E:\BD-REBUILDER\WORK\
SOURCE_PATH=E:\BD-REBUILDER\WORK\IMPORTS\00001.\
DGIndexNV=C:\Program Files (x86)\DGAVCDecNV\DGIndexNV.exe
DGDecNV=C:\Program Files (x86)\DGAVCDecNV\DGDecodeNV.dll
This is the result of running the job:
[20:43:09] Importing: 00001.
- [20:43:21] Importing video file: (1 of 1)
- Preparing M2TS for processing...
- Collecting audio/video streams from source...
- Converting audio, Track #2, THD to AC3...
- Integrating into pseudo-BD structure...
- [21:08:30] Creating Quick-Play Menu...
- Encoding menu background...
- Building menu structure...
[21:08:33] Video import completed successfully.
Notice the converting audio line. Didn't another user also have this issue? I'd have to go back thru a lot of posts to fine it. Either way, I'm not making this up. Oh, and the converted audio was also mono, which I do remember as being an issue for another user.

In order to make sure that tsMuxer didn't screw something up, I ran the original M2TS file thru the same project and got:
[21:14:06] Importing: 00001.
- [21:14:25] Importing video file: (1 of 1)
- Preparing M2TS for processing...
- Collecting audio/video streams from source...
- Converting audio, Track #2, THD to AC3...
- Integrating into pseudo-BD structure...
EXIT CODE: -1
- Source issue found, attempting correction...
[22:35:19]ERROR: Removing compression. Aborted.
I have no clue as to what it did not like. I guess using tsMuxer made the file more likable by BDRB. No mater, since the TrueHD file was also converted by BDRB.

So, for me, it was indeed a bust.
Trying to push for something you want by making misleading statements doesn't work with me. So the concept of creating a hidden flag to keep EAC3 streams is off the table. It was a bad idea anyway.
As can be seen, there were no misleading statements and there was nothing regarding EAC3 with this issue. I do not appreciate turning this into something that it isn't. Saying that you'll take away something that wasn't my fault isn't very nice either.

gonca
29th December 2021, 12:02
As I have said before, I never had my audio re-encoded on an import to create a simple menu.
Might be something specific to your system.

MrVideo
29th December 2021, 13:19
As I have said before, I never had my audio re-encoded on an import to create a simple menu.
Might be something specific to your system.
I do not see how anything on my system could be so specific that it would tell BDRB to re-encode TrueHD audio when importing a M2TS file. UHD or 1080p?

You can see my config file. I do File->Video Files->M2TS file

It would take a special compile of the program so that it listed in the log file as to the choice(s) it took to decide to recode the audio.

jdobbs
29th December 2021, 18:54
You should show more respect to your users. Without them, you are nothing.Coming from you, that's hilarious. Maybe you forget that I was on this site when you were a moderator.

With that said... what am I going to lose -- my virtually non-existent income (all of which gets spent [acually more] to buy discs that people report they have issues with)? I don't do this for any reason other than to help people back up their discs. Smart ass comments and complaints from those who use it are just a sign of modern times, I guess.

jdobbs
29th December 2021, 18:56
No, users should show more respect for the developer. JDobbs has worked on this "beta" software for years for FREE. I am guessing he has spent far more making changes that users request or fixing problems than he has made from donations.

Some are just lucky he has mellowed with age. In the old days...strikes may have rained down. :DMuch, much more.

videoh
29th December 2021, 19:05
Coming from you, that's hilarious. Maybe you forget that I was on this site when you were a moderator. I haven't forgotten anything. I enforced forum rules, something you subject to the whims of your ego.

With that said... what am I going to lose -- my virtually non-existent income? I don't do this for any reason other than to help people back up their discs. Smart ass comments and complaints from those who use it are just a sign of modern times, I guess. It's over, you've already allowed your ego to destroy your reputation.

Do yourself a favor, stop obsessing over me and help MrVideo with his issue.

jdobbs
29th December 2021, 19:14
I haven't forgotten anything. I enforced forum rules, something you subject to the whims of your ego.

It's over, you've already allowed your ego to destroy your reputation.Blah, blah, blah.... crawl back under your rock. Or maybe you want to send me another flaming personal message telling me how crazy liberal I am when you don't even know me?

jdobbs
29th December 2021, 19:29
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.

NVENCC Reencoder (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip)

Just remember --- it requires an NVIDIA video card that supports reencoding. It won't work without it.

AmigaFuture
29th December 2021, 19:35
No, users should show more respect for the developer. JDobbs has worked on this "beta" software for years for FREE. I am guessing he has spent far more making changes that users request or fixing problems than he has made from donations.

Some are just lucky he has mellowed with age. In the old days...strikes may have rained down. :D

I don't get how the comment would be strike worthy, but I do agree with the respect part.

Strike for what? Offering some friendly advice?

My first reaction when I saw that was "Wow! That's a bit much." but I'd reply this way, "If you don't like the software. Don't use it. There are plenty here that do appreciate the efforts." It's not always easy to know if someone is joking or offering advice in _text_ and some people abuse emojies.

Anyway.. Anyone notice any kind of those kind of errors I typed about with "North Shore"? I'm still checking my system to find a possible cause.

videoh
29th December 2021, 19:47
If you don't like the software. I don't use it. Just noticed the shabby treatment of MrVideo.

AmigaFuture
29th December 2021, 19:48
Nothing complicated, I just wrote it to make some things I was doing easier. Hope you find it useful.

NVENCC Reencoder (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip)

That's pretty cool. I wish my GeForce GXT 780 supported the speeds you all are seeing. With my newer Ryzen the CPU is faster. HA! Right now, with prices being as they are, I don't think I'll be in the market for a newer GPU, but..what did you get again, JD? I don't recall. I'm also being a little lazy not searching the thread. Haaa...haaa..

"Smart ass comments and complaints from those who use it are just a sign of modern times, I guess."

You're not even close to the only one noticing this. Wish you were.

jdobbs
29th December 2021, 20:10
but... what did you get again, JD? I don't recall. I got a GeForce GTX 1660. But that was back when they were selling in the $200-$250 range. I don't think I could afford the prices they are selling for now.

Interestingly, I looked at the prices for that card on Amazon and was a little shocked. I saw a i7 based computer at Sam's Club a while back that is cheaper (if I recall correctly) than some of the prices for that card -- and it included a GTX 1660! Not sure if it is still that price, haven't looked in a while.

[Edit] For the hell of it, I looked on the Sam's website. I didn't see it there...

AmigaFuture
29th December 2021, 22:05
Noted model and used to be prices. Thanks. Huh, I might have considered the i7 for the GPU. I'm very sad (Not!) that it's not there. Appreciate you looking. I suppose I should check there more now that I'm a member of Sam's Club.

gonca
29th December 2021, 22:33
MrVideo
Saw your log, and you are creating your own issues, somewhat.

jdobbs will correct me if I am wrong, but I believe that BD_RB will convert m2ts files to mkv (preparing files for input).
MKV will not contain a thd+ac3 file, it separates it into 2 tracks, thd and ac3, (not BD spec compliant).
Hence your re-encode.

Issues with chapters could be caused by the fact that m2ts files lose certain info, like languages and CHAPTERS,etc
Try importing BD structure or mpls instead.

Here is a log from such an import (thd+ac3 audio)

[16:12:53] Importing BDs: BLACK_PANTHER
- Analyzing source playlists...
- Title Editing Dialog...
- Importing BD: BLACK PANTHER [ 1 of 1 ]
- Importing Playlist 00001 [02:14:34.399]
- Creating Quick-Play Menu...
- Building menu structure...
[16:13:38] Import completed successfully.

No audio re-encode
No special compile either.

MrVideo
29th December 2021, 23:14
jdobbs will correct me if I am wrong, but I believe that BD_RB will convert m2ts files to mkv (preparing files for input).
MKV will not contain a thd+ac3 file, it separates it into 2 tracks, thd and ac3.
Hence your re-encode.
I will have to look into that, as it is something I did not know. While it is doing the preparing, I'll have to look and see if I can find an MKV in the process of being made.

I don't understand the need for creating a MKV file first. Everything can be extracted from the M2TS file via tsMuxer. Of course, EAC3 streams can't be extracted by tsMuxer. But, if a MKV file is being made, then mkvextract can be used to extract all of the streams in the MKV file, thereby not having the need to re-encode THD audio first.

If indeed this is happening, then the bug that jdobbs verified in which the AC3 re-encode was creating a mono file will need to be fixed/released.
Issues with chapters could be caused by the fact that m2ts files lose certain info, like languages and CHAPTERS,etc
Try importing BD structure or mpls instead.
I've done a couple of other UHD backups and the chapter info is correct. I will have to go back and look at the one I was having issues with. But, IIRC, it is the one where I was doing a UHD structure backup and trying to replace one of the AC3 audio streams with another and was not able to get that to work. So that makes it currently moot, as that method didn't work.

But, you've given me an idea as to how to get around the mono re-encode. That is to create a MKV file myself of the M2TS file and feed that to BDRB.

Update: Before reading your posting, I started an experiment where I used a UHD M2TS file that contains DTS-X audio. No re-encoding. Too late to see if a MKV file was created though.

gonca
29th December 2021, 23:38
mkvextract can be used to extract all of the streams in the MKV file, thereby not having the need to re-encode THD audio first.
Wrong.
MKV cannot support thd with an ac3 core, it must separate the two into a thd track(no core/not spec compliant) and an ac3 track.
It has to re-encode the thd selected track to make it spec compliant.
Just import the BD structure or the mpls instead.
DTS-X is a different animal.
DO NOT involve MKV with THD (with core) tracks, result is non BD compliance

gonca
30th December 2021, 00:23
Alright,
All references to BD includes UHD, as before.
Take this in the spirit in which it was given
Of course, EAC3 streams can't be extracted by tsMuxer
WRONG / BS
I just took the 4K movie from above, extracted the 2 E-AC3 tracks plus video with tsMuxeR
Took these 3 tracks and re-muxed into a UHD structure with tsMuxeR and guess what?
Elementary audio tracks and final playlist show these tracks as E-AC3 tracks in Mediaifo.
Spec compliance helps.

DrinkLyeAndDie
30th December 2021, 01:01
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!

Acerjen
30th December 2021, 06:03
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.

NVENCC Reencoder (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip)

Just remember --- it requires an NVIDIA video card that supports reencoding. It won't work without it.


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

MrVideo
30th December 2021, 08:56
MKV cannot support thd with an ac3 core, it must separate the two into a thd track(no core/not spec compliant) and an ac3 track.
It has to re-encode the thd selected track to make it spec compliant.
I do not know if mkvmerge re-encodes the THD stream into separate audio streams, or if there is a way it can separate the THD part from the core. But, either way, the resulting MKV file now has a THD track, an AC3 core track and an AC3 track that I had added. I know that the AC3 core track is from the THD track because it is 640 kbps, while the AC3 track that I added is 384 kbps.

I took the MKV file that I created and gave that to BDRB. In the TEMPFILES there were the three audio tracks. But, BDRB still insisted on re-encoding the THD track to AC3. After the BD structure was finished, the THD stream was mono.

What I do not understand is why BDRB is screwing with the THD stream in the first place. The result is going to be a BD, or UHD, file structure. It is not going to be placed into a MKV wrapped file, so it needs to keep the original THD track intact. That is unless the user has indicated in the config to not keep such files.

As a side note, reading the MKV file that I created into tsMuxer resulted in it saying that the THD track was not recognized and ignored it.
Just import the BD structure or the mpls instead.
As I've said several times, I could not do so because I could not get the AC3 stream that I want into the resulting M2TS file to work.

MrVideo
30th December 2021, 09:04
I just took the 4K movie from above, extracted the 2 E-AC3 tracks plus video with tsMuxeR
Took these 3 tracks and re-muxed into a UHD structure with tsMuxeR and guess what?
Elementary audio tracks and final playlist show these tracks as E-AC3 tracks in Mediaifo.
Spec compliance helps.
But, an E-AC3 audio track without a core will not be muxed into a BD/UHD structure. tsMuxer complains and then aborts, failing to create the playlist file.

I was wrong in that I remembered it wrong (too much going on lately). While it will see the coreless E-AC3 track, it will not create an ISO or BD/UHD file structure. You can create a TS or M2TS file.

SeeMoreDigital
30th December 2021, 10:57
But, an E-AC3 audio track without a core will not be muxed into a BD/UHD structure. Just so you know...

If the EAC3 (Dolby Digital Plus) streams started their life on a Blu-ray disc, both TSmuxer GUI, gMKVExtractGUI and UsEac3To are able to extract them 'complete' with their core!

gonca
30th December 2021, 11:59
BDRB still insisted on re-encoding the THD track to AC3

Because the thd track in the mkv has no core and is therefore non-compliant. It has to be re-encoded

MrVideo
30th December 2021, 12:50
Just so you know...

If the EAC3 (Dolby Digital Plus) streams started their life on a Blu-ray disc, both TSmuxer GUI, gMKVExtractGUI and UsEac3To are able to extract them 'complete' with their core!
Yep, that I know.

MrVideo
30th December 2021, 13:14
Because the thd track in the mkv has no core and is therefore non-compliant. It has to be re-encoded
At the moment, I can't win using BDRB to do the complete job. A TrueHD stream needs to be left alone if it has a core. And coming from a UHD disc, it did.

I finally I got my UHD disc with TrueHD and DD audio tracks. BDRB was used for part of the process. I used BDRB to create a UHD structure with menu using the background I created. The M2TS file was not usable as it had the screwed up TrueHD audio that was split into two parts. I then used tsMuxer to create a UHD structure using the source M2TS file. The source M2TS file and the created clipinfo/playlist files were copied over to the BDRB created structure. The clipinfo/playlist files had to be renamed from 00000.xxxx to 00001.xxxx. Both files had to be edited with BDEdit 0.49 to change their references from the 00000 files to the 00001 files. Lastly I removed the tsMuxer chapter marks and used the original disc's chapter marks, plus some new ones. That disc worked great. The chapter marks even went to the correct locations.

Before you ask about the chapter marks, it seems that whomever did the chapter marks failed to create them all. There were 15 originally. The last one about 1:42:00 into the 1:56:00 movie. The 4th one that I added pointed to the start of the closing credits and the 5th one was placed about 2 seconds from the end. The other three at appropriate points. The production error carried over from the 1080p release to the 4K/HDR release. It seems no one noticed. I didn't check the 3D release, but I suspect that it is wrong as well.

SeeMoreDigital
30th December 2021, 13:25
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!

jdobbs
30th December 2021, 14:00
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.

AcerjenYes. 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.

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

jdobbs
30th December 2021, 14:42
@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.

MrVideo
30th December 2021, 14:51
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
30th December 2021, 15:29
@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.

jdobbs
30th December 2021, 16:26
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.

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

AcerjenYes. 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 (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.

MrVideo
30th December 2021, 22:51
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. :confused:

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

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?

cartman0208
9th January 2022, 12:47
Regarding NVENCCRE: can I feed it with BluRay m2ts files?
I tried several disks, 1080p and UHD and encode failed on every single one.
[01.09.22] NVENCC Reencoder v0.10.02
----------------------
[12:46:25]Start Job [1 of 1]
- Reencoding "00165.m2ts"
-- Collecting input file information...
-- Input : BDAV, 0x0, fps
-- Output: H265 (HEVC), No Resize, Keep fps, CQ 25
- ERROR -- Encode failed. Job aborted.

jdobbs
9th January 2022, 13:44
Regarding NVENCCRE: can I feed it with BluRay m2ts files?
I tried several disks, 1080p and UHD and encode failed on every single one.
[01.09.22] NVENCC Reencoder v0.10.02
----------------------
[12:46:25]Start Job [1 of 1]
- Reencoding "00165.m2ts"
-- Collecting input file information...
-- Input : BDAV, 0x0, fps
-- Output: H265 (HEVC), No Resize, Keep fps, CQ 25
- ERROR -- Encode failed. Job aborted.
Interesting. I just tried one, and if you run the command line from a DOS window, you get a "permission denied" error as well as "failed to initiate file reader". Weird. Then if you change the output format to "m2ts" it works.

I'll look at it -- but right now it's just confusing.

You're better using BD-RB on a BD M2TS anyway. That way things like chapters etc. are kept (from the BD's MPLS file).

[Edit] Even weirder. By default it uses the name of the input file (in my case 00512.m2ts) in creating the output file name. So it tries to create "00512.mkv". If I change the output name so it includes an alpha character (like "A00512.mkv" or "00512A.mkv" it works fine. Then if I change the name to "00000.mkv" (also all numeric) -- it works. I have to be missing something???

cartman0208
9th January 2022, 13:57
Sure, don't waste your time on it, I just thought I give it a try, since most movies are contained in one m2ts :o

How do you set m2ts as output? I can only choose between mkv, mp4 and mov :confused:

And I just wanted to ask about the commandline execution, but then I saw the nvlastcmd.txt in the workfolder ;)


Edit: running the command in cmd runs fine and gives a proper mkv output

jdobbs
9th January 2022, 14:04
Sure, don't waste your time on it, I just thought I give it a try, since most movies are contained in one m2ts :o

How do you set m2ts as output? I con only choose between mkv, mp4 and mov :confused:

And I just wanted to ask about the commandline execution, but then I saw the nvlastcmd.txt in the workfolder ;)Sorry. I can't just walk away from it. I have to figure out what's up. :)

I just looked, and the reason I get the "permission denied" is because the NVENCC process is actually running. So apparently I've gotten a signal that the process failed within NVENCCRE -- when it actually didn't. Trying to run the process again on the same output file name is the issue -- not the numeric name.

I set the target to M2TS manually by using the command line in "NVLASTCMD.TXT" (I put that there mainly for debugging).

cartman0208
9th January 2022, 14:21
Sorry. I can't just walk away from it. I have to figure out what's up. :)

I just looked, and the reason I get the "permission denied" is because the NVENCC process is actually running.

...

Yeah, noticed that also... my GPU memory was about 90% used and I wanted to know why because I couldn't see open programs. From Task manager I could see nvencc.exe still running in multiple instances, but no other activity, neither encode or decode. Killing those processes freed the memory.

jdobbs
9th January 2022, 14:28
Yeah, noticed that also... my GPU memory was about 90% used and I wanted to know why because I couldn't see open programs. From Task manager I could see nvencc.exe still running in multiple instances, but no other activity, neither encode or decode. Killing those processes freed the memory.I found the issue. It is in the source file information collection using MEDIAINFO. M2TS files have some differences (from other container formats) in the way information is reported. That confused NVENCCRE.

cartman0208
9th January 2022, 14:48
I found the issue. It is in the source file information collection using MEDIAINFO. M2TS files have some differences (from other container formats) in the way information is reported. That confused NVENCCRE.

That would explain the strange input information
-- Input : BDAV, 0x0, fps
;)

jdobbs
9th January 2022, 14:59
That would explain the strange input information
-- Input : BDAV, 0x0, fps
;)I've fixed NVENCCRE's inability to process source M2TS files. You can download the fixed version with this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

cartman0208
9th January 2022, 19:38
I've fixed NVENCCRE's inability to process source M2TS files. You can download the fixed version with this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

Works great, :thanks:

DrinkLyeAndDie
10th January 2022, 03:20
Regarding NVENCCRE: can I feed it with BluRay m2ts files?
I tried several disks, 1080p and UHD and encode failed on every single one.
[01.09.22] NVENCC Reencoder v0.10.02
----------------------
[12:46:25]Start Job [1 of 1]
- Reencoding "00165.m2ts"
-- Collecting input file information...
-- Input : BDAV, 0x0, fps
-- Output: H265 (HEVC), No Resize, Keep fps, CQ 25
- ERROR -- Encode failed. Job aborted.


Thanks for reporting this. I ran into the same issue and then got sidetracked and forgot to report it. Oops... :o

Thanks for fixing it, jdobbs!

AmigaFuture
10th January 2022, 04:54
I've fixed NVENCCRE's inability to process source M2TS files. You can download the fixed version with this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

Ohhh, this is sweet also for slower GTX boards! This can be helpful to bypass the whole importing then extracting to reencode.

Mark_Venture
19th January 2022, 15:41
EDIT: Never mind... human error. there wasn't enough free space on the drive. :o

Timmy256
23rd January 2022, 09:44
@jdobbs, I’ve fixed the large images as requested; hope this detailed report is OK now

---

Hi, I hope you are all doing well.

I found out this great application for the first time and I've been trying to use to compress a Blu-Ray movie decrypted in my HDD (plain files). I've tried about 25 times; switching the settings around, and still have the same issue.

The movie is “A Glitch in the Matrix"; around 35 GB uncompressed. It consists of the menu, main movie, trailer and a Zoom webinar Q&A extra. The most important problem happens with this last extra video. No matter how many settings I switched around, it ends up with the video sped up about 2x (perhaps even more) and the audio running normally. Here are a couple of facts:

- I'm trying this on a fresh copy of Windows 10; with everything installed and configured following the readme file and the “Inspect” reports turns out everything OK (posted at the bottom)
- If I try to preview the file by right clicking it within BD Rebuilder, it opens in Media Player Classic and it plays wrongly; exactly the same, with the video about twice as fast compared to the audio
- If I open the extra file directly from within the source folder, through VLC, it plays perfectly fine
- The file in question has two audio tracks that, seemingly, are exactly the same. It's not that one is 5.1 and the other Stereo (or something like that). This will be important later
- In my quest to find software to compress Blu Rays, I've tried DVDFab and exactly the same issue resulted after the process finished; with the video extremely sped up. After switching around several settings there, I've found that if I left the two audio tracks for the extra and use software compression (disabling Intel QuickSync), the finished video ended up right! But I'll really love to use BD Rebuilder instead; that's why I'm trying so hard to make it work
- If in DVDFab, I left only one audio track (no matter which one); even when disabling QuickSync and with the exact same settings as the previous point, the video again turned out to run extremely fast; while the audio plays normal. I have to left the two audio tracks in for it to render a fine, working video
- In my current settings, I have selected the option to not convert DTS, leave HD audio as is, etc; trying to minimize recoding as much as possible. The same issue still persists.
- Of course, I have tried the DirectshowSource, LAVF and FRIMSource serving settings; all producing the same results
- The only weird thing I've noticed is that, the log for that extra file, shows an “EXIT CODE: -2”, but continues processing as if nothing happened. Of course, I've tried searching for this exit code here and couldn't find anything about it

I don't know what issue exactly that damn extra video file has, that makes this fail over and over. I've been working on this for over a week; trying highest quality settings 2 pass (15+ hours), fast, auto, etc.; always the same result. The only thing that worked so far was DVDFab, if I configure it as described above.

Some questions that I have in my head:

- Why does that file has two seemingly audio tracks and why, if I only leave one in, DVDFab still produces a video 2x sped up?
- (This probably related to not knowing how BD Rebuilder works fully) Why when switching on and off the audio tracks in extra, other audio tracks (in different files), switch on and off along with it?
- Why the built in Media Player Classic preview also runs the source; untouched file at wrong speed, while VLC plays it fine? Does it have to do with some installed codecs? Remember, this is a fresh Windows 10 installation with nothing crazy going on and I've only ever used VLC for playing

An unrelated problem, but that also drove me nuts for the first couple of days, was that the process aborted around 50% with an audio recoding error. I think it's because the track in the main movie is DTS-HD and I've read in some old post that BD Rebuilder might have some problems with that? But should it still be able to convert that audio file too (hence the “leave HD audio alone” option)? When I activated that, BD Rebuilder doesn't try to touch the audio and fully completes, but would be nice to know also why it's not working for conversion of HD audio and if there was anything I could to make it work too.

Would you please help me to troubleshoot this in any way you can? Or letting me know how to run some “forensics” on that extra file, to post its data here (codecs; anything that may be useful to troubleshoot)?

I'm posting all this information and anything I can think of at the end, for you to be able to see.

Thanks in advance for any help you can provide on this matter; as it's truly driving me crazy trying to find out exactly where the problem lies! :D.

OUTPUT LOG
[10/01/21] BD Rebuilder v0.61.22
[22:09:10] Source: A.GLITCH.IN.THE.MATRIX.2021.1080P.BLURAY.AVC.DTS-HD.MA.5.1-FGT
- Input BD size: 33.05 GB
- Approximate total content: [02:27:22.216]
- Target BD size: 22.95 GB
- Windows Version: 6.2 [9200]
- Auto Quality: Very Good (Very Fast), 1-Pass VBR
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[22:09:11] PHASE ONE, Encoding
- [22:09:11] Processing: VID_00000 (1 of 5)
- [22:09:11] Extracting A/V streams [VID_00000]
- [22:23:23] Reencoding video [VID_00000]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 156,204 frames
- Bitrate: 21,721 Kbs
- [22:23:23] Reencoding: VID_00000, Pass 1 of 1
- [00:41:30] Video Encode complete
- [00:41:30] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [00:41:30] Multiplexing M2TS
- [00:55:44] Processing: VID_00001 (2 of 5)
- [00:55:44] Extracting A/V streams [VID_00001]
- [00:55:50] Reencoding video [VID_00001]
- Source Video: MPEG-4 (AVC), 1280x720
- Rate/Length: 59.940fps, 15 frames
- [00:55:50] Reencoding: VID_00001, Pass 1 of 1
- [00:55:51] Video Encode complete
- [00:55:51] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- [00:55:51] Multiplexing M2TS
- [00:55:56] Processing: VID_00002 (3 of 5)
- [00:55:56] Extracting A/V streams [VID_00002]
- [00:56:10] Reencoding video [VID_00002]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 2,905 frames
- Bitrate: 13,820 Kbs
- [00:56:10] Reencoding: VID_00002, Pass 1 of 1
- [00:58:10] Video Encode complete
- [00:58:10] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [00:58:10] Multiplexing M2TS
- [00:58:26] Processing: VID_00007 (4 of 5)
- [00:58:26] Extracting A/V streams [VID_00007]
- [00:58:31] Reencoding video [VID_00007]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 15 frames
- Bitrate: 2,031 Kbs
- [00:58:31] Reencoding: VID_00007, Pass 1 of 1
- [00:58:32] Video Encode complete
- [00:58:32] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [00:58:32] Multiplexing M2TS
- [00:58:36] Processing: VID_00010 (5 of 5)
- [00:58:36] Extracting A/V streams [VID_00010]
EXIT CODE: -2
- Extracting video streams [VID_00010]
- Extracting audio/subtitle streams [VID_00010]
- [01:00:42] Reencoding video [VID_00010]
- Source Video: MPEG-4 (AVC), 1280x720
- Rate/Length: 59.940fps, 126,178 frames
- Bitrate: 2,075 Kbs
- [01:00:42] Reencoding: VID_00010, Pass 1 of 1
- [01:14:03] Video Encode complete
- [01:14:03] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- [01:14:03] Multiplexing M2TS
[01:14:43]PHASE ONE complete
[01:14:43]PHASE TWO - Rebuild Started
- [01:14:43] Rebuilding BD file Structure
[01:14:51] - Encode and Rebuild complete
- WORKFILES folder removed.
[01:14:53] JOB: A.GLITCH.IN.THE.MATRIX.2021.1080P.BLURAY.AVC.DTS-HD.MA.5.1-FGT finished.

INSPECT LOG
[10/02/21] Checking System Settings
- BD-Rebuilder v0.61.22
- Windows Version: 6.2 [9200]
- Working Path Free Space: 1,331.18GB
- AVISYNTH Version: 2.6.0.6, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[10/02/21] Systems Settings Check complete

LAST SETTINGS USED
https://i.ibb.co/z6rQkWJ/ll-J8rt0j-A4w-U.png (https://ibb.co/z6rQkWJ)

THE FILE IN QUESTION OF THE EXTRA IN BD REBUILDER
https://i.ibb.co/s34kkZx/xco-J3-SBGyg-GU.png (https://ibb.co/s34kkZx)

THE ORIGINAL FILE CODEC INFO FROM VLC
https://i.ibb.co/VD36VZ5/1-Sc-Nl-Ao-Tlh-OD.png (https://ibb.co/VD36VZ5)

THE SPED UP FILE CODEC INFO FROM VLC
https://i.ibb.co/Y7vxtZY/Snykzjh-C0-Ppp.png (https://ibb.co/Y7vxtZY)

MESSAGE THAT CAME OUT IN CAMTASIA WHILE IMPORTING THE SPED UP FILE TO CREATE THE SAMPLE (Does it mean anything that Camtasia detected the output as “High Frame Rate”?)
https://i.ibb.co/f8YmwJX/r-GRMkh-Xj-Q4-Mh.png (https://ibb.co/f8YmwJX)

ORIGINAL VIDEO SAMPLE
https://youtu.be/1PCVyu4la00

SPED UP VIDEO SAMPLE
https://youtu.be/QAoe__M8kOI

musiclover
24th January 2022, 14:10
@MrVideo:
Nightly tsMuxer build from 2022-01-24-02-07-36

"Allow muxing of pure EAC3 in Blu-rays"

See https://www.videohelp.com/software/tsMuxeR

MrVideo
25th January 2022, 04:16
I will test this. What caught my eye is the "pure" in your quote. To me that means EAC3 with an AC3 core.

Update: Works great in my Sony UBP-X800M2 bitstreamed to my Denon AVR-X8500H.

One step closer to getting BDRB working with these E-AC3 files, with no extra workarounds by Jdobbs.

Thanks for the tip about the release.

gonca
25th January 2022, 11:50
If you replace tsmuxer and tsmuxer4k in the tools folder with the new one it should work.
I am doing imports successfully this way.

By the way,
pure E-AC3 means no core

MrVideo
26th January 2022, 03:47
If you replace tsmuxer and tsmuxer4k in the tools folder with the new one it should work.
I am doing imports successfully this way.
I don't see how, since BDRB detects that it is DD+ and does a recode. Jdobbs needs to change BDRB not to recode DD+ audio.
By the way,
pure E-AC3 means no core
OK, just seems backwards to me. Pure to me means following the Dolby spec where DD+ has an AC3 core.

Over in the tsMuxer thread, there was one guy who tested this with his Oppo player and the player crashed. Ouch!

MrVideo
26th January 2022, 10:03
So, I tried to create a BD with three programs containing DD+. As I suspected, BDRB recoded the E-AC3 to mono AC3. At that point I then created three BD folders with tsMuxer. I renamed the three structures, appropriately to 1, 2 and 3. Copied over the renamed clip, play and m2ts files. I then edited the three playlists and repointed them to their appropriate m2ts files.

After putting the disc into the BD player, I selected one of the titles and the player went into stop mode, whereby I got the player's home screen.

No idea what I did wrong.

As a side note, I did not let BDRB do the backup stage. I used the pseudo, temporary, BD folder that was created by BDRB.

gonca
26th January 2022, 12:01
I don't see how, since BDRB detects that it is DD+ and does a recode. Jdobbs needs to change BDRB not to recode DD+ audio.

OK, just seems backwards to me. Pure to me means following the Dolby spec where DD+ has an AC3 core.

Over in the tsMuxer thread, there was one guy who tested this with his Oppo player and the player crashed. Ouch!

I have done it, and it works
Replace tsmuxer and tsmuxer4k in the tools folder
Load your "mp4" with e-ac3 audio into tsMuxeR (standalone)
Create a BD folder
IMPORT that BD structure into BD_RB

MrVideo
26th January 2022, 12:27
I have done the replace.

I have three files. I think I'm missing what BDRB can do. I have to look at something and get back to you.

MrVideo
26th January 2022, 14:20
OK. The LED bulb finally lit. You didn't catch what I was doing wrong and I finally caught on when you said the import the tsMuxer BD folder. I remembered something else that was mentioned in the thread, and was what was needed to be done in order to import more than one BD and that was to put all of the BDs in the same directory.

Once I did that, all was great.

Thanks for the help. It took some nudging, but I finally got there. This will be a lot easier when JDobb updates BDRB to do this. I know, wishful thinking, as it will help both of us and who know how many others.

Timmy256
27th January 2022, 05:53
Hi jdobbs,

A few days ago I posted my report on an issue I was having. Its the third time that I’ve tried posting it, you corrected it before and I made the images smaller, so it wouldn’t be so long. Developers usually complain that end users don’t post exhaustive reports of issues, so I tried to be as detailed as possible, with logs, settings and even video shorts that I uploaded in YouTube to show results; yet I still don’t see it approved, so I guess it is still not OK?

I feel like I’m passing an exam of “posting the perfect report” before the message is visible. Could you please instruct me what is wrong this time so I can try fix it again?

Thanks.

MrVideo
27th January 2022, 15:40
I have an HEVC video that is 3840x1600, with E-AC3. Steps done:
1) Used tsMuxer to create BD folder
2) Imported (via browser) the BD folder
3) set FORCE-ENCODE=1 This was done because the first time thru the video was not recoded to 3840x2160.
4) Backup

The video was recoded, but letterbox bars were still not added. This has worked with 1080p video that needed letterbox bars. Does this not work with 4K videos?

Mark_Venture
27th January 2022, 21:43
I've fixed NVENCCRE's inability to process source M2TS files. You can download the fixed version with this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

Should Audio:Intact be working to pass through the audio?

I tried feeding it two MKV that were from uncompressed UHD rips of their main movies. They both had TrueHD.

The output of one was 5.1 AC and was missing the voices. 1917 ended up having 2 Channel AC3 audio.

NVlastcmd.txt for 1917:
"D:\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw -i "X:\1917\1917_t00.mkv" --codec h265 --preset default
--profile main10 --output-depth 10 --chromaloc auto --colorprim auto --transfer auto --colormatrix auto
--master-display copy --max-cll copy --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 21 --aq
--aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt
--gop-len 24 --audio-copy 4 --sub-copy --chapter-copy -o "I:\BD-WORK\1917_t00.mkv"

gonca
27th January 2022, 22:03
I have an HEVC video that is 3840x1600, with E-AC3. Steps done:
1) Used tsMuxer to create BD folder
2) Imported (via browser) the BD folder
3) set FORCE-ENCODE=1 This was done because the first time thru the video was not recoded to 3840x2160.
4) Backup

The video was recoded, but letterbox bars were still not added. This has worked with 1080p video that needed letterbox bars. Does this not work with 4K videos?


If this was meant for me then,
I do step 1
step 2 is File>Import>BD(s) quick reauthor
and I have FORCE_NOENCODE=1 set
I do all my video compression first (usually)

SeeMoreDigital
27th January 2022, 22:41
I have an HEVC video that is 3840x1600, with E-AC3. Really... How?

gonca
27th January 2022, 23:55
Really... How?

Most likely a mp4 that has been cropped

MrVideo
28th January 2022, 04:44
Most likely a mp4 that has been cropped
Nope, MKV.

MrVideo
28th January 2022, 04:52
If this was meant for me then,
I do step 1
step 2 is File>Import>BD(s) quick reauthor
and I have FORCE_NOENCODE=1 set
I do all my video compression first (usually)
Nope, for jdobbs. It was my understanding that when doing a BD/UHD output that if the incoming video wasn't 1080/2160, it would recode and add the needed letterbox bars.

The first pass it did not recode, so I forced it the 2nd time around and it did not add the bars.

Looking at the log it said that the source video was HEVC 3840x2160, which it wasn't. MediaInfo reported 3840x1600. Could be why no letterbox addition.

I'm not set up for doing HEVC. I normally just let BDRB do it. But in this case, it was not doing what I thought it should be doing.

SeeMoreDigital
28th January 2022, 10:30
Really... HowMost likely a mp4 that has been cropped.Nope, MKV.
I suggest you go back to your disc source and try again!

jdobbs
28th January 2022, 15:02
Should Audio:Intact be working to pass through the audio?

I tried feeding it two MKV that were from uncompressed UHD rips of their main movies. They both had TrueHD.

The output of one was 5.1 AC and was missing the voices. 1917 ended up having 2 Channel AC3 audio.

NVlastcmd.txt for 1917:
"D:\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw -i "X:\1917\1917_t00.mkv" --codec h265 --preset default
--profile main10 --output-depth 10 --chromaloc auto --colorprim auto --transfer auto --colormatrix auto
--master-display copy --max-cll copy --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 21 --aq
--aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt
--gop-len 24 --audio-copy 4 --sub-copy --chapter-copy -o "I:\BD-WORK\1917_t00.mkv"According to the command line, the 4th audio track should have been kept -- and it should have been copied intact.

jdobbs
28th January 2022, 15:04
I have an HEVC video that is 3840x1600, with E-AC3. Steps done:
1) Used tsMuxer to create BD folder
2) Imported (via browser) the BD folder
3) set FORCE-ENCODE=1 This was done because the first time thru the video was not recoded to 3840x2160.
4) Backup

The video was recoded, but letterbox bars were still not added. This has worked with 1080p video that needed letterbox bars. Does this not work with 4K videos?My guess is that BD-RB got confused because you imported from what it believed to have been a BD (and therefore should meet standards). So BD-RB assumed that the info in the CLPI/MPLS was correct when it said the source was 3820x2160.

You should be able to correct it by adding the AVISYNTH AddBorders() filter via the filter editor.

Mark_Venture
28th January 2022, 16:30
According to the command line, the 4th audio track should have been kept -- and it should have been copied intact.

What does it do if there are multiple audio streams included in the file? Should it keep them all?

Under special processing -> language selection... all are selected, and the boxes for limit 1 are unselected, and appears to be set "keep all" for audio in the ini

NVENCCRE.INI
[Options]
VIDEO_CODEC=1
AUDIO_CODEC=0
VIDEO_MODE=2
AUDIO_TO_KEEP=all
SUBS_TO_KEEP=all
AUDIO_TRACK_LIMIT=0
SUBTITLE_TRACK_LIMIT=0
NVENC_CAPABLE=1
USE_EXTERNAL_SUBS=1
HEVC_Q_VALUES=32,30,21
[Paths]
WorkingPath=I:\BD-WORK\

MrVideo
28th January 2022, 17:27
My guess is that BD-RB got confused because you imported from what it believed to have been a BD (and therefore should meet standards). So BD-RB assumed that the info in the CLPI/MPLS was correct when it said the source was 3820x2160.
Yep, makes perfect sense.
You should be able to correct it by adding the AVISYNTH AddBorders() filter via the filter editor.
Doing that now. Thanks for the tip.

jdobbs
29th January 2022, 01:12
What does it do if there are multiple audio streams included in the file? Should it keep them all?

Under special processing -> language selection... all are selected, and the boxes for limit 1 are unselected, and appears to be set "keep all" for audio in the ini

NVENCCRE.INI
[Options]
VIDEO_CODEC=1
AUDIO_CODEC=0
VIDEO_MODE=2
AUDIO_TO_KEEP=all
SUBS_TO_KEEP=all
AUDIO_TRACK_LIMIT=0
SUBTITLE_TRACK_LIMIT=0
NVENC_CAPABLE=1
USE_EXTERNAL_SUBS=1
HEVC_Q_VALUES=32,30,21
[Paths]
WorkingPath=I:\BD-WORK\
Sounds like it should keep them all. I'll look at the code and do some testing.

[Edit] Ok. I see the issue. Somehow I managed to not include a check for "all" in the audio language check. Duh...

MrVideo
29th January 2022, 07:48
Another mystery. I imported 4 BDs. When that was done, I clicked on Backup in order to re-encode the HEVC video to fit the BD. But, it got nowhere as it complained that the video had an illegal framerate. Huh? They are 23.976. So, I went looking with BDEdit. In the playlist STN section, the V column had a zero, but the DV column had a 1 and that framerate was correct and it pointed to the correct PID in the M2TS file.

Any guesses as to why BDRB thinks the framerate is incorrect? Is it because it is DV video?

Timmy256
29th January 2022, 09:18
Hi jdobbs,

Would you please let me know what was wrong with me wrong encoding report (https://forum.doom9.org/showthread.php?p=1962051#post1962051) that the post wasn’t approved? How could I fix it?

Thanks.

jdobbs
29th January 2022, 22:40
Another mystery. I imported 4 BDs. When that was done, I clicked on Backup in order to re-encode the HEVC video to fit the BD. But, it got nowhere as it complained that the video had an illegal framerate. Huh? They are 23.976. So, I went looking with BDEdit. In the playlist STN section, the V column had a zero, but the DV column had a 1 and that framerate was correct and it pointed to the correct PID in the M2TS file.

Any guesses as to why BDRB thinks the framerate is incorrect? Is it because it is DV video?Check the framerate in the CLPI.

jdobbs
29th January 2022, 22:45
Hi jdobbs,

Would you please let me know what was wrong with me wrong encoding report (https://forum.doom9.org/showthread.php?p=1962051#post1962051) that the post wasn’t approved? How could I fix it?

Thanks.I have no idea why it wasn't displaying or wasn't approved... but I manually selected it and approved it.

Timmy256
30th January 2022, 00:41
I have no idea why it wasn't displaying or wasn't approved... but I manually selected it and approved it.

Thanks jdobbs.

Adding to my report (https://forum.doom9.org/showthread.php?p=1962051#post1962051), if you take a look at the info there of that “Extra” video, it shows FPS as 59.97 (vs. the regular full movie), and it’s a standard Zoom call with the director, with nothing special.

Would that have anything to do with the video being so sped up vs. the audio? It amazes me that right-clicking the extra an doing the “Preview” with your Media Classic Player, it shows the video already sped up; similar to the output if I encode it!

My guess is that the problem goes a layer beyond your encoding; why is Media Player Classic playing that video so fast, on a brand new Windows 10 installation? Anything to troubleshoot there? Other players (VLC, DVDFab, Leawo, etc.) play the video at the right speed, so I don’t know what Media Player Classic is using internally to play it, but makes me suspect that the same issue that it has ends up happening after I encode the disc in BD-Rebuilder; that if I can’t fix Media Player Classic playing it fine, it would be pointless to test the encoding, as the same thing would happen there.

Thanks; hopefully I can get some ideas on what to troubleshoot. Have a great weekend

MrVideo
30th January 2022, 03:25
Check the framerate in the CLPI.
All are 23.976.

UPDATE: Started another project where the video is HEVC/HDR, no DV, and it re-encodes just fine.

MrVideo
30th January 2022, 03:28
it shows FPS as 59.97
That is not a legal/normal frame rate. 29.97 and 59.94 are the legal rates.

I went back and looked at the video. 59.94p is a legal frame rate for 720p video.

Posting samples on YouTube is a bad idea, as they screw with the video before posting it. A pure sample must be posted elsewhere.

Timmy256
30th January 2022, 08:26
That is not a legal/normal frame rate. 29.97 and 59.94 are the legal rates.

I went back and looked at the video. 59.94p is a legal frame rate for 720p video.

Posting samples on YouTube is a bad idea, as they screw with the video before posting it. A pure sample must be posted elsewhere.

Thanks for your reply MrVideo. I meant to type 54.94; sorry for the error.

Do you have any suggestions on what to check when I say that even doing the preview of that extra, with the included MPC, displays the video at almost double speed? Even before talking about any encoding!

What (codec?) is MPC using to play this extra that might be failing and making it play almost double-speed; same results as encoding with BD-Rebuilder, but other players, such as VLC, play it fine?

MrVideo
30th January 2022, 08:44
Do you have any suggestions on what to check when I say that even doing the preview of that extra, with the included MPC, displays the video at almost double speed? Even before talking about any encoding!
I've downloaded the BD (for testing purposes) and took a look at the extra with MediaInfo. The H.264 video is 720p29.97. That frame rate is not Blu-ray legal. They get around the issue by marking it: Frame Mode = Frame Doubling.
What (codec?) is MPC using to play this extra that might be failing and making it play almost double-speed; same results as encoding with BD-Rebuilder, but other players, such as VLC, play it fine?
My guess is that MPC has a bug and doesn't handle frame doubling correctly. It is supposed to output the video @ 59.94 (repeat each frame), but the audio is to be kept @ 29.97.

I do not know what BDRB will do with that. I can't test BDRB at the moment, since I have a project running.

Haul it into BDRB and see what happens. If is ends up speeding up the video, jdobbs will have something to work with.

MrVideo
30th January 2022, 08:52
I do all my video compression first (usually)
By letting BDRB ultimately do the re-encoding means that the multiple videos that will be placed on a BD25 will fit.

Keep in mind, if there is DD+ audio, while DBRB is recoding a video, you will have to rename the *.ec3 audio stream to *ac3. If you don't, when it comes time to mux the streams, BDRB will fail because it can't find the AC3 file. If you forget, or don't get to it in time, just rename the file and hit Backup and continue.

Timmy256
30th January 2022, 11:33
I've downloaded the BD (for testing purposes) and took a look at the extra with MediaInfo. The H.264 video is 720p29.97. That frame rate is not Blu-ray legal. They get around the issue by marking it: Frame Mode = Frame Doubling.

My guess is that MPC has a bug and doesn't handle frame doubling correctly. It is supposed to output the video @ 59.94 (repeat each frame), but the audio is to be kept @ 29.97.

I do not know what BDRB will do with that. I can't test BDRB at the moment, since I have a project running.

Haul it into BDRB and see what happens. If is ends up speeding up the video, jdobbs will have something to work with.

Wow, thanks for going the extra mile and actually downloading the release to test! :D

Putting it through BD Rebuilder encoding ends up with the file sped up; exactly the same as the preview you mentioned (like this: https://youtu.be/QAoe__M8kOI). I actually found out after a lot of testing that MPC was also previewing the file in the same way (I though it was a BDRB encoding problem only, as VLC was playing the media correctly).

Thanks again MrVideo; looking forward to jdobbs comments on this.

MrVideo
30th January 2022, 12:13
VLC was playing the media correctly.

You're welcome. I suspect that VLC is ignoring the flag setting.

jdobbs
30th January 2022, 21:08
I've fixed several issues in NVENCCRE associated with reencoding audio. You can download the updated version at this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

Emulgator
31st January 2022, 17:54
Maybe x264 framerate flagging related, not necessarily BD-RB:
Just had to restore some 25p .MTS assets to 50p, reencoded, remuxed and reintroduced them into an old Vegas Pro 14 project.
Vegas sees these now as 100fps and plays each frame 10ms followed by a framerepeat, Mediainfo sees them as 50fps.
My h264info is dead now, so maybe sombody else has confirmed it better ?

Timmy256
1st February 2022, 07:20
I've fixed several issues in NVENCCRE associated with reencoding audio. You can download the updated version at this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

Thanks jdobbs. I downloaded the file, but what am I supposed to do with it? I thought about replacing a built-in version that, perhaps, you include with BD-Rebuilder, but the closest file I found was NVEncC.exe, so they are not the same.

I’m sorry I’m not a video expert as you guys; I’m just a “n00b” that wanted to convert that Glitch in the Matrix movie. It was the first time I wanted to do a conversion, the first time I’ve found your tool and the first time I was looking forward to be able to burn a Blu-Ray back. What a luck… first time and it doesn’t work because some flagging / non-compliant attributes that sound like gibberish to me... :scared:

Thanks again for your help.

jdobbs
2nd February 2022, 01:53
Thanks jdobbs. I downloaded the file, but what am I supposed to do with it? I thought about replacing a built-in version that, perhaps, you include with BD-Rebuilder, but the closest file I found was NVEncC.exe, so they are not the same.

I’m sorry I’m not a video expert as you guys; I’m just a “n00b” that wanted to convert that Glitch in the Matrix movie. It was the first time I wanted to do a conversion, the first time I’ve found your tool and the first time I was looking forward to be able to burn a Blu-Ray back. What a luck… first time and it doesn’t work because some flagging / non-compliant attributes that sound like gibberish to me... :scared:

Thanks again for your help.That software is meant only for folks who have an NVIDIA video card that supports encoding. It isn't included as a part of BD Rebuilder (yet). This version was updated to specifically address issues reported by Mark_Venture in this post (https://forum.doom9.org/showthread.php?p=1962477#post1962477).

If you have one of the appropriate video cards, you just put NVENCCRE.EXE into the BD-RB folder. During execution it accesses some of the programs in the TOOLS folder.

Timmy256
2nd February 2022, 04:14
That software is meant only for folks who have an NVIDIA video card that supports encoding. It isn't included as a part of BD Rebuilder (yet). This version was updated to specifically address issues reported by Mark_Venture in this post (https://forum.doom9.org/showthread.php?p=1962477#post1962477).

If you have one of the appropriate video cards, you just put NVENCCRE.EXE into the BD-RB folder. During execution it accesses some of the programs in the TOOLS folder.

Oh, sorry, I though you were talking about my issue.

Did you get a chance to take a look at my report and MrVideo’s diagnosis (https://forum.doom9.org/showthread.php?p=1962728#post1962728) of what the problem is?

Thanks again.

Mark_Venture
2nd February 2022, 16:49
I've fixed several issues in NVENCCRE associated with reencoding audio. You can download the updated version at this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

I've re-tried those two movies using this version and it works! Thank you!!

I know see --audio-copy 1 --audio-copy 2 --audio-copy 3 for each audio stream, matching what is in the source, in the lastcmd.txt file.

I appreciate the quick fix!!

MrVideo
5th February 2022, 12:54
It is my understanding that if a font is not found, BDRB will fall back to a default font. I did a project where the font was not found and the menu screen had no text. The menu still worked, even though I couldn't see anything.

MrVideo
5th February 2022, 13:27
Currently the menu in 1080p. Any thought to changing the menu to 2160p?

The reason is projector switching (might affect TVs/monitors as well). When going from 1080p, which the projector upconverts, to 2160p, it has to change modes to handle the native resolution. That results in a black display until the mode change completes.

Not a must, but a nice-to-have.

jdobbs
5th February 2022, 21:36
Currently the menu in 1080p. Any thought to changing the menu to 2160p?

The reason is projector switching (might affect TVs/monitors as well). When going from 1080p, which the projector upconverts, to 2160p, it has to change modes to handle the native resolution. That results in a black display until the mode change completes.

Not a must, but a nice-to-have.Not sure how much work that would be as I haven't looked at it. I'm mainly worried about adjustments for screen placement etc -- but I'll check it out and see.

Timmy256
7th February 2022, 10:02
Hi jdobbs,

Do you have any comments on what (if) I can try anything to try to make me previous reported conversion working successfully?

Thanks?

jdobbs
7th February 2022, 16:48
Hi jdobbs,

Do you have any comments on what (if) I can try anything to try to make me previous reported conversion working successfully?

Thanks?Sorry, but no. BD-RB relies on the MPLS and CLPI to be correct. So when it sees 59.94 as the framerate, it assumes that to be correct. My guess is that either NVENCC (if you are using it) or AVISYNTH (if you are using x264) are misinterpreting the framerate during reencode due to the frame doubling.

BTW. You asked why, when you change one stream, others change. That means they are linked and playback as a part of a single playlist. So if one changes (for example removing an audio stream) they all have to change. The * next to the stream in the streams list indicates it is a component of a multipart playlist.

This issue probably requires that I get my hands on the original to do any serious testing.

Timmy256
8th February 2022, 00:05
Sorry, but no. BD-RB relies on the MPLS and CLPI to be correct. So when it sees 59.94 as the framerate, it assumes that to be correct. My guess is that either NVENCC (if you are using it) or AVISYNTH (if you are using x264) are misinterpreting the framerate during reencode due to the frame doubling.

BTW. You asked why, when you change one stream, others change. That means they are linked and playback as a part of a single playlist. So if one changes (for example removing an audio stream) they all have to change. The * next to the stream in the streams list indicates it is a component of a multipart playlist.

This issue probably requires that I get my hands on the original to do any serious testing.

Thanks for your reply jdobbs.

If you want, I can upload the offending file (extra - 00010.m2ts) and share it with you through a link. It’s around 2 GB.

Would that be OK for you to be able to troubleshoot what’s going on? As I said before it puzzles me that Media Player Classic plays it wrong, VLC plays it correctly and other conversion tools, like DVDFab, are able to convert it correctly.

Thanks.

[Link removed]

jdobbs
8th February 2022, 00:52
Thanks for your reply jdobbs.

If you want, I can upload the offending file (extra - 00010.m2ts) and share it with you through a link. It’s around 2 GB.

Would that be OK for you to be able to troubleshoot what’s going on? As I said before it puzzles me that Media Player Classic plays it wrong, VLC plays it correctly and other conversion tools, like DVDFab, are able to convert it correctly.

Thanks.

[Link deleted]I believe the link you posted may be copyrighted material, so I've deleted the reference. Please review Rule 6. I'm taking into consideration that you are new to the forum, so I am not issuing a strike. But please review the rules so this forum isn't made in any way liable or questionable.

MrVideo
8th February 2022, 08:01
NVENCCRE

I set the bitrates to 5000, 10000 and 15000, selecting 10000. When my first file was done, it was really large. So I checked it with MediaInfo and it had a bitrate of 40.8 Mb/s. I'm curious as to why the big difference between the selected bitrate and the final result.

UPDATE: Now I'm really confused. I changed the list to 2500, 5000 & 10000 and selected 5000. The program even indicates that it will be using VBR 5000 and yet the result is still 40.8 Mb/s.

Any thoughts?

jdobbs
8th February 2022, 16:50
NVENCCRE

I set the bitrates to 5000, 10000 and 15000, selecting 10000. When my first file was done, it was really large. So I checked it with MediaInfo and it had a bitrate of 40.8 Mb/s. I'm curious as to why the big difference between the selected bitrate and the final result.

UPDATE: Now I'm really confused. I changed the list to 2500, 5000 & 10000 and selected 5000. The program even indicates that it will be using VBR 5000 and yet the result is still 40.8 Mb/s.

Any thoughts?Interesting. Apparently no one else uses bitrate. There was a bug in which a wrong value was used on the command line. I can't believe I missed it.

jdobbs
8th February 2022, 17:01
I fixed the bug in NVENCCRE that ignored the specified bitrate. You can download the new version at this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE.zip).

Timmy256
8th February 2022, 19:33
I believe the link you posted may be copyrighted material, so I've deleted the reference. Please review Rule 6. I'm taking into consideration that you are new to the forum, so I am not issuing a strike. But please review the rules so this forum isn't made in any way liable or questionable.

Oh, sorry jdobbs. Since it was mentioned before that the YouTube sample I’ve created wasn’t useful and that the original was needed, I took the liberty to do so.

Is there any way I can provide you with that material safely, for testing purposes, so you might have a better understanding on why BD-Rebuilder is returning a wrong conversion for it and how it could be fixed?

Thanks

MrVideo
8th February 2022, 21:18
Interesting. Apparently no one else uses bitrate. There was a bug in which a wrong value was used on the command line. I can't believe I missed it.
Leave it to me to find it. I do prefer using bitrate values for encoding.

MrVideo
9th February 2022, 14:34
When importing a directory that contains multiple BD folders, BDRB creates a titles.inf file that is really great for when you rerun the job. Except that it tends to get it wrong.

Long story short, I had a title.inf file that had a blank space. because I unchecked a title. I had then added a new BD folder. I manually edited the titles.inf file and added the new file name, in the correct alphabetical position and corrected all of the lines in the file. When I started BDRB and read in the directory, It changed the title of #8 to what #7 is so that it was like this in the dialog box: 08. title [length]. The original list has the generated BDRB numbers removed, as well as the length values. It also added a title #13, even though there are only 12 titles. #13 is a duplicate of the #12 title, with the BDRB number and length added.

I then started and aborted the job so that I coould check the titles.inf file. Yep, the wrong entries are now in the file. I corrected the file, restarted BDRB and again it screwed up the list.

To try and get this right, I closed BDRB and deleted the titles.inf file. I started again and again the dialog was wrong. Title #7 was the way I want it, i.e., no BDRB number and no length. But, it duplicated title #7's title and added the BDRB goodies and gave it entry #8. Yep again the list now contains 13 titles when there really is only 12.

Just what is BDRB doing? Is there a secret stash that BDRB is using regarding the imported titles.

jdobbs
9th February 2022, 15:20
When importing a directory that contains multiple BD folders, BDRB creates a titles.inf file that is really great for when you rerun the job. Except that it tends to get it wrong.

Long story short, I had a title.inf file that had a blank space. because I unchecked a title. I had then added a new BD folder. I manually edited the titles.inf file and added the new file name, in the correct alphabetical position and corrected all of the lines in the file. When I started BDRB and read in the directory, It changed the title of #8 to what #7 is so that it was like this in the dialog box: 08. title [length]. The original list has the generated BDRB numbers removed, as well as the length values. It also added a title #13, even though there are only 12 titles. #13 is a duplicate of the #12 title, with the BDRB number and length added.

I then started and aborted the job so that I coould check the titles.inf file. Yep, the wrong entries are now in the file. I corrected the file, restarted BDRB and again it screwed up the list.

To try and get this right, I closed BDRB and deleted the titles.inf file. I started again and again the dialog was wrong. Title #7 was the way I want it, i.e., no BDRB number and no length. But, it duplicated title #7's title and added the BDRB goodies and gave it entry #8. Yep again the list now contains 13 titles when there really is only 12.

Just what is BDRB doing? Is there a secret stash that BDRB is using regarding the imported titles.The TITLES.INF file was never intended to be edited by the user. It is just a way for BD-RB to keep that information between runs. That file also contains information as to changes in position and inclusion/removal information (that are made from the dialog in BD-RB).

I've never seen it "get it wrong". If it is... it is likely because you've edited it without understanding it.

MrVideo
9th February 2022, 22:46
The TITLES.INF file was never intended to be edited by the user. It is just a way for BD-RB to keep that information between runs. That file also contains information as to changes in position and inclusion/removal information (that are made from the dialog in BD-RB).

I've never seen it "get it wrong". If it is... it is likely because you've edited it without understanding it.
Continuing this via PM.

Lowpro
9th February 2022, 23:41
The TITLES.INF file was never intended to be edited by the user. It is just a way for BD-RB to keep that information between runs. That file also contains information as to changes in position and inclusion/removal information (that are made from the dialog in BD-RB).

I've never seen it "get it wrong". If it is... it is likely because you've edited it without understanding it.I concur. I've never seen it "get it wrong" either. Well, unless the problem exists between the keyboard and chair anyway. I've seen that a few times. :p

MrVideo
10th February 2022, 02:16
I concur. I've never seen it "get it wrong" either. Well, unless the problem exists between the keyboard and chair anyway. I've seen that a few times. :p
Normally BDRB gets it right. But I've run into a situation where it doesn't. Data sent to jdobbs that showed what happened.

MrVideo
12th February 2022, 07:31
I've never seen it "get it wrong" either.
Well, here is proof.
A directory contains five directories, Titles-01 thru Titles-05. Starting BDRB and importing the directory results in BDRB-01 (http://vidiot.com/images/BDRB-01.jpg).
The titles.inf is:

[Titles]
Title=BDRB
Threshold=0
00001=01. Title-01 [00:48:31]
00002=02. Title-02 [01:00:02]
00003=03. Title-03 [01:01:58]
00004=04. Title-04 [00:54:01]
00005=05. Title-05 [00:55:30]
[Position]
00001=1
00002=2
00003=3
00004=4
00005=5
[Selected]
00001=-1
00002=-1
00003=-1
00004=-1
00005=-1
Looks good.
Now I add another directory, Title-06, and restart BDRB and import again. And the oops result is BDRB-02 (http://vidiot.com/images/BDRB-02.jpg). The original directory name of Titles-06 is the mistake name in the list.
[Titles]
Title=BDRB
Threshold=0
00001=01. Title-01 [00:48:31]
00002=02. Title-02 [01:00:02]
00003=03. Title-03 [01:01:58]
00004=04. Title-04 [00:54:01]
00005=05. Title-05 [00:55:30]
00006=I Am Mortal
00007=07. Title-06 [01:23:13]
[Position]
00001=1
00002=2
00003=3
00004=4
00005=5
00006=6
00007=7
[Selected]
00001=-1
00002=-1
00003=-1
00004=-1
00005=-1
00006=-1
00007=-1
As can be seen, I'm not making this up. BDRB does not like that title.

Mike-uk
12th February 2022, 14:41
Mrvideo use a image host as images uploaded to here require admin approval and as you can see it might take a while for it to be aproved but an image host we can see your images instantly :)

Emulgator
12th February 2022, 23:02
Just report such post as "Please approve attachments" to give moderators notice and it will be done.
I just did that for #31170.
Why ? External hosts die, or cancel their services and thread content will be lost.

MrVideo
12th February 2022, 23:19
In this case it is my own server. That said, when I die, my server will go away.

MrVideo
15th February 2022, 06:32
Working on a UHD resizing from 36GB and BDRB is not getting it. There are two large files (one HDR and one SDR). The first run thru had each of the files about 11GB each (they are equal in size). The overall job was 2.4GB too large for the BD25. So, I set the TARGET_SIZE to 21000, but the encoded file size was still 11GB.

So, I looked at the output settings and Custom was checked, but the value shown was 23500, when I wanted 21000.

What do I need to do to get BDRB to use the 21000 target size?

Emulgator
16th February 2022, 00:32
If you checked "Custom Target Size", Configuration Editor
CUSTOM_TARGET_SIZE=21000
should work.

MrVideo
16th February 2022, 06:35
If you checked "Custom Target Size", Configuration Editor
CUSTOM_TARGET_SIZE=21000
should work.
Thanks for the pointer. I didn't know that option existed. When editing the configuration file, I ran into TARGET_SIZE first and changed it. The CUSTOM_TARGET_SIZE is later in the file.

Timmy256
17th February 2022, 00:38
Hi jdobbs,

Sorry to insist with my report for the past few months, but are you interested in working on that issue at all? If not, that’s OK, but would you please let me know, so I can go on purchase DVDFab and stop posting and investing time troubleshooting BD-Rebuilder?

Thanks.

ggtop
18th February 2022, 19:45
... and stop posting and investing time troubleshooting BD-Rebuilder?

Hi Timmy256,

there is simply nothing to troubleshoot as you have proven you use BDRB on a pre processed and obviously illegal source. Buy the original! You will see BDRB will work as expected then :-)

ggtop

ggtop
18th February 2022, 19:53
Hi jdobbs,

I encountered something unusual using Alternate Output (mp4).
The audio settings in the profile I use is set to AC-3@640. The source bitrate is AC-3@448 and BDRB upconverts to 640. "Normally" it lowers the bitrate to the source bitrate as a maximum what I would expect. This only happens on multi-part sources e.g. Fast & Furious 9.

Have a nice weekend,
ggtop

Timmy256
20th February 2022, 00:49
Hi everyone,

Sorry to have bothered you with my posts, it wasn’t my intention. I’m no video engineer as you guys; just an “end user” who found out jdobbs’ tool and used it only one time and didn’t work as expected; hence my posting here trying to find out whats going on.

As I said, I’m not a video engineer (I’m a software engineer, though); I don’t understand (nor do I have a personal or professional interest) in all the video advanced terms, technicalities and codecs understanding. I just wanted to shrink one Blu-Ray to be able to back it up in a smaller disc as a “n00b”.

From my experience here, you have years of knowdledge and learnings, but that didn't translate (nor the community didn't seem) to be very open or friendly to newcomers or people interested in just using the tool and get on with their life. But that’s OK, you are free to foster whatever community you like! :)

Thanks again for the original tool and, hopefully, some expert; community-approved user will stumble into the same issue some time in the future years and benefit the whole community while troubleshooting.

ggtop
20th February 2022, 21:26
Hi jdobbs,

out of interest. Would it be possible for you to make parameter "threshold" for Avisynth function "Autocrop ()" available through hidden opts? I sometimes encounter too much cropping with default value. Changing AVS and re-running Last command isn't very handy...

http://avisynth.nl/index.php/AutoCrop

Thank you,
ggtop

MrVideo
22nd February 2022, 20:19
Is there a hidden option whereby the numbers and length text that is added by BDRB can be disabled? What I want displayed in the menu is only the folder name.

Thanks

gonca
22nd February 2022, 22:33
It would also be great if we could have an option for longer movie names

MrVideo
22nd February 2022, 22:49
It would also be great if we could have an option for longer movie names
I second that. But, this would apply to importing of single files as well. Many a time TV show episode titles won't fit in the allocated space. When the menu only contains one column, there is lots of space for lengthy titles.

thecrowler
23rd February 2022, 10:18
Hi all,
is it possible to manually update NVEnc in the "BDRB\Tools" folder to the latest release on Github (rigaya/NVEnc)?
Regards.

MrVideo
23rd February 2022, 12:46
You can do so, but keep in mind that jdobbs tests any and all new releases to make sure that it doesn't break anything. Therefore, if you do, you can't complain when something goes wrong and it is related to the encoder.

For example, I've installed the 1/24/22 version of tsmuxer, as I need its ability to work with DD+ audio. TsMuxer has changed a bunch of naming schemes, which jdobbs has discovered. That means he can't use the new tsMuxer until he has sorted out all of the changes. I've run across one of the naming schemes and I have to deal with it manually when I use BDRB for a certain operation.

In other words, do so at your own risk.

MrVideo
24th February 2022, 07:35
I've learned some more about the use of titles.inf. Say you have a directory with 10 titles. Not all of them will fit on a BD. So you uncheck the ones that you'll watch later. In the meantime, there are some more titles that you will want to add. After watching some of the titles on the BD, you go back to the directory and removed the viewed titles. You then add the new titles and restart BDRB and import that directory. The list of titles is totally fubar.

There are only two ways to fix it. 1) you remove the titles.inf and start over 2) you manually edit the titles.inf file. With #1 you have to remove the numbers and length text, again (hence the above request). With the #2 option, you won't have the issue with the number and length text.

But, you still have to do something, because BDRB loses its marbles when a titles.inf file is used again and the content of the directory has changed.

gonca
24th February 2022, 11:51
I've learned some more about the use of titles.inf. Say you have a directory with 10 titles. Not all of them will fit on a BD. So you uncheck the ones that you'll watch later. In the meantime, there are some more titles that you will want to add. After watching some of the titles on the BD, you go back to the directory and removed the viewed titles. You then add the new titles and restart BDRB and import that directory. The list of titles is totally fubar.

There are only two ways to fix it. 1) you remove the titles.inf and start over 2) you manually edit the titles.inf file. With #1 you have to remove the numbers and length text, again (hence the above request). With the #2 option, you won't have the issue with the number and length text.

But, you still have to do something, because BDRB loses its marbles when a titles.inf file is used again and the content of the directory has changed.
Try editing the inf file in BD_RB directly, it works.
I do it quite often.

MrVideo
24th February 2022, 23:46
Try editing the inf file in BD_RB directly, it works.
I do it quite often.
And how is one supposed to do that when the list of titles shown within BDRB is totally incorrect? For example, I removed from the directory the titles I had watched. When BDRB displayed the list, two of the titles that I removed are still there. Two of the titles that are in the directory are not in the list.

Only when I manually edit the titles.inf file is the list now correct.

There's more:

I then added a new title and ended up with:
Title-1
Title-2
Title-3
04. Title-3 [0:44:00]
The title that I added, alphabetically it is equal to "Title-0."

Based upon my experience, BDRB was not designed to re-import a directory with changes. The content needs to be the same, or you have to manually edit the titles.inf file.

Update: I just edited the titles.inf file to add the new title. I placed it in the 4th position and when I restarted BDRB, I ended up with the same title list as shown above. When I edited the titles.inf file to place the new title alphabetically in the correct position and restarted BDRB, the new title showed up, but had "01. " in front of the title and the "[length]" at the end of the title, even though the title.inf file has no such text in it.

That tells me that BDRB has a hidden file of some sort so that it knows that the newly added title was not there before. That would explain the issue I had with a title that kept returning, as noted in previous posts.

gonca
26th February 2022, 00:14
You have the original output (created structure from import)
Load this into BD_RB
Edit the menu
Save and continue

EXAMPLE
DISC>disc 1, disc 2, etc [folder structure]
import
Edit menu etc
output>NEW DISC

Next time
NEW DISC
Add DISC > (BD/NEW DISC + DISC) structure
import
Edit menu etc
output>NEW DISC 2

Do not touch the inf file directly
Just uncheck the movies you don't want and add the ones you do

MrVideo
26th February 2022, 04:20
Please re-red what I posted. I think you have totally missed what I'm doing. What you are suggesting would be great if the directory had ALL of the titles I would be dealing with. Because the content of the directory would not be changing.

The issue is when the content of the directory changes. After viewing some of the content on the disc. I remove that content from the directory. At that point the titles.inf file no longer matches what is in the directory. When I remove content, most of the time I add new content to the directory. That makes the directory more out-of-step with the titles.inf file. BDRB can't seem to deal with directory content changes.

gonca
26th February 2022, 13:43
Please re-red what I posted. I think you have totally missed what I'm doing. What you are suggesting would be great if the directory had ALL of the titles I would be dealing with. Because the content of the directory would not be changing.

The issue is when the content of the directory changes. After viewing some of the content on the disc. I remove that content from the directory. At that point the titles.inf file no longer matches what is in the directory. When I remove content, most of the time I add new content to the directory. That makes the directory more out-of-step with the titles.inf file. BDRB can't seem to deal with directory content changes.
Re-read post
It has been edited

MrVideo
26th February 2022, 18:30
As pointed out in my post, that doesn't work. It might if you start with a single disc and then add a single disc, for a total of two. When working with multiple titles, it tends to fail, as pointed out in post 31189.

gonca
26th February 2022, 18:41
I start with multiple discs and a create a disc structure with menu
Later on I add a new disc to that collection, or replace a disc with an upgraded version of one of the movies, or both.
IT WORKS, I do it on a regular basis
But you just don't want to get it, fine, there is no issue with the menu creation so good luck!

MrVideo
26th February 2022, 19:41
IT WORKS, I do it on a regular basis
As I've pointed out, with plenty of examples, for me it does not work.

cartman0208
2nd March 2022, 09:39
Hi all,
is it possible to manually update NVEnc in the "BDRB\Tools" folder to the latest release on Github (rigaya/NVEnc)?
Regards.

Possible but not recommended.
As pointed out in the very first post BDRB works best with the shipped or linked versions.

MrVideo
2nd March 2022, 10:31
I've run into an issue with backing up a UHD disc. This has happened before, so it didn't come as a surprise. That said, this is more informational than anything else.

I'm on my third try to try and get it to fit on a BD25. The original M2TS file is about 60GB. 8.1GB of which is the TrueHD and AC3 audio streams. Using the default settings, the re-encoded video was about 30GB. Certainly missed the mark. Then tried 21000 as a custom setting. Still missed. I then tried 19000. Still larger than the target by about 3GB. I'm now trying 18000.

But what I've noticed in the config file is that when a job is started, the target size is equal to the previous setting. For a custom size of 19000, the target was 21000. For the current custom setting of 18000, the target is 19000. I have no idea why the current target setting is set to the previous custom setting.

UPDATE: I have to yet another attempt. It would probably have been easier if I could have selected a bitrate instead of a target size. The original file is a 29.7 Mbps. I figure that using 15 Mbps would have fit. The last run BDRB set the bitrate to 16 Mbps. Frankly, I'm not sure that 15 Mbps will cut it. I noticed that the target rate stayed at 19000, even though I've now set 17000. Nope, cancelled the 17000, as the bitrate is a fraction about 15 Mbps, which I don't think it is going to make it. So, I'm trying 16000, yielding a bitrate just over 14 Mbps. If this doesn't do it, I'm heading to bed, as I've already spent over 4 hours on this single project.

UPDATE #2: It took a target size of 15000. That is about 64% of the default 23500. That is a big math error.

cartman0208
6th March 2022, 11:42
Strange ... the target size in my inf file matches the set target exactly ...
Are you doing Full disk backup? Movie Only?
I also had the targed size missed on rare occasions, but that was only about one or two GB ...

MrVideo
6th March 2022, 22:36
Strange
Are you doing Full disk backup?
Yep, strange and yep. It does indeed normally hit without issues.

sonate
7th March 2022, 18:34
Not a bug report but a question about replacing a Sharp Aquos Bluray player that no longer reads any bluray whether original or backup. Since I play mostly copies which have been edited and backed up with BD rebuilder, are there any recommendations from member here for one which has no problem reading BDR's in single layer or dual layer format? TY

MrVideo
8th March 2022, 05:29
The Sony UBP-X800M2 reads everything out there.

cartman0208
8th March 2022, 10:32
Not a bug report but a question about replacing a Sharp Aquos Bluray player that no longer reads any bluray whether original or backup. Since I play mostly copies which have been edited and backed up with BD rebuilder, are there any recommendations from member here for one which has no problem reading BDR's in single layer or dual layer format? TY

That depends...
Your needs? (Wifi? UHD? HDR10+? Dolby Vision?)
What are you willing to invest? 100? 1000?
I went with a Panasonic DP-UB424 since my TV can display HDR10+ but no Dolby Vision.
I must admit, I do not play many disks, but the ones I did, played without issues.

MrVideo
9th March 2022, 04:28
Another miss... 88GB to 26GB.

I had to set it to 20000 to get it to fit, with 600MB to spare.

RetsimLegin
14th March 2022, 18:18
Forgive me if this has been mentioned upthread but a search didn't reveal and I'm not reading 1561 pages manually.

BDRB appears to be (over?) sensitive to filenames.

I imported 8 episodes of a series as individual files for backup.
One of the episodes had a filename like

lorem-Ips Umdolorsi Tam Etcons_S99E9_Secte...Turadi...Pisci.mp4

(changed to protect the guilty!)
and BDRB aborted when it reached this episode with

- [timestamp] Importing video file: (n of m)
- Preparing mp4 for processing...
[timestamp]ERROR: Gathering source file information. Aborted.
[timestamp]ERROR: Gathering source file information. Aborted.
[timestamp]ERROR: Gathering source file information. Aborted.
[timestamp]ERROR: Gathering source file information. Aborted.

Manually resolved by replacing the ... with underscores.

musiclover
16th March 2022, 18:26
"This Item Has Been Removed"

When BD-RB blanks an item the bluray shows a black screen for half a second. Is there an easy way to replace this black screen with a screen with the message "This Item Has Been Removed" ? How do I go about it?

musiclover
20th March 2022, 13:18
"This Item Has Been Removed"

When BD-RB blanks an item the bluray shows a black screen for half a second. Is there an easy way to replace this black screen with a screen with the message "This Item Has Been Removed" ? How do I go about it?

Answering my own question. I have figured it out. You have to manipulate the files in BD_Rebuilder\Tools\blankclip. Here are the files that you need. Remember to backup the originals and restore them after you're done !!!

jdobbs
21st March 2022, 11:47
Answering my own question. I have figured it out. You have to manipulate the files in BD_Rebuilder\Tools\blankclip. Here are the files that you need. Remember to backup the originals and restore them after you're done !!!I approved the attachments -- but I'm away from my office, so I haven't had a chance to look at them. I just assume they're right. As long as you replace blankclip with a video file that matches its resolution, length, etc you should be fine.

Cowboys6190
22nd March 2022, 19:12
I did not see this same error in a search I did. If this has been answered before, please link to it. thx

I am trying to make my first UHD copy.

I just updated to the new open source TSMuxer which helped with my first issue of BD Rebuilder not recognizing the file output as a UHD file.



Now BD Rebuilder recognizes the file as UHD but I am receiving the below error.


[03/22/22] BD Rebuilder v0.61.25
[11:58:37] Source: SS_00000
- Input BD size: 59.52 GB
- Approximate total content: [02:28:09.880]
- Target BD size: 46.26 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Quality: Highest (Very Slow), Two Pass
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=1 DTS=1 HD=0 Kbs=640
[11:58:39] PHASE ONE, Encoding
- [11:58:39] Processing: VID_00000 (1 of 1)
- Error: Video framerate is illegal/unknown.
[11:58:39] - Failed to retrieve audio, aborted


Here is the mediainfo for the file -

General
ID : 1 (0x1)
Complete name : C:\Users\Brian\Desktop\SS\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 59.5 GiB
Duration : 2 h 28 min
Overall bit rate mode : Variable
Overall bit rate : 57.5 Mb/s
Maximum Overall bit rate : 35.5 Mb/s

Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
Codec ID : 36
Duration : 2 h 28 min
Bit rate : 54.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.274
Stream size : 56.5 GiB (95%)
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 9978 cd/m2
Maximum Frame-Average Light Level : 867 cd/m2

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : 129
Duration : 2 h 28 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 678 MiB (1%)
Service kind : Complete Main


Any idea or suggestions? Thx!

MrVideo
23rd March 2022, 03:51
Crap!!!!! I've run into the dreaded CreateQuickMenu() 00076 4000 error, three times in a row. I have no clue why BDRB refuses to create the 2nd page of the menu.

Well, it is now 5 for 5. I can't fix what I am doing wrong (I don't believe I'm doing anything wrong), when I have no clue as to what the error means.

Update: It did work, at least once. I did some other jobs and remembered that I forgot to do something with the particular disc. The disc contains episodes 8, 9 and 10, plus 11 special features. What I forgot to do was place two spaces at the start of episodes 8 and 9 so that the text lines up on the menu. That is when the problem started. A light bulb went on because the two page menu that was built didn't have the spaces. So, I tried again without the spaces and sure enough it worked. Therefore, not my fault. BDRB appears to have an issue when the first page of a menu has leading spaces in the menu text and there is at least two pages in the menu. I've created lots of menus with leading spaces that have worked. But, they were only single page menus.

BTW, even when it errors attempting to create page two of the menu, BDRB thinks that it finished the job successfully.

SquallMX
26th March 2022, 20:53
@jdobbs BD-Rebuilder 0.61.25 when re-encoding to BD25 places subtitles for Blu-ray 4K SDR content as "12A0", "12A1", "12A2"..., it should be "1200", "1201", "1202" (like a normal Blu-ray disc), resulting in non visible subtitles when playing on standalone players.

MrVideo
27th March 2022, 02:56
Another UHD -> BD25 missed. 5GB too large.

Had to set it for 18000 custom size, which resulted in 431MB of spare space.

SquallMX
27th March 2022, 20:32
Another UHD -> BD25 missed. 5GB too large.

Had to set it for 18000 custom size, which resulted in 431MB of spare space.

Weird, for me is the inverse, 25000 to get a 22000 MB output.

MrVideo
28th March 2022, 00:36
Weird, for me is the inverse, 25000 to get a 22000 MB output.
We need to join forces so that it comes out right on target. :D

DoctorM
30th March 2022, 21:56
Not technically a bug report, but a question about a change in the version history not being fully utilitzed.

I was rebuilding Tarzan 1999 this week and the movie is linked by a playlist (vids marked with a *) to lots of other stuff including ad trailers, preventing blanking of the ads without the movie blanking as well.
It struck me that BD RB probably doesn't still need that restriction.
v61.22 updated with "Added code to adjust for leading clips in a multipart source that do not contain audio."
Depending on how it was accounted for, shouldn't the code now allow linked items be able to be blanked independent of the playlist they are linked in?
..or is this me just being crazy again?

sonate
1st April 2022, 00:39
That depends...

I went with a Panasonic DP-UB424 since my TV can display HDR10+ but no Dolby Vision.
I must admit, I do not play many disks, but the ones I did, played without issues.


Thanks immensely for the suggestion. And I assume you had no problems with a BD rebuilder remake with either the single or dual layer BDR?

sonate
1st April 2022, 00:42
The Sony UBP-X800M2 reads everything out there.

BDr single and dual layer is important. I've never encountered the cynavia, don't even know if it's still a thing. But thanks much looks good, and I do have a UHD TV.

MrVideo
1st April 2022, 03:29
BDr single and dual layer is important. I've never encountered the cynavia, don't even know if it's still a thing. But thanks much looks good, and I do have a UHD TV.
Yes, I play BD-R single and dual layer. Cinavia is not placed on new releases and hasn't been for quite a while.

cartman0208
1st April 2022, 18:19
Thanks immensely for the suggestion. And I assume you had no problems with a BD rebuilder remake with either the single or dual layer BDR?

I just tried a DL disk with BDRB processed data ... works as good as the original.
I'm currently burning a 1:1 copy of a UHD to a triple layer BD RE XL I bought for testing ... will come back with the results ... writing takes about 6hrs :rolleyes:


Edit: Ok, the player did not manage to play the disk, but IMO that was not unexpected. I've had trouble with various players and rewritable disks.
I'd guess a one-time-write BD XL would work, but I don't have one for testing right now.

thecrowler
3rd April 2022, 17:49
Hi all,
I'm trying to shrink a BD-50 to a BD-25 using full backup an retaining audio as-it-is.
Any time, the result is an error regarding audio and/or PGS too large (probable oversize).
I've tried changing encoder from NVEnc to x264 an I've also tried switching the decoding/frameserving options from dgdecnv to x264 and also to Directshow, having no luck (always the same error)
To be clear, no BD Rebuilder components have been altered, including AVISYNTH and all the rest.
It's the first time I'm facing such an error in years, using BD-RB.
I'm gonna attach the BD-REBUILDER.LOG file.
Any help would be very appreciated.
Kind regards.
----------------------
[04/03/22] BD Rebuilder v0.61.25
[17:07:55] Source: SGT_PEPPERS_LONELY_HEARTS_CLUB_BAND
- Input BD size: 34,24 GB
- Approximate total content: [02:00:13.597]
- Target BD size: 22,95 GB
- Windows Version: 6.2 [9200]
- Auto Quality: Very Good (Very Fast), 1-Pass VBR
- Decoding/Frame serving: X264/LAVF
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[17:07:55] PHASE ONE, Encoding
- [17:07:55] Processing: VID_00000 (1 of 6)
- [17:07:55] Extracting A/V streams [VID_00000]
- [17:11:41] Reencoding video [VID_00000]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29,970fps, 87.920 frames
- Bitrate: 17.060 Kbs
- [17:11:41] Reencoding: VID_00000, Pass 1 of 1
- [17:55:19] Video Encode complete
- [17:55:19] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4354 (eng): Keeping original audio
- [17:55:19] Multiplexing M2TS
- [17:58:03] Processing: VID_00001 (2 of 6)
- [17:58:03] Extracting A/V streams [VID_00001]
- [17:58:08] Reencoding video [VID_00001]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29,970fps, 1.775 frames
- Bitrate: 574 Kbs
- [17:58:08] Reencoding: VID_00001, Pass 1 of 1
- [17:58:25] Video Encode complete
- [17:58:25] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [17:58:25] Multiplexing M2TS
- [17:58:29] Processing: VID_00002 (3 of 6)
- [17:58:29] Extracting A/V streams [VID_00002]
- [17:58:58] Reencoding video [VID_00002]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23,976fps, 7.428 frames
- Bitrate: 1.694 Kbs
- [17:58:58] Reencoding: VID_00002, Pass 1 of 1
- [18:01:54] Video Encode complete
- [18:01:54] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4354 (eng): Keeping original audio
- [18:01:54] Multiplexing M2TS
- [18:02:13] Processing: VID_00005 (4 of 6)
- [18:02:13] Extracting A/V streams [VID_00005]
- [18:02:17] Reencoding video [VID_00005]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29,970fps, 30 frames
- [18:02:17] Reencoding: VID_00005, Pass 1 of 1
- [18:02:17] Video Encode complete
- [18:02:17] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4354 (eng): Keeping original audio
- [18:02:17] Multiplexing M2TS
- [18:02:21] Processing: VID_00006 (5 of 6)
- [18:02:21] Extracting A/V streams [VID_00006]
- [18:05:09] Reencoding video [VID_00006]
- Audio/PGS sizing issue. Continued...
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29,970fps, 71.464 frames
- [18:38:03] Reencoding: VID_00006, Pass 1 of 1

cartman0208
3rd April 2022, 19:16
It seems the process continues? Does it finish?

musiclover
4th April 2022, 08:47
SGT_PEPPERS_LONELY_HEARTS_CLUB_BAND is an audio bluray with only a little video on it. All original audio together is just too much to fit on 22,95 GB. You can check that after the job in the working path. If you want to keep all original audio you have to split the disc in two.

MrVideo
4th April 2022, 13:12
While you can split the disc in two, you won't gain anything because you'll end up using two 25GB discs. In other words, don't bother.

thecrowler
7th April 2022, 18:24
SGT_PEPPERS_LONELY_HEARTS_CLUB_BAND is an audio bluray with only a little video on it. All original audio together is just too much to fit on 22,95 GB. You can check that after the job in the working path. If you want to keep all original audio you have to split the disc in two.

Thanks man! :helpful:

MrVideo
16th April 2022, 04:07
tsMuxer was used to take MKV 4k HDR files and create Blu-ray folders. BRDB was then used to read in the folders to create the intermediate Blu-ray structure. No issues. Because the total file size was too big for a BD-25, I then hit backup so that BDRB would recode the files to fit. But, it immediately failed with an error that the framerate was illegal/unknown. That is not true, as it is 23.976.

I then started the NVENCCRE program and it is happily recoding the videos.

Why would BDRB give such an error?

jdobbs
17th April 2022, 20:32
tsMuxer was used to take MKV 4k HDR filesand create Blu-ray folders. BRDB was then used to read in the folders to create the intermediate Blu-ray structure. No issues. Because the total file size was too big for a BD-25, I then hit backup so that BDRB would recode the files to fit. But, it immediately failed with an error that the framerate was illegal/unknown. That is not true, as it is 23.976.

I then started the NVENCCRE program and it is happily recoding the videos.

Why would BDRB give such an error?Please post the log.

MrVideo
18th April 2022, 02:12
This also happened back on 2/07/22. But here are the recent entries:
----------------------
[04/15/22] BD Rebuilder v0.61.25
[21:45:26] Source: JESSICA_JONES-S1
- Input BD size: 28.18 GB
- Approximate total content: [03:25:18.264]
- Target BD size: 22.95 GB
- Windows Version: 6.1 [7601]
- Quality: High Quality (Default), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:45:28] PHASE ONE, Encoding
- [21:45:28] Processing: VID_00001 (1 of 4)
- Error: Video framerate is illegal/unknown.
[21:45:28] - Failed to retrieve audio, aborted
----------------------
[04/15/22] BD Rebuilder v0.61.25
[21:51:32] Source: JESSICA_JONES-S1
- Input BD size: 28.18 GB
- Approximate total content: [03:25:18.264]
- Target BD size: 22.95 GB
- Windows Version: 6.1 [7601]
- Quality: High Quality (Default), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:51:32] PHASE ONE, Encoding
- [21:51:33] Processing: VID_00001 (1 of 4)
- Error: Video framerate is illegal/unknown.
[21:51:33] - Failed to retrieve audio, aborted
Nothing real exciting.

Cowboys6190
18th April 2022, 15:26
This also happened back on 2/07/22. But here are the resent entries:
----------------------
[04/15/22] BD Rebuilder v0.61.25
[21:45:26] Source: JESSICA_JONES-S1
- Input BD size: 28.18 GB
- Approximate total content: [03:25:18.264]
- Target BD size: 22.95 GB
- Windows Version: 6.1 [7601]
- Quality: High Quality (Default), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:45:28] PHASE ONE, Encoding
- [21:45:28] Processing: VID_00001 (1 of 4)
- Error: Video framerate is illegal/unknown.
[21:45:28] - Failed to retrieve audio, aborted
----------------------
[04/15/22] BD Rebuilder v0.61.25
[21:51:32] Source: JESSICA_JONES-S1
- Input BD size: 28.18 GB
- Approximate total content: [03:25:18.264]
- Target BD size: 22.95 GB
- Windows Version: 6.1 [7601]
- Quality: High Quality (Default), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:51:32] PHASE ONE, Encoding
- [21:51:33] Processing: VID_00001 (1 of 4)
- Error: Video framerate is illegal/unknown.
[21:51:33] - Failed to retrieve audio, aborted
Nothing real exciting.



I had the same issue as previously posted. It appears both our sources are 4K(UHD). I wonder if that has something to do with it? Below is my information.


[03/22/22] BD Rebuilder v0.61.25
[11:58:37] Source: SS_00000
- Input BD size: 59.52 GB
- Approximate total content: [02:28:09.880]
- Target BD size: 46.26 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Quality: Highest (Very Slow), Two Pass
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=1 DTS=1 HD=0 Kbs=640
[11:58:39] PHASE ONE, Encoding
- [11:58:39] Processing: VID_00000 (1 of 1)
- Error: Video framerate is illegal/unknown.
[11:58:39] - Failed to retrieve audio, aborted


Here is the mediainfo for the file -

General
ID : 1 (0x1)
Complete name : C:\Users\Brian\Desktop\SS\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 59.5 GiB
Duration : 2 h 28 min
Overall bit rate mode : Variable
Overall bit rate : 57.5 Mb/s
Maximum Overall bit rate : 35.5 Mb/s

Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
Codec ID : 36
Duration : 2 h 28 min
Bit rate : 54.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.274
Stream size : 56.5 GiB (95%)
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 9978 cd/m2
Maximum Frame-Average Light Level : 867 cd/m2

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : 129
Duration : 2 h 28 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 678 MiB (1%)
Service kind : Complete Main

jdobbs
19th April 2022, 17:55
Weird. I looked at the code, and it appears you can only get that error if the framerate is zero (as listed in the MPLS).

MrVideo
19th April 2022, 19:48
I just tried to look at one of the BDs that I created with BDEdit and don't see a location where the frame rate is listed in the playlist.

jdobbs
19th April 2022, 20:09
It's in the stream_attributes() of the video stream in the STN_table which is part of a PlayItem() in the PlayList() table.

MrVideo
20th April 2022, 03:18
Ah, the Vi tab is empty. Under the DV tab it is 23.976. So, if you only look at the Vi tab, you'll get unknown. The DV tab needs to be checked as well.

jdobbs
22nd April 2022, 16:59
Ah, the Vi tab is empty. Under the DV tab it is 23.976. So, if you only look at the Vi tab, you'll get unknown. The DV tab needs to be checked as well.From the specification (specific to the STN_table's video entry):

frame_rate: This 4-bit field indicates the frame-rate of the video stream associated with a stream number for the stream_attributes(), and shall be set to a value according to frame_rate defined in Table 5-24 of 5.4.4.3.2.

It isn't optional.

Are you saying the PlayItem() entry doesn't have a video stream listed?

gonca
22nd April 2022, 17:19
I just tried to look at one of the BDs that I created with BDEdit and don't see a location where the frame rate is listed in the playlist.

Self inflicted wound?

MrVideo
23rd April 2022, 00:41
Self inflicted wound?
Can't be self-inflicted if I didn't write the software.

MrVideo
23rd April 2022, 01:00
Are you saying the PlayItem() entry doesn't have a video stream listed?
No. I'm saying that the video stream entry is listed under the DV section, not the Vi section. screengrab (http://vidiot.net/images/BDEdit-1.jpg)

gonca
23rd April 2022, 01:04
Can't be self-inflicted if I didn't write the software.

Just checked some of my 4K HDR stuff
According to BDedit all is good
Created with tsMuxeR and BD_RB
Is your MKV a single file Dolby VIsion video?

MrVideo
23rd April 2022, 02:35
Is your MKV a single file Dolby VIsion video?
Yes, a single video track.

gonca
23rd April 2022, 12:22
Yes, a single video track.

The video track is flagged as DV and tsMuxeR sees that
That is why there is no info under Vi
A slight case of GIGO
Not software fault, you must check data when using hacked video files

Yordan5
23rd April 2022, 15:29
"Intel Releases Fast AV1 Video Encoder for CPUs"

Could this be a considered addition to BD-RB?

MrVideo
23rd April 2022, 22:47
The video track is flagged as DV and tsMuxeR sees that
That is why there is no info under Vi
But, doesn't the stream info under the DV tab satisfy the spec that JD listed? The tsmuxer programmer strive to satisfy the specs. Are you saying they got this wrong?

gonca
23rd April 2022, 23:29
If my suspicions are half right tsMuxeR got it right
If there is no info to input, it can't set the info
Don't forget, in BD Dolby vision is "usually" a two track thing, standard 4K HDR track + DV track
The "failure" might be in the remuxing to MKV

jdobbs
24th April 2022, 00:10
No. I'm saying that the video stream entry is listed under the DV section, not the Vi section. screengrab (http://vidiot.com/images/BDEdit-1.jpg)The screengrab link doesn't seem to work.

jdobbs
24th April 2022, 00:12
But, doesn't the stream info under the DV tab satisfy the spec that JD listed? The tsmuxer programmer strive to satisfy the specs. Are you saying they got this wrong?If I read the spec correctly, if a video stream exists -- the frame rate has to be set (in the video entry).

gonca
24th April 2022, 01:22
@jdobbs
I did two remuxes of a DV movie, one with MakeMKV and the second with MKVtoolNIX

mediainfo reports

makemkv
General
Unique ID : 51054395928025620456322350733546145217 (0x2668B80FCBF508D87377603C94BAC5C1)
Complete name : J:\No Time to Die\makemkv.mkv
Format : Matroska
Format version : Version 2
File size : 66.2 GiB
Duration : 2 h 43 min
Overall bit rate : 58.0 Mb/s
Movie name : No Time to Die
Encoded date : UTC 2022-04-23 23:51:01
Writing application : MakeMKV v1.16.7 win(x64-release)
Writing library : libmakemkv v1.16.7 (1.3.10/1.5.2) win(x64-release)

Video
ID : 1
ID in the original source medium : 4113 (0x1011)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 43 min
Bit rate : 58.0 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.292
Stream size : 66.2 GiB (100%)
Language : English
Default : No
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 902 cd/m2
Original source medium : Blu-ray


mkvtoolnix
General
Unique ID : 332274804988886377338244567194467391288 (0xF9F9CCB72174D9811EC018C8BF995738)
Complete name : G:\mkvtoolnix.mkv
Format : Matroska
Format version : Version 4
File size : 66.2 GiB
Duration : 2 h 43 min
Overall bit rate : 58.0 Mb/s
Movie name : No Time to Die
Encoded date : UTC 2022-04-24 00:01:17
Writing application : mkvmerge v65.0.0 ('Too Much') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
Cover : Yes
Attachments : cover.jpg

Video #1
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 43 min
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 902 cd/m2

Video #2
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 43 min
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2



Note that the mkvtoolnix report shows two tracks, video and DV layer
The makemkv report shows one track, a DV layer

I also remuxed to BD with tsMuxeR and the mkvtoolnix version shows all the info in BDedit while the makemkv version only shows the DV data

MrVideo
24th April 2022, 01:52
The screengrab link doesn't seem to work.
Do it again. Something is up with vidiot.com, while vidiot.net works. Both report to the same computer (same IP).

MrVideo
24th April 2022, 02:02
Somehow, two of my DNS record's IP addresses were changed and they weren't changed by me. I've changed them back, but it will take a wee bit for the change to spread.

MrVideo
24th April 2022, 02:22
Thinking about it, I didn't think that DV could be done with only one video track. I prefer not to have DV video as it is not displayable via projectors. If it is all I have, then the projector will just ignore it.

Now I know what to look out for. Maybe BDRB can put out a warning that these videos are not valid DV videos.

Learn something new every day.

gonca
24th April 2022, 02:49
Thinking about it, I didn't think that DV could be done with only one video track. I prefer not to have DV video as it is not displayable via projectors. If it is all I have, then the projector will just ignore it.

Now I know what to look out for. Maybe BDRB can put out a warning that these videos are not valid DV videos.

Learn something new every day.

Wouldn't say not valid
Maybe not valid for BDs but is valid for mp4 and mkv
Problem is playing back these DV mp4 and mkv files

MrVideo
24th April 2022, 03:44
Wouldn't say not valid
Because BDRB is being used for BD/UHD creation, then they would be invalid.
Problem is playing back these DV mp4 and mkv files
My BD player has no problem with these files authored onto BDs.

jdobbs
2nd May 2022, 23:41
My BD player has no problem with these files authored onto BDs.Players will do all kinds of things that they weren't supposed to

...until they don't.

MrVideo
3rd May 2022, 01:06
So true.

jdobbs
6th May 2022, 20:26
I'm looking at making a change so that if the video entry is empty, BD-RB will gather info from the DV entry. It shouldn't have to... but this wouldn't be the first time BD-RB did something it shouldn't have to.

[edit] Ughh... I just looked at the code and this isn't going to be as easy as I'd hoped. Oh well...

MrVideo
6th May 2022, 23:15
[edit] Ughh... I just looked at the code and this isn't going to be as easy as I'd hoped. Oh well...
But, it will be greatly appreciated.

Ch3vr0n
7th May 2022, 15:41
Somehow, two of my DNS record's IP addresses were changed and they weren't changed by me. I've changed them back, but it will take a wee bit for the change to spread.

Then you possibly may have been subject do DNS poisoning or an unauthorized change. Maybe look into DNSSec on your provider level

MrVideo
7th May 2022, 22:31
I suspect it is something that I did. Hover is my domain name holder. I seriously doubt that they got hacked. Plus, only 2 of the 5 entries was incorrect. And, it wasn't a random IP address pointing to a nefarious location.

jdobbs
8th May 2022, 21:46
@MrVideo

Can you tell me how you create a structure that will cause the error you mentioned (DV has an entry but VID doesn't)? Here's what I did:

1. Use MKVMERGE to create an MKV file from an M2TS that has DV.
2. Use TSMUXER (UHD Version) to create a UHD/BD structure from the MKV file.

When I do it, it seems to create the structure fine, and I don't get the error.

gonca
8th May 2022, 23:01
jdobbs
If you use MakeMKV and then create the BD structure with tsMuxeR you will get DV info only

EDIT
see my post above

jdobbs
8th May 2022, 23:47
jdobbs
If you use MakeMKV and then create the BD structure with tsMuxeR you will get DV info only

EDIT
see my post aboveOh. I see. It requires that the MKV be created by MakeMKV. Interesting. If I use MKVMERGE, it creates an MKV with two video tracks which imports fine into an UHD-BD structure.

jdobbs
9th May 2022, 00:57
jdobbs
If you use MakeMKV and then create the BD structure with tsMuxeR you will get DV info only

EDIT
see my post aboveSo the question would be... why take this circuitous route of creating a movie-only BD structure anyway? To run into this problem you have to:

1. Use MAKEMKV to decrypt/create an MKV from the original disc.
2. Use TSMUXER to create a BD structure from the MKV.
3. Use BD-Rebuilder to create a Movie-Only version that is smaller.

Why not just:

1. Use MAKEMKV to decrypt/copy the BD structure to your hard drive.
2. Use BD-Rebuilder to create a Movie-Only version that is smaller.

If you also want an MKV, BD Rebuilder can do that for you too.

Am I missing something?

gonca
9th May 2022, 01:43
I believe that your question should be directed at MrVideo
I was just trying to figure out how he got the weird structure.
He mentioned MKV and DV so I tried the 2 most common ways of creating a MKV
Me, I decrypt to a folder structure and then compress and remux to a folder structure.
Real simple
Personally, I think that if someone creates one of these invalid structures they should fix it before inputting it to BD_RB

jdobbs
9th May 2022, 19:30
I believe that your question should be directed at MrVideo
I was just trying to figure out how he got the weird structure.
He mentioned MKV and DV so I tried the 2 most common ways of creating a MKV
Me, I decrypt to a folder structure and then compress and remux to a folder structure.
Real simple
Personally, I think that if someone creates one of these invalid structures they should fix it before inputting it to BD_RBAgreed. Sorry, I wasn't aiming the response at you, only responding to the context. It sounds to me like MrVideo's issue is being created by MAKEMKV. That doesn't mean it is doing anything wrong... since the MKV seems to be compliant. It just makes it difficult to then reintegrate into a BD structure.

I wonder if the MKV created by MKVMERGE actually plays back as DV (with two streams, one of which only holds the DV extensions)?

SeeMoreDigital
9th May 2022, 20:35
jdobbs
If you use MakeMKV and then create the BD structure with tsMuxeR you will get DV info only

EDIT
see my post aboveHowever, if you use MakeMKV in 'Backup' mode and then drop the largest .m2ts file into MKVmerge, you get both video streams (including MEL/FEL Dolby Vision) that TSmuxer is able to mux perfectly ;)

gonca
9th May 2022, 22:57
However, if you use MakeMKV in 'Backup' mode and then drop the largest .m2ts file into MKVmerge, you get both video streams (including MEL/FEL Dolby Vision) that TSmuxer is able to mux perfectly ;)

Agreed, but I would use the proper mpls
But this was trying to figure out how that MKV was obtained
Realistically
Decrypt to full folder with Makemkv
Input folder into BD_RB
Simpler approach to what is being attempted
(AND NOT by me)

jdobbs
10th May 2022, 21:53
I'm still going to make the update so it pulls the data from the DV entry when the VID entry is empty. You never know when you might run into a UHD MKV that someone else created with MAKEMKV.

jdobbs
11th May 2022, 16:58
I have updated the first post of this thread with a link to the latest version of BD Rebuilder (v0.61.28). Changes for this release: - Added code to ensure that forced subtitles
found in imported video files are also
flagged as forced in ALTERNATE file output.
- Fixed error where ALTERNATE_KEEP_SRT was
not working for MP4 output.
- Added lookahead to NVENCC command line for
slightly improved quality at a given rate.
- Fixed an error in which audio that must be
encoded could be wrongly kept intact under
certain circumstances.
- Added code to support using SubtitleEdit
to convert PGS to SRT subtitles, it now
converts about 6x faster than BD-RB's
original (internal) routine.
- Fixed an issue that could (very rarely)
cause BD-RB to misinterpret imported
video run length.
- BD-RB's installation folder now includes
Subtitle Edit v3.6.3 which is distributed
under the GNU GENERAL PUBLIC LICENSE, v3.
Note that it is a very useful utility that
can also be run independently of BD-RB as
a Windows application.
- Fixed an error in which importing may
(rarely) cause error exit when using
NVENCC.
- Fixed a source of possible error that
shows as EXIT CODE: -1073741819.
- Added code to adjust for sources that are
improperly formatted and don't include
information for primary video on a DV
source. When it doesn't exist, BD-RB will
look for a DV entry and pull format data
from it.
- Updated version of x264 to v0.164.3075
- Updated version of x265 to v3.5.0.13
- Updated NVENCC to a newer version (v5.41)
- Other minor corrections and cosmetic fixes.

MrVideo
11th May 2022, 22:17
Thanks for the update.

Emulgator
12th May 2022, 00:08
Many thanks for your continued work, jdobbs !

Besides of that I need a little hint:
I wanted to run a quick NVENC Comparison h.264 vs h.265 in BD-RB, but no matter what I tick I can not get h264 from NVEnc.
I keep getting .h265 muxed.
I must have spoilt just one tick, but which ?
If I read the logs I get told which decoder has been fired up at which source, but nothing about encoder and compression,
only "Reencoding: <element> Pass n of m" just how it always was.

Sometimes I wish the dual/triple system of "Setup" "Config" + "Hiddenopts" could be united into one GUI window, one fine day maybe ?
Maybe I should control that through NVENCC Reencoder v0.10.7 ?
I try to conclude something, maybe it is still not that easy to find:
NVENCCRE.INI
VIDEO_CODEC=0 specifies AVC, 1 specifies HEVC
AVC_Q_VALUES specify the 3 quality presets, I chose 28,23,18
tbc...

jdobbs
12th May 2022, 02:32
Many thanks for your continued work, jdobbs !

Besides of that I need a little hint:
I wanted to run a quick NVENC Comparison h.264 vs h.265 in BD-RB, but no matter what I tick I can not get h264 from NVEnc.
I keep getting .h265 muxed.
I must have spoilt just one tick, but which ?
If I read the logs I get told which decoder has been fired up at which source, but nothing about encoder and compression,
only "Reencoding: <element> Pass n of m" just how it always was.

Sometimes I wish the dual/triple system of "Setup" "Config" + "Hiddenopts" could be united into one GUI window, one fine day maybe ?
Maybe I should control that through NVENCC Reencoder v0.10.7 ?
I try to conclude something, maybe it is still not that easy to find:
NVENCCRE.INI
VIDEO_CODEC=0 specifies AVC, 1 specifies HEVC
AVC_Q_VALUES specify the 3 quality presets, I chose 28,23,18
tbc...Is it a UHD source? That might force it to H265. Another setting might be if you select "Convert BD to UHD-BD (HEVC) Format" from the output menu (assuming UHD_CONVERT_ENABLE=1 is set in your INI).

In NVENCCRE you just select which encoder you want to use from the menu.

Emulgator
12th May 2022, 02:50
UHD-BD 10bit HEVC source with DoVi layer, yes.
UHD_CONVERT_ENABLE=0 did not help, I was getting H.265 with this as well.

NVENCCRE did create H.264, and true, it was already implemented in the Output menu,
I had just looked at the .ini first, guessed at the entries and overlooked the nice menu cascading arrows.
I kept UHD resolution, let transcode to H.264 in MKV with all audio kept, giving enough bits CRF 18, came out at 48Mbps.
A quick glance showed very good quality on a 8-bit 100% gamut display, no pixel-peeping yet.

P.S. I think I see now, what I was asking would involve a conversion going 10-bit HDR -> 8-bit SDR
and ATM a non-standard disc would result.
For my limited scope of artifact peeping I didn' have to take care for the resulting shifted luma/chroma response.

RetsimLegin
17th May 2022, 07:46
@jdobbs I have a little puzzle. I have BDRB on two machines. I find that if I take any file with EC3 multichannel audio and import it then
- one one machine it will generate a multi-channel AC3 track
- on the other it will only generate 2 channels (or sometimes one). Never all 5.1.

I just put the newest BDRB version on both. No change. So I guess it must be something external to the folder containing the extracted BDRB zip. The only major hardware difference is a suitable NVidia card in the one that "works". That shouldn't (?) make any difference, right? So I have to guess it's something software external to BDRB that is at play. Any pointers as to where I might look?


EDIT P.S.Actually I just attempted to start a new job with 06128 and found that, whilst it did generate multichannel audio, it refused to select NVENCC on the NVidia equipped machine (unable to confirm compatibility). So I have reverted to 06122 which does work. It's a GeForce GTX1650ti. FYI.

cartman0208
18th May 2022, 14:49
@jdobbs I have a little puzzle. I have BDRB on two machines. I find that if I take any file with EC3 multichannel audio and import it then
- one one machine it will generate a multi-channel AC3 track
- on the other it will only generate 2 channels (or sometimes one). Never all 5.1.

I just put the newest BDRB version on both. No change. So I guess it must be something external to the folder containing the extracted BDRB zip. The only major hardware difference is a suitable NVidia card in the one that "works". That shouldn't (?) make any difference, right? So I have to guess it's something software external to BDRB that is at play. Any pointers as to where I might look?


EDIT P.S.Actually I just attempted to start a new job with 06128 and found that, whilst it did generate multichannel audio, it refused to select NVENCC on the NVidia equipped machine (unable to confirm compatibility). So I have reverted to 06122 which does work. It's a GeForce GTX1650ti. FYI.

Are all the prerequisites (from the very first post) the same version on both machines?

Not sure about the NVENCC ... could be because of the newest version added in the 0.61.28

The 1650ti does not support HEVC B-Frames, might have something to do with that?

MrVideo
18th May 2022, 22:28
The 1650ti does not support HEVC B-Frames, might have something to do with that?
Ya, I have the GTX-1660.

RetsimLegin
19th May 2022, 07:23
Are all the prerequisites (from the very first post) the same version on both machines?

Not sure about the NVENCC ... could be because of the newest version added in the 0.61.28

The 1650ti does not support HEVC B-Frames, might have something to do with that?I'll have to re-check the pre-reqs. As to HEVC - I'm not using that in either case. H264 for output, and the source is the same file in the two cases.

LowDead
22nd May 2022, 17:04
I'll have to re-check the pre-reqs. As to HEVC - I'm not using that in either case. H264 for output, and the source is the same file in the two cases.

maybe you should post the .ini file for both computers?

//LD

RetsimLegin
23rd May 2022, 10:18
@jdobbs I have a little puzzle. I have BDRB on two machines. I find that if I take any file with EC3 multichannel audio and import it then
- one one machine it will generate a multi-channel AC3 track
- on the other it will only generate 2 channels (or sometimes one). Never all 5.1.
Fixed by installing LAV Filters. Thanks for the pointer.

I'll get back to experimenting with 06128 and its seeming unwillingness to allow NVENCC at a future time. Sticking with 06122 for the time being.

cartman0208
23rd May 2022, 14:28
Fixed by installing LAV Filters. Thanks for the pointer.

I'll get back to experimenting with 06128 and its seeming unwillingness to allow NVENCC at a future time. Sticking with 06122 for the time being.

Although not recommended ... have you tried fiddling around with different versions of NVEncC (https://github.com/rigaya/NVEnc/releases) ?
It might not help at all, since only JDobbs knows how the detection feature works...

AmigaFuture
24th May 2022, 02:51
I have updated the first post of this thread with a link to the latest version of BD Rebuilder (v0.61.28). Changes for this release: [Snip]
- BD-RB's installation folder now includes
Subtitle Edit v3.6.3 which is distributed
under the GNU GENERAL PUBLIC LICENSE, v3.
Note that it is a very useful utility that
can also be run independently of BD-RB as
a Windows application.
[Snip!]


Wow, this is great! Much better than the other way. Great idea. This program is pretty powerful.

jdobbs
24th May 2022, 20:29
Fixed by installing LAV Filters. Thanks for the pointer.

I'll get back to experimenting with 06128 and its seeming unwillingness to allow NVENCC at a future time. Sticking with 06122 for the time being.I'm guessing it's a driver thing. Try adding:

NVENC_CAPABLE=1

to the OPTIONS area o your INI file.

That way it will assume you have a compatible card installed (just as if the check came back positive).

RetsimLegin
25th May 2022, 07:21
I'll try that and report back when I get chance. Thx.

Hooman
13th June 2022, 06:36
CURRENT VERSION 0.61.28 (May 11th, 2022)

9. Please DO NOT replace the versions of software included in the BD-RB ZIP with other versions (e.g. replacing the 32 bit X264 with a 64 bit version). In doing so you are very likely creating a self-inflicted injury that will not be addressed as a bug.

Hi, the included NVEnc fails to initiliaze my GPU's Cuda driver but some other/newer/x64 version of that encoder has no proplem initilaizing. Can I replace it?

https://i.ibb.co/pRw6jvK/nvencuda.jpg

jdobbs
13th June 2022, 18:00
As long as it works. But please remember that I haven't tested it with that version... it's possible there may be changes that cause issues. It wouldn't be the first time.

It is less likely to be an issue with NVENCCRE than BD-RB since NVENCC does most of the work with that program.

Hooman
14th June 2022, 06:47
As long as it works. But please remember that I haven't tested it with that version... it's possible there may be changes that cause issues. It wouldn't be the first time.

It is less likely to be an issue with NVENCCRE than BD-RB since NVENCC does most of the work with that program.

Thanks for replying, What is NVENCCRE?
The one encoder that works is NVEncC64.exe(v5.46, x64 architecture) and the file(name)s in its folder are different from the ones in "BD Rebuilder\Tools\NVENC" folder (according to the screenshot).
Could it be a problem with Cuda driver that is only x64 (not working with a 32 bit NVEncC.exe)? If so, is there a 32-bit compatible Cuda driver I should install?

https://i.ibb.co/qp48xZ4/nvenc.jpg

cartman0208
14th June 2022, 11:36
Did you try using the 64bit version renaming the executable to NVEncC.exe?
That way you won't mess up your system with ... drivers.

Lathe
16th June 2022, 06:00
Hello All!

Ummm... for some odd reason when I go to run the recent version of BDRB.exe in the folder, I get a prompt from Windows saying that I don't have permission or something. And then, very mysteriously, the BDRB.exe vanishes!

I have the last version and I don't THINK I'm doing anything differently. Any suggestions?

Thanks!

gonca
16th June 2022, 11:01
Have you tried "Run as Administrator"

cartman0208
17th June 2022, 12:19
Looks almost like a bad case of Antivirus false positive... What antivirus solution do you use?
If you can't remember any and you are on Win10 oder 11, then Windows Defender might have kicked the .exe into quarantine.

musiclover
17th June 2022, 14:00
If you are using Malwarebytes you need to make an exception for BDRB.exe. It sees it as a virus.

Mark_Venture
17th June 2022, 14:31
Didn't Norton/Symatec also have false positive issues in the past?

SquallMX
24th June 2022, 03:27
@jdobbs when re-encoding a UHD Menu with Dolby Vision the keyframe placement is not respected, which is needed for proper compliance.

jdobbs
24th June 2022, 20:21
@jdobbs when re-encoding a UHD Menu with Dolby Vision the keyframe placement is not respected, which is needed for proper compliance.Hmm... I'll take a look at it, but I thought I kept the keyframes consistent for Dolby Vision. I must have missed something.

Hooman
30th June 2022, 08:19
Are BD-rebuilder's 3D .AVC / .MVC workfiles usable in Scenarist BD re-authoring(Base view and dependent view)? I'm encountering errors such as "The MVC scalable nesting SEI message(offset_metadata) is not contain first view component in decoding order of GOP" and/or "SSIF allocation Error, Fail at Condition 5" at muxing.

Hooman
3rd July 2022, 14:49
In-mux is not "supposedly" anything. I know what I'm doing, and when I say it is 100% compliant -- it is 100% compliant. Support is required by the spec -- so if there is a 3D player out there that doesn't support it THE PLAYER IS NOT COMPLIANT. It is used on many commercial discs. Frankly I think the SSIF format is ridiculous (with its faux appearance of two files that really only exists due to exotic use of sector pointers) and can see no good reason why it is used. I think it's just there to make copying difficult.

Can you send me the MPLS of the playlist that is reversed?

PowerDVD (The last version with 3D Blu-ray support and probaly WinDVD as well) + NVidia 3d Vision Glasses + 120 Hz display don't like this in-mux format at all and as someone who has no standalone player connected to a 3D TV I'm unable to view BD-RB(uilt) 3D movie contents.
Can you please add a OUTPUT_3D_ISO (SSIF directory structure) option for Full backup mode?

MrVideo
4th July 2022, 01:32
As a refresher course, what is in-mux 3D format?

ggtop
4th July 2022, 10:17
PowerDVD (The last version with 3D Blu-ray support and probaly WinDVD as well) + NVidia 3d Vision Glasses + 120 Hz display don't like this in-mux format at all and as someone who has no standalone player connected to a 3D TV I'm unable to view BD-RB(uilt) 3D movie contents.
Can you please add a OUTPUT_3D_ISO (SSIF directory structure) option for Full backup mode?

Hi, I personally never tried to full backup a 3D BD, but this hidden option sounds promising:

OUTPUT_3D_ISO=n n = 0/1 - 0=Off (default) - if set to "1", movie-only output is to an ISO rather than a folder

From the change log:
April 7th, 2014 - v0.47.04
- Implemented 3D Full Backup Mode. Note that
BD-RB converts 3D method so that the SSIF
folder is no longer required -- the method
is 100% compliant with the BD standard.
(v0.47.03)
- Due to the changes in the way 3D is handled,
BD-RB no longer outputs to ISO by default on
movie-only 3D encodes. It can be enabled by
using the OUTPUT_3D_ISO hidden option. Note:
This option only applies to movie-only 3D
encodes. (v0.47.03)
- Made in-mux (single M2TS) 3D multiplexing
mode the default on full-backup 3D. This
can be changed back with the hidden option
FORCE_INMUX_3D=0.
- Modified 3D movie-only mode so it also now
uses the in-mux structure for BD-3D output.

BTW Option "FORCE_INMUX_3D" is no longer listed in <HIDDENOPTS.TXT>

ggtop

Sharc
4th July 2022, 11:19
As a refresher course, what is in-mux 3D format?
A method where the two views are packed (muxed) into one single file (container), as opposed to the MVC structure where the 2 views are arranged in separate files (as base and dependent view), with SSIF folder structure. It's a standard 3D packing method, as valid as the commercial MVC structure.

Hooman
4th July 2022, 17:00
Hi, I personally never tried to full backup a 3D BD, but this hidden option sounds promising:

OUTPUT_3D_ISO=n n = 0/1 - 0=Off (default) - if set to "1", movie-only output is to an ISO rather than a folder

ggtop

After a movie-only backup using that option it appears to me the 3d output of my BD rebuilder has artifacts(video pixelation) and is shaky with or without SSIF directory structure. I don't know if it's because of Frim(decoder/encoder) and/or the mux process.

https://i.ibb.co/Xt3yZxv/IMG-4182a.jpg

I tried to import the 264 and mvc ESs from the workfiles into scenarist bd and re-author but it fails at 90% muxing("SSIF allocation Error, Fail at Condition 5").
Is there any other means to check/test those encoded/muxed files?

MrVideo
5th July 2022, 10:39
A method where the two views are packed (muxed) into one single file (container), as opposed to the MVC structure where the 2 views are arranged in separate files (as base and dependent view), with SSIF folder structure. It's a standard 3D packing method, as valid as the commercial MVC structure.
Thanks for the info. I've never seen it used on any 3D disc that I have.

MrVideo
6th July 2022, 14:26
Does BDRB not like a BD structure that has an audio file that is TrueHD 7.1? I took the MKV file and ran it thru tsmuxer to get a BD folder (HEVC video). Tsmuxer warned that the MLP audio will not play on a BD player. When I try and import the BD folder into BDRB, during the reading playlist portion, it takes a few minutes before it even gets to 0.10% progress. Another MKV file has DTSMA audio and the BD folder is imported just fine,

Am I not going to be able to import the BD folder?

gonca
6th July 2022, 15:27
Does BDRB not like a BD structure that has an audio file that is TrueHD 7.1? I took the MKV file and ran it thru tsmuxer to get a BD folder (HEVC video). Tsmuxer warned that the MLP audio will not play on a BD player. When I try and import the BD folder into BDRB, during the reading playlist portion, it takes a few minutes before it even gets to 0.10% progress. Another MKV file has DTSMA audio and the BD folder is imported just fine,

Am I not going to be able to import the BD folder?

THD must have an interleaved ac3 core file for BD compliance.
MKV cannot store two interleaved tracks, so it splits them.
Stores them as a thd track and an ac3 track.
You are trying to encode a non compliant track.
Merge the thd and ac3 tracks together or re-encode an ac3 core into the thd track.
Or wait while BD_RB does it

MrVideo
6th July 2022, 22:41
THD must have an interleaved ac3 core file for BD compliance.
MKV cannot store two interleaved tracks, so it splits them.
Stores them as a thd track and an ac3 track.
Yep, know all that. But, MediaInfo only shows the THD track. The AC3 core appears to not have been stored with it. I'll just have to get around it another way. Oh well.

gonca
7th July 2022, 00:34
Yep, know all that. But, MediaInfo only shows the THD track. The AC3 core appears to not have been stored with it. I'll just have to get around it another way. Oh well.

MKV cannot store an ac3+thd track.
It has to separate the core from the thd, creating two separate tracks.
THD tracks in MKV are never BD compliant

MrVideo
7th July 2022, 02:28
It has to separate the core from the thd, creating two separate tracks.
As I noted, there was only the single THD audio track. No separate AC3 core track.

It would have been nice if BDRB would have indicated what it was doing. But, the point is moot as I've scrapped working with the particular file.

Lathe
8th July 2022, 05:17
Have you tried "Run as Administrator"

Yep, I tried that...

Thanks too to the other suggestions about the AV software, but I haven't changed anything that I am aware of. I'm still running Avast and AdAware. I'll try defeating those first and then try to run BDRB again, although I'm not getting any warnings or prompts.

Lathe
8th July 2022, 05:25
Yep, know all that. But, MediaInfo only shows the THD track. The AC3 core appears to not have been stored with it. I'll just have to get around it another way. Oh well.

Heh, Bro, I swear it seems like you keep asking about this in different ways :) As I have suggested before, the solution is very simple. Just run UsEac3To, drop in the MKV file with the TrueHD track (which as Gonca says being muxed in MKV format the core is missing) and then choose as your output TrueHD+AC3 and then run the command line and it puts the AC3 core back in. THEN you can take the resulting file which now is compliant and simply add/mux it into BDRB.

Lathe
8th July 2022, 05:39
Yep, it's Avast. In the notifications it is saying it quarantined BDRB.exe because it has 'FileRep malware' I hafta figure out how to make an exception. It's never done that before, I wonder why it is doing so now...?

MrVideo
8th July 2022, 12:18
Just run UsEac3To, drop in the MKV file with the TrueHD track (which as Gonca says being muxed in MKV format the core is missing) and then choose as your output TrueHD+AC3 and then run the command line and it puts the AC3 core back in. THEN you can take the resulting file which now is compliant and simply add/mux it into BDRB.
I don't remember seeing this trick mentioned. I'll try and remember if I run into this again. I've decided to go into a different direction and have decided not to deal with this file at all.

gonca
9th July 2022, 12:03
I don't remember seeing this trick mentioned. I'll try and remember if I run into this again. I've decided to go into a different direction and have decided not to deal with this file at all.

THD must have an interleaved ac3 core file for BD compliance.
MKV cannot store two interleaved tracks, so it splits them.
Stores them as a thd track and an ac3 track.
You are trying to encode a non compliant track.
Merge the thd and ac3 tracks together or re-encode an ac3 core into the thd track.
Or wait while BD_RB does it

:) :rolleyes:

MrVideo
9th July 2022, 20:56
As in previously mentioned before this current discussion.

CraigWally
13th July 2022, 18:49
After a movie-only backup using that option it appears to me the 3d output of my BD rebuilder has artifacts(video pixelation)
That will be with a software player? Yes?.
Burn it to disc and play on a standalone player, trust me it will be fine

Mark_Venture
8th August 2022, 14:31
So I've got bluray I'm trying to back up which BD Rebuilder gets the following error:

BD Rebuilder experienced and error 2503 [09:11:07] SourceCheck() 00006 2503

followed by:
Selected source is not BD format.

BD-Rebuilder.log has:
- [09:30:38] SourceCheck() 00006 2503

The disc is John Williams Live in Vienna, Wiener Philharmoniker - Anne- Sophie Mutter. from 2020. Purchased via Amazon, and says "all regions".

I tried using passkey and makemkv.

The original disc plays in my bluray player just fine.

EDIT: What info can I share to help with this?

Hooman
11th August 2022, 16:47
That will be with a software player? Yes?.
Burn it to disc and play on a standalone player, trust me it will be fine

After lots of experiments, I found out it's a problem with Frim decoding/encoding because when MVC to AVI Converter + AVFS + CineVision MVC Encoder + setting "REBUILD_COMPLETE=0" + replacing ESs in Workfiles + re-rebuild are used there's no such artifacts.

Update: The software players such as PowerDVD 19 and WinDVD only play the 2D version (no artifacts when encoded with CineVision MVC Encoder) and my standalone Samsung Blu-ray 3d player doesn't start playing the BD-Rebuilder 3d clips, but when the same re-encoded MVC videos are re-authored in Scenarist BD (SSIF format) all of those players display the 3d effects perfectly (there's no viewable difference between the re-authored 3d BD-25 and the original 3D BD-50.)

bjones
13th August 2022, 22:18
This is probably an easy question for the experts here. I'm trying to create alternate output mkv's from my bluerays in HEVC for some size efficiency. Using the mBitrate along with vBitrate seems to have no effect and it encodes as a constant bitrate at the vBitrate setting. On the same settings except as AVC it works as expected with an avg bitrate close to the vBitrate setting and a peaking bitrate exactly at the Mbitrate setting. Is it another setting I'm missing or is mBitrate not supported on HEVC encodes ? Encoder is the nvidia one in the distribution. Thanks for any pointers

Emulgator
14th August 2022, 16:24
If one is used to control x264, then x265, then uses NVEnc:
Bitrate control is different within NVEnc (both 264 and 265), so some parameters have to be translated, some ignored.

SquallMX
11th September 2022, 16:46
@jdobbs When reencoding seamless branching titles with Dolby Vision, not all the segments are reencoded using "VID_00XXX.CHP" for proper DV compatibility, mostly smaller segments:

From LASTCMD.TXT:

"D:\Archivos de Programa\BD Rebuilder UHD\tools\ffmpeg.exe" -probesize 100MB -i "E:\Star Trek 6\BDMV\STREAM\00605.m2ts" -an -pix_fmt yuv420p10le -f yuv4mpegpipe -strict -1 - | "D:\Archivos de Programa\BD Rebuilder UHD\tools\x265-64.exe" - --preset medium --profile main10 --uhd-bd --repeat-headers --vbv-bufsize 45000 --vbv-maxrate 48000 --hdr --chromaloc 2 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll "1000,329" --fps 23.976 --slow-firstpass --pass 1 --sar 1:1 --keyint 24 --crf 23.7 --y4m --no-strong-intra-smoothing --no-sao --deblock -1:-1 --ipratio 1.2 --pbratio 1.1 --aq-mode 3 --dynamic-refine --rskip 2 --rskip-edge-threshold 3 --rdoq-level 2 --rc-lookahead 24 --stats "D:\VIDEO PROCESSING\UHD\WORKFILES\VID_00605.AVS.hevc.stats" --output "D:\VIDEO PROCESSING\UHD\WORKFILES\VID_00605.AVS.hevc""


"D:\Archivos de Programa\BD Rebuilder UHD\tools\ffmpeg.exe" -probesize 100MB -i "E:\Star Trek 6\BDMV\STREAM\00596.m2ts" -an -pix_fmt yuv420p10le -f yuv4mpegpipe -strict -1 - | "D:\Archivos de Programa\BD Rebuilder UHD\tools\x265-64.exe" - --preset medium --profile main10 --uhd-bd --repeat-headers --vbv-bufsize 45000 --vbv-maxrate 48000 --hdr --chromaloc 2 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll "1000,329" --fps 23.976 --slow-firstpass --pass 1 --sar 1:1 --qpfile "D:\VIDEO PROCESSING\UHD\WORKFILES\VID_00596.CHP" --keyint 24 --crf 22.5 --y4m --no-strong-intra-smoothing --no-sao --deblock -1:-1 --ipratio 1.2 --pbratio 1.1 --aq-mode 3 --dynamic-refine --rskip 2 --rskip-edge-threshold 3 --rdoq-level 2 --rc-lookahead 24 --stats "D:\VIDEO PROCESSING\UHD\WORKFILES\VID_00596.AVS.hevc.stats" --output "D:\VIDEO PROCESSING\UHD\WORKFILES\VID_00596.AVS.hevc"

Blurayhd
27th September 2022, 16:06
Hi guys I have a problem, I´m trying to encode an mkv movie in 4k to mkv movie in 1080p with Alternate movie only output, but no matter what I do, the result mkv is not an 1920x1080, still 3840x2160 and I so need it in full hd please could you helping me? I´ll appreciate it here is the log

09/27/22] BD Rebuilder v0.61.28
[10:49:34] Source: MI_VILLANO_FAVORITO_(2010)_REMUX_4K_HDR_LATINO
- Input BD size: 26,82 GB
- Approximate total content: [01:34:40.007]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV Container, 1920x1080, Intact Audio
- Quality: Highest (Very Slow)
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[10:49:34] PHASE ONE, Encoding
- [10:49:34] Processing: VID_00000 (1 of 1)
- [10:49:34] Extracting A/V streams [VID_00000]
- [10:59:29] Reencoding video [VID_00000]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23,976fps, 136.184 frames
- [10:59:29] Reencoding: VID_00000, Pass 1 of 1
- [11:45:26] Video Encode complete
- [11:45:26] Processing audio tracks
- Track 4353 (spa): Keeping original audio
[11:45:26]PHASE ONE complete
[11:45:26]PHASE TWO - Rebuild Started
- [11:45:26] Building ALTERNATE OUTPUT Structure
[11:57:34] - Encode and Rebuild complete
- WORKFILES folder removed.
[11:57:35] JOB: MI_VILLANO_FAVORITO_(2010)_REMUX_4K_HDR_LATINO_.finished.

MrVideo
28th September 2022, 12:08
Use NVENCCRE.exe, as you can resize the output to 1920x1080.

Blurayhd
28th September 2022, 19:07
Use NVENCCRE.exe, as you can resize the output to 1920x1080.

Thank you I find it but I notice this tool not let me to choose de crf or pass

jdobbs
28th September 2022, 22:09
Just a reminder. You have to have a compatible NVIDIA video card to use NVENCCRE.

You can do the equivalent of CRF but it's called "Constant Quality". As for "pass", the NVIDIA encoder only does 1 pass encoding. They have a mode they call "two-pass", but it doesn't really meet the definition of a two-pass encoder.

Blurayhd
29th September 2022, 14:19
Just a reminder. You have to have a compatible NVIDIA video card to use NVENCCRE.

You can do the equivalent of CRF but it's called "Constant Quality". As for "pass", the NVIDIA encoder only does 1 pass encoding. They have a mode they call "two-pass", but it doesn't really meet the definition of a two-pass encoder.

Hi Jdobbs I have an Nvidia, and I have to say it I really appreciate your work buddy, first was Dvdrebuilder and next BDrebuilder, I follow you from years and Thank you

If you let me to ask you, the only problem that I have with Bdrebuilder is when I try to encode from 4k to 1920x1080 intact audio, the result still 4k is there one possibility that you can fix it?

MrVideo
30th September 2022, 12:37
I have an Nvidia
That does not mean it will work. Did you go back thru the posts and read the discussions about the nVidia models that will work?

jdobbs
30th September 2022, 19:57
Hi Jdobbs I have an Nvidia, and I have to say it I really appreciate your work buddy, first was Dvdrebuilder and next BDrebuilder, I follow you from years and Thank you

If you let me to ask you, the only problem that I have with Bdrebuilder is when I try to encode from 4k to 1920x1080 intact audio, the result still 4k is there one possibility that you can fix it?If you have a compatible NVIDIA card, you can use NVENCCRE to do the encode. You would just set the output size to 1080p.

It should work with BD-Rebuilder too. I'll have to do a test and see.

Light Sleeper
20th October 2022, 21:45
Hi there,

How do I configure BD Rebuilder to avoid these two errors. I'm using the latest version.

[23:02:50]PHASE TWO - Rebuild Started
- [23:02:50] Rebuilding stream 00007 [1 of 8]
- [23:02:50] Multiplexing M2TS
- [23:02:54] Rebuilding stream 00005 [2 of 8]
- [23:02:54] Multiplexing M2TS
- [23:02:58] Rebuilding stream 00011 [3 of 8]
- [23:02:58] Multiplexing M2TS
- [23:03:11] Rebuilding stream 00006 [4 of 8]
- [23:03:11] Multiplexing M2TS
- [23:03:29] Rebuilding stream 00003 [5 of 8]
- [23:03:29] Multiplexing M2TS
- [23:04:11] Rebuilding stream 00004 [6 of 8]
- [23:04:11] Multiplexing M2TS
- [23:04:48] Rebuilding stream 00012 [7 of 8]
- [23:04:48] Multiplexing M2TS
- [23:05:21] Rebuilding stream 00001 [8 of 8]
- [23:05:21] Multiplexing M2TS
- [23:13:16] Rebuilding BD file Structure
[23:13:56] - Failed to REBUILD

and at other times this

[19:15:01]PHASE TWO - Rebuild Started
- [19:15:01] Rebuilding stream 00005 [1 of 13]
- [19:15:01] Multiplexing M2TS
- [19:27:26] Rebuilding stream 00006 [2 of 13]
- [19:27:26] Multiplexing M2TS
EXIT CODE: -2
- Error in attempt to multiplex: MUX_00006.meta
- Can't create file H:\BLURAY\NEW FOLDER\NEW FOLDER FROM REBUILDER\WORKFILES\TMP\BDMV\STREAM\00000.m2ts
- Failed to rebuild BD file(s). Aborted.

I've included the full log files here after I renamed them.

18218

18219

MrVideo
24th October 2022, 21:10
Instead of that long path, which might be the issue, change to: H:\BDRebuilder\Work\Workfiles

worknstiff
7th November 2022, 17:21
Oh! The good ol' days of BD Rebuilder when I would drop in here even before checking my email, lol. I was messing around with doing a 3D movie only encode and it seems it worked, log even shows MVC encoding. When I played it the 3D seemed flat but it is 3D cause it triggers my 3D glasses. Is there some trick I'm perhaps missing. I really need to do a quick play or a movie only because the menu and play selections are on a Japanese import 3D with Japanese text.

Also has anyone had any success with doing 3D Mkv's?

SuperFist
8th November 2022, 14:16
If you have a compatible NVIDIA card, you can use NVENCCRE to so the encode.

jdobbs, I'm embarrassed to say that I didn't even realize BD-Rebuilder could do this!!! :(

For years I've been using CloneBD just for this purpose only for it to be plagued with artifacts and me learning to live with them.

Early this morning, I converted Troy: Directors Cut (2004) and experienced such pixelated artifacts with CloneBD and thought there had to be another program that could deliver better results. Then I remembered how much better BD-Rebuilder did than DVDFab when I was created BD-Rs and I searched this thread for creating MKVs and sure enough, I struck gold! :D

Once again, amazing quality for an amazing product... and it's still FREE!!! :eek:

So thank you, sincerely yet again, my friend! You are the hero we all need right now.

jdobbs
11th November 2022, 21:51
jdobbs, I'm embarrassed to say that I didn't even realize BD-Rebuilder could do this!!! :(

For years I've been using CloneBD just for this purpose only for it to be plagued with artifacts and me learning to live with them.

Early this morning, I converted Troy: Directors Cut (2004) and experienced such pixelated artifacts with CloneBD and thought there had to be another program that could deliver better results. Then I remembered how much better BD-Rebuilder did than DVDFab when I was created BD-Rs and I searched this thread for creating MKVs and sure enough, I struck gold! :D

Once again, amazing quality for an amazing product... and it's still FREE!!! :eek:

So thank you, sincerely yet again, my friend! You are the hero we all need right now.Much appreciated.

Magister Irrylio
14th November 2022, 01:46
I'm trying to convert a Full SBS 3D file (ie a 3840x1080 2D file) to 3D MVC, but it's not working. I get the error

- [01:44:06] Rebuilding BD-3D file Structure
- TSMUXER ERR: 0xFFFFFFFE
- Failed in attempt to multiplex: MUX_MOVIE_ONLY.meta
- Can't open file: A:\VIDEO\HOBBIT\TEST\WORKFILES\VID_00000.AVS.hevc

VID_00000.AVS.hevc does not exist, but VID_00000.AVS.h264 does exist.

BDR v0.61.28

MrVideo
22nd November 2022, 12:58
I just discovered an issue with the NVENCCRE program. When recoding HEVC 2160p material, it goes from constant frame rate to variable, with the listed frame rate as 23.976. That doesn't happen when BDRB rebuilds 2160p. Is there a reason this is happening?

UPDATE: Nevermind. The issue was caused by ffmpeg, which I used to re-wrap the mkv file to mp4.

Mike-uk
28th November 2022, 16:57
is tone mapping possible with BDRB ?? so got a 4k mkv with hdr, i want a sdr version for bd25 , thanks

Mike-uk
29th November 2022, 14:57
[13:53:20] Importing MKV:
Video file.mkv
- Scanning for Variable Frame Rate...
- Collecting audio/video streams from source...
- Building pseudo-BD source structure...
- TSMUXER ERR: 0xFFFFFFFE
- Source issue found, attempting correction...
- Building pseudo-BD source structure...
- TSMUXER ERR: 0xFFFFFFFE
[13:53:33]ERROR: Failed to build BD structure. Aborted.

any ideas what the problem is ??

Thanks

MrVideo
29th November 2022, 23:28
Not enough to go on. Post a mediainfo output (code wrapped) of the MKV file.

Mike-uk
29th November 2022, 23:44
Format : Matroska
Format version : Version 4
File size : 867 MiB
Duration : 1 h 46 min
Overall bit rate : 1 137 kb/s
Encoded date : UTC 2022-11-29 15:48:13
Writing application : mkvmerge v67.0.0 ('Under Stars') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 4 min 58 s
Bit rate : 7 897 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Variable
Frame rate : 23.976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.159
Stream size : 281 MiB (32%)
Default : Yes
Forced : No

i cut the file to 5 mins for testing

also get error on original source file which is 4k hdr, the info above is from an encode from the source to 1080 hdr to sdr conversion

MrVideo
30th November 2022, 23:34
Where's the audio info?

AmigaFuture
2nd December 2022, 05:36
Hi Everyone, included a twisted Hello to Lathe,

Is MULTIPROCESS=1 or any higher number broken when a GeForce RTX 3060 is added to the System? The Speed is of WOW/Amazing...when using nVIDIA Enc.. Same thing you commented so long ago when you got a hold of a FAST GPU, JD,. I've been looking and holding on..

So, anyway, I want to check the CPU, not GPU, but MULTIPROCESS which seems not functional when this new board is active. I discovered with my older board all I had t do was rename PSEUDO in some way from an Import item.
Any Insights by anyone?

MrVideo
2nd December 2022, 15:02
Is MULTIPROCESS=1 or any higher number broken when a GeForce RTX 3060 is added to the System?
I do not know, as I do not use that option.

AmigaFuture
3rd December 2022, 04:16
Is MULTIPROCESS=1 or any higher number broken when a GeForce RTX 3060 is added to the System?

Only option is to use dgdecnv_246.zip, but before I could use DirectShowSource.

So, anyway, I want to check the CPU, not GPU, but MULTIPROCESS which seems not functional when this new board is active. I discovered with my older board all I had to do was rename PSEUDO in some way from an Import item. But that's not so with the new board.

I do not know, as I do not use that option.

MrVideo
3rd December 2022, 07:48
So, anyway, I want to check the CPU, not GPU
I'm curious as to why?

GreasyGreedo
17th December 2022, 11:02
I'm still having trouble with the issue I reported a couple of years ago regarding subtitles when compiling a disc with multiple UHD titles. I've noticed that when I open one of the playlists in tsmuxer that is generated in the IMPORTS directory, it looks fine, but the playlist that is generated in the final recompile seems to introduce the problem. When viewing one of the final playlists in tsmuxer, the subtitle streams are unchecked and in the status window a "#" symbol appears to the left of the subtitle stream info.

Log:
-------------------------
[03:49:05] Importing BDs: SCRY2
- Analyzing source playlists...
- Title Editing Dialog...
- Importing BD: 01 [ 1 of 2 ]
- Importing Playlist 00000 [00:50:22.978]
- Importing BD: 02 [ 2 of 2 ]
- Importing Playlist 00000 [00:51:41.056]
- Creating Quick-Play Menu...
- Encoding menu background...
- Building menu structure...
[03:49:45] Import completed successfully.
----------------------
[12-17-22] BD Rebuilder v0.61.28
[03:51:05] Source: SCRY2
- Input BD size: 13.04 GB
- Approximate total content: [01:42:04.034]
- Target BD size: 97.66 GB
- Windows Version: 6.2 [9200]
- Quick-Play Reauthoring mode enabled
- Quality: Highest (Very Slow), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[03:51:05] PHASE ONE, Encoding
- [03:51:05] Processing: VID_00001 (1 of 2)
- [03:51:05] Extracting A/V streams [VID_00001]
- [03:51:16] Reencoding video [VID_00001]
- [03:51:16] Keeping original video (no reencode)
- [03:51:16] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [03:51:16] Multiplexing M2TS
- [03:51:28] Processing: VID_00002 (2 of 2)
- [03:51:28] Extracting A/V streams [VID_00002]
- [03:51:39] Reencoding video [VID_00002]
- [03:51:39] Keeping original video (no reencode)
- [03:51:39] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [03:51:39] Multiplexing M2TS
[03:51:51]PHASE ONE complete
[03:51:51]PHASE TWO - Rebuild Started
- [03:51:51] Rebuilding BD file Structure
- [03:51:51] Creating Quick-Play Menu...
- Encoding menu background...
- Building menu structure...
[03:51:53] - Encode and Rebuild complete
[03:51:53] JOB: SCRY2 finished.

IMPORTS:
https://imgur.com/gtAWmtx

Final:
https://imgur.com/hfPr4yH

AmigaFuture
27th December 2022, 03:59
I'm curious as to why?

Having a Ryzen 3600 for a long while now, and a new RTX 3060 I wanted to know what the speed differences are. As well as quality.

--

JD and everyone:

I've been enjoying the quality of NVENCCRE, as well as BD-RB's version of it and better ability to control the filesize. After encoding some Blu-ray movies (single files) to a smaller size (8GB) I decided to make a Blu-ray. Several movies on 1 BD-25/50. When importing I noticed that output disc didn't play correctly.

Each movie would start fine, but chapter skip resulted in move restart.

If I create a BD from BD source or older rerenders (Using BD-RB)... zero problems.

Anyone else come across this?

musiclover
28th December 2022, 19:06
Is it just me or is it all of us but are you not reporting it?
When rebuilding a bluray the log window fills up to a point and then stops filling up. The file BD-REBUILDER.LOG keeps receiving updates however. It is no biggy, but I thought I'd mention it so it can be handled if it's all of us having this issue.

MrVideo
28th December 2022, 21:57
After encoding some Blu-ray movies (single files) to a smaller size (8GB) I decided to make a Blu-ray. Several movies on 1 BD-25/50. When importing I noticed that output disc didn't play correctly.

Each movie would start fine, but chapter skip resulted in move restart.
What was the output container?

musiclover
29th December 2022, 10:37
deleted

AmigaFuture
1st January 2023, 04:34
What was the output container?

MKV only. (For several years.)

MrVideo
1st January 2023, 04:36
OK. Did you look at the MKV file with MediaInfo to see if the chapter marks were there?

MrVideo
1st January 2023, 22:30
Is there a way that the NVENC program can be told to create I/IDR frames at chapter marks? With the x264 encoder, that is done with a filename_qpfile.txt file.

When creating BD discs, you really want the chapter marks to land on I/IDR frames.

Thanks

cartman0208
2nd January 2023, 12:56
Is there a way that the NVENC program can be told to create I/IDR frames at chapter marks? With the x264 encoder, that is done with a filename_qpfile.txt file.

When creating BD discs, you really want the chapter marks to land on I/IDR frames.

Thanks

https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md
Maybe you want to check yourself? :)

jdobbs
3rd January 2023, 01:25
Is there a way that the NVENC program can be told to create I/IDR frames at chapter marks? With the x264 encoder, that is done with a filename_qpfile.txt file.

When creating BD discs, you really want the chapter marks to land on I/IDR frames.

ThanksI'll have to go back and check, but I would have assumed that setting a chapter mark would automatically trigger an I-Frame.

MrVideo
3rd January 2023, 03:18
I'll have to go back and check, but I would have assumed that setting a chapter mark would automatically trigger an I-Frame.
It doesn't. I checked before asking. Not one of the chapter locations in the resulting HEVC file has an I-frame.

MrVideo
3rd January 2023, 03:39
https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md
Maybe you want to check yourself? :)
Thanks for the link that I knew nothing about.

I think that "--key-on-chapter" is it, but I do not know if I have to provide the file containing the chapters or if jdobb builds one for his own use. I'm running tests.

MrVideo
3rd January 2023, 04:03
Well, --key-on-chapter resulted in no change [ENCODE_CUSTOM=--key-on-chapter]. I then tried to do ENCODE_CUSTOM=--keyfile <"keyfile.txt"> and that resulted in the job aborting.

As a side note, I failed to mention in the initial query that the chapter marks are in the MKV file.

gonca
3rd January 2023, 12:02
--key-on-chapter

Set keyframes on chapter position.
--keyfile <string>

Set keyframes on frames (starting from 0, 1, 2, ...) specified in the file. There should be one frame ID per line.
--sub-source <string>[:{<int>?}[;<param1>=<value1>]...]...

Read subtitle from the specified file and mux into the output file.

params

disposition=<string>
Specify disposition for subtitle.

metadata=<string1>=<string2>
Specify metadata for subtitle track.

bsf=<string>
Specify bitstream filter for subtitle track.

Example1: --sub-source "<sub_file>"
Example2: --sub-source "<sub_file>":disposition=default;metadata=language=jpn

From the options list on GitHub

MrVideo
3rd January 2023, 21:36
Did you read my post before yours? Those are the options I tried to use and failed.

gonca
3rd January 2023, 22:04
Yeah I read it, maybe you should make sure your keyfile is correctly formatted, so that it isn't ignored.

MrVideo
4th January 2023, 01:32
The keyfile is generated by a script that I have to do x264 encoding. It is a simple file that looks like:
0
1200
10000
Since I do not know what jdobb's program is doing, there could have been a conflict that caused it to abort. The keyfile file was provided as a full path. Jdobb may be doing a chapter copy, which means that a keyfile can't be used.

gonca
4th January 2023, 02:23
Correct formats
--chapter <string>

Set chapter in the (separate) chapter file. The chapter file could be in nero format, apple format or matroska format. Cannot be used with --chapter-copy.

nero format

CHAPTER01=00:00:39.706
CHAPTER01NAME=chapter-1
CHAPTER02=00:01:09.703
CHAPTER02NAME=chapter-2
CHAPTER03=00:01:28.288
CHAPTER03NAME=chapter-3

apple format (should be in utf-8)

<?xml version="1.0" encoding="UTF-8" ?>
<TextStream version="1.1">
<TextStreamHeader>
<TextSampleDescription>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:39.706">chapter-1</TextSample>
<TextSample sampleTime="00:01:09.703">chapter-2</TextSample>
<TextSample sampleTime="00:01:28.288">chapter-3</TextSample>
<TextSample sampleTime="00:01:28.289" text="" />
</TextStream>

matroska format (hould be in utf-8)
Other Samples>>

<?xml version="1.0" encoding="UTF-8"?>
<Chapters>
<EditionEntry>
<ChapterAtom>
<ChapterTimeStart>00:00:00.000</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>chapter-0</ChapterString>
</ChapterDisplay>
</ChapterAtom>
<ChapterAtom>
<ChapterTimeStart>00:00:39.706</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>chapter-1</ChapterString>
</ChapterDisplay>
</ChapterAtom>
<ChapterAtom>
<ChapterTimeStart>00:01:09.703</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>chapter-2</ChapterString>
</ChapterDisplay>
</ChapterAtom>
<ChapterAtom>
<ChapterTimeStart>00:01:28.288</ChapterTimeStart>
<ChapterTimeEnd>00:01:28.289</ChapterTimeEnd>
<ChapterDisplay>
<ChapterString>chapter-3</ChapterString>
</ChapterDisplay>
</ChapterAtom>
</EditionEntry>
</Chapters>

gonca
4th January 2023, 02:41
Ran a quick test using NCEncCRE, should be the same command lines
Input mkv and output mkv for simplicity
Chapters were transferred to output
cmd line edited for simplicity
--chapter-copy

MrVideo
4th January 2023, 04:12
Setting chapters and setting a key, i.e. where an I-frame should be placed, are two different things. The input MKV file has chapter marks. What I would like to happen, as noted in a previous posting, is to have an I-frame created at those chapter marks. The --key-on-chapter failed to work and providing a keyfile caused the program to abort. Jdobbs is going to have to dig into his program to see what is going on.

What would be nice is if I-frames would always be created at chapter marks.

gonca
4th January 2023, 11:45
That mkv was a remux from a UHD disc.
The I-frames and chapter points should be good.
Was just checking what the software was doing.

MrVideo
4th January 2023, 13:13
What I am attempting to create are BDs of the TV series "Revenge." The source is the 35Mbps MPEG-2 1080i of the sat feed to Canada. I'm in the process of creating 10 Mbps IVTC x264 files of the episodes. The MKV files have chapter marks at the commercial breaks.As it stands right now, it will take 4 discs for each season. If I can get the files recoded to HEVC, the numbers of discs can be cut in half. But the chapter mark locations need I-frames at those locations.

Emulgator
4th January 2023, 13:31
Could it still be that ANSI->UTF-8 thing ?
NVEncC assumes UTF-8 by default.
If ANSI, OS codepage has to be switched by
--process-codepage <string> [Windows OS only]

gonca
4th January 2023, 22:10
Here is an idea
Use MKVMerge to remove the commercial breaks.
Use NVEnccCRE to reduce the size of each mkv file
Use TSMuxeR to create individual BDs
Then import with BD_Rebuilder (Quick reauthor)

MrVideo
4th January 2023, 22:47
Here is an idea
Use MKVMerge to remove the commercial breaks.
The Canadian sat feeds contained zero commercials. They were black with a length of about 5 seconds. I used VideoReDo to reduce those to less than a second.
Use NVEnccCRE to reduce the size of each mkv file
You are forgetting that the MPEG-2 files are 1080i with 3:2 pulldown. I use a script that I wrote that uses AVISynth to do IVTC and convert to 1080p/23.976. It also places I-frames at the chapter marks, i.e., commercial breaks.

If the NVEnccCRE program could be told to do IVTC and place I-frames at the chapter marks, I'd love to be able to go directly from MPEG-2 to HEVC.
Use TSMuxeR to create individual BDs
Then import with BD_Rebuilder (Quick reauthor)
Doing your method doesn't initially get rid of 3:2 pulldown. I'm not sure how well the hardware encoder would deal with 3:2 interlaced video.

Yes, BDRB has the ability to do IVTC, but the resulting files would be without I-frames at the chapter marks.

BTW, a correctly created disc would have a chapter mark 1 second before the end of each video file so that the user can jump to the end. That is standard practice on commercial discs.

After all of the above, I'll bet you are going to say, why not use BDRB to go from MPEG-2 to HEVC and build a disc, since BDRB will do IVTC? But, BDRB doesn't place I-frames at the chapter marks.

gonca
4th January 2023, 23:25
are 1080i with 3:2 pulldown
Which is it?
interlaced or telecined.

MrVideo
5th January 2023, 04:06
That is why it is telecined, because it is 29.97 frames/sec. Telecine is not required for 1080p/23.976, but it is for 1080i/29.97 with 23.976 source material.

MrVideo
5th January 2023, 04:44
We'll have to wait for a report back from Jdobbs regarding the two programs.

gonca
5th January 2023, 11:51
OTA TV series capture?
Most likely interlaced (29.976 interlaced exists)
But yeah, wait for jdobbs.

MrVideo
5th January 2023, 22:41
While it was an OTA series, it is 1080i/29.97 [30/1.001] (not 29.976, which does not exist OTA). If I would have captured OTA, it would have been 720p/59.94, as it was on ABC. What I have is the 1080i/29.97 MPEG-2 satellite feed to the Canadian network that carried it in Canada. Captured via my own 12' BUD. Those sat feed days are long over as delivery of programming to Canada is now done via the internet.

One of the companies that fed programming to Canada sometimes had their 1080p/23.976 to 1080i converter set to repeat frame. That is where every 4th source frame was repeated as a 5th 1080i frame. In that case, my script was set using the AVISynth plugin to do a drop frame to get it back to 1080p/23.976.

gonca
5th January 2023, 23:40
Since you like filters try this one
LoadPlugin("source filter")
serve file
AssumeTFF()
SeparateFields()

then
Input it into VDub2 and see what you get

... a a b b c c ...

then it is progressive video. If you see this:

... a b c d e f ...

then it is pure interlaced video. If you see this:

... a a a b b c c c d d ...

Then it is 3:2 pulled-down progressive video.


***This is from DGTools website

MrVideo
6th January 2023, 04:31
I don't need VDub2 to see the video contents. VideoReDo is all that it is needed. It is video that is for broadcast, as such it is 1080i. And because it is sourced from 1080p/23.976, it will either be 3:2 pulldown, or repeat frame. Only one company (GDMX) did repeat frame.

With VideoReDo you are shown the interlaced fields, so 3:2 pulldown is easy to spot. Same goes for repeat frame.

No Canadian sat feeds were ever 1080p at any frame rate, as no broadcaster was forced to do the 1080p to 1080i conversion. The standard was to provide the video broadcast ready. The exception were those stations/networks that were 720p, in which that station/network had to do the conversion.

I've been dealing with satellite feeds since analog days.

MrVideo
8th January 2023, 05:02
At this point in time, my Revenge to BD project is at a standstill until I hear back from Jdobbs regarding gettimg I-frames at chapter marks.

AmigaFuture
12th January 2023, 03:02
OK. Did you look at the MKV file with MediaInfo to see if the chapter marks were there?

No, mkvtoolnix-gui.exe shows me what I want to know; all streams and chapter marks.

Or MPC-BE shows chapters if you enable that.

Anyway, none of that is where the problem is.

MrVideo
12th January 2023, 07:59
No, mkvtoolnix-gui.exe shows me what I want to know; all streams and chapter marks.
Had to ask to make sure. Don't dare assume.

jdobbs
12th January 2023, 21:54
Setting chapters and setting a key, i.e. where an I-frame should be placed, are two different things. The input MKV file has chapter marks. What I would like to happen, as noted in a previous posting, is to have an I-frame created at those chapter marks. The --key-on-chapter failed to work and providing a keyfile caused the program to abort. Jdobbs is going to have to dig into his program to see what is going on.

What would be nice is if I-frames would always be created at chapter marks.How did you add the "--key-on-chapter" to the command line to test it?

MrVideo
12th January 2023, 23:41
I used:

ENCODE_CUSTOM=--key-on-chapter

in the INI file.

jdobbs
13th January 2023, 16:56
I used:

ENCODE_CUSTOM=--key-on-chapter

in the INI file.Oh. So you are using NVENCCRE. I thought you were using BD-RB.

MrVideo
14th January 2023, 03:50
Ultimately I will be using BDRB to author the discs. For starters, I took the MPEG-2 1080i videos and created H.264 videos, using IVTC, to get to 23.976 with I-frames at the chapter marks. I wanted to use NVENCCRE to get to HEVC with I-frames at the chapter marks. If BDRB could be used to get to HEVC with I-frames at chapter marks and build the disc layout, that would be great.

If at all possible, if BDRB could take the MPEG-2 MKV files, that contain chapter marks, and do IVTC and ultimately get to HEVC discs, that would be great.

Doing multiple steps to get there would be fine. By going to HEVC, the final disc count would be two, instead of four (H.264).

RoyGBiv-inRI
25th January 2023, 14:05
I recently did a fresh install of Win10. I installed AviSynth and LAV filters, but now I get the following error with BDRebuilder. After it re-encodes it stops at the point where it is trying to rebuild the BD file structure. I get the error message:

BD Rebuilder experienced an error 1200 14:04:34
Copydirstructure () 00076 1200

Here is the associated log:

[01/24/23] BD Rebuilder v0.61.21
[12:13:07] Source: S4D1
- Input BD size: 38.80 GB
- Approximate total content: [02:55:46.235]
- Target BD size: 22.95 GB
- Windows Version: 6.2 [9200]
- Quality: High Quality (Default), ABR
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[12:13:07] PHASE ONE, Encoding
- [12:13:07] Processing: VID_00012 (1 of 4)
- [12:13:07] Extracting A/V streams [VID_00012]
- [12:17:14] Reencoding video [VID_00012]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 82,777 frames
- Bitrate: 14,862 Kbs
- [12:17:14] Reencoding: VID_00012, Pass 1 of 1
- [12:48:17] Video Encode complete
- [12:48:17] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [12:48:17] Multiplexing M2TS
- [12:49:26] Processing: VID_00013 (2 of 4)
- [12:49:26] Extracting A/V streams [VID_00013]
- [12:53:33] Reencoding video [VID_00013]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 78,000 frames
- Bitrate: 15,683 Kbs
- [12:53:33] Reencoding: VID_00013, Pass 1 of 1
- [13:24:14] Video Encode complete
- [13:24:14] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [13:24:14] Multiplexing M2TS
- [13:25:24] Processing: VID_00021 (3 of 4)
- [13:25:24] Extracting A/V streams [VID_00021]
- [13:25:31] Reencoding video [VID_00021]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 5,876 frames
- Bitrate: 2,187 Kbs
- [13:25:31] Reencoding: VID_00021, Pass 1 of 1
- [13:25:56] Video Encode complete
- [13:25:56] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [13:25:56] Multiplexing M2TS
- [13:26:00] Processing: VID_00031 (4 of 4)
- [13:26:00] Extracting A/V streams [VID_00031]
- [13:30:19] Reencoding video [VID_00031]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 83,137 frames
- Bitrate: 15,834 Kbs
- [13:30:19] Reencoding: VID_00031, Pass 1 of 1
- [14:03:11] Video Encode complete
- [14:03:11] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [14:03:11] Multiplexing M2TS
[14:04:34]PHASE ONE complete
[14:04:34]PHASE TWO - Rebuild Started
- [14:04:34] Rebuilding BD file Structure
- [14:04:34] CopyDirStructure() 00076 1200

I'm sure I'm just doing something stupid, but can someone help with this problem. I've tried uninstalling and re installing AviSynth and LAV filters. The first time I used BDRebuilder I did run it as administrator and it gave me the usual message about configuring the filters.

I don't know what else to try.

Thanks for any help.

Your Obedient Servant
SMK

Emulgator
25th January 2023, 14:53
BD-RB 0.61.21? BD-RB is at 0.61.28 atm, maybe you want to try the recent one first.

RoyGBiv-inRI
25th January 2023, 15:45
Actually, I've tried three different versions; 19, 21, and 28. The same thing happens with all 3, but I just happened to post the log from 21.

Your Obedient Servant
SMK

RoyGBiv-inRI
25th January 2023, 21:49
Doing a search I found some posts from a few years ago with the same problem. That individual seemed to have resolution by changing to the "required" versions of AVISynth and LAV filters. I had been using those versions, but just to be sure I downloaded them again as well as a new copy of BDRB 21 zip file. I uninstalled AVISynth and LAV filters and reinstalled the newly downloaded versions from the first page and then extracted a new version of BDRB 21. The problem is still exactly the same.

In those earlier posts JDobbs referred to a possible issue with where the files were located or that the file names were too long. I have no idea what files he meant or where these files are located, but I can tell you that everything was installed onto its default folders. I also have done this exact setup a few times before with Win10 and have had no problems.

Your Obedient Servant
SMK

nil
25th January 2023, 22:13
Hi. I posted this (http://forum.doom9.org/showthread.php?t=184673) two weeks ago, unsure of whether to post it in this thread or not; I've not had any responses there, so here we go...

Short version: when reencoding to AAC audio, BD Rebuilder generates a temporary file called audio1.bat which runs faac.exe. This fails for me, because it includes the command line option -br 384000, when the online documentation and command-line help say the option should be -b 384.

What I don't understand is how it used to work fine for me; I had assumed I must have changed something on my PC (broken by a Windows update or something), but I'm running BD Rebuilder's faac.exe (which hasn't changed in a while anyway), and that option is definitely wrong. Utterly confused.

Full details in the other thread (http://forum.doom9.org/showthread.php?t=184673).

Many thanks for your help.

RoyGBiv-inRI
28th January 2023, 00:14
I don't know where JDobbs and the others who usually are in this thread are, but here is an interesting update. If I set BDRB to put the finished product on a different drive, it works fine. It doesn't matter which drive or how long the path is to that drive, but it works. OTOH, any time I try to put the finished product in the same drive the original files are in, no matter what folder, I get the above error message.

Strange, but since I have a work around, I can at least use BDRB.

Your Obedient Servant
SMK

Emulgator
28th January 2023, 01:29
Drive full ?

Mike-uk
29th January 2023, 18:48
@jdobbs

Hi. I posted this (http://forum.doom9.org/showthread.php?t=184673) two weeks ago, unsure of whether to post it in this thread or not; I've not had any responses there, so here we go...



no solution but ive the same problem

"C:\Users\xxx\Desktop\BD_Rebuilder\tools\wavi.exe" "C:\USERS\xxx\DOCUMENTS\BD\WORKFILES\AUD_00000_4352.AVS" - | "C:\Users\xxx\Desktop\BD_Rebuilder\tools\faac.exe" - -br 128000 -o "C:\USERS\xxx\DOCUMENTS\BD\WORKFILES\AUD_00000_4352.AAC"


- [17:45:29] Reencoding: VID_00000, Pass 1 of 1
- [17:45:35] Video Encode complete
- [17:45:35] Processing audio tracks
- Track 4352 (eng): Reencoding audio to AAC...
[17:47:45] - Failed to reencode audio, aborted

AmigaFuture
30th January 2023, 02:30
Hello.

I've been going through some of my older BD rips and making MKVs. I've noticed some Movie & Menus processed BDs won't allow making an MKV. Star Wars - 1, 2, and 3 for example. So I got out my discs..and I reripped them. MKVs can by made from the fresh rip without a problem as long as they aren't processed by BD-RB. My logs..

[01/29/23] BD Rebuilder v0.61.28
[12:54:40] Source: ATTACK_OF_THE_CLONES_O
- Input BD size: 45.55 GB
- Approximate total content: [02:51:24.606]
- Target BD size: 46.26 GB
- Windows Version: 6.2 [9200]
- MOVIE and MENUS mode enabled
- Quality: High Quality (Default), Two Pass
- Decoding/Frame serving: X264/LAVF
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[12:54:40] PHASE ONE, Encoding
- [12:54:40] Blanking: VID_00050 (1 of 73)
- [12:54:40] Blanking: VID_00190 (2 of 73)
- [12:54:40] Blanking: VID_00101 (3 of 73)
[...Snip...]
- [12:56:23] Processing: VID_00882 (72 of 73)
- [12:56:23] Extracting A/V streams [VID_00882]
- [12:56:30] Reencoding video [VID_00882]
- [12:56:30] Keeping original video (no reencode)
- [12:56:30] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4358 (eng): Keeping original audio
- Track 4359 (eng): Keeping original audio
- [12:56:30] Multiplexing M2TS
- [12:56:36] Processing: VID_00800 (73 of 73)
- [12:56:36] Extracting A/V streams [VID_00800]
- [12:59:56] Reencoding video [VID_00800]
- [12:59:56] Keeping original video (no reencode)
- [12:59:56] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4358 (eng): Keeping original audio
- Track 4359 (eng): Keeping original audio
- [12:59:56] Multiplexing M2TS
[13:02:53]PHASE ONE complete
[13:02:53]PHASE TWO - Rebuild Started
- [13:02:53] Rebuilding BD file Structure
[13:02:56] - Encode and Rebuild complete
- WORKFILES folder removed.
[13:02:59] JOB: ATTACK_OF_THE_CLONES_O finished.


Make MKV from processed..

[01/29/23] BD Rebuilder v0.61.28
[13:08:09] Source: ATTACK_OF_THE_CLONES_O_00800
- Input BD size: 32.70 GB
- Approximate total content: [02:22:27.872]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV, Intact Video, Intact Audio
- Quality: High Quality (Default)
- Decoding/Frame serving: X264/LAVF
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[13:08:09] PHASE ONE, Encoding
- [13:08:09] Processing: VID_00882 (1 of 2)
- [13:08:09] Extracting A/V streams [VID_00882]
- TSMUXER ERR: 0xFFFFFFFE
- Extracting video streams [VID_00882]
- Extracting audio/subtitle streams [VID_00882]
- TSMUXER ERR: 0xFFFFFFFE
- Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: P:\ATTACK_OF_THE_CLONES_O\BDMV\\STREAM\00882.m2ts
- Extracting audio streams [VID_00882]
- TSMUXER ERR: 0xFFFFFFFE
- Error in attempt to extract audio.
- Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: P:\ATTACK_OF_THE_CLONES_O\BDMV\\STREAM\00882.m2ts
- Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: P:\ATTACK_OF_THE_CLONES_O\BDMV\\STREAM\00882.m2ts
[13:09:09] - Failed to retrieve audio, aborted

Make MKV from fresh rip and not processed..

[01/29/23] BD Rebuilder v0.61.28
[13:11:28] Source: ATTACK_OF_THE_CLONES_O_00800
- Input BD size: 40.29 GB
- Approximate total content: [02:22:27.872]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV, Intact Video, Intact Audio
- Quality: High Quality (Default)
- Decoding/Frame serving: X264/LAVF
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[13:11:29] PHASE ONE, Encoding
- [13:11:29] Processing: VID_00882 (1 of 2)
- [13:11:29] Extracting A/V streams [VID_00882]
- [13:13:29] Reencoding video [VID_00882]
- [13:13:29] Keeping original video (no reencode)
- [13:13:29] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4358 (eng): Keeping original audio
- Track 4359 (eng): Keeping original audio
- [13:13:29] Processing: VID_00800 (2 of 2)
- [13:13:29] Extracting A/V streams [VID_00800]
- [13:16:35] Reencoding video [VID_00800]
- [13:16:35] Keeping original video (no reencode)
[13:16:35]PHASE ONE complete
[13:16:35]PHASE TWO - Rebuild Started
- [13:16:35] Building ALTERNATE OUTPUT Structure
[13:25:57] - Encode and Rebuild complete
- WORKFILES folder removed.
[13:25:57] JOB: ATTACK_OF_THE_CLONES_O finished.

MrVideo
30th January 2023, 03:16
You might need to replace the BDRB supplied tsmuxer with a newer snapshot. Yes, it might mean having to do some other workarounds, but it should handle the audio. Worth a try.

tebasuna51
30th January 2023, 13:52
no solution but ive the same problem

"C:\Users\xxx\Desktop\BD_Rebuilder\tools\wavi.exe" "C:\USERS\xxx\DOCUMENTS\BD\WORKFILES\AUD_00000_4352.AVS" - | "C:\Users\xxx\Desktop\BD_Rebuilder\tools\faac.exe" - -br 128000 -o "C:\USERS\xxx\DOCUMENTS\BD\WORKFILES\AUD_00000_4352.AAC"


Of course the faac syntax is -b 128 (instead -br 128000) with a max of 500 (kb) for a stereo input.

BTW the faac encoder is not recommended, use qaac or fdkaac with better quality and until 7.1 audio. Also ffmpeg (v3 or higher) until 5.1 audio.

AmigaFuture
30th January 2023, 19:31
You might need to replace the BDRB supplied tsmuxer with a newer snapshot. Yes, it might mean having to do some other workarounds, but it should handle the audio. Worth a try.

I'm cool with workarounds. I noticed that if I disable the AC-3's and keep DTS..an MKV will be made okay. Then do it again in reverse, disable DTS and keep AC-3's..then put them together. There are other ways, also. I went checking for a newer TsMUXER..but then I got sidetracked by having to do some other stuff not computer related. I'll have another look. :)

AmigaFuture
30th January 2023, 22:28
Nope, the new TsMuxer is the problem. I got it and the GUI archive. It has the same error.

MrVideo
30th January 2023, 23:20
Weird that there is an issue with the processed files. If directly going to a MKV file works, why not just use it?

nil
31st January 2023, 18:14
Of course the faac syntax is -b 128 (instead -br 128000) with a max of 500 (kb) for a stereo input.

BTW the faac encoder is not recommended, use qaac or fdkaac with better quality and until 7.1 audio. Also ffmpeg (v3 or higher) until 5.1 audio.

Ah... you may have just provided a clue to my problem. I rebuilt ffmpeg a while ago, and this may match with when my problems started. It may be BDRebuilder was using ffmpeg/fdkaac, I broke it, and it's using faac instead.

So two things, then:

1) How do I persuade BD Rebuilder to use ffmpeg/fdkaac again? It's there, on the path, and functional. Or do I need to build a specific exe or dll?

2) When BD Rebuilder uses faac.exe instead, looks like there's a bug with the command-line options it spits out in audio1.bat. (But possibly no-one notices because no-one uses faac if they can help it)

Cheers

AmigaFuture
2nd February 2023, 04:19
Weird that there is an issue with the processed files. If directly going to a MKV file works, why not just use it?


There isn't a problem from Source. It's BD-RB Backup...

MrVideo
2nd February 2023, 13:53
There isn't a problem from Source. It's BD-RB Backup...
I think you may have misunderstood my response. If I read your original posting correctly, if you used the BDRB processed files from the source, the result is a failure. But, if you made the MKV from the source, then all is well. So, why not just skip the BDRB processed files and just use BDRB to make the MKV directly from the source?

Mark_Venture
5th February 2023, 00:15
https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md
Maybe you want to check yourself? :)

Can you just replace the NVEncC used with NVENCCRE from git? any reason to, or not to? (I mean other than not being tested with NVENCCRE?)

I've been extremely happy so far with NVENCCRE, its ease of use and its output, so I don't want to mess with it. I'm more just curious.

Emulgator
5th February 2023, 05:17
I would expect incompatibility only if parameters that matched once
are changed (added, deleted, renamed, ranged differently)

jdobbs
8th February 2023, 21:43
I would expect incompatibility only if parameters that matched once
are changed (added, deleted, renamed, ranged differently)Exactly. Unfortunately I haven't been keeping up with changes -- so I can't say whether there are any that might create an incompatibility.

jdobbs
8th February 2023, 21:45
Ah... you may have just provided a clue to my problem. I rebuilt ffmpeg a while ago, and this may match with when my problems started. It may be BDRebuilder was using ffmpeg/fdkaac, I broke it, and it's using faac instead.

So two things, then:

1) How do I persuade BD Rebuilder to use ffmpeg/fdkaac again? It's there, on the path, and functional. Or do I need to build a specific exe or dll?

2) When BD Rebuilder uses faac.exe instead, looks like there's a bug with the command-line options it spits out in audio1.bat. (But possibly no-one notices because no-one uses faac if they can help it)

CheersI use it all the time without issue. When I get some extra time I'll go through the code and see how it can happen. It has to be something in the settings.

jdobbs
9th February 2023, 04:01
BTW: There is nothing wrong with FAAC. It encodes AAC fine. It's just not supported anymore.

If you have NeroAAC encoder installed you can use that instead of FAAC. Just collect the path and add it to the [Paths] area of the INI file. Then set the flag telling BD-RB to use Nero. Here is an example with a path from my settings:

[Options]
NEROAAC=1

[Paths]
NeroAACPath=C:\APPS\REENCODER\TOOLS\neroAacEnc.exe

tebasuna51
9th February 2023, 11:39
Of course NeroAacEnc (https://www.videohelp.com/software/Nero-AAC-Codec) can be used until 5.1.

Warning with 7.1, the default layout for 7.1 (from DTS-MA or TrueHD: L R C LFE Lb Rb Ls Rs) is converted to the default layout for AAC (C L R Ls Rs Lw Rw LFE). See here. (https://forum.doom9.org/showthread.php?p=1977858#post1977858)

[EDIT]
I check the free versions of Faac 1.30 and Fdkaac 1.04 in https://www.videohelp.com/software/FAAC

The faac output 7.1 m4a is wrong for MediaInfo, NeroDec and ffmpeg:
[aac @ 0000012f3c5ac340] invalid default channel configuration (8)

The fdkaac output 7.1 m4a is correct.

Mark_Venture
9th February 2023, 21:29
Exactly. Unfortunately I haven't been keeping up with changes -- so I can't say whether there are any that might create an incompatibility.

No worries. NVENCCRE is working great for me so far. And I appreciate you have added it!

nil
9th February 2023, 23:56
I use it all the time without issue. When I get some extra time I'll go through the code and see how it can happen. It has to be something in the settings.

Many thanks. I've tried everything I can think of short of reinstalling on a fresh copy of Windows. It has to be something on my machine or with my settings, but when I found the bad command-line parameters being passed to faac, I got to the well-how-did-it-ever-work-then stage :confused:

It'll be nice to be able to use BD Rebuilder again; I miss it :)

Many thanks

nil
10th February 2023, 00:12
If you have NeroAAC encoder installed you can use that instead of FAAC. Just collect the path and add it to the [Paths] area of the INI file.

Excellent, thank you. Up and running again!

jdobbs
10th February 2023, 01:35
Many thanks. I've tried everything I can think of short of reinstalling on a fresh copy of Windows. It has to be something on my machine or with my settings, but when I found the bad command-line parameters being passed to faac, I got to the well-how-did-it-ever-work-then stage :confused:

It'll be nice to be able to use BD Rebuilder again; I miss it :)

Many thanksI just realized the difference. I use Auto-AAC encoding. It follows a different path than a fixed bitrate.

I'll correct the fixed bitrate issue and post a new release.

SquallMX
22nd February 2023, 00:39
I'm getting this error "ExtractAudioSubs() 00053 1604 [17:14:36] - Failed to retrieve audio, aborted" on some new UHD discs, weirdly the affected file does not have any audio or subs.

----------------------
[02/21/23] BD Rebuilder v0.61.28
[17:14:33] Source: TRAINING_DAYY_2001
- Input BD size: 56.26 GB
- Approximate total content: [02:14:22.262]
- Target BD size: 23.93 GB
- Windows Version: 6.2 [9200]
- MOVIE and MENUS mode enabled
- Quality: High Quality (Default), CQM
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[17:14:35] PHASE ONE, Encoding
- [17:14:35] Blanking: VID_00000 (1 of 21)
- [17:14:35] Blanking: VID_00004 (2 of 21)
- [17:14:35] Blanking: VID_00005 (3 of 21)
- [17:14:35] Blanking: VID_00006 (4 of 21)
- [17:14:35] Blanking: VID_00007 (5 of 21)
- [17:14:35] Blanking: VID_00008 (6 of 21)
- [17:14:35] Blanking: VID_00009 (7 of 21)
- [17:14:35] Blanking: VID_00010 (8 of 21)
- [17:14:35] Blanking: VID_00012 (9 of 21)
- [17:14:35] Blanking: VID_00016 (10 of 21)
- [17:14:35] Processing: VID_00021 (11 of 21)
- [17:14:35] Extracting A/V streams [VID_00021]
- [17:14:35] ExtractAudioSubs() 00053 1604
[17:14:36] - Failed to retrieve audio, aborted

[Options]
VERSION=0.61.0.28
ENCODER=1
DTSX_ENABLE=1
ENABLE_TEST=1
REENCODE_MENUS=1
MODE=1
ENCODE_QUALITY=2
ONEPASS_ENCODING=1
AUTO_QUALITY=0
AUDIO_TO_KEEP=eng;spa;
SUBS_TO_KEEP=all
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=0
DEINTERLACE=1
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=1
IVTC_PULLDOWN=0
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
CUSTOM_TARGET_SIZE=24500
TARGET_SIZE=25000
NVENC_CAPABLE=1
TWEAK_X265=--no-strong-intra-smoothing --no-sao --deblock -1:-1 --ipratio 1.2 --pbratio 1.1 --aq-mode 3 --dynamic-refine --rskip 1 --rskip-edge-threshold 3 --rdoq-level 2 --rc-lookahead 24 --nr-intra 100 --nr-inter 0
[Paths]
DGIndexNV=D:\Archivos de Programa\NVDec\x32\DGIndexNV.exe
DGDecNV=D:\Archivos de Programa\NVDec\x32\DGDecodeNV.dll
SOURCE_PATH=I:\TRAINING DAYY 2001\
WORKING_PATH=C:\TEMP2\

MrVideo
22nd February 2023, 06:17
Supply a MediaInfo listing.

SquallMX
22nd February 2023, 07:53
Supply a MediaInfo listing.

Even better here is the file:
https://1drv.ms/v/s!AiCgDguh7E_OgbQjH2ViELeR1QSMXQ?e=x7UNwD

MrVideo
22nd February 2023, 14:58
Oh, it is one of those "you are an idiot for trying to play a 4K video on your 1080 display device" videos. Ya, those don't have to come with audio. You might try a BDRB setting whereby the file will be ignored unless it is a certain size/length.

DreckSoft
25th February 2023, 12:26
BDRebuilder does not work with BDs containing E-AC3 audio only. It throws "Unsupported media type 135 for AVCHD/Blu-ray muxing" when muxing. This is a tsMuxeR issue that has been fixed in recent builds. However it is not possible to just replace tsMuxeR as the new versions use .ec3 as file extension and add the language to the file name as well but BDRebuilder expects the old format. Patching singleFileMuxer in tsMuxeR and use a custom version works.

Yes, I know it is not 100% compliant to the standard but it works.

SuperFist
22nd March 2023, 05:20
Is there any possible way to convert a 4K HDR Remux back into a UHD folder in order to convert it to a smaller file size with BDRebuilder?

I've gotten really close when using File > Import but after the transcoding process, it fails at the rebuilding stage.

Yes, I could use DVDFab or Handbrake but I really don't like the results of those two programs. BD Rebuilder produces the best converted, smaller 4K files I've ever seen.

gonca
22nd March 2023, 10:48
Is there any possible way to convert a 4K HDR Remux back into a UHD folder in order to convert it to a smaller file size with BDRebuilder?

I've gotten really close when using File > Import but after the transcoding process, it fails at the rebuilding stage.

Yes, I could use DVDFab or Handbrake but I really don't like the results of those two programs. BDRebuilder produces the best converted, smaller 4K files I've ever seen.

You can try the nightly TsMuxeR to create a disk structure

SuperFist
23rd March 2023, 02:15
You can try the nightly TsMuxeR to create a disk structure

I appreciate your response.

I actually did use the latest nightly from tsMuxeR before I tried it within BD Rebuilder.

It's not really a big deal to me as I normally convert directly from Blu-ray folders, but this feature would place this program at the top of the mountain, in my book (even though it's really already there as it is :p).

gonca
23rd March 2023, 10:55
Can you post a MediaInfo report?

MrVideo
23rd March 2023, 12:42
It might help if you posted the error as well.

MrVideo
23rd March 2023, 12:49
If you want a smaller file size wrapped into a MKV, or MP4, file, you can use NVENCCRE.

SuperFist
23rd March 2023, 14:35
Can you post a MediaInfo report?

It might help if you posted the error as well.

I just closed that window before I came back to this forum and I don't have time to run it again because I'm just going out the door.

It said something like...


failed to mux (MKVMERGE)

failed to REBUILD

_______________


MediaInfo:

General
Unique ID : 236680180921881069805344711014409813940 (0xB20EF1DC518AFF666517590473A3BFB4)
Complete name : C:\Users\Me\Desktop\Movies\Godzilla - King of the Monsters (2019) (DTS-HD MA) (REMUX).mkv
Format : Matroska
Format version : Version 4
File size : 57.4 GiB
Duration : 2 h 11 min
Overall bit rate mode : Variable
Overall bit rate : 62.4 Mb/s
Encoded date : UTC 2023-03-23 10:36:14
Writing application : mkvmerge v51.0.0.30 ('I Wish') 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.2

Video
ID : 1
ID in the original source medium : 4113 (0x1011)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 11 min
Bit rate : 58.5 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.294
Stream size : 53.8 GiB (94%)
Language : English
Default : No
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level : 1998 cd/m2
Maximum Frame-Average Light Level : 414 cd/m2
Original source medium : Blu-ray

Audio
ID : 2
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 2 h 11 min
Bit rate mode : Variable
Bit rate : 3 901 kb/s
Channel(s) : 8 channels
Channel layout : C L R LFE Lb Rb Lss Rss
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 3.59 GiB (6%)
Language : English
Default : No
Forced : No

Text
ID : 3
ID in the original source medium : 4768 (0x12A0)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 11 min
Bit rate : 33.0 kb/s
Frame rate : 0.422 FPS
Count of elements : 3322
Stream size : 31.0 MiB (0%)
Language : English
Default : No
Forced : No
Original source medium : Blu-ray

Menu
00:00:00.000 : en:Chapter 01
00:10:53.694 : en:Chapter 02
00:18:06.585 : en:Chapter 03
00:30:27.325 : en:Chapter 04
00:45:18.632 : en:Chapter 05
00:54:10.830 : en:Chapter 06
01:05:41.646 : en:Chapter 07
01:09:31.292 : en:Chapter 08
01:19:31.308 : en:Chapter 09
01:30:06.067 : en:Chapter 10
01:38:36.785 : en:Chapter 11
01:49:58.508 : en:Chapter 12
01:59:28.536 : en:Chapter 13

MrVideo
24th March 2023, 18:48
Like I posted, use NVENCCRE with a bitrate of 15 Mbps to create a new MKV file that is smaller.

SuperFist
24th March 2023, 19:43
Like I posted, use NVENCCRE with a bitrate of 15 Mbps to create a new MKV file that is smaller.
Thanks for your response.

How do I utilize it? From within BD Rebuilder? Do I replace the native NVEncC.exe file there?

I was simply experimenting, hoping to reverse the process and go from REMUX to UHD Blu-ray folder structure and then to a smaller file size. However, the program apparently does not like if the 4K Blu-ray structure isn't from the original disc, since tsMuxeR cannot fix it to work properly with BDRebuilder.

MrVideo
24th March 2023, 19:59
You don't. It is a separate tool. Search his thread for info about it and where to download it from.

Keep in mind, like BDRebuilder, you need a compatible nVidia card in order to do hardware encoding. Otherwise the software encoding will take many, many, hours.

MrVideo
24th March 2023, 20:05
I was simply experimenting, hoping to reverse the process and go from REMUX to UHD Blu-ray folder structure and then to a smaller file size. However, the program apparently does not like if the 4K Blu-ray structure isn't from the original disc, since tsMuxeR cannot fix it to work properly with BDRebuilder.
That is just way too many steps for a simple job.That is where the standalone program comes in handy.

SuperFist
24th March 2023, 20:06
You don't. It is a separate tool. Search his thread for info about it and where to download it from.

Keep in mind, like BDRebuilder, you need a compatible nVidia card in order to do hardware encoding. Otherwise the software encoding will take many, many, hours.

Thank you, kind sir!

For anyone following along, this is what is being referred to with the link included in the post:

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.

SuperFist
24th March 2023, 20:50
I figured out how to use NVENCCRE.

Thank you so much, MrVideo!

MrVideo
25th March 2023, 00:21
Thank you so much, MrVideo!
You are welcome.

Mark_Venture
27th March 2023, 05:29
You don't. It is a separate tool. Search his thread for info about it and where to download it from.

Keep in mind, like BDRebuilder, you need a compatible nVidia card in order to do hardware encoding. Otherwise the software encoding will take many, many, hours.

Thank you, kind sir!

For anyone following along, this is what is being referred to with the link included in the post:
SuperFist, post you link to was from Dec 2021.

But BD-Rebuilder 0.61.28 in the first Post of this thread includes NVENCCRE and appears to be dated April 2022.

Is there any difference??

MrVideo
28th March 2023, 03:52
The version I have is 0.10.7.

thebuff
10th April 2023, 10:46
Hi all, wondered if someone could help; I've been using BD Rebuilder for many years without issue, but recently a back-up hasn't worked as normal (or at least I don't think it has). The original movie, when ripped, was split into 14 files - this seems to happen on certain movies for some reason. When I went through my normal process with BD Rebuilder, it created the correct file size (as per my normal settings) but still split into 14 files - I'm pretty sure it used to recompile (if that is the right word) into one file.

It feels like I have a setting wrong, or maybe one of the external components incorrectly configured - I haven't reinstalled as yet, thought I'd ask here first?

Many thanks for your help.

gonca
10th April 2023, 12:51
Your movie might have fit without encoding. The disc should work fine, but if you wish you can use FORCE_ENCODE=1 in your configuration file.

MrVideo
10th April 2023, 22:28
Hi all, wondered if someone could help; I've been using BD Rebuilder for many years without issue, but recently a back-up hasn't worked as normal (or at least I don't think it has). The original movie, when ripped, was split into 14 files - this seems to happen on certain movies for some reason. When I went through my normal process with BD Rebuilder, it created the correct file size (as per my normal settings) but still split into 14 files - I'm pretty sure it used to recompile (if that is the right word) into one file.
There are many movies that are more than one part on the disc. That could be for several reasons. One of the reasons is burned-in on-screen text in different languages, i.e., the title of the movie, the cast and the closing credits. Another is for a strange way of doing copy protection, which I won't go into trying to explain here. The biggest reason is a release with two versions: theatrical and extended.

If the size of the movie fits on a 25 GB disc, there won't be a need to recompile. It will just be assembled into a single file.
It feels like I have a setting wrong, or maybe one of the external components incorrectly configured - I haven't reinstalled as yet, thought I'd ask here first?
I seriously doubt that reinstalling will fix it.

Since we have no clue as to what the movie is, further assistance is a little difficult to provide. Output log from BDRB and MediaInfo information about the original files would be a plus. Be sure and code wrap those listings when posting.

thebuff
11th April 2023, 09:05
Many thanks both - sorry I wasn't clear, I'm not backing these up onto a disc, just onto my PC for playback on Kodi. They play fine, I just have to possibly rename them to play correctly - nothing to do with BD Rebuilder.

But it's just that until recently no other movies have done this before - they've all recomplied as a single file, so I was a bit confused.

I'll try force encode next time i backup a movie that is split into several parts.

Many thanks

MrVideo
12th April 2023, 13:46
You should be able to copy all of the M2TS files into a single file.

jetli
20th April 2023, 06:48
Hi, I recently build a new system with a 13900K processor running on Windows 11.
I ran my first real encode now.
It failed and aborted.
Is there something I'm not doing right?
Here are the logs ... PLEASE HELP ...Is there something wrong?

1) BD-REBUILDER.LOG
[02/07/23] Checking System Settings
- BD-Rebuilder v0.61.28
- Windows Version: 6.2 [9200]
- Working Path Free Space: 362.86GB
- AVISYNTH Version: 2.6.0.6, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[02/07/23] Systems Settings Check complete
----------------------
[04/20/23] BD Rebuilder v0.61.28
[00:46:44] Source: THE_AGE_OF_INNOCENCE_BD50_CC_00001
- Input BD size: 34.29 GB
- Approximate total content: [02:18:38.727]
- Target BD size: 23.96 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Resize: SD to HD 1080 enabled
- Quality: Better (Faster), Two Pass
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[00:46:44] PHASE ONE, Encoding
- [00:46:44] Processing: VID_00274 (1 of 1)
- [00:46:44] Extracting A/V streams [VID_00274]
- [00:49:43] Reencoding video [VID_00274]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 199,450 frames
- Bitrate: 18,751 Kbs
- [00:49:43] Reencoding: VID_00274, Pass 1 of 2
- [01:00:30] Reencoding: VID_00274, Pass 2 of 2
- Encode failed. Aborting.
- BD-Rebuilder v0.61.28
- Windows Version: 6.2 [9200]
- Working Path Free Space: 353.09GB
- AVISYNTH Version: 2.6.0.6, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[01:03:42] - Failed video encode, aborted
---
2) LASTCMD.TXT
"C:\Program Files Uninstalled\BD_Rebuilder\tools\x264.exe" "J:\BD_REBUILDER PROCESSING\WORKFILES\VID_00274.AVS" --preset faster --bluray-compat --b-pyramid none --weightp 1 --qpmin=0 --bitrate 18751 --level 4.1 --qpfile "J:\BD_REBUILDER PROCESSING\WORKFILES\VID_00274.CHP" --sar 1:1 --aud --nal-hrd vbr --pic-struct --vbv-bufsize 30000 --keyint 24 --min-keyint 1 --ipratio 1.1 --pbratio 1.1 --vbv-maxrate 35000 --threads auto --slices 4 --thread-input --stats "J:\BD_REBUILDER PROCESSING\WORKFILES\VID_00274.AVS.264.stats" --pass 2 --output "J:\BD_REBUILDER PROCESSING\WORKFILES\VID_00274.AVS.264"
---
3) BDREBUILDER.INI
[Options]
VERSION=0.61.0.28
ENCODER=0
MODE=3
ENCODE_QUALITY=1
ONEPASS_ENCODING=0
AUTO_QUALITY=0
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=eng;
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=1
DEINTERLACE=0
SD_TO_1080=1
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=0
AVCHD=0
REMOVE_WORKFILES=0
REMOVE_OUTPUT=0
USE_FILTERS=0
BDMV_CERT_ONLY=1
IVTC_PULLDOWN=0
ASSUME_DVD_PAL=0
FRIMSOURCE=0
COMPLETION_BEEP=1
OUTPUT_SBS=0
NEROAAC=0
SUPTITLE=0
PGSTOSRT=0
AUDIO_TRACK_LIMIT=1
SUBTITLE_TRACK_LIMIT=1
CUSTOM_TARGET_SIZE=24540
TARGET_SIZE=500
[Paths]
SOURCE_PATH=P:\A NEWLY DOWNLOADED\THE AGE OF INNOCENCE BD50 CC\
WORKING_PATH=J:\BD_REBUILDER PROCESSING\
---
4) THE_AGE_OF_INNOCENCE_BD50_CC.inf
[Status]
LABEL=THE_AGE_OF_INNOCENCE_BD50_CC
VERSION=v0.61.28
SOURCE_SIZE=36821594112
SOURCE_VIDEO_SIZE=36821594112
TARGET_SIZE=25732055040
REDUCTION=.698830554748145
RESIZE_1080=0
RESIZE_1440=0
AUDIO_TO_KEEP=eng;
KEEP_HD_AUDIO=-1
SUBS_TO_KEEP=eng;
BACKUP_MODE=1
MOVIEONLY_TYPE=0
USE_LAVF=0
INSTANCES=1
DGDECNV=0
DGDECIM=0
FRIMSOURCE=0
FFMS2=0
SSIF_MODE=0
UHD_V3_MODE=0
QUICK=0
ENCODE_STEP=2
[00274]
AUDIO=1
PGS=1
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=25732055040
RATE=18751
SPLITS=1

jdobbs
20th April 2023, 15:15
Strange that it completed pass one with no issue -- and then failed 3 minutes into pass 2... any chance the system overheated?

Have you tried running the command line from LASTCMD.txt from a DOS (command) window? You'd have to do it right after it failed to make sure everything needed is still there (e.g. the stats file).

jetli
20th April 2023, 16:17
I'll run it again, and run lastcmd.txt from dos window.
So I take it, you don't see anything wrong?

musiclover
21st April 2023, 09:00
What I see wrong is this: SOURCE_PATH=P:\A NEWLY DOWNLOADED\THE AGE OF INNOCENCE BD50 CC\
It looks like you downloaded the source. If this is true you can get banned from this forum
You'd better cleaned your logs before posting them here

jdobbs
21st April 2023, 15:07
I'll run it again, and run lastcmd.txt from dos window.
So I take it, you don't see anything wrong?I don't see an issue unless I'm missing something.

If you run it from the command window, at least you will see what error occurs within X264.

jetli
21st April 2023, 21:06
Strange that it completed pass one with no issue -- and then failed 3 minutes into pass 2... any chance the system overheated?

Have you tried running the command line from LASTCMD.txt from a DOS (command) window? You'd have to do it right after it failed to make sure everything needed is still there (e.g. the stats file).

I ran it again with slower clocks, it passed. So I guess it's the computer, it hasn't had any problems in quite a while, but now it won't pass prime95 either.
working the issue. Thanks.

jdobbs
22nd April 2023, 18:46
I ran it again with slower clocks, it passed. So I guess it's the computer, it hasn't had any problems in quite a while, but now it won't pass prime95 either.
working the issue. Thanks.Thanks for reporting back. I assume you are overclocked? Anyway, I will say without hesitation that X264 is the ultimate system overclocking test.

Lathe
24th April 2023, 06:15
Hey Guys! Long time... I'm surprised to see that the thread has moved so little in the last year.

I've got one of those framerate/interlaced/telecined puzzlers that always throw me. I haven't run into one in quite a while, but what I have is an HD rip that when played back on computer has all kinds of what LOOKS like combing effects. Now, no matter how much I've read about this, I still cannot quite get my tiny mind around it. I'm GUESSING from what I've read is that maybe it is something like an interlaced source improperly encoded progressively or something like that.

I tried importing the MKV file into BDRB and checked the 'IVTC Source with 3:2 Pulldown' box (I still have NO bloody idea exactly what that means) and I have the Deinterlaced box checked. I tried encoding it as an alternate output MKV at the same resolution with audio intact. The result though looked just as bad. I'll try to include a snippet of the video so that those of you who know this kind of thing will likely recognize what's going on here and what to do. What is interesting is that when I play the file back with MPC I'm pretty sure it looks better, like the player is somehow automatically employing some kind of filter. But, when I play it with VLC, it looks bad.

Here is the MediaInfo of the file:

Overall bit rate mode : Constant
Overall bit rate : 10.2 Mb/s
Frame rate : 25.000 FPS
Encoded date : 2023-04-22 04:25:09 UTC
Writing application : mkvmerge v75.0.0 ('Goliath') 64-bit
Writing library : libebml v1.4.4 + libmatroska v1.7.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 31 min
Bit rate mode : Constant
Bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.193
Stream size : 6.23 GiB (96%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Are there specific AVS scripts that I should try to 'fix' or at least improve this? Can I just plug them into BDRB and run them (I'm kind of fuzzy on where BDRB calls the scripts from, can I just put any AVS script in there or what?)

I'm going to try to put a link here to the file on my site, hopefully you will be able to download it and see what is going on. It is just an 18 second, 21 Meg video snippet:

https://lathe-of-heaven.com/Snippet.mkv (http://lathe-of-heaven.com/Snippet.mkv)

You might get some kind of security warning about my site because it is super old, but the file is just simply hosted there. I tried the link and it SEEMED to prompt a download of the MKV Snippet.

Thanks!

Jaime.

gonca
24th April 2023, 11:00
Your snippet is 25 FPS progressive.
It is also a hot steaming pile of you know what.
Looks like it has gone through a bad conversion.

Emulgator
24th April 2023, 11:45
Guessed damage sequence: NTSC-> PAL blendconversion, blackbars cropped, then uprezzed to FHD.
Now to undo that, something along
ConvertToYV24()
AssumeTFF()
Lanczos4Resize(720, 446, src_left=0.0, src_top=0.0, src_width=0.0, src_height=0.0)
SeparateFields()
shows the nature, but does not repair the blends, more work to be done.

MrVideo
25th April 2023, 03:40
What is the latest word on getting BDRB and NVENCCRE to place I-frames at chapter marks when encoding HEVC/H265?

MrVideo
25th April 2023, 03:50
shows the nature, but does not repair the blends, more work to be done.
IMHO, it is a lost cause. Converting 23.976 frame/sec interlaced video to 25 fps progressive is always going to end up with messed up frames. Even professional standards converters can have issues. That was one of the reason for speeding up 480 analog material when going to 525 digital.

My suggestion... try and find a copy of the original source. I know: easier said than done.

Lathe
25th April 2023, 04:02
Your snippet is 25 FPS progressive.
It is also a hot steaming pile of you know what.
Looks like it has gone through a bad conversion.

Yep... that is pretty much what I thought. I have the original DVD too. Believe it or not it actually looks worse! Too bad too, it is a good movie...

Lathe
25th April 2023, 04:04
Guessed damage sequence: NTSC-> PAL blendconversion, blackbars cropped, then uprezzed to FHD.
Now to undo that, something along
ConvertToYV24()
AssumeTFF()
Lanczos4Resize(720, 446, src_left=0.0, src_top=0.0, src_width=0.0, src_height=0.0)
SeparateFields()
shows the nature, but does not repair the blends, more work to be done.

Wow, thanks! Yeah, I know that somebody screwed it up, but like I mentioned above, the original DVD which I have even looks worse. I don't suppose I can do much with it, but I figured you guys who are much more familiar with this stuff could at least give me some suggestions. I sure with there was actually a good source for this film.

Lathe
25th April 2023, 04:07
IMHO, it is a lost cause. Converting 23.976 frame/sec interlaced video to 25 fps progressive is always going to end up with messed up frames. Even professional standards converters can have issues. That was one of the reason for speeding up 480 analog material when going to 525 digital.

My suggestion... try and find a copy of the original source. I know: easier said than done.

Yeah, I'm sure you're right (an EXTREMELY rare occurrence, but once in a great while... :D) I do have the original DVD, which I believe is all there is, and like I've mentioned, it even looks worse. Oh well...

Lathe
25th April 2023, 04:09
Guessed damage sequence: NTSC-> PAL blendconversion, blackbars cropped, then uprezzed to FHD.
Now to undo that, something along
ConvertToYV24()
AssumeTFF()
Lanczos4Resize(720, 446, src_left=0.0, src_top=0.0, src_width=0.0, src_height=0.0)
SeparateFields()
shows the nature, but does not repair the blends, more work to be done.

Oh, I forgot to ask you... So, I don't suppose I can just drop this code into the AVS window of BDRB, right? It's been quite a while since I've used Avisynth, how do I implement this code you have kindly given me above...? If I can't just drop it into BDRB, it's been so long that I'm afraid you are going to have to spell it out for me, if you don't mind, please. Thanks!

Emulgator
25th April 2023, 08:43
My code is not worth anything now, just for peeking.
I suggest that you might upload a sample of the DVD you have.
Rip it, go to VIDEO_TS. If VTS01 contains the main PGC:
just the first VTS_01_1.VOB via wetransfer.com (2GB are free and stay up for one week)

MrVideo
25th April 2023, 11:26
but like I mentioned above, the original DVD
Post the UPC code of the DVD. I want to look that release up. Thanks

Lathe
27th April 2023, 01:45
Post the UPC code of the DVD. I want to look that release up. Thanks

I don't know how to figure out the UPC code, I don't usually mess with DVDs only going to my collection if I want to compare the Blu-ray or see what extras are on it. But, here is the link on Amazon for the DVD. You'll notice that EVERYONE complains about how poor the DVD looks, and it does... There just simply may not be any decent source for this film.

https://www.amazon.com/Guilty-Conscience-Slim-Anthony-Hopkins/dp/B000B6TSN8/

Lathe
27th April 2023, 02:00
My code is not worth anything now, just for peeking.
I suggest that you might upload a sample of the DVD you have.
Rip it, go to VIDEO_TS. If VTS01 contains the main PGC:
just the first VTS_01_1.VOB via wetransfer.com (2GB are free and stay up for one week)

Instead of uploading so much, I went ahead and used MakeMKV with my DVD and then took another 18 second snippet from it (very near I think to the supposed HD encoded snippet above) It doesn't seem to have quite the horrible combing in it, but it still does not look very good. Maybe I should simply start with the DVD and try some AVS from there to 'improve it'...?

https://lathe-of-heaven.com/GCDVD.mkv (http://lathe-of-heaven.com/GCDVD.mkv)

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.

Lathe
17th May 2023, 08:09
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.

Oh wow, really...? Heh... I must've misunderstood what Sharc suggested I do then. How strange... I thought the IVTC was what was helping with all that combing and stuff.

I have a lot to learn... Well, it will be interesting to remove those lines and see how it looks. Thanks mate!

***EDIT

Yep, you are right! (Wow, twice in a row! :D)

The resulting frame rate is now 25. The video doesn't really look that different in motion for that first minute or so. I tried going back and forth between the encode with the IVTC and without and I couldn't see any difference other than changing the frame rate according to MediaInfo.

Well hmmm... I'll still need to see what I can do though to reduce that ghosting and combing. I have NO bloody idea what the parameters of the TComb line are doing, I just pasted an example script. So, should I change those values, will that help with the combing and stuff? Is there another plugin/script I should try to reduce that, because if I can get rid of more of that that would help. Just softening it though seems to have helped with that. I remember one encode where I had both the TemporalSoften and the Denoise cranked up, and it looked REALLY smooth and clean, but almost no detail :)

What to do... Well, at least my different plugins are mostly working now.

MrVideo
17th May 2023, 11:43
Oh wow, really...? Heh... I must've misunderstood what Sharc suggested I do then. How strange... I thought the IVTC was what was helping with all that combing and stuff.
IVTC = InVerse TeleCine
It removes the 2:3 pulldown used to get 23.976 fps video to play at 29.97 fps, i.e. 2:3 pulldown telecine..

In order to cheaply get 23.976/24 fps video to play at 25 fps, the video is sped up by 4%. If the audio isn't fixed, it will have a pitch change. By using an expensive commercial standards converter, the 23.976 video is converted to 25 fps without a pitch change. But, in doing so, there is frame blending involved.
The resulting frame rate is now 25. The video doesn't really look that different in motion for that first minute or so. I tried going back and forth between the encode with the IVTC and without and I couldn't see any difference other than changing the frame rate according to MediaInfo.
Out of every 5 frames, you should see a dropped/missing frame, which is why it became 20 fps.
I'll still need to see what I can do though to reduce that ghosting and combing. I have NO bloody idea what the parameters of the TComb line are doing, I just pasted an example script. So, should I change those values, will that help with the combing and stuff? Is there another plugin/script I should try to reduce that, because if I can get rid of more of that that would help. Just softening it though seems to have helped with that. I remember one encode where I had both the TemporalSoften and the Denoise cranked up, and it looked REALLY smooth and clean, but almost no detail :)
Instead of trying to find it, it there a link to a piece of the original 25 fps video?

My guess is that it is 25p and not 50i. Decombing only really works on interlaced video as it is working with two separate fields in order to create a new frame. If the video is progressive, there are no fields to work with. Since I never do any decombing, you'd have find a filter that will take the progressive frame and create two interlaced fields and then do the decombing. I do not know if there is a filter setting for progressive vs interlaced sources.

Since appears to be a very cheaply produced video, it is very possible they took a 29.97 2:3 pulldown video and converted it to 25 fps. Blending of frames would be a result.

I'd have to look at a file containing several minutes of the video.

Lathe
19th May 2023, 03:50
IVTC = InVerse TeleCine
It removes the 2:3 pulldown used to get 23.976 fps video to play at 29.97 fps, i.e. 2:3 pulldown telecine..

In order to cheaply get 23.976/24 fps video to play at 25 fps, the video is sped up by 4%. If the audio isn't fixed, it will have a pitch change. By using an expensive commercial standards converter, the 23.976 video is converted to 25 fps without a pitch change. But, in doing so, there is frame blending involved.

Out of every 5 frames, you should see a dropped/missing frame, which is why it became 20 fps.

Instead of trying to find it, it there a link to a piece of the original 25 fps video?

My guess is that it is 25p and not 50i. Decombing only really works on interlaced video as it is working with two separate fields in order to create a new frame. If the video is progressive, there are no fields to work with. Since I never do any decombing, you'd have find a filter that will take the progressive frame and create two interlaced fields and then do the decombing. I do not know if there is a filter setting for progressive vs interlaced sources.

Since appears to be a very cheaply produced video, it is very possible they took a 29.97 2:3 pulldown video and converted it to 25 fps. Blending of frames would be a result.

I'd have to look at a file containing several minutes of the video.

Good explanation, thanks mate!

Yes, I think you are right because there is some kind of 'ghosting'(what looks like combing) going on. And yes the original HD video is encoded at 25 fps. It was kind of funny though that with the 2 softeners/denoisers cranked up, everything looked pretty damn smooth :) But, I have a feeling that I am only going to be able to get it to look so 'good' because of the original crappy encoding that was done.

You honestly CAN see though through all the crap that the basics underneath it do look quite a bit better than the absolutely washed out, though 'properly' encoded DVD. But, when you look at the DVD, the underlying substance is so weak that there is nothing much to work with. It's kind of like it's been watered down about 50% from the basic information in the HD print. Colours, definition, saturation, contrast. There is just more 'there' there in the HD print, thus my wanting to 'fix' the HD encode the best I can.

I will post a link to about a 5 minute snippet of the original video (I think my first post was only about 20 seconds) but it is going to be about 350 Megs, so if you don't mind downloading that. But yeah, I would LOVE to see what you think could be done with it. All I've been doing is shooting from the hip and guessing so far...

http://lathe-of-heaven.com/GCHD-001.mkv

MrVideo
19th May 2023, 06:50
Yep, that is a crappy conversion to HD @ 25 fps. It looks like it came from a VHS source.

They didn't bother to IVTC the source before converting to 25 fps, hence the 2:3 pulldown frames showing up with combing. And yes, their standards converter melded frames. All of which you will not be able to get rid of.

I'd be interested in seeing the first TOC file of the DVD. Since DVD files are only 1 GB in size, that would be just fine.

Sharc
19th May 2023, 06:52
Oh wow, really...? Heh... I must've misunderstood what Sharc suggested I do then. How strange... I thought the IVTC was what was helping with all that combing and stuff.
Sorry, you don't understand, do you?
I did IVTC the DVD version because it was telecined. IVTC is not a general tool to "help with all that combing and stuff".
The "HD" crap which you want to "fix" now is the work of a moron. It is no longer telecined, just totally borked. Ditch it.

gonca
19th May 2023, 12:14
I read your posts at VH, and Sharc is correct.
The DVD might be a better candidate for "improvement"

MrVideo
19th May 2023, 21:51
I don't need a copy of a DVD TOC file, as Sharc has already dug into the DVD.

Lathe
20th May 2023, 07:14
Sorry, you don't understand, do you?
I did IVTC the DVD version because it was telecined. IVTC is not a general tool to "help with all that combing and stuff".
The "HD" crap which you want to "fix" now is the work of a moron. It is no longer telecined, just totally borked. Ditch it.

Heh, okay, okay, got it! :) I was just SO damn determined that I could do SOMETHING to make it look better, but I think I got as far as I could.

Sorry about that. I posted back about your code for the DVD that I could not call the Spotless or the Sharpen that you suggested. I got errors which I posted on VideoHelp. But yeah, I'm AM coming to the point where I'll try to work with the DVD now, thanks! I don't know if I'm quite onboard with the greyscale, but if I can get the Spotless/Sharpen working or something like it, then I can play around and see about that.

***EDIT

Okay, just ONE last gasp... :D (I promise, and I won't bring this up any more UNLESS you guys are so impressed that you just MIGHT have some more suggestions)

And then, I'll get to work on the DVD. But guys, honestly, in my stumbling around for the last week or so and hours and hours of trial and error (mostly error) I THINK I've got this li'l bugger looking pretty good, considering what I have to work with.

Now, please just take a quick look at this latest encode. I believe that SOMEHOW, God knows how, I've been able to get rid of a lot of the combing and crap, and I honestly think it looks quite a bit better. Tell me honestly what you think... Please forgive this ONE last attempt (Sharc) I KNOW I am industriously polishing a big turd, but it is my turd! (somehow that sounded better before I wrote it...)

Seriously, for this last time, tell me truthfully what you'all think - I think I could live with this. Here is the code I ended up using:

TComb(mode=2, fthreshC=6, othreshC=6)
DeNoise(getvar=false, var=120, evar=160, xgrid=5, ygrid=7)

vsMSharpen(threshold=2.0, strength=90.0, mask=false, luma=true, chroma=true)
WarpSharp(depth=128, blur=3, bump=128, cubic=0.6)

I noticed that after adding the WarpSharp (it was the only other sharpener I could get working...) the picture was looking more defined. I will research its settings to see if I can bump it up some more, but as it is, compared to what it was, I honestly think it isn't too bad...

Thanks too gonca and Mr.Video for all your help and input!

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

***EDIT 2

Notice particularly the two close ups of Anthony Hopkins face around 1:30 and a few seconds later as he backs from the room.

gonca
20th May 2023, 12:48
Yep, you polished it
But it is still a turd (yours)
I've seen old up scaled DVDs look better
Work with the DVD

Sharc
20th May 2023, 21:36
Plastic look (overfiltered), blurry, combing artefacts, horrible colors .......
You're wasting your time, but to each his own :)

Lathe
25th May 2023, 04:45
You guys... Have some faith! :D

Well, FWIW I just got finished watching my highly polished turd. It is a damn good movie! Good ol' Levinson/Link and their brilliant convoluted Crime Thrillers (FWIW, a fairly obscure 1979 Telefilm called 'MURDER BY NATURAL CAUSES' that they did is even better than this one) I transfered (and polished it) many years ago to DVD. Great little film!

So, now that I've pretty much done the 'best' I could with the mangled HD print, I'm going to see what I can do with the DVD print. It's true that it doesn't have the multiple issues that the HD print has, but the print itself is SO washed out, especially if grey scaled, that honestly I think that would bother me in this particular case much more so than the weird issues with the HD print.

BUT... I do very much appreciate the input and help because it has helped me a lot to reacquaint myself with Avisynth and really helped me to get my plugins and all the supporting software in order. Actually, once I had my 'brilliant' AVS script put together, I did indeed drop it right into BDRB and had it do the encode. But, this time I used the Archive function which I should have used in the first place and everything came out pretty well considering...

I'll drop some screenshots here of what I ended up with. Other than flushed and waxy faces, I really don't think it turned out that bad. Also, watching it played as a Blu-ray through my OPPO player helped. I THINK it may have detected and incorporated more filters automatically in playback, thus perhaps helping some with any residual combing. On my ancient 50" Plasma though, it honestly looked pretty good.

This is the script I ended up using, purely by trial and error. I have like 3 strong sharpeners in a row, that was the best I could come up with, although I'm sure you guys could come up with better ones:

TComb(mode=2, fthreshC=6, othreshC=6)
DeNoise(getvar=false, var=120, evar=160, xgrid=5, ygrid=7)
vsMSharpen(threshold=2.0, strength=100.0, mask=false, luma=true, chroma=true)
LimitedSharpenFaster(strength=200, edgemode=0)
WarpSharp(depth=200, blur=3, bump=200, cubic=0.6)

For the most part, stationary surfaces came across very well, and overall I honestly didn't even notice any combing while watching the film. I think for this kind of 'Hip' 1985 Telefilm, the brighter and more robust presentation, although not the best, just seems to lend itself better than a more trouble free but super faded/washed out looking nearly B&W print - Now, if this were a Classic period 1940's Film Noir or something along those lines, that would be a completely different story of course.

It will be interesting (and hopefully instructive) now to start working on the DVD print just to see how 'good' I can get it to look. Maybe I will be surprised :)

A sincere 'Thank You' though for your guys' help and input, I'm still applying it as I go...

https://lh3.googleusercontent.com/0tyUypBww-_bMEpC2dzKzhfNsTISmK8jFVUV89fOGr9evXxONf3uhpzRatwcMsPKlbSXid3uR1b8VR2uzLGN3C68BGJv8Vzia8GVWqiSxzsHPI9G-65zVjMRN_zIInrEROaW3FElKVqwRzbABO221nXrUxenhevZzLrmjF1KlwFoL0nrGOs--PrWwbstBAlzJh91yOCEOHXLbPaaDSzEZvrqUPhECGeX3x0kmbY8iiAJIV7zzugXcRDukMDbHDyedzT9EfUhMkspdS4AKufaT1x6TLt8fIfsI7IUfev0AikNB1dxy_kxRPmKbzwDvy5UrY8MAtNnCCXQd0mHh_nUdG3ZEXSH57vpjiY1JrLQHR2acb4dQTEY0K7RwAGCOgJh2ROXitPwQf7buvi7W6UobUWpsMg5iJUXq5dZhDcuzCYByOtxg_S9e38DWxXApbFV89dDKhv83Ro7LT5fctyQ61ZOMksqAmG9oIpWneD4tXCcoT0-aP4N8hzMtX40hExSSXcvp4GK4va_T5Ce6PEzRxCHCTCg3DHLrQqvTsweBX35q1jGGj0gP23MIFzIVJgWfZJKi8ryOhw_iMA7oF-YjDLWMTisamwofyM3NXv_kYWB19suS6lzgMP03V7WSuhJbCTaxgklQ-VMWWLySPYXn6MJJdfgR3L3WFYPTiXKNdUdszpEIus8zcbwFLezCNoLeoIFnzasW3fAHfTk-zHxwdIKv9pzKnejP6iyECXjFDfRVmX7Kl3qRx7lpCgHNhMhT1UFSPCkhXeps-eWhrJ4Q2KGMJ_JGpi6QSHJYcimQBnfCCSQ0LULDHIjIhc6w5_2N3uBWjuDvlqBqR7WgoBKBGKxxP4mw-pblMYScpijgYl47Su2s1VRmWi6j5q3eSYSym1a_gCkORaItXVTaFw6poPkOD5TcUPfwu5HxETLHB0a2tzxQyq1hhfx8sQFfv9wgt6D3rHhpnAOteNz6Onv=w1116-h628-s-no?authuser=0

https://lh3.googleusercontent.com/Vp2FAJCohFe7MeDaZK-MyaBky_D2ZZ5U6i7WzXobFHDuwTEEWeBjYLtQo-1zks_gUCv9KYryx0T3UfF48QyD2jvs8YF9Gev2gGmJfCuIM6ioSVg0DXfhhZHKtvZBPiwfUUXiWp1Pl28wOYE0fT9VdOkzwYSw8f-nwQ3wbq3WO4vWHzA8aeSXTfkPo9pFYQtubdt2d9bTaO408kkE6o4CQFuVeYmQpJhv9jsW_U70kPeqBMQLLo9HfIt-uYgo8uo_YFyWZcwTcMLEQPCoV3LfK0CNJk3F8rDcBhGf4biV5PvdSd5AvyagrRm0PROZMqIdxTVf2h9wZRaE5kQreLMAgjXFnrfFcXckjUqINKkNmaWXeDXnbffhU4Ibr4Tx4UHZHPz4N6xLNCkSbWlS4nh9yKGKvkw-ZDcrInei5dyMKPlx50P3ZV1L4jep0l98L-E-At4rmwvacFu-0PGUTSLB630-LsBw54CQm00qVhe4SU0Ckh-lVvOxNrbqlvHFxPemQ5JpE2Fzus5HqpJqspyeBOCXLX3iq0wsLhfVzxeV-1rv6CT-bz00d3ckb7KYfLiJIR3MehN78SA6kaj44c60LPT0wRLcyaguGKa-Uc-5xaVWPwOSu8LHx6qLhPWIbr-X9etiMtEK5wCmw_nFuzTsCmDUeKXsIlIB5qXgZJqii_UvGNdNy2X1hiSe-cfbT1_mbTDNcAe-eY3WrT8DaoF8oKxv9hOSj-ci8-xTTP_VOn5OfI4Lp3qt79GTQl6t7MP7QzFw0Nox8HqvpD0RF3xnTng04Zf8UW-9xFP08Sz_diXGU6QFd_bYObt0J3jRI-crSkj5omsD4BPgJ-zXjkd6e5yBd4TZnWQZKI7Wnp142P5Afz_VW4AhYolHgoYq7WoHFtZgiLZssrk0np0_BmpvyQD_64g9bYOSVBhF9ERUHiTTtfXwHVoxKYY1YBHo0jh_kflhs-xlINGEkbxMWD6B=w1116-h628-s-no?authuser=0

https://lh3.googleusercontent.com/P-BvYlODZ6d7EjU4V5ztWh08uhrLzivDO3T8Xq7-zZBf3E2S_QVnwovjB_DO1-GIeeL_1Z07JfJ9kgsKnSxd0A9A1dpqj6VRkGhYi0TU7JvMMD8OqJaicoiU8kEGjp4MRSYQb2IBeDLHqifXiiUTpxFKnetz5uBvj2436ZkJXQJRusgDUNbHeXNszQASTYfcx6fYYNiKtxznQm7V7Zi9oWc4q1kRS7iUPLnNkUpkd1DDEDGv3rA_QIUVFxf2945StUTOgocwigZdRiMs_706Ht4Ztoud2ouSDgoplYGAQHYip448o0Z_cSDhZyd3cyafWv7ZblwNPsd7-izpzkqCsClVsY4ODrI9VWLdBjp4ufBEM2s6zMMODt3rmWjAIKVXzD1KZ0H1D0gEwxTquseyuNyjgYgN8mS7Yp4LdOWqR2yc3LkF14_jFcD_Ye3GTFhkcQ6rzJOfddR4cGvlsHOllAPiYLJhiiNujHzcZ54ZHtC0ojeqUsX9Ba2_GrcNQFpJgWVkcqf_6SFC-HTJ9gcuNSqVKT2wHIWacT1r8kyf_4OaIvrr7OutkpqhfuZRDtZZx4xdGbQdy6hN-0Hr_UwQew6k--BqyXq-Ri9vg0MERI-50UBXc5EvoEcxHgbj_UNxkKZDBzO2222oUkyzA_Td4A_uPsHt_xZuAxRrhZwM3zjkiwjIOXkd704ouyBQVYPoSnkPwb6gvmZDs0GXPaAhylIXU8uZ1d6skiD0H1I-IKIW1YQenu3pAhqykSpIYyxw_evSJ3dtlELKYJTllC6I7I3Dv6MGH4Kuw6ZHSedrgpA9Mujm4B1G1e-eI1JDfJpc3YCa7gm5Avn3IWsheRU_yjQU5x5wNuD3hpFv8MKn4VdbCfewSo3xaF78j9869vbk_mbXUksH462cFqC2Dja1Dq1XA6O7_esWov96p7P3dMLWkgBUs384QwcyJy4kqg2ehrkclT2dkcSXWqs9MaLN=w1116-h628-s-no?authuser=0

https://lh3.googleusercontent.com/bYADjpK-6gY8uDp2ty2ERr6Ais_TOGrw7kZGkgbGB9dbuGvo4ZB6TbqmufjVpmTvA6oqD3I0j87BaOdGM-lSYqiQ_ClNN00ycfAfQpFmEzJ7tqfjWKywgI3W5d8eS7Qeaj3-o6qb3tQiz4-RgdF6mTvGyksmpdkNunCOBYw9_5jQsL-O2SMtvcb8O7Uwwwisg4NTxU0GjNQ5YMhlFn9JTILwQuGc_7JNLra2OFRdWy-5rs2UqOHfjpeKPo-I_ZSABHXI-LARq6uk3_gwj_huekM3-qQ-SRiNapiJHF71ccC66VBtGtEgeXDxv8zVtdy9PwmupV7PzitLoL9y8k_4v-BBJ84ScM7uCss8sD7Ezc60bi4Y2rZoVmMaUAHjuZzmGi6lM__kL_gRTZljLjoOrCcmhoWtlwHEm5y_AUF9OpYZKA-cAtRNcaFTgaI32l367bAPUFhK67d2Zmk7IjaR8mGqhgjF1mK_wOV_VnNXQJFvxjldrVo4zuo8tmNZ_G9ljxWB0LLJCxox0h-BHieLmKK81UPatiT5Lm58zIpQySAv9ykt5EYXIy2WyznwsAB271jd82szwTQoU8w0PiG9UnLbMRcUHEFjs6E_l0mLxr8xmENs0J4Psqp6m1E5QtOSMrDc6T7hr0j644PBvj50nZfEt42gsBJNRdrx9ygGKXjn_Dgk9oE72X6Fx9GjBfInkR7B_jLD5cPog8W2qWtIUmpF_s6Aiu6e4jV2tZLUbzaNlqR1ykZccNQuWH0KPKpSt0o_W5WkXDtjjdnx77rTaT1HTC3Xc0NjgHDWAspqSulQaMmyi_r4SezdmXJOP4_pCvGydOulXOmnKb20QaMcQ24qx8zUOmLh119x12DvQ-g17ANOk4lCh1S6fmMTLMwJ7edXKhyu3iAqwj7D0WP8fMIfA88BRiAuZA8ErBd7oPfp_41R8wPDuFrhJIaw-dzGeeFeVvCV1DtO-_XJC0mO=w1116-h628-s-no?authuser=0

https://lh3.googleusercontent.com/HG6rLDdd0IbK3OtIeXbBpC5SliOlGbh-YU1gXBiGIIBl-jOOU0uh5Tuh0vsux4WB1SEmvu0L1rBDaAoamoh36jrDGElUY1iXsdokoNuAaZBmdj-uiNQZoqnxntKieZaW2_48Fan3Z7Jf86FjQee-buSC1xuxNZoEX3ra8pa6cvGi1uogHrRQ4u17FqgvboHjbjfM9N3IWv--1wY0AYQBneH_b6zmcZ89EghR3yzlA4kelUajgFSEogVhkHV-betPzRUh9UqXZtinGjYpezWbWJ9Kw-yvExZ-xdISn5utnFgA_9_Monzw41rIRIT10H3DVPmdKcBcK0WA64sKmWJ3TCRvQZuoC7dqdlAL-BfzXOrsDVM66lTXMifcEu8YRMcUPXXCw_l0CZLA2DDFhqDUUjo6TBNGCty5CmwSNixC3WPEGjqO7t-tMyQWrk5IaQ5AHy7jySSIMUNSyUMlDR8jCai1U5rZzcCDj_lZp68KV_Brss9hMozi4Ao65LGOek0XaNsbITvbnl1PLLYadAErbEBZK9uvbSJBee1C8FOX49Iv4NXRNib9NZ7oUOehiulvz7AmXAwol-xiW7yavIPUpbfktSvmBtWbdTyKKboSAN5qwgcyLQT0aZAn4n5XAH_N9svpD-7PcXQ3RWnmt8v51IBb52dkKiOwV0sHKczsXUiOMygWgcox_GFhe6BKnwx7nmBSnCjV1hDaqWMxesegcXJPwwZNLILU8kTlqkzVhb-wGxvTKlUgPMPOm0M6VkoTgKUhvOY4BsYWGA7kmyUMADqLWsF-3599HatEi8rMGAKTyMfu5T6HlFGK-L2_Mjl5cu05SSC2ZxaVrnIsr-ZzFLvU9UXkKkDvmqT_mUfqw3uaMAnd5nUJh1NhToQBZVJyNrQZNLfaispn5GncOBkIDyMCaxVsOEag2a66Hu-icU5jUJf3l-wd5CRMyoHRyE2yvC3I7I64cW8CUO8iaA94=w1116-h628-s-no?authuser=0

Lathe
25th May 2023, 08:20
Okay, I am working with the DVD print now. I am using Sharc's suggested settings, but without the Greyscale and using the FluxSmooth plugin because I can't seem to get Spotless running, and I can't get MDegrain working either, so I left off any sharpeners for now. So, here is a comparison (so far) of what I've got with the DVD and a similar snapshot of the 'finished' HD print. I guess I can see where maybe with some more saturation and if I can figure out a good sharpener, I MIGHT get a better result. But, just as is, you can see the darker outlines, the sharper delineation, and just the deeper, richer colours of the HD print (for now...) There just seems to be more 'substance' there...

DVD print:

https://lh3.googleusercontent.com/O2fHSIeHdZjnRxDRcqIMhndHj3IZ30iE15ZXeSDBdOl39DkQtDvInfav9xT73ncay3yTZ5NCcf7e8DI1psk9K-VSiRdGV0Gu17M3Xomp16m2To4KDrzyDGpDm4j19vurxncIIFMK9oOWJdFofnMhBaJKmFie_zlwfotI-hZIxpy88Dy1RtXmuTJm1xL-vT5o40381LDkdHRZeODgeUbMXwpY0N3ldHhYc4542qRDXrJzHkV0EkiSMggwMM4LYAjiJumalY6002wcLXTfYPEc77Q02GookRluXz1OZAbegJCdzDwTZB3SgZAPE_m3sBrbWNCCXWpPJ6LSjOLDbgRe5bWgiBGZ3s_qWwo4csYa_0dE-mpcfLTuP6RQuvbpQZWFXu_8T-TzAlW2jB3PFf0KWeecA4a9he12Oyi9uxx-E5uhookTCCd2e5Ki1Q5Ff7FDWPqJtRLU-OsiPD5WbnRc_Tsdy0OjQwmGrM99-WcLgjepLkLdksEyiQ6FxicrwD-W8mM-uxx7mHX6o7HBittEd3bUH8GXur3SOSfC_z_fa31sWGMwxSprK2axzaB3BNaYguao6F2WWBddVjxlp_goI_XirAME0LUGpLmQQSfZOP_6Ih_cyZok0nbqk4bZO3y9WOadxYSiz24m_igR4NBEXDEDvKStygXDu0WOheb3hp80D0E8X3hqpeFXvWOGm8tMg5BNSd-4jLEwDF_jj1wzFNV7NaMpTHxVVQFKAn6AwxKQVkV6VEey-aS_fM8VZya_zzbmgMWzpvRp4K-NHpUtn6BedkY5wI9z3Wf1gz7wYbIsDNTbbj9sZhjXXnMZmkaVf2M1RkBqxsQEzSFYvaGcP1qvAbYjPYjOnQk8-mCVZoNZMtFDVIcdZ-OofoODWv-yul6QYqE9E468B_MVMDTPfMt-iBR3AOscx_DNOh0Ld-khKXbPlSUCD05FD3I2mFsnPNi7DOiAf0E4qZpMf4Xy=w853-h626-s-no?authuser=0

'Processed' HD print:

https://lh3.googleusercontent.com/d8zAVpNjRotctZUpv5DJWIsKOayxUutJ0n78hKqegIk9NCkUOFKD7LyddbiarlHZ1gVhqf50qKrMQFzp24yH4K0rs5a8F2oPmqCE2NnME3UixvvTaWBCwDyIccdVfVsqipHD90W9xPyw901Myxa6or-lzLjVVUCvN-wy8PvOXD17hy0XrcPaO3wuNGeDIUibR42Uf7vTDuHAw13WklLR4jsO2k8WcxZLRPhLre-qPdharpFv6ufIJjy5EetvMAoljvBG_1UmOPjjAbntDy45JagJmMw3qyWBCcryFVwNCP1FB8htCgYHQQEfoaex-YhD1nXS8zaY1pgv7HJqY6YD1Nfe0gRZ_hJunrUDCWtWHC06dOosoKkyzmTvFNscAn9TiumOvcUS0KiEyQdJhfHbVZdc04h7jpQhCIl6bSahfxNXCYp-NONpbMo44ekCXIWEHiT8hu5TKH_jgw8G3BB8T4QLHqJrSn2HvgsamvRprihs56ASVWtFXtCDUY9aO0xjzMykEE-bFCZ_8Jw1ONlutNu4JRbRMo7Zs1kzmb5RFwPQQFGWyD3ZNQ7sbPP7cQ_zpjtP7S0Gw8l0H74SczWJTc1ImlrJTGM8Z-Vy9jaaF-37-hxRYhKrmpX5_sWPxxs9dzK9l6mapkfzdSGZtRpt_fUGZy7MEIrMKcdWRp_DDBrsAHimOh9eVmoqINVA0KnxLOSMUaEvBlcgEp9CbF6ZskAFo5wPm7Cmksl-mmK9_KMcGk1XZHRkz-1hSUfLUIeTv5FBATWLFD4vCgRCyL3zToCgzKisWIeQXDjtbvF7E8m0Mh58vt2EP6moaT4VuGV160PYxK2iFmDdTxzPmmg0LoLif7uIiViYqj85yHXm6X7QQS4gy5H-SUFEXGowR1NFuYaOnMlVbnxpKPDPbLkoJGa57EIVHM5a185b3IrMmMDRkzovrURiQgiDC2wsJKVzhs27YKoyI3rI8SZANzXI=w1116-h628-s-no?authuser=0

SeeMoreDigital
25th May 2023, 08:25
Out of interest... What's the movie?

Emulgator
28th May 2023, 13:47
https://www.amazon.com/Guilty-Conscience-Slim-Anthony-Hopkins/dp/B000B6TSN8/

cartman0208
28th May 2023, 15:53
http://lathe-of-heaven.com/AVSSnippet.mkv

Do you have the original of that snippet available? 20FPS looks a bit off.
I'd like to give it a try with AI support ;-)

MrVideo
28th May 2023, 22:30
Do you have the original of that snippet available? 20FPS looks a bit off.
As pointed out in a posting, the 20fps was a result of doing IVTC on a video that didn't have 2:3 pulldown and was 25fps.

jdobbs
10th June 2023, 18:11
Just a note for anyone who has experienced an error when trying to import a file encoded with NVENCCRE into BD-RB to make a BD:

It is caused by a bug in MKVEXTRACT (a component of MKVTOOLNIX). It can be fixed by replacing MKVEXTRACT in the BD-RB TOOLS folder with the one in http://www.jdobbs.com/downloads/mkvextract.zip. I've tested this version and it works well with BD-RB.

MrVideo
11th June 2023, 07:55
Thanks for the update.

magnexx
16th June 2023, 10:40
Hello,

i have a Problem with BD Rebuilder v.0.61.28

I get always an the End this error:

[11:28:25]PHASE TWO - Rebuild Started
- [11:28:25] Building ALTERNATE OUTPUT Structure
- ERROR in attempt to mux (MKVMERGE)
[11:28:26] - Failed to REBUILD

Can anyone help me?

By the way, is BD Rebuilder still being updated and further developed? The last update was over a year ago. Will it eventually support QSVEnc and VCEEncC as well?

Thank you.

MrVideo
22nd June 2023, 11:30
[11:28:25]PHASE TWO - Rebuild Started
- [11:28:25] Building ALTERNATE OUTPUT Structure
- ERROR in attempt to mux (MKVMERGE)
[11:28:26] - Failed to REBUILD
Did you look at the latest posting from jdobbs about mkvmerge?
By the way, is BD Rebuilder still being updated and further developed? The last update was over a year ago.
Sooner, or later, another update will happen.
Will it eventually support QSVEnc and VCEEncC as well?
I seriously doubt it. Software encoders are extremely slow. Using hardware encoding is extremely fast and produces great results.

gonca
22nd June 2023, 12:49
Will it eventually support QSVEnc and VCEEncC as well?
Those might be Intel's and AMD's hardware encoders

magnexx
22nd June 2023, 18:32
I seriously doubt it. Software encoders are extremely slow. Using hardware encoding is extremely fast and produces great results.

maybe my english is bad, but QSVEnc and VCEEncC are hardware encoder.

Those might be Intel's and AMD's hardware encoders
of course. QSVEnc is Intel and VCEEnc is AMD. I use BDRebuilder since 15 Years and this is the first time i usw another software, because BDRebuilder dosent work with intel or amd. only with nvidea.

MrVideo
22nd June 2023, 22:41
Those might be Intel's and AMD's hardware encoders
I looked them up, but obviously didn't read far enough.

In order to support them, that would mean having to purchase different display cards for other computers. An expense I personally wouldn't do for a project without any real income.

DoctorM
26th June 2023, 19:20
FYI, I was rebuilding a remuxed MKV file back to Blu-ray today and BD Rebuilder couldn't handle the main audio track. It seems that because it was Dolby TrueHD without a DD core, tsMuxeR couldn't work with it.
I downloaded a nightly build and that fixed the issue. BD RB could use an update.

KaraokeAmerica
26th June 2023, 21:24
I'm trying to convert a Full SBS 3D file (ie a 3840x1080 2D file) to 3D MVC, but it's not working. I get the error....

I looked at the next several pages of comments but have still not seen a response to this. Did you figure this out?

jdobbs
26th June 2023, 23:47
FYI, I was rebuilding a remuxed MKV file back to Blu-ray today and BD Rebuilder couldn't handle the main audio track. It seems that because it was Dolby TrueHD without a DD core, tsMuxeR couldn't work with it.
I downloaded a nightly build and that fixed the issue. BD RB could use an update.If you updated it in the BD-RB folder, just don't complain here when one of your next jobs fails.

They've made numerous changes that change the way TSMUXER works -- making it unlikely (but not impossible, I guess) to be compatible with BD-RB. Apparently consistency with previous versions isn't a priority (at least at the command line level).

[Edit] Also -- creating a disc with a Dolby TrueHD audio track that doesn't contain a DD core violates the BD standard. It may work great on one player -- but fail on another. I wouldn't allow it within BD-RB for that reason as well.

MrVideo
27th June 2023, 01:43
If you updated it in the BD-RB folder, just don't complain here when one of your next jobs fails.
Correct. That is why I have two shortcuts: one that points to the original install and one that points to an install in which I have the tsMuxer changed out. I suggest that anyone else who has changed out the tsMuxer do the same.

DeathStalker77
30th June 2023, 11:44
I have 2 authored BDs in folder structure - both play perfectly fine - both run through DVDFab just fine. However BDRB does not recognize them as being BDs - not v0.61.28 or v0.50.25. I have also tried after running then through DVDFab, with the same result.

Any ideas???!

Thanks!

--- DS

DoctorM
30th June 2023, 20:36
If you updated it in the BD-RB folder, just don't complain here when one of your next jobs fails.

They've made numerous changes that change the way TSMUXER works -- making it unlikely (but not impossible, I guess) to be compatible with BD-RB. Apparently consistency with previous versions isn't a priority (at least at the command line level).

[Edit] Also -- creating a disc with a Dolby TrueHD audio track that doesn't contain a DD core violates the BD standard. It may work great on one player -- but fail on another. I wouldn't allow it within BD-RB for that reason as well.

Thanks. No, I didn't update TSMUXER in BDRB, I used it separately... and my test burn did fail to play.

Ch3vr0n
2nd July 2023, 18:50
Been a while since i needed to use this. Recently built a new system and need to process a 3D disc. So naturally went to BDRB as there are no quality alternatives. I'm stuck on the REG_MSCOMCTL.BAT step. Will not register on W11Pro x64. (file cannot be found). Manually ran BDRB once as admin. Same effect?

Anything i need to enable again in hiddenopts to enable 3D support (in-mux)/blanking/multiprocess? Old system was based on a Z390 9900k GTX 1080, new one is Z790 13900k RTX 4090

bjones
3rd July 2023, 00:00
Been a while since i needed to use this. Recently built a new system and need to process a 3D disc. So naturally went to BDRB as there are no quality alternatives. I'm stuck on the REG_MSCOMCTL.BAT step. Will not register on W11Pro x64. (file cannot be found). Manually ran BDRB once as admin. Same effect?

Anything i need to enable again in hiddenopts to enable 3D support (in-mux)/blanking/multiprocess? Old system was based on a Z390 9900k GTX 1080, new one is Z790 13900k RTX 4090

First you need to make sure you have the file MSCOMCTL.OCX on the system which is the target for the command. It's located @ c:\windows\SysWOW64 on my Win10x64 machine and how I did it

If it's there pull up an administrative command prompt and cd to that location then run the regsvr32 command that's in .bat file -
cd C:Windows\SysWOW64 (to change the current directory of Command Prompt)
regsvr32 mscomctl.ocx (to register MSCOMCTL.OCX on Windows 10)

If its not there there's a copy in the directory with BDRB you can place there

Hope this helps

jdobbs
3rd July 2023, 18:14
I have updated the first post of this thread with a link to the latest version of BD Rebuilder (v0.61.29). Changes for this release:- Corrected an issue in which default AAC
encoding can fail when using fixed bitrates.
- Fixed an error in which resizing from the
SETTINGS menu while using NVENCC was not
working correctly.
- Added the ability to convert BD/DVD
subtitles to SRT in NVENCCRE. Note that it
requires that the program has access to the
same subfolders as BD-RB.
- Updated MKVEXTRACT.EXE to v7.1.0. The
previous version used had some issues with
AAC audio that was created with NVENCC. Can't
find any docs for MKVTOOLNIX that explains
why -- but the newer version fixed the issue.
- Other minor corrections and cosmetic fixes.

varekai
4th July 2023, 08:22
Thanks! Much appreciated!

raul124
4th July 2023, 18:07
Thank you,

whatever_gong82
5th July 2023, 02:43
Thanks for the update.

bjones
5th July 2023, 16:12
Appreciate the update !

bjones
5th July 2023, 16:31
Added the ability to convert BD/DVD
subtitles to SRT in NVENCCRE. Note that it
requires that the program has access to the
same subfolders as BD-RB.

I think I stumbled on an issue with this. I'm trying to take an .mkv with PGS subs to .mp4 converted to timed text. It appears that the subtitle track gets combined into the chapters section. If I try to carry 2 subtitles over I end up with 2 chapter sections. Same settings except from mkv to mkv results in no subtitles coming over at all. Audio and Video are set at passthrough. The only change to the container I was wanting to make was convert the subs

Thanks if you can give it a look and tell me what I'm doing wrong - bjones

DrinkLyeAndDie
5th July 2023, 23:18
I have updated the first post of this thread with a link to the latest version of BD Rebuilder (v0.61.29). Changes for this release:[...]
- Fixed an error in which resizing from the
SETTINGS menu while using NVENCC was not
working correctly.
[...]

Thanks for this fix, jdobbs. I had experienced it but was convinced that it was somehow my own fault and never reported it.

jdobbs
6th July 2023, 22:11
Added the ability to convert BD/DVD
subtitles to SRT in NVENCCRE. Note that it
requires that the program has access to the
same subfolders as BD-RB.

I think I stumbled on an issue with this. I'm trying to take an .mkv with PGS subs to .mp4 converted to timed text. It appears that the subtitle track gets combined into the chapters section. If I try to carry 2 subtitles over I end up with 2 chapter sections. Same settings except from mkv to mkv results in no subtitles coming over at all. Audio and Video are set at passthrough. The only change to the container I was wanting to make was convert the subs

Thanks if you can give it a look and tell me what I'm doing wrong - bjonesI can't even imagine how that could happen???

Are you reencoding, or have to set the program to "Keep Original (Intact)"? If so, could you try it with another setting (H264 or H265)?

bjones
6th July 2023, 22:32
I can't even imagine how that could happen???

Are you reencoding, or have to set the program to "Keep Original (Intact)"? If so, could you try it with another setting (H264 or H265)?

Yes, keep original video and audio both intact, all I was trying to do was convert the subtitles from PGS to SRT just like it happens in alternate outputs with the convert subtitles setting checked in BDRB. Watching the job, nothing reencodes it just shows the audio and video copying over. If you look at the Mediainfo's I posted you'll see those both copy over correctly, it's when it gets to subtitles and chapters it get messed up. I have used both AVC and X265 material, makes no difference since the video portion copies directly over correctly

jdobbs
7th July 2023, 02:23
Yes, keep original video and audio both intact, all I was trying to do was convert the subtitles from PGS to SRT just like it happens in alternate outputs with the convert subtitles setting checked in BDRB. Watching the job, nothing reencodes it just shows the audio and video copying over. If you look at the Mediainfo's I posted you'll see those both copy over correctly, it's when it gets to subtitles and chapters it get messed up. I have used both AVC and X265 material, makes no difference since the video portion copies directly over correctlyAhh... that makes a difference. NVENCC doesn't actually have the ability to do the job and keep the video intact (it has to encode the video). So when you select "Keep Intact" for the video, the job is, in fact, being done by FFMPEG. I'll check the code and make sure FFMPEG is correctly handling the SRTs that are being created. I probably didn't test that scenario well enough.

I'll take a look at it and let you know what I find.

Lathe
8th July 2023, 05:43
Do you have the original of that snippet available? 20FPS looks a bit off.
I'd like to give it a try with AI support ;-)

Heh, I'm sorry Bro, but not getting any prompts for replies from Doom9, which I know it's been that way forever, I forgot to come back and check for comments, my humble apologies.

I don't think I have any of the snippets anymore, although I do have the original messed up HD file. I can extract and post another snippet if you wanna mess around with it. When I got it as good as I did I guess after spending all the hours and hours on it, I was done! :D

Lathe
8th July 2023, 05:47
I have updated the first post of this thread with a link to the latest version of BD Rebuilder (v0.61.29). Changes for this release:- Corrected an issue in which default AAC
encoding can fail when using fixed bitrates.
- Fixed an error in which resizing from the
SETTINGS menu while using NVENCC was not
working correctly.
- Added the ability to convert BD/DVD
subtitles to SRT in NVENCCRE. Note that it
requires that the program has access to the
same subfolders as BD-RB.
- Updated MKVEXTRACT.EXE to v7.1.0. The
previous version used had some issues with
AAC audio that was created with NVENCC. Can't
find any docs for MKVTOOLNIX that explains
why -- but the newer version fixed the issue.
- Other minor corrections and cosmetic fixes.

Thank you Sir!

doobre
9th July 2023, 02:07
Hi all
Can someone confirm whether it is possible to to encode a UHD 4K disc to a BD25 through the ALTERNATE MOVIE-ONLY setting within BD-RB.. version 0.61.28

AND IF SO based on my details below -
1. tell me where am I going wrong.?!
2. please point me in the right direction
cheers CD

I think I am following the current suggested process but ended up with an .mkv file of only 2.56gb and the colours/tones are all washed out.!

here is the log file
-----------------------------------------------
[07/09/23] BD Rebuilder v0.61.28
[01:48:39] Source: 00001_00000
- Input BD size: 82.39 GB
- Approximate total content: [02:49:04.217]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV Container, 1920x1080, 640Kbs DD5.1
- Quality: High Quality (Default)
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=1 HD=0 Kbs=640
[01:48:39] PHASE ONE, Encoding
- [01:48:39] Processing: VID_00000 (1 of 1)
- [01:48:39] Extracting A/V streams [VID_00000]
- [02:07:20] Reencoding video [VID_00000]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 243,218 frames
- [02:07:20] Reencoding: VID_00000, Pass 1 of 1
- [08:13:28] Video Encode complete
- [08:13:28] Processing audio tracks
- Track 4354 (eng): Keeping original audio
[08:13:33]PHASE ONE complete
[08:13:33]PHASE TWO - Rebuild Started
- [08:13:33] Building ALTERNATE OUTPUT Structure
[08:15:27] - Encode and Rebuild complete
- WORKFILES folder removed.
[08:15:28] JOB: 00001 finished.
--------------------------------------------------------
here is the BDREBUILDER.ini settings
---------------------------------------------------------
[Options]
VERSION=0.61.0.28
ALTERNATE_BLURAY=1
ENCODER=0
FORCE_NOENCODE=0
MODE=3
ENCODE_QUALITY=0
ONEPASS_ENCODING=2
AUTO_QUALITY=0
TARGET_SIZE=23500
PRIORITY_CLASS=2
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=eng;
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=0
DEINTERLACE=1
SD_TO_1080=0
IGNORE_3D=0
CONVERT_WIDE=0
DTS_REENCODE=1
AC3_REENCODE=0
AC3_640=1
AC3_192=0
KEEP_HD_AUDIO=0
AUDIO_DRC=0
DECODER=0
AVCHD=1
REMOVE_WORKFILES=1
REMOVE_OUTPUT=1
USE_FILTERS=0
BDMV_CERT_ONLY=1
IVTC_PULLDOWN=1
ASSUME_DVD_PAL=0
FRIMSOURCE=0
COMPLETION_BEEP=1
OUTPUT_SBS=0
NEROAAC=0
SUPTITLE=0
PGSTOSRT=0
AUDIO_TRACK_LIMIT=0
SUBTITLE_TRACK_LIMIT=0
CUSTOM_TARGET_SIZE=50000
NVENC_CAPABLE=1
MENU_BACKGROUND=D:\BD_Rebuilder\misc\menuback.jpg
MENU_AUDIO=D:\BD_Rebuilder\tools\blankclip\blank.ac3
IMPORT_THRESHOLD=15
QUICK_PLAY_THRESHOLD=10
MENU_AUTO_BACKGROUND=1
MENU_AUTO_DVDAUDIO=1
MENU_PLAY_SEQUENTIAL=0
MENU_START_WITH_MENU=1
IMPORT_LIMIT_LANG=1
IMPORT_KEEP_PLAYALL=0
IMPORT_PREPARE_MKV=0
AUTO_BURN=2
MOVIEONLY_TYPE=10
ALTCRF=23
ALT_TARGET=1024
ALT_CRF_TARGET=1024
ALTMETHOD=0
ALTAUTOCROP=0
[Paths]
SOURCE_PATH=H:\RENDERS\BD-RB RENDER\IMPORTS\00001\
WORKING_PATH=H:\RENDERS\BD-RB RENDER\
----------------------------------------------------
here is the LASTCMD.txt report
--------------------------------------------------
"E:\BD_Rebuilder\tools\x264.exe" "H:\RENDERS\BD-RB RENDER\WORKFILES\VID_00000.AVS" --preset medium --bluray-compat --b-pyramid none --weightp 1 --slow-firstpass --qpmin=0 --crf 23 --level 4.1 --qpfile "H:\RENDERS\BD-RB RENDER\WORKFILES\VID_00000.CHP" --aud --nal-hrd vbr --pic-struct --vbv-bufsize 15000 --keyint 48 --min-keyint 1 --ipratio 1.1 --pbratio 1.1 --vbv-maxrate 15000 --threads auto --slices 4 --thread-input --stats "H:\RENDERS\BD-RB RENDER\WORKFILES\VID_00000.AVS.264.stats" --output "H:\RENDERS\BD-RB RENDER\WORKFILES\VID_00000.AVS.264"
-----------------------------------------------
here is the ALTERNATE MOVIE-ONLY settings
------------------------------------------------------
attachment

jdobbs
9th July 2023, 03:00
Don't select ALTERNATE OUTPUT. That is for sending to an MKV, MP4, etc. Select either FULL BACKUP or MOVIE-ONLY BACKUP (and uncheck ALTERNATE OUTPUT). You should also make sure you have OUTPUT set to BD-25.

doobre
9th July 2023, 03:14
Thank you for the prompt reply, much appreciated.. I'll give it a go tonight.. cheers CD

doobre
9th July 2023, 08:27
Hi there again... I must be doing something weird..! or perhaps didn't explain correctly...

The file output was the right size for a BD-25 and the HDR tones/colours are correct... but it is still 2160p HEVC/265.

I was expecting 1080p and AVC/264.

here is the BD-REBUILDER log
-----------------------------------
[07/09/23] BD Rebuilder v0.61.28
[15:19:05] Source: INTERSTELLAR_T00_00000
- Input BD size: 70.67 GB
- Approximate total content: [02:49:04.217]
- Target BD size: 22.95 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Quality: Highest (Very Slow), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=1 HD=0 Kbs=640
[15:19:07] PHASE ONE, Encoding
- [15:19:07] Processing: VID_00000 (1 of 1)
- [15:19:07] Extracting A/V streams [VID_00000]
- [15:36:07] Reencoding video [VID_00000]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 243,218 frames
- Bitrate: 17,284 Kbs
- [15:36:08] Reencoding: VID_00000, Pass 1 of 1
- [16:49:01] Video Encode complete
- [16:49:01] Processing audio tracks
- Track 4352 (eng): Reencoding audio to AC3...
[16:52:47]PHASE ONE complete
[16:52:47]PHASE TWO - Rebuild Started
- [16:52:47] Rebuilding BD file Structure
[16:57:45] - Encode and Rebuild complete
[16:57:45] Writing BD structure to ISO file
- ImgBurn completed successfully
- INTERSTELLAR_T00 folder removed.
- WORKFILES folder removed.
[17:05:57] JOB: INTERSTELLAR_T00 finished.
-------------------------------------------------
here is the LASTCMD.txt
--------------------------------------------------
"E:\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --fps 23.976 -i "D:\EXPORTS\MakeMKV Export\Interstellar 4K rip\Interstellar_t00.mkv" --codec hevc --preset quality --profile main10 --output-depth 10 --repeat-headers --chromaloc 2 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --master-display G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50) --max-cll 1242,436 --qp-min 0 --vbr 17284 --aq --aq-temporal --keyfile "H:\RENDERS\BD-RB RENDER\WORKFILES\VID_00000.CHP" --sar 1:1 --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 -o "H:\RENDERS\BD-RB RENDER\WORKFILES\VID_00000.AVS.hevc"
-----------------------------------------------

MrVideo
9th July 2023, 13:44
The file output was the right size for a BD-25 and the HDR tones/colours are correct... but it is still 2160p HEVC/265.

I was expecting 1080p and AVC/264.

Not gonna happen. By specification, HDR is only available in 2160p/HEVC. Streamed MKV files can be 1080p/HDR, but can only be HEVC. That is because HDR is only available in HEVC. The H.264 spec does not support HDR.

What have you got against 2160p?

doobre
9th July 2023, 14:26
Hi there Mr.V.. thanks for the confirmation.
Nothing against HEVC, but my older player will not play it, only 264 flavour discs and files.. So wondering about the possibility of creating 4K in a 264 jacket, tis all..
cheers CD

bjones
9th July 2023, 19:07
Ahh... that makes a difference. NVENCC doesn't actually have the ability to do the job and keep the video intact (it has to encode the video). So when you select "Keep Intact" for the video, the job is, in fact, being done by FFMPEG. I'll check the code and make sure FFMPEG is correctly handling the SRTs that are being created. I probably didn't test that scenario well enough.

I'll take a look at it and let you know what I find.

I'm sure you want to figure out the weird subtitles/chapters mashup on that probably 1 off use case.

Can you consider an Alternate Movie-only option for the alternate.txt file that does no video encode and just a straight video intact (like the intact audio one) or is there a trick with existing options or a combination of them I could use to accomplish that that I'm missing? If that was possible then the existing BDRB setup checkbox for converting subtitles via SubtitleEdit would accomplish the PGS to SRT conversion like it does beautifully on all the other alternate encode options which is my end goal.

What I started off trying was the Movie-only option but the subtitles don't convert in that mode and I'm guessing the reason why is then the resultant BD structure wouldn't be Blu-ray compliant anymore with SRT instead of PGS subtitles?

Also the intact audio option that's limited to .mkv's could probably have the restriction lifted since .mp4's no longer have those audio problems I've found.

PM if interested in the 'why', I'm stumbled across something pretty interesting but I don't want to load up the thread

MrVideo
10th July 2023, 01:46
Hi there Mr.V.. thanks for the confirmation.
Nothing against HEVC, but my older player will not play it, only 264 flavour discs and files.. So wondering about the possibility of creating 4K in a 264 jacket, tis all..
While I hate to say this, but get a new player. I suspect that your player won't even play MKV/MP4 files with 2160p/H264. You can use the NVENCCRE program to recode the 2160p/HEVC to 1080p/H264, you will not have HDR. Frankly I do not know if BDRB can be configured to do a disc backup and recode the 2160p/HEVC to 1080p/H.264.

If you have a display that can do 2160p/HEVC/HDR, then you really need to get a new player.

musiclover
10th July 2023, 15:43
Thank you for the new function to keep the original video intact while converting the audio in NVENCCRE v0.10.12. But there is a bug where the internal subtitles are not kept.

NVLASTCMD.TXT
"C:\BD Rebuilder\BD_Rebuilder\tools\ffmpeg.exe" -i "E:\Grantchester\grantchester.s08e06.1080p.pbs.web-dl.aac.2.0.h.264-ntb.mkv" -y -map 0:v:0 -c:v copy -map 0:a:0 -c:a:0 ac3 -b:a:0 224k "D:\WORK\grantchester.s08e06.1080p.pbs.web-dl.ac3.h.264-ntb.mkv"

NVREENCODE.LOG
----------------------
[07.10.23] NVENCC Reencoder v0.10.12
----------------------
[16.27.43]Start Job [1 of 6]
- Reencoding "grantchester.s08e01.1080p.pbs.web-dl.aac2.0.h.264-ntb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[16.28.14]Job Completed [1 of 6]
[16.28.14]Start Job [2 of 6]
- Reencoding "grantchester.s08e02.1080p.pbs.web-dl.aac2.0.h.264-ntb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[16.28.45]Job Completed [2 of 6]
[16.28.45]Start Job [3 of 6]
- Reencoding "grantchester.s08e03.1080p.pbs.web-dl.aac2.0.h.264-ntb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[16.29.36]Job Completed [3 of 6]
[16.29.37]Start Job [4 of 6]
- Reencoding "grantchester.s08e04.1080p.pbs.web-dl.aac2.0.h.264-ntb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[16.30.27]Job Completed [4 of 6]
[16.30.27]Start Job [5 of 6]
- Reencoding "grantchester.s08e05.1080p.pbs.web-dl.aac2.0.h.264-ntb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[16.31.06]Job Completed [5 of 6]
[16.31.06]Start Job [6 of 6]
- Reencoding "grantchester.s08e06.1080p.pbs.web-dl.aac2.0.h.264-ntb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[16.31.43]Job Completed [6 of 6]

doobre
11th July 2023, 08:23
While I hate to say this, but get a new player. I suspect that your player won't even play MKV/MP4 files with 2160p/H264. You can use the NVENCCRE program to recode the 2160p/HEVC to 1080p/H264, you will not have HDR. Frankly I do not know if BDRB can be configured to do a disc backup and recode the 2160p/HEVC to 1080p/H.264.

If you have a display that can do 2160p/HEVC/HDR, then you really need to get a new player.

yep got another one for that, I'm just trying to make some movies backwards compatible, sort thing... cheers CD

jdobbs
12th July 2023, 02:56
@musiclover

Yeah. I think I need to do some serious work on the "keep video intact" option.

But, just in case:

1. Is "Keep Internal Subtitles" checked?
2. Under "Special Processing" do you have the subtitle language selected?

MrVideo
12th July 2023, 05:28
I'm just trying to make some movies backwards compatible
That begs the question: why?

musiclover
12th July 2023, 09:02
@musiclover

Yeah. I think I need to do some serious work on the "keep video intact" option.

But, just in case:

1. Is "Keep Internal Subtitles" checked?
2. Under "Special Processing" do you have the subtitle language selected?

The answer to both questions is YES

bjones
12th July 2023, 18:59
@musiclover

Yeah. I think I need to do some serious work on the "keep video intact" option.

But, just in case:

1. Is "Keep Internal Subtitles" checked?
2. Under "Special Processing" do you have the subtitle language selected?

Yes on mine as well in special processing section, except it had the convert DVD/BD subtitle to SRT checked which was the only processing I was shooting for

jdobbs
13th July 2023, 00:01
The answer to both questions is YESYes on mine as well in special processing section, except it had the convert DVD/BD subtitle to SRT checked which was the only processing I was shooting forI'll look at it and fix it as soon as I get a chance.

jdobbs
14th July 2023, 18:56
@musiclover

I just tried several sources in which I am keeping video intact and reencoding audio to AC3 (like your post) using NVENCCRE. In every case, as long as the language has been selected, it is keeping the internal subtitle. Can you tell me what kind of subtitle your source files are using, what language they are, and what languages you have selected?

jdobbs
14th July 2023, 20:22
@bjones

Well... looking at the code it looks like I never got around to adding the ffmpeg command line options that actually include the converted (SRT) subtitles that have been created from the graphical subs when using "Keep Original Video" is selected!! I guess that's what happens when you start something and then not go back to it for a while.

musiclover
15th July 2023, 09:25
@musiclover

I just tried several sources in which I am keeping video intact and reencoding audio to AC3 (like your post) using NVENCCRE. In every case, as long as the language has been selected, it is keeping the internal subtitle. Can you tell me what kind of subtitle your source files are using, what language they are, and what languages you have selected?

The subtitles are .srt files, the language is English and I have all languages selected.

Mediainfo source file:
General
Unique ID : 260204332385627246476092889188414911582 (0xC3C1881302AEC33EA5821E05EDA1F45E)
Complete name : E:\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv
Format : Matroska
Format version : Version 4
File size : 2.45 GiB
Duration : 52 min 45 s
Overall bit rate : 6 654 kb/s
Frame rate : 29.970 FPS
Encoded date : 2023-07-10 05:53:31 UTC
Writing application : mkvmerge v78.0 ('Running') 64-bit
Writing library : libebml v1.4.4 + libmatroska v1.7.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 52 min 45 s
Bit rate mode : Constant
Bit rate : 6 500 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.105
Stream size : 2.39 GiB (98%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 52 min 45 s
Bit rate : 157 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 59.4 MiB (2%)
Language : English
Default : Yes
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 52 min 38 s
Bit rate : 67 b/s
Frame rate : 0.308 FPS
Count of elements : 973
Stream size : 26.0 KiB (0%)
Title : SDH
Language : English
Default : No
Forced : No

mediainfo converted file:
General
Unique ID : 94091182688097716403814384801232346267 (0x46C94D78C743808D77741B959EDA5C9B)
Complete name : D:\WORK\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv
Format : Matroska
Format version : Version 4
File size : 2.48 GiB
Duration : 52 min 45 s
Overall bit rate mode : Constant
Overall bit rate : 6 721 kb/s
Frame rate : 29.970 FPS
Writing application : Lavf57.83.100
Writing library : Lavf57.83.100
ErrorDetectionType : Per level 1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 52 min 45 s
Bit rate mode : Constant
Bit rate : 6 500 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 29.970 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.105
Stream size : 2.39 GiB (97%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 52 min 45 s
Bit rate mode : Constant
Bit rate : 224 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 32 bits
Compression mode : Lossy
Stream size : 59.4 MiB (2%)
Writing library : Lavc57.107.100 ac3
Language : English
Service kind : Complete Main
Default : Yes
Forced : No

jdobbs
16th July 2023, 02:20
For those who are having subtitle issues with NVENCCRE when using "Keep Original Video (intact)", please try this version (https://jammernhilftnichts.de/jdobbs/NVENCCRE_v1014.zip). You can replace the one included in the BD-RB folder. Give it some tests and let me know if it works ok for you now.

Please note that there are three options under the SUBTITLES menu item (1. "Keep Internal Subtitles", 2. "Convert BD/DVD Subtitles to SRT", and 3. "Add external subtitle"). Here is how they affect each other:

If 1 is selected, internal subtitles will be kept.
If 2 is selected, any graphical subtitles (PGS/VOBSUB) will be converted to SRT
If 3 is selected, any SRT with the same name/folder as a source will be included.

If you only want to keep an SRT and not the original graphical subtitles, deselect 1. Be careful, though, as any and all internal subtitles will be ignored (other than what is converted to SRT, assuming it is selected).

musiclover
16th July 2023, 08:17
For those who are having subtitle issues with NVENCCRE when using "Keep Original Video (intact)", please try this version (https://jammernhilftnichts.de/jdobbs/NVENCCRE_v1014.zip). You can replace the one included in the BD-RB folder. Give it some tests and let me know if it works ok for you now.

Please note that there are three options under the SUBTITLES menu item (1. "Keep Internal Subtitles", 2. "Convert BD/DVD Subtitles to SRT", and 3. "Add external subtitle"). Here is how they affect each other:

If 1 is selected, internal subtitles will be kept.
If 2 is selected, any graphical subtitles (PGS/VOBSUB) will be converted to SRT
If 3 is selected, any SRT with the same name/folder as a source will be included.

If you only want to keep an SRT and not the original graphical subtitles, deselect 1. Be careful, though, as any and all internal subtitles will be ignored (other than what is converted to SRT, assuming it is selected).

No luck with keeping the internal subtitles. The job ends in two seconds. No output file is being written in the Working/Output path. Only the log and the lastcmd are there.

NVREENCODE.LOG:
----------------------
[07.16.23] NVENCC Reencoder v0.10.14
----------------------
[10.15.28]Start Job [1 of 1]
- Reencoding "Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[10.15.30]Job Completed [1 of 1]

NVLASTCMD.TXT:
"C:\BD Rebuilder\BD_Rebuilder\tools\ffmpeg.exe" -i "E:\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv" -y -map 0:v:0 -c:v copy -map 0:a:0 -c:a:0 ac3 -b:a:0 224k -map 0:s:1 -c:s:0 copy "D:\WORK\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv"

dietachi
16th July 2023, 09:25
Hello,

I want to ask if there are any plans to implement QSVEncC for encoding.
I tested with the Intel Arc A750 and had some promising results.

MrVideo
16th July 2023, 14:04
I want to ask if there are any plans to implement QSVEncC for encoding.
I tested with the Intel Arc A750 and had some promising results.
IMHO, slim to none chance. Why? Because it would require the purchase of another computer system with the Intel graphics card. Pretty much everyone here uses the nVideo graphics card. Plus the number of people that would use said Intel card is extremely small. No ROI.

dietachi
16th July 2023, 16:04
IMHO, slim to none chance. Why? Because it would require the purchase of another computer system with the Intel graphics card. Pretty much everyone here uses the nVideo graphics card. Plus the number of people that would use said Intel card is extremely small. No ROI.



Hello,

Thanks for your perspective. I appreciate the thought behind your analysis but I think there's a misunderstanding here.

While I understand your point about needing a new system with an Intel graphics card, I'd like to clarify that the QSVEncC support extends beyond the specific Intel Arc A750 card. It is indeed applicable to various Intel integrated GPUs (iGPUs) that come inbuilt in many standard PCs, especially those with Intel CPUs.

These Intel iGPUs are ubiquitous and certainly not limited to a small number of people as you suggest. Implementing QSVEncC, therefore, does not necessarily mean a need for users to purchase a new computer system. Rather, it could potentially unlock additional encoding efficiency for a substantial number of existing Intel CPU users.

As for the nVideo graphics card you've mentioned, it's notable to mention that not everyone is limited to this single choice, and having additional encoding options can only strengthen the tool's capabilities, increasing its appeal to a wider user base. The ROI might not be immediately obvious, but it's important to consider long-term usability and broad accessibility as well.

I hope this provides some clarity and prompts reconsideration of the idea. Thank you again for your input and discussion.

MrVideo
16th July 2023, 22:42
I'm sure there are plenty of Intel CPU users with nVidea cards. If an Intel CPU user doesn't have an Intel GPU, he supports software only encoding (H2.64 and H.265), which takes many hours longer than nVideo hardware support. For jdobbs to support software that supports the Intel GPU, it would mean another computer system containing said GPU. If I were charging for the software, then there might be incentive to support other encoders/hardware. But, jdobbs does not. So, where is the incentive to do so? His focus is on nVideo GPU decoding/encoding. Obviously I cannot speak for jdobbs. This is my take.

jdobbs
17th July 2023, 00:39
No luck with keeping the internal subtitles. The job ends in two seconds. No output file is being written in the Working/Output path. Only the log and the lastcmd are there.

NVREENCODE.LOG:
----------------------
[07.16.23] NVENCC Reencoder v0.10.14
----------------------
[10.15.28]Start Job [1 of 1]
- Reencoding "Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 29.97fps
-- Output: Keep Original Video (Intact)
[10.15.30]Job Completed [1 of 1]

NVLASTCMD.TXT:
"C:\BD Rebuilder\BD_Rebuilder\tools\ffmpeg.exe" -i "E:\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv" -y -map 0:v:0 -c:v copy -map 0:a:0 -c:a:0 ac3 -b:a:0 224k -map 0:s:1 -c:s:0 copy "D:\WORK\Grantchester.S08E06.1080p.PBS.WEB-DL.AAC2.0.H.264-NTb.mkv"Have you tried running that command line from a COMMAND window to see what error you get? It looks ok to me. Can you tell me how many subtitles there are in the original file? It looks like it is attempting to copy the second one. If it only has one... that may be the issue.

jdobbs
17th July 2023, 00:41
Hello,

I want to ask if there are any plans to implement QSVEncC for encoding.
I tested with the Intel Arc A750 and had some promising results. Sorry. I won't say definitely "no", but not likely.

musiclover
17th July 2023, 08:34
Have you tried running that command line from a COMMAND window to see what error you get? It looks ok to me. Can you tell me how many subtitles there are in the original file? It looks like it is attempting to copy the second one. If it only has one... that may be the issue.

There is one subtitle in the file. But on a source file with seven subtitles I get the same result. The job finishes also in 2 seconds without writing the result file.

The error from the command line is this:

Stream map '0:s:1' matches no streams.
To ignore this, add a trailing '?' to the map.

But... could it be the '0:s:1' needs to be '0:s:0' ?

jdobbs
17th July 2023, 16:55
There is one subtitle in the file. But on a source file with seven subtitles I get the same result. The job finishes also in 2 seconds without writing the result file.

The error from the command line is this:

Stream map '0:s:1' matches no streams.
To ignore this, add a trailing '?' to the map.

But... could it be the '0:s:1' needs to be '0:s:0' ?Yes. That's why I asked. If there is only one subtitle it definitely needs to be "-map 0:s:0". I'll check it out and fix it. I wouldn't guess it would be too hard to find that issue.

Lathe
18th July 2023, 05:27
Thanks for all the help with my past efforts for the 'GUILTY CONSCIENCE' movie, it turned out better than I had expected.

Now... I have a REAL challenge if anyone has any 'easily implemented' suggestions :)

I have really old AVI files of the 1987 series 'Werewolf' There are no official sources with the exception of the recent French release which uses very similar SD sources since the original negatives are not available. I am also checking with some online sources where they offer DVD sets. The one at Rarefilmsondvd is promising because they offer an 8 DVD set, which would hopefully suggest fairly high quality, perhaps 1st generation recordings. Other sites offer 3 and 4 DVD sets. So, I'm waiting to hear back from them.

In the meantime though, I do have all the episodes in an ancient AVI format. I mean, considering, they aren't super horrible. But I was wanting to ask if there might be some suggestions as to some 'SIMPLE' scripts I might try to improve it. I don't really have to upscale it, I can leave it in it's original resolution and just let the player enlarge it.

Here is a 5 minute snippet of the first 5 minutes of the Pilot. If anyone has any SIMPLE suggestions (in other words AVI script that I can actually get to run :D) in order to help me to improve the video 'quality', I would be most thankful!

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

Cheers!

Jaime.

jdobbs
18th July 2023, 23:33
I've made changes to fix further issues with inclusion of subtitles when using "Keep Original Video (Intact)" mode. You can download it from this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE_v1015.zip).

Lathe
19th July 2023, 07:37
Thanks for all the help with my past efforts for the 'GUILTY CONSCIENCE' movie, it turned out better than I had expected.

Now... I have a REAL challenge if anyone has any 'easily implemented' suggestions :)

I have really old AVI files of the 1987 series 'Werewolf' There are no official sources with the exception of the recent French release which uses very similar SD sources since the original negatives are not available. I am also checking with some online sources where they offer DVD sets. The one at Rarefilmsondvd is promising because they offer an 8 DVD set, which would hopefully suggest fairly high quality, perhaps 1st generation recordings. Other sites offer 3 and 4 DVD sets. So, I'm waiting to hear back from them.

In the meantime though, I do have all the episodes in an ancient AVI format. I mean, considering, they aren't super horrible. But I was wanting to ask if there might be some suggestions as to some 'SIMPLE' scripts I might try to improve it. I don't really have to upscale it, I can leave it in it's original resolution and just let the player enlarge it.

Here is a 5 minute snippet of the first 5 minutes of the Pilot. If anyone has any SIMPLE suggestions (in other words AVI script that I can actually get to run :D) in order to help me to improve the video 'quality', I would be most thankful!

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

Cheers!

Jaime.

Actually, forget that :) I just downloaded the pilot and episodes from YouTube and I think that gives me a LOT more to work with, at least starting with it really scrubbed clean. I'll see if I can insert a snippet from that here. It's not bad...

https://lh3.googleusercontent.com/pw/AIL4fc_VDv9rI3y29BEfdR9RNcml11LWwxREMjNKGmA_fckqWh3nFPxO-jIHuKLuJYvBDDog7JXXJd9d8fpuw-tg4yZtemJ1W3rQRBfU3YO4dj5R98-0dqH3oForpt-ghkCMUnGlgJ9DjbHKa3n5LUoqz5EOuw=w936-h552-s-no?authuser=0

MrVideo
19th July 2023, 10:42
Don't bother uploading a snippet. Anyone here can download it from YouTube, which I did. Actually it isn't bad, not bad at all. Except for one major thing: it is 25fps. Originally it was 480i29.97. Don't attempt to restore it to 23.976. The interlacing is gone and frames were melded together to get to 25fps. Just watch it as is.

musiclover
19th July 2023, 15:01
I've made changes to fix further issues with inclusion of subtitles when using "Keep Original Video (Intact)" mode. You can download it from this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE_v1015.zip).

Thank you for the update. My issue has now been solved.

jdobbs
19th July 2023, 18:56
Thank you for the update. My issue has now been solved.Good to know. Thanks for testing it.

bjones
20th July 2023, 03:39
@bjones

Well... looking at the code it looks like I never got around to adding the ffmpeg command line options that actually include the converted (SRT) subtitles that have been created from the graphical subs when using "Keep Original Video" is selected!! I guess that's what happens when you start something and then not go back to it for a while.

Thanks for looking into it and I'm old enough to not even remember how many projects I started on and got distracted in the middle of.

bjones
20th July 2023, 17:56
I've made changes to fix further issues with inclusion of subtitles when using "Keep Original Video (Intact)" mode. You can download it from this link (https://jammernhilftnichts.de/jdobbs/NVENCCRE_v1015.zip).

Gave the latest version a try at just converting the subtitles from PGS to SRT intact audio and video. Source is a mkv with 2 PGS subtitles over to a mp4 hopefully with just the subtitles converted. Still end up with a combined subtitle double chapter menu entry at the end. mediainfo's attached of the original and the resultant mp4. Another odd behavior is if the container isn't changed and left at mkv to mkv the PGS subtitles just get removed but the menu comes over cleanly along with the video and audio ?

jdobbs
21st July 2023, 16:38
Gave the latest version a try at just converting the subtitles from PGS to SRT intact audio and video. Source is a mkv with 2 PGS subtitles over to a mp4 hopefully with just the subtitles converted. Still end up with a combined subtitle double chapter menu entry at the end. mediainfo's attached of the original and the resultant mp4. Another odd behavior is if the container isn't changed and left at mkv to mkv the PGS subtitles just get removed but the menu comes over cleanly along with the video and audio ?I'll be honest -- I have no idea how the issue you are experiencing could even happen. I was unable to repeat it in my testing. Looking at your log, it looks like the jobs are completing in an extremely short period of time.

I've sent a PM to you. But
could you post the contents of NVLASTCMD.TXT right after the job has completed?

Also, are you simply letting NVENCCRE run, or are you adding any steps or doing anything externally to the files?

bjones
21st July 2023, 23:31
I'll be honest -- I have no idea how the issue you are experiencing could even happen. I was unable to repeat it in my testing. Looking at your log, it looks like the jobs are completing in an extremely short period of time.

I've sent a PM to you. But
could you post the contents of NVLASTCMD.TXT right after the job has completed?

Also, are you simply letting NVENCCRE run, or are you adding any steps or doing anything externally to the files?

Here's the NVLAST from the mkv to mkv that ends up with no subs at all afterwards. Doing nothing externally, just run the mkv through NVENCCRE with keep audio and video intact convert subs checked hoping for the subs to get converted from the embedded PGS ones to SRT ones.

jdobbs
22nd July 2023, 02:16
Here's the NVLAST from the mkv to mkv that ends up with no subs at all afterwards. Doing nothing externally, just run the mkv through NVENCCRE with keep audio and video intact convert subs checked hoping for the subs to get converted from the embedded PGS ones to SRT ones.Are you sure you're using the latest version I posted? It would have to replace the one in the BD-RB folder. The NVLASTCMD file doesn't contain any command line options for subtitles.

doobre
25th July 2023, 06:03
Hi there, seems that BD-RB doesn't like one specific BD, and TsMuxer4K crashes everytime I try to process it.
Attached is the mediainfo report for the file as well as the .INF file created by BD-RB, that may be a help!?
The mkv was first ripped from the original disc by makemkv, I have repeated that process again, just in case, I have tried renaming the .mkv to something logical, I have overwriten the tsmuxer4k.exe in the v0.61.029 folder with that from the v0.61.028 folder, no improvement.
Ideas anyone..!?
here's hoping...
cheers CD

UPDATE..
I got makemkv to make a full backup of the original disc, and this time BD-RB completed its process from the BDMV folder structure.. yeehar

bjones
25th July 2023, 17:35
Are you sure you're using the latest version I posted? It would have to replace the one in the BD-RB folder. The NVLASTCMD file doesn't contain any command line options for subtitles.

Yes, it's the 10.15 version. That was the mkv to mkv I did last and the result is no subtitles at all, the PGS ones in the original mkv file are stripped out

MrVideo
9th August 2023, 12:57
I'm importing MKV files to make a BD. All went well. It will be a two disc run. The first disc will be files 1 -> 7 and the second disc will be files 8 -. 14. I import all 14 files and then deselect the bottom 7. Some changes were done to the text as well. I need to go back and move the location of the text on the menu. But, when I import the 14 files, it is as if I was starting from scratch. None of the changes that I did for the first run are there. So, I looked at the content of the "titles.inf" file and all of the work I did is there.

What would cause the titles file to be ignored? Is there a setting somewhere?

Oh, and it is version x.29.

Dudeman007
10th August 2023, 00:01
I'm trying to convert a Full SBS 3D file (ie a 3840x1080 2D file) to 3D MVC, but it's not working. I get the error

- [01:44:06] Rebuilding BD-3D file Structure
- TSMUXER ERR: 0xFFFFFFFE
- Failed in attempt to multiplex: MUX_MOVIE_ONLY.meta
- Can't open file: A:\VIDEO\HOBBIT\TEST\WORKFILES\VID_00000.AVS.hevc

VID_00000.AVS.hevc does not exist, but VID_00000.AVS.h264 does exist.

BDR v0.61.28
I came across the same issue, and I found out why it happens, which appears to be a bug of sorts.

If your input file was encoded with x265 (HEVC), then the muxing script is looking for an HEVC output file, even though the output is only h264.

Considering that 3D Blu-rays can only be H264, the video file output will always be h264, regardless of input, and BD Rebuilder should be fixed to account for this.

If you want to fix this for now, you can re-encode your original SBS video using h264, then try again.

However, I can also tell you you will not get a proper MVC MKV file out of it, which I believe is what you're looking for.

BD Rebuilder will only build an ISO structure and encode the video into m2ts format for use with a BluRay player.

Another issue is the lack of SSIF support. Which I will discuss in the next post

Dudeman007
10th August 2023, 00:34
I've been trying to do what a previous user attempted, convert a full SBS 3D movie to a MVC MKV.

Someone posted on another Doom 9 forum that using BD Rebuilder should be able to do this, so I've been working on it now for a few days. Unfortunately, BD Rebuilder, has some limitations as to what it can and can't do.

What it can do: It can indeed convert a side by side (full or half) video file into a 3D Blu-Ray disc, which does play in a standalone Blu-Ray player.

What it Can't do: The resulting ISO file or folder structure, while it can play in Blu-Ray player when burned to a disk, the ISO itself is not playable in 3D with any software I know of, nor is it recognized as a 3D ISO or (a 3D BluRay disk) by any player or ripper. This appears to be due to the lack of the SSIF folder.

I tried playing it with KODI, MPC-HC, vLAN, Power DVD 19, Pot Player, Stereoscopic player, etc. The same Sony Blu-Ray player that can play the burned disk, plays the ISO in 2D only. The LG 3D TV built in media player can't play it either.

Additionally, Blu-Ray rippers or editors like DVDFab, BluDisc Studio or Xilisoft BluRay Creator do not recognize the disc as 3D discs.

I understand that a wile ago, there might have been some options to output the SSIF layout, but that was removed "because it's not needed" ???. I tried a few optional parameters in the CONFIG.INI, but none yielded the correct layout.

What actually worked: I found that I can use tsMuxeR to create the correct format. So I let BD Rebuilder create the ISO, but I don't use the resulting ISO file, I use the files from the WORKFILES directory, specifically the VID_xxx.264, the VID_xxx.mvc and the AUD_000.AC3 or DTS audio file, then mux them with tsMuxeR.

The resulting ISO (or Blu_ray folder) is properly formatted as 3D compliant ISO with SSIF folder. This ISO can then be played using any software player that supports 3D playback.

For those that want to get a MVC MKV, you can use any tool that can rip a 3D BluRay to MVC, because the ISO will be correctly recognized. I use DVDFab for this.

I wish I didn't have to go through all this to get a properly muxed 3D ISO. Can the option for SSIF layout be added back into BD Rebuilder? Also an option to output a muxed MVC MKV that's playable by itself and not dependent on a other files/isos, etc

jdobbs
11th August 2023, 21:32
The problem is in the players... not the layout or BD-RB. They just seem to be to lazy to support the format, even though it is a part of the standard. This has been discussed previously.

MrVideo
12th August 2023, 01:28
Dumb question... why not support using SSIF, especially if you had already done the work? Make it an option. I have some full SBS 3D trailers. I'll have to try and create a disc and see if the Sony X800-M2 player and the BenQ HT4550i will display as 3D.

Any thoughts on the titles.inf issue?

Dudeman007
12th August 2023, 02:08
The problem is in the players... not the layout or BD-RB. They just seem to be to lazy to support the format, even though it is a part of the standard. This has been discussed previously.
I understand what you are saying, but the reality is that I can't find a single software based player that can play this layout in 3D.

So while I do have an actual 3D Blu-Ray player, this also means that I would have a to physically make a BD disk for each 3D video I want to convert. Not exactly an realistic proposition.

I'm just saying, it shouldn't be that hard to re-create the SSIF structure and put the muxed video in there.

I for one don't do this very often, so it's no big deal, but if you want to be able to support more users at large (3D users), consider this small change. Or maybe add an option of outputting the video to a MVC MKV file

MrVideo
12th August 2023, 02:42
I'm just saying, it shouldn't be that hard to re-create the SSIF structure and put the muxed video in there.
Technically, AIUI the SSIF is a pointer file structure.

Dudeman007
12th August 2023, 05:30
Technically, AIUI the SSIF is a pointer file structure.
I admit, I have no idea how that stuff is really stored. I know that if I copy the contents of a 3D Blu-Ray to the hard drive I end up with a movie folder that's twice the size of the original disc, and I didn't think the ISO stores the files in compressed format, but the resulting copy, on the hard disk, has a multiplexed AVC/MVC file in the SSIF folder, which is the same size as the AVC & MVC streams in the main folder.

MrVideo
12th August 2023, 10:18
I admit, I have no idea how that stuff is really stored. I know that if I copy the contents of a 3D Blu-Ray to the hard drive I end up with a movie folder that's twice the size of the original disc, and I didn't think the ISO stores the files in compressed format, but the resulting copy, on the hard disk, has a multiplexed AVC/MVC file in the SSIF folder, which is the same size as the AVC & MVC streams in the main folder.
The copying causes the SSIF file to be built as you see it. The file has to be handled a particular way for it to be copied. From what I've read, only DVDFab does it. I'm sure there is other software out there that can make an ISO copy, since none of the files are actually copied.

ocean
13th August 2023, 00:31
Hi, yes Dvd Fab virtual drive, using the mini iso function, starting from a stereoscopic playlist, recreate the SSIF folder.

jdobbs
14th August 2023, 20:19
Dumb question... why not support using SSIF, especially if you had already done the work? Make it an option. I have some full SBS 3D trailers. I'll have to try and create a disc and see if the Sony X800-M2 player and the BenQ HT4550i will display as 3D.

Any thoughts on the titles.inf issue?It's not an easy thing to do. The sectors on the physical disc are referenced from separate sources.

MrVideo
15th August 2023, 00:20
It's not an easy thing to do.
I must have misunderstood previous postings. I thought you already had it working, but later removed it.

Dudeman007
16th August 2023, 08:01
It is my understanding that BD Rebuilder uses TSMuxer to mux and create the final ISO. I know that the latest version of TSMuxer can output a proper SSIF folder structure. So why doesn't BD RB use that functionality?

MrVideo
16th August 2023, 13:10
So why doesn't BD RB use that functionality?
Because it can't just be dropped in in place of what is currently being used. Things were changed in the program such that parts of BDRB become broken.

Sharc
17th August 2023, 10:48
I must have misunderstood previous postings. I thought you already had it working, but later removed it.
I guess you may have the changes of April 7th, 2014 in mind (from the CHANGES.TXT):

April 7th, 2014 - v0.47.04
- Implemented 3D Full Backup Mode. Note that
BD-RB converts 3D method so that the SSIF
folder is no longer required -- the method
is 100% compliant with the BD standard.
(v0.47.03)
- Due to the changes in the way 3D is handled,
BD-RB no longer outputs to ISO by default on
movie-only 3D encodes. It can be enabled by
using the OUTPUT_3D_ISO hidden option. Note:
This option only applies to movie-only 3D
encodes. (v0.47.03)
- Made in-mux (single M2TS) 3D multiplexing
mode the default on full-backup 3D. This
can be changed back with the hidden option
FORCE_INMUX_3D=0.
- Modified 3D movie-only mode so it also now
uses the in-mux structure for BD-3D output.

Otherwise just scan the CHANGES.TXT for 3D to trace all the changes and options.

MrVideo
17th August 2023, 22:44
I guess you may have the changes of April 7th, 2014 in mind (from the CHANGES.TXT):
- Implemented 3D Full Backup Mode. Note that
BD-RB converts 3D method so that the SSIF
folder is no longer required -- the method
is 100% compliant with the BD standard.
The wording makes it read as though SSIF output was part of BDRB, but was removed.

Even though it is supposed to be compliant, as pointed out above in a posting, a user can't find any software that will play said 3D without the SSIF file. Now that tsMuxer can do the SSIF work, all BDRB needs to do is use the latest verion.

Sharc
18th August 2023, 08:18
The wording makes it read as though SSIF output was part of BDRB, but was removed.

Even though it is supposed to be compliant, as pointed out above in a posting, a user can't find any software that will play said 3D without the SSIF file. Now that tsMuxer can do the SSIF work, all BDRB needs to do is use the latest verion.
Not sure if this may be part of the user's problem: An ISO has to be "mounted". It can't just be played. Windows supports "mounting" from Windows 8 onwards only AFAIK. With older Windows version the "mounting" had to be done with an extra dedicated software.
Long time since I dealt with 3D, but I never had a problem with playing in-muxed 3D file structures as far as I remember. Maybe I had to manually force the TV to play it in 3D.
Anyway, just a blast from the past ......

Added:
Out of curiosity I imported a 3D half-SBS file in BD-Rebuilder and converted it to 1920x1080 MVC using FRIM (x264 doesn't support MVC), output to ISO (in-muxed, no SSIF folder).
Mounting the ISO and playing the in-muxed .m2ts file plays as expected on PC in 2D using VLC, Vdub, mpv player, ffplay, and in 3D using StereoPlayer.

Added 2:
... and streaming that in-muxed .m2ts to my TV plays it perfectly and automatically in 3D (unless I force the TV to play it as 2D).

MrVideo
23rd August 2023, 04:40
I've been noticing a minor error with the standalone NVencoder. After adding letterbox bars, what is supposed to be 2160p, is listed by tsmuxer and my BD player as 2176p. It plays correctly, so there must be a piece of metadata that keeps it from being listed as 2160p?

cartman0208
23rd August 2023, 21:49
I've been noticing a minor error with the standalone NVencoder. After adding letterbox bars, what is supposed to be 2160p, is listed by tsmuxer and my BD player as 2176p. It plays correctly, so there must be a piece of metadata that keeps it from being listed as 2160p?

https://forums.developer.nvidia.com/t/nvenc-hevc-encoding-of-3840x2160-results-in-coded-size-of-3840x2176/60107

Does this help?

Dudeman007
25th August 2023, 22:48
Not sure if this may be part of the user's problem: An ISO has to be "mounted". It can't just be played. Windows supports "mounting" from Windows 8 onwards only AFAIK. With older Windows version the "mounting" had to be done with an extra dedicated software.
Long time since I dealt with 3D, but I never had a problem with playing in-muxed 3D file structures as far as I remember. Maybe I had to manually force the TV to play it in 3D.
Anyway, just a blast from the past ......

Added:
Out of curiosity I imported a 3D half-SBS file in BD-Rebuilder and converted it to 1920x1080 MVC using FRIM (x264 doesn't support MVC), output to ISO (in-muxed, no SSIF folder).
Mounting the ISO and playing the in-muxed .m2ts file plays as expected on PC in 2D using VLC, Vdub, mpv player, ffplay, and in 3D using StereoPlayer.

Added 2:
... and streaming that in-muxed .m2ts to my TV plays it perfectly and automatically in 3D (unless I force the TV to play it as 2D).

1. There are plenty of apps that can play an ISO without mounting it. PowerDVD can do that with menus and everything, It can also play 3D files inlcuding MVC, as well as standalone M2TS files, and 3D ISO (direct or mounted). But it can't play the in-muxed ISOs in 3D, just 2D. Trying to play the M2TS, will play it in 2D, playing the MVC part results in a message that PowerDVD cannot play this format.

2. VLC can also play isos directly, but doesn't support 3D playback other than basic side by side and manually setting the TV to 3D SBS mode.

3. KODI can play isos and with the proper plugins it can also support the BD menus. There are builds that support MVC playback and other forms of 3D beyond Over/under and side by side. While it can play 3D ISOs (w/SSIF folder) in 3D, it doesn't recognize the in-muxed versions as 3D, so it plays them in 2D. Playing the m2ts file by itself results in 2D playback only. Trying to play the MVC file does nothing.

4. PotPlayer can also play 3D ISO, but when you open it, it first mounts the ISO, then plays it. It can't however play the in-mux one. PLaying MVC MKV files works fine, but trying to play the m2TS works in 2D only.

5. Last but not least Stereoscopic Player. This one is by far the least favorite one. It is extremely counterintuitive, but it does play movies. It can't play isos, directly or mounted. It doesn't understand the BD movie structure, it expects a DVD. Playing the M2TS file took me forever to figure out how to output it into a format other than anaglyph, but once I selected the Intel Stereo driver from the Viewing Method, it would output a 3D image. The problem is that it's very hard to watch, headache inducing, a lot of "shimmering" when there is movement on the screen, during pans, and it flashes at every scene/camera angle change. It's truly impossible to watch. When there isn't a lot of movement on the screen the 3D effect is OK. BTW, it does this regardless of source, SBS, TAB, MVC, regardless.

If someone has some hints on how to set Stereoscopic player I'd appreciate it.

As for streaming, I tried using my Qnap NAS DLNA server to stream as well as VLC Server, and neither can stream 3D content. Sure, they can both stream SBS or OU/TAB just fine and I can use the TV's 3D function to watch in 3D, but neither can stream either MVC MKV or 3D BluRay ISO, folder or in-muxed M2TS in 3D.

EDIT:
BLu-Ray rippers:

1. DVDFab doesn't recognize an in-muxed Blu-Ray disc, or ISO as 3D. It really wants the SSIF folder.
2. BDtoAVCHD doesn't recognize it either as a 3D BluRay, only 2D. But it has no problem working with 3D ISOs or discs that have the SSIF folder.
3. MakeMKV, same thing, A 3D BLu-ray disc or iso is recognized is recognized as such as long as the SSIF folder and associated contents are present. In-Muxed are only seen as 2D.

So, while the in-muxed blu-ray may well be playable in a standalone player, or semi playable with Stereoscopic player, it isn't a format supported by the majority of players and rippers available today.

A note on hardware used for testing, conversion, playback:
* Intel NUC 6th Gen with KODI 20.0 (MVC build), PowerDVD 19, Stereoscopic player, VLC, PotPlayer, LG BP730 3D Blu-Ray Player, all connected to Vizio E3D320VX 3D TV
* Intel NUC 8th Gen with KODI 20.0 (MVC build), PowerDVD 19, Vero 4K+ with OSMC/KODI 20.0, Sony UBP-X800 3D UHD Player, all connected to LG OLED65E6P 3D TV
* Windows 10 PC, Xeon E5-2697 v4 + nVidia Quadro P4000 for conversions and encoding: MakeMKV, DVDFab, MKVToolnix, BDtoAVCHD, Blu-Disc Studio, Handbrake.

MrVideo
7th September 2023, 01:30
https://forums.developer.nvidia.com/t/nvenc-hevc-encoding-of-3840x2160-results-in-coded-size-of-3840x2176/60107

Does this help?
Sorry for the delay in responding. I was on vacation the past couple of weeks.

It does explain that it is a hardware issue. I'd have to double-check, but I think UHD discs resized to 25GB BD media don't get to be 2176, but 2160. Even if they are 2176, my Sony UHD player has no issue with them.

UPDATE: Yep, reducing UHD media to BD25 results in 2176.

jfcarbel
7th September 2023, 01:46
I noticed that when I run x265.exe -V from the tools directory that while it includes the latest version 3.5 of x265, this build shows no extended CPU support features like AVX2 etc.

Was there a reason to avoid that for cross compatibility of users here?

And if so has anyone replaced with specific builds without issues? I have a Ryzen 5950X and thinking a build that supports AVX2 should provide some performance improvements.

Lathe
11th September 2023, 02:22
I've come across this issue a few times before, but I don't know if there is any solution for it.

In backing up the full 'THE MOTHMAN PROPHECIES' Blu-ray (Australia) I want to put the film on a separate Blu-ray which I've already done using the 'Movie Only' setting, so that's fine. But, I then wanted to do what I've done many times, take my pants off and..., oh, uh, not that... I tried then getting the rest of the full Blu-ray with menus and extras which I could then burn to another Blu-ray. Normally what I do is simply blank the main film and then process the 'Full Blu-ray' so that I get all the menus and Xtras. But, in this case, and it has happened before but it's been a while, when I blank the main film, it also automatically blanks all the other Xtras but one small file. I don't seem to be able to blank JUST the film itself and keep all the Xtras. It's like the way the Blu-ray is constructed, the main film is kind of 'Locked' together with almost all the other Xtras.

What I'm TRYING right now is doing a full Blu-ray with the destination set for BD50. I'm thinking that MAYBE by running the full Blu-ray through BDRB perhaps it will restructure the Blu-ray and somehow 'Unlock' that connection, and then maybe using that resulting full Blu-ray, I might be able to de-select or blank just the main film.

I tried importing the Xtras I wanted which would have been fine, but BDRB would not allow me to preview any of the Xtras so that I could properly entitle which was which.

I'll see if this works for now, but otherwise, is there anyway to 'Unlock' the main film from blanking all the Xtras when it is blanked?

Thanks!

PS: Nope, that didn't work...

PPSS: Uh, I think that is because I ran out of space, Whoops! :) I'll try again...

PPPSSS: (I'm running out of PP's!) Nope, it retained the same locked structure. But, my last resort is for the Xtras I'm simply reencoding the whole Blu-ray at the fastest possible speed and just play that disc for the Xtras. It's almost done now, so I'm pretty sure that should work. BUT... it would be nice to be able just to blank the movie alone in a case like that.

musiclover
11th September 2023, 08:27
@Lathe
Just a longshot:
You could try setting REENCODE_MENUS=1 in your ini file

gonca
11th September 2023, 12:39
PPPSSS: (I'm running out of PP's!)

To be expected, considering you just dropped your pants.:rolleyes:

MrVideo
11th September 2023, 21:14
In backing up the full 'THE MOTHMAN PROPHECIES' Blu-ray (Australia) I want to put the film on a separate Blu-ray which I've already done using the 'Movie Only' setting, so that's fine. But, I then wanted to do what I've done many times, take my pants off and..., oh, uh, not that... I tried then getting the rest of the full Blu-ray with menus and extras which I could then burn to another Blu-ray.
I'm confused. Instead of trying to make two discs, just leave everything on the one? What are you gaining by separating the movie from the extras?

jellyhead1
12th September 2023, 15:16
when I blank the main film, it also automatically blanks all the other Xtras but one small file.

It sounds like BD Rebuilder has found a playlist which includes all titles you wish to keep and the main title. BD Rebuilder doesn't have a function to edit the playlists so I use a workaround but it takes some time. First you need to identify the playlist which includes all of these titles. I use Clown_BD BD Copier (NOT Clown_BD) to view the disc and the playlist titles. Once identified, you should be able to remove this playlist and process the disc with BD Rebuilder, blanking only the main title. This may break the navigation however whenever the playlist you removed is accessed, this would likely be a play all option. To fix this you could add the playlist which you've previously blanked, back into the playlist folder. This would cause a play all function to just loop back to the menu if accessed, but should allow the titles to play when accessed directly.

The other option which may not work, would be to copy the blanked main title MPLS and CLPI into the full disc folders replacing the originals and then process the disc with BD Rebuilder. This may cause an error if the main title is accessed from the disc, but all other titles should play.

Lathe
19th September 2023, 09:05
To be expected, considering you just dropped your pants.:rolleyes:


https://lh3.googleusercontent.com/pw/AIL4fc8VCjQrtRvK-wJoe26bfVQljPfBAdOobnj3EgdxYhvq_9vQYh_YYcmGnzJu57WNAt4I_YEC-6KWGPENXZ8wscikSk2GkylLXnC26l2oMm4kIJdKQMBh9fRYfvpSC0nqlq2XArcaGU0sEYOI63bu9MjInw=w280-h273-s-no?authuser=0

Lathe
19th September 2023, 09:08
It sounds like BD Rebuilder has found a playlist which includes all titles you wish to keep and the main title. BD Rebuilder doesn't have a function to edit the playlists so I use a workaround but it takes some time. First you need to identify the playlist which includes all of these titles. I use Clown_BD BD Copier (NOT Clown_BD) to view the disc and the playlist titles. Once identified, you should be able to remove this playlist and process the disc with BD Rebuilder, blanking only the main title. This may break the navigation however whenever the playlist you removed is accessed, this would likely be a play all option. To fix this you could add the playlist which you've previously blanked, back into the playlist folder. This would cause a play all function to just loop back to the menu if accessed, but should allow the titles to play when accessed directly.

The other option which may not work, would be to copy the blanked main title MPLS and CLPI into the full disc folders replacing the originals and then process the disc with BD Rebuilder. This may cause an error if the main title is accessed from the disc, but all other titles should play.

Hey, thanks Bro for the very detailed reply, I very much appreciate that! What I ended up doing, which I have done at times before is go ahead and just reencode the full disk at the fastest encode setting to BD25. It didn't take long and amazingly it still looks quite good!

Lathe
19th September 2023, 09:13
Oh, I know I've asked this before, but with my sieve of a memory I'm sorry but I forgot what to do...

If I have an HEVC MKV file encoded with HDR, I know that if I reencode it with x264 it will looked washed out. I THINK I have to use a certain colour code or timing, right, in order to restore the colours to what they should be after being converted? There is some setting in BDRB where you can do that right and then convert the HEVC HDR file to x264 and have it look right? I'm pretty sure I did this once before, but I'll be damned if I can remember how the hell I did it (I'll make a note of it this time :))

Thanks!

***EDIT

This just jumped into my increasingly senile mind... Isn't there something like BC209 or something like that? But I don't know where to put it (no rude comments please...)

***EDIT 2

Ah... my brain just farted again! I think it was actually Handbrake that I used before where I can set that particular setting. I had thought that I had used BDRB, but I think it was Handbrake.

gonca
19th September 2023, 14:33
You are talking about tonemapping.
You would have to find an avisynth filter that works with BD_RB
You would place it in the filters box

MrVideo
20th September 2023, 03:41
If I have an HEVC MKV file encoded with HDR, I know that if I reencode it with x264 it will looked washed out.
Why do you want to re-encode an HEVC (H265) file to AVC (H264)? First off, AVC doesn't handle HDR.

Lathe
20th September 2023, 05:31
You are talking about tonemapping.
You would have to find an avisynth filter that works with BD_RB
You would place it in the filters box

Yeah, after I asked about it I remembered I was pretty sure I ended up using Handbrake because it has a dropdown menu for colorspacing and you just choose the BT709 I think it is. I don't know if that is the best way to do it, but I think that is what I did before.

dietachi
3rd October 2023, 03:32
Hello,

I want to ask if there is an option for extras to be resized/downscaled.
I checked the hidden options file but couldn't locate such a function.

The reason for asking is that I have several disks. I like to create a backup of 50GB, but the extras take up an extreme amount of space.
For example, on the disc, the extras are 24GB. When reencoding the 4k, it's still around 8GB, which will be a minus of the main title with DolbyVision and several languages/audio streams.
If it is possible to resize the extras to 720p, I could get that all to around 1GB for the bonuses and still look okay.
I do not want to increase the "QUICK_CRF=" too high.

kpic
13th November 2023, 02:47
I believe I have a bug report. Using BDRB (Latest) I started originally in this thread; https://forum.doom9.org/showthread.php?t=185149

I have used 2 different PCs (both latest BDRB and one was a completely fresh install that never had BDRB on it) and 2 different titles and came across the same issue;

For some reason BDRB changes (for me anyway) HEVC SDR BT.2020 video files to BT.709 and of course the resulting playback is not too pleasing when looking at the color (washed out) - This was for the 96 minute movie, oddly the shorter trailers also originally in SDR BT.2020 were not changed to BT.709 instead they kept their BT.2020 status but the 'Transfer Characteristic' was changed to 'PQ' and thus 'HDR' so these look completely over-exposed and overly bright.

I can't be sure if there is a setting somewhere that needs to be made, if there is I suppose this isn't a bug but something people should know about.

I know SDR BT.2020 is an odd duck (though within spec) for the orignal UHD to be in but if anyone has a title that uses it and can replicate then I can be sure it's not just me.

kpic
13th November 2023, 02:52
Here is the BDRB log for the above bug\issue;

[11/12/23] Checking System Settings
- BD-Rebuilder v0.61.29
- Windows Version: 6.2 [9200]
- Working Path Free Space: 243.25GB
- AVISYNTH Version: 2.6.0.6, Ok
- LAVFILTERS: Ok
- AnyDVD settings check: Ok.
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[11/12/23] Systems Settings Check complete
----------------------
[11/12/23] BD Rebuilder v0.61.29
[12:47:16] Source: BDROM_UHD
- Input BD size: 84.35 GB
- Approximate total content: [05:39:00.653]
- Target BD size: 46.39 GB
- Windows Version: 6.2 [9200]
- Auto Quality: Very Good (Very Fast), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[12:47:16] PHASE ONE, Encoding
- [12:47:16] Processing: VID_00301 (1 of 16)
- [12:47:16] Extracting A/V streams [VID_00301]
- [12:47:21] Reencoding video [VID_00301]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 240 frames
- [12:47:21] Reencoding: VID_00301, Pass 1 of 1
- [12:47:23] Video Encode complete
- [12:47:23] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [12:47:23] Multiplexing M2TS
- [12:47:26] Processing: VID_00018 (2 of 16)
- [12:47:26] Extracting A/V streams [VID_00018]
- [12:47:31] Reencoding video [VID_00018]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 1,512 frames
- [12:47:31] Reencoding: VID_00018, Pass 1 of 1
- [12:47:35] Video Encode complete
- [12:47:35] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [12:47:35] Multiplexing M2TS
- [12:47:39] Processing: VID_00019 (3 of 16)
- [12:47:39] Extracting A/V streams [VID_00019]
- [12:47:44] Reencoding video [VID_00019]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 3,240 frames
- [12:47:44] Reencoding: VID_00019, Pass 1 of 1
- [12:47:53] Video Encode complete
- [12:47:53] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [12:47:53] Multiplexing M2TS
- [12:47:56] Processing: VID_00016 (4 of 16)
- [12:47:56] Extracting A/V streams [VID_00016]
- [12:48:01] Reencoding video [VID_00016]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 6,180 frames
- [12:48:01] Reencoding: VID_00016, Pass 1 of 1
- [12:48:18] Video Encode complete
- [12:48:18] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [12:48:18] Multiplexing M2TS
- [12:48:22] Processing: VID_00015 (5 of 16)
- [12:48:22] Extracting A/V streams [VID_00015]
- [12:48:29] Reencoding video [VID_00015]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 10,608 frames
- [12:48:29] Reencoding: VID_00015, Pass 1 of 1
- [12:48:58] Video Encode complete
- [12:48:58] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [12:48:58] Multiplexing M2TS
- [12:49:03] Processing: VID_00302 (6 of 16)
- [12:49:03] Extracting A/V streams [VID_00302]
- [12:49:12] Reencoding video [VID_00302]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 21,048 frames
- [12:49:12] Reencoding: VID_00302, Pass 1 of 1
- [12:50:05] Video Encode complete
- [12:50:05] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [12:50:05] Multiplexing M2TS
- [12:50:11] Processing: VID_00012 (7 of 16)
- [12:50:11] Extracting A/V streams [VID_00012]
- [12:50:20] Reencoding video [VID_00012]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 2,542 frames
- [12:50:20] Reencoding: VID_00012, Pass 1 of 1
- [12:57:08] Video Encode complete
- [12:57:08] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [12:57:08] Multiplexing M2TS
- [12:57:13] Processing: VID_00013 (8 of 16)
- [12:57:13] Extracting A/V streams [VID_00013]
- [12:57:21] Reencoding video [VID_00013]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 2,638 frames
- [12:57:21] Reencoding: VID_00013, Pass 1 of 1
- [13:04:29] Video Encode complete
- [13:04:29] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [13:04:29] Multiplexing M2TS
- [13:04:33] Processing: VID_00021 (9 of 16)
- [13:04:33] Extracting A/V streams [VID_00021]
- [13:04:43] Reencoding video [VID_00021]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 21,466 frames
- [13:04:43] Reencoding: VID_00021, Pass 1 of 1
- [13:05:41] Video Encode complete
- [13:05:41] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [13:05:41] Multiplexing M2TS
- [13:05:47] Processing: VID_00009 (10 of 16)
- [13:05:47] Extracting A/V streams [VID_00009]
- [13:05:58] Reencoding video [VID_00009]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 4,151 frames
- [13:05:58] Reencoding: VID_00009, Pass 1 of 1
- [13:17:39] Video Encode complete
- [13:17:39] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [13:17:39] Multiplexing M2TS
- [13:17:45] Processing: VID_00010 (11 of 16)
- [13:17:45] Extracting A/V streams [VID_00010]
- [13:17:56] Reencoding video [VID_00010]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 4,152 frames
- [13:17:56] Reencoding: VID_00010, Pass 1 of 1
- [13:29:39] Video Encode complete
- [13:29:39] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [13:29:39] Multiplexing M2TS
- [13:29:44] Processing: VID_00011 (12 of 16)
- [13:29:44] Extracting A/V streams [VID_00011]
- [13:29:55] Reencoding video [VID_00011]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 4,155 frames
- [13:29:55] Reencoding: VID_00011, Pass 1 of 1
- [13:41:35] Video Encode complete
- [13:41:35] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [13:41:35] Multiplexing M2TS
- [13:41:41] Processing: VID_00017 (13 of 16)
- [13:41:41] Extracting A/V streams [VID_00017]
- [13:42:02] Reencoding video [VID_00017]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 71,328 frames
- [13:42:02] Reencoding: VID_00017, Pass 1 of 1
- [13:44:59] Video Encode complete
- [13:44:59] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [13:44:59] Multiplexing M2TS
- [13:45:11] Processing: VID_00020 (14 of 16)
- [13:45:11] Extracting A/V streams [VID_00020]
- [13:45:37] Reencoding video [VID_00020]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 82,814 frames
- Bitrate: 4,192 Kbs
- [13:45:37] Reencoding: VID_00020, Pass 1 of 1
- [13:49:50] Video Encode complete
- [13:49:50] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- [13:49:50] Multiplexing M2TS
- [13:50:00] Processing: VID_00014 (15 of 16)
- [13:50:00] Extracting A/V streams [VID_00014]
- [13:50:37] Reencoding video [VID_00014]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 105,192 frames
- Bitrate: 5,202 Kbs
- [13:50:37] Reencoding: VID_00014, Pass 1 of 1
- [13:57:14] Video Encode complete
- [13:57:14] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [13:57:14] Multiplexing M2TS
- [13:57:28] Processing: VID_00008 (16 of 16)
- [13:57:28] Extracting A/V streams [VID_00008]
- [14:01:51] Reencoding video [VID_00008]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 138,454 frames
- Bitrate: 35,212 Kbs
- [14:01:51] Reencoding: VID_00008, Pass 1 of 1
- [20:15:16] Video Encode complete
- [20:15:16] Processing audio tracks
- Track 4352 (jpn): Keeping original audio
- Track 4353 (jpn): Keeping original audio
- [20:15:16] Multiplexing M2TS
[20:17:04]PHASE ONE complete
[20:17:04]PHASE TWO - Rebuild Started
- [20:17:04] Rebuilding BD file Structure
[20:17:17] - Encode and Rebuild complete
[20:17:17] JOB: BDROM_UHD finished.


I've kept the 'INF' file as well if that is needed and I have checked the Workfiles folder for the VID-AVS-HEVC files and can confirm they are as above.

sk2316
13th November 2023, 16:01
I used GTX1050Ti run bdrebuild is perfect done
but today i change new gpu to RTX2060 ,bdrebuild error!!!
bdrebuild doesn't support rtx2060?

[11-13-23] BD Rebuilder v0.61.29
[21:33:54] Source: GLAD
- Input BD size: 69.97 GB
- Approximate total content: [02:50:56.829]
- Target BD size: 9.77 GB
- Windows Version: 6.2 [9200]
- Quality: Good (Fastest, BD-25+), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:33:56] PHASE ONE, Encoding
- [21:33:56] Processing: VID_00000 (1 of 1)
- [21:33:56] Extracting A/V streams [VID_00000]
- TSMUXER ERR: 0xFFFFFFFF
- Extracting video streams [VID_00000]
- TSMUXER ERR: 0xFFFFFFFF
- 88.6% complete
- Error in attempt to extract video.
- 88.6% complete
- 88.6% complete
[21:46:59] - Failed to retrieve audio, aborted

Emulgator
13th November 2023, 16:08
Any spaces, non-ANSI letters in path ?
P.S. Wrong thought, extracting had started anyway, was wondering about the gap before the word GLAD

sk2316
15th November 2023, 02:04
Any spaces, non-ANSI letters in path ?

no, it doesn't.
i see tsmuxer in bdrebuilder tool folder
tsmuxer4k.exe date 1/5/2021 ,is it out of date?

MrVideo
15th November 2023, 05:07
Here is the BDRB log for the above bug\issue;
- [14:01:51] Reencoding video [VID_00008]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23.976fps, 138,454 frames
- Bitrate: 35,212 Kbs
- [14:01:51] Reencoding: VID_00008, Pass 1 of 1
- [20:15:16] Video Encode complete
If I am reading this correctly, you are using software encoding because you don't have a compatible nVideo graphics card? Might be part of your issue, as well as the movie appearing to be Dolby Video.

Ian1182
15th November 2023, 11:00
I used GTX1050Ti run bdrebuild is perfect done
but today i change new gpu to RTX2060 ,bdrebuild error!!!
bdrebuild doesn't support rtx2060?

[11-13-23] BD Rebuilder v0.61.29
[21:33:54] Source: GLAD
- Input BD size: 69.97 GB
- Approximate total content: [02:50:56.829]
- Target BD size: 9.77 GB
- Windows Version: 6.2 [9200]
- Quality: Good (Fastest, BD-25+), 1-Pass VBR
- UHD-BD source detected.
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[21:33:56] PHASE ONE, Encoding
- [21:33:56] Processing: VID_00000 (1 of 1)
- [21:33:56] Extracting A/V streams [VID_00000]
- TSMUXER ERR: 0xFFFFFFFF
- Extracting video streams [VID_00000]
- TSMUXER ERR: 0xFFFFFFFF
- 88.6% complete
- Error in attempt to extract video.
- 88.6% complete
- 88.6% complete
[21:46:59] - Failed to retrieve audio, aborted
You seem to be compressing a 70GB video down to 9.77GB which does look unusual. What happens if you increase the output size to say 25GB, does that work? Did you previously process the same video with your GTX1050ti or is this the first time you have done this one? The problem may be unrelated to your video card as the failure seems to be in the extracting phase rather than the subsequent encoding.

There is also a possibility the problem is a bad rip, I've seen similar problems when there were problems reading the original disk.

sk2316
16th November 2023, 01:02
You seem to be compressing a 70GB video down to 9.77GB which does look unusual. What happens if you increase the output size to say 25GB, does that work? Did you previously process the same video with your GTX1050ti or is this the first time you have done this one? The problem may be unrelated to your video card as the failure seems to be in the extracting phase rather than the subsequent encoding.

There is also a possibility the problem is a bad rip, I've seen similar problems when there were problems reading the original disk.

i tried other movies ,almost the same error
gtx1050ti is work perfect done all movies

MrVideo
16th November 2023, 04:38
YThe problem may be unrelated to your video card as the failure seems to be in the extracting phase rather than the subsequent encoding.
I agree, since extraction is just separating the M2TS files into video and audio files. No GPU required. What does mediainfo have to report about the M2TS files?

sk2316
16th November 2023, 15:19
I agree, since extraction is just separating the M2TS files into video and audio files. No GPU required. What does mediainfo have to report about the M2TS files?
i think so
now i know the issue
my harddisk has bad sector
so i change new harddisk
the issue is gone:D

Lathe
22nd November 2023, 12:44
Okay, how about this one...

I have a full DVD set of the 4 seasons of the show Wild Wild West. I would like to back them up to my HDD. Using MakeMKV and just extracting the episodes from one DVD of the set (4 episodes) I get 4 files roughly about 1 Gig each.

Now, I know I can use BDRB to take a movie (or a single episode) and use movie only/alternate output say if I want to keep the same AR but make the files smaller (set the AR for the same as the DVD episode and keep audio intact, setting either the CRF or the resulting desired file size)

BUT... say I want to rip a whole season of 4 or 5 DVDs with a resulting 25 - 30 episodes or so. Is there any way I can set them all up in BDRB so that it will do the same thing to each episode with the resulting episode file size being say around 500 Megs or less if I can get away with it? I know I can use BDRB to make an actual playable Blu-ray with all the episodes by importing them, but in that case, I don't think there is a way to set it to keep the AR the same and NOT resize them all to conform to a playable Blu-ray format.

Is there a way to process multiple episodes to generate MKV files that all keep the same AR but can all be individually reencoded to shrink the size of each file? There is probably a way to batch encode them with CMD line, but I've never quite understood the syntax to do that. I could of course set up a CMD line and run each episode individually, but I would like a way, preferably with BDRB where I can reencode all of them at once.

Thanks!

MrVideo
23rd November 2023, 01:59
You should be able to just import them into BDRB, since BD supports the same sized files as DVDs, i.e., 720x480. They'll just be re-encoded to H.264, I've never tried batch encoding individual files within BDRB.

Or you might use the separate program NVENCCRE to re-encode them to H.265 and save to MKV. All files can be cued. Try doing one to see what happens.

Lathe
23rd November 2023, 03:02
You should be able to just import them into BDRB, since BD supports the same sized files as DVDs, i.e., 720x480. They'll just be re-encoded to H.264, I've never tried batch encoding individual files within BDRB.

Or you might use the separate program NVENCCRE to re-encode them to H.265 and save to MKV. All files can be cued. Try doing one to see what happens.

Thanks! Yeah, I can do 1 file as I said as an 'Alternate Output' at the resolution you mentioned, which is the original, BUT... that is only under the 'Movie Only' option, which of course only chooses ONE file. I can't see a way after importing how ever many episodes how I then can encode them ALL that way. My only choice at that point that I can see is for BDRB to create a playable Blu-ray with a playlist, which then means that they will all be upsized to be Blu-ray compliant, and I don't want that either.

BTW, after importing the episodes, BDRB then 'converts the files into a compliant format', each MKV file which was 1 gig now becomes a 3 gig mt2s file, so it's kind of starting off in the wrong direction :)

MrVideo
24th November 2023, 03:04
My only choice at that point that I can see is for BDRB to create a playable Blu-ray with a playlist, which then means that they will all be upsized to be Blu-ray compliant, and I don't want that either.
According to my Blu-ray Essentials book, 720x480 is compliant. No upscaling should be happening?

What about the standalone encoder that I mentioned? If you don't have it installed, get it and do so.

sk2316
24th November 2023, 16:31
BD Rebuilder support hdr10+?

DoctorM
30th November 2023, 01:59
A few years ago it was recommended if I wanted to have a movie untouched, but the extras shrunk to allow everything fit the disc I should set force_noencode to 1 & quicker encode extras, but that didn't seem to work since the extras didn't encode either.
Has any changes been made since 2020 that might make this an option?
I'd still really love to see a right-click option to not re-encode on a per stream basis, just like 'Blank this item'.

MrVideo
30th November 2023, 05:28
A few years ago it was recommended if I wanted to have a movie untouched, but the extras shrunk to allow everything fit the disc I should set force_noencode to 1 & quicker encode extras, but that didn't seem to work since the extras didn't encode either.
I'm confused as everything already fits the disc. You need to explain better what your source and target sizes are.

But, as an example, if you want to take a 50GB source and make it fit a 25GB target, don't expect to shrink the extras by that large of an amount. I've never seen extras take up more space than the main feature. If the extras are that large, I've seen an extra disc in the release just for the bonus features. Hence my confusion.

JugHead
30th November 2023, 08:53
A few years ago it was recommended if I wanted to have a movie untouched, but the extras shrunk to allow everything fit the disc I should set force_noencode to 1 & quicker encode extras, but that didn't seem to work since the extras didn't encode either.
Has any changes been made since 2020 that might make this an option?
I'd still really love to see a right-click option to not re-encode on a per stream basis, just like 'Blank this item'.


It Can be done. First Set "FORCE_NOENCODE=0" because you're telling the software not to encode any of the streams on the disc.

I'll give you an example of how it is possible. (Make sure to set "QUICK_EXTRAS=1") If the source main movie is say 21gb & the extras are say 5gb (26gb on disc), you can set "QUICK_CRF=25" and it would most likely fit on a 25gb disc. The lower the number, the better the video quality & larger file size.

DoctorM
30th November 2023, 21:00
It Can be done. First Set "FORCE_NOENCODE=0" because you're telling the software not to encode any of the streams on the disc.

I'll give you an example of how it is possible. (Make sure to set "QUICK_EXTRAS=1") If the source main movie is say 21gb & the extras are say 5gb (26gb on disc), you can set "QUICK_CRF=25" and it would most likely fit on a 25gb disc. The lower the number, the better the video quality & larger file size.

But wouldn't BDRB still re-encode the main movie? I've never seen it skip it because the extras will be small enough after re-encoding.

MrVideo: What I'm saying it's not uncommon to have a movie that when you remove the lossless audio will fit on a BD25 with a few GB to spare and re-encoding just the extras to fit is all that is needed.

MrVideo
30th November 2023, 23:38
BMrVideo: What I'm saying it's not uncommon to have a movie that when you remove the lossless audio will fit on a BD25 with a few GB to spare and re-encoding just the extras to fit is all that is needed.
While that can be true in some cases, don't count on it for most cases.

JugHead
1st December 2023, 08:10
A few years ago it was recommended if I wanted to have a movie untouched, but the extras shrunk to allow everything fit the disc.

I assume you meant a 25gb disc. If the source main movie + the re-encoded extras is under the bd25 target size, the software will just copy the main movie (Untouched) & create the folder structure. However, if over the bd25 target size, the main movie will be re-encoded to fit.

musiclover
1st December 2023, 10:07
A few years ago it was recommended if I wanted to have a movie untouched, but the extras shrunk to allow everything fit the disc I should set force_noencode to 1 & quicker encode extras, but that didn't seem to work since the extras didn't encode either.
Has any changes been made since 2020 that might make this an option?
I'd still really love to see a right-click option to not re-encode on a per stream basis, just like 'Blank this item'.

May I remind you of this thread?
https://forum.doom9.org/showthread.php?p=1678011

DoctorM
1st December 2023, 22:04
May I remind you of this thread?
https://forum.doom9.org/showthread.php?p=1678011

From 9 years ago? I figured some changes were made to the software by now.

FilipeAmadeuO
4th December 2023, 13:14
I'd still really love to see a right-click option to not re-encode on a per stream basis, just like 'Blank this item'.

This is the feature I miss most.
Sometimes I want to blank some items and only reencode main movie…
Jdobbs - Any chance to implement ?

DoctorM
7th December 2023, 20:19
I thought I mentioned this before when I tried and failed to rebuild 'Bodies, Rest and Motion' from Kino Lorber, but I can't find the post.

I've found that the fix for the leading clip does work fine for the audio, but the subtitle tracks are still out of sync in those situations.

Edit: Looking at the pieces, it appears the timeshift that is added to the audio and subtitles is not needed for the subtitles. It's causing them to run late (not early like I expected).

So, I modified MUX_MOVIE_ONLY.meta in the WORKFILES folder. I removed "timeshift=11011ms" from the S_HDMV/PGS line, but left it for the audio line.
I opened a command line at .\BD_Rebuilder\Tools and entered: tsMuxeR "D:\Temp\WORKFILES\MUX_MOVIE_ONLY.meta" "C:\TestRebuild"

The 'TestRebuild' BD has audio and subtitles syncing just fine with the video now. I don't know if it's specific to that disc or not. Probably is unique since no one else has found the issue.

musiclover
8th December 2023, 10:07
I thought I mentioned this before when I tried and failed to rebuild 'Bodies, Rest and Motion' from Kino Lorber, but I can't find the post.

I've found that the fix for the leading clip does work fine for the audio, but the subtitle tracks are still out of sync in those situations.

Edit: Looking at the pieces, it appears the timeshift that is added to the audio and subtitles is not needed for the subtitles. It's causing them to run late (not early like I expected).

So, I modified MUX_MOVIE_ONLY.meta in the WORKFILES folder. I removed "timeshift=11011ms" from the S_HDMV/PGS line, but left it for the audio line.
I opened a command line at .\BD_Rebuilder\Tools and entered: tsMuxeR "D:\Temp\WORKFILES\MUX_MOVIE_ONLY.meta" "C:\TestRebuild"

The 'TestRebuild' BD has audio and subtitles syncing just fine with the video now. I don't know if it's specific to that disc or not. Probably is unique since no one else has found the issue.


See #30598 and further

Emulgator
8th December 2023, 15:01
Those 11011ms remind me being close to --start-time in a Blu-ray mux (00:00:11.65066666 or 524280 (dec) or 00 07 FF F8 (hex))...

DoctorM
9th December 2023, 18:40
See #30598 and further

Feel free to not read the post you are responding to. :rolleyes:

Lathe
24th December 2023, 05:36
According to my Blu-ray Essentials book, 720x480 is compliant. No upscaling should be happening?

What about the standalone encoder that I mentioned? If you don't have it installed, get it and do so.

Hey Bro! Sorry about the late response, thanks for the encoder suggestion.

The ripped episodes from the DVDs only ended up being about 1 Gig each, so instead of messing with encoding them I just left them full size since each season only takes up about 20-25 Gigs, so no big deal, but thanks though!

Lathe
24th December 2023, 05:45
Again, I'm trying to convert a 50 Gig UHD to a playable Blu-ray for my older OPPO player. I would love to use BDRB, primarily because you can set the output size, but I still haven't quite figured out how to do that yet. So, I am currently using another program which is easy to set and add the colorspace filter and such. The only thing is that it does not have a setting for output size. You can either use CRF (which I prefer) or set the bitrate. But, I don't have a way to estimate the output size.

I started with a CRF of 18, and by the time it got to about 33% (40 minutes later) I saw that the final size was going to be too big. So, I 'lowered' the CRF quality to 19, and that is looking like it MIGHT work. But, the dang thing is that in each case when I simply tried to see how big the encode was at say 10% and multiply by 10 it came out to like 12 Gigs, so I thought, Oh I have plenty of room. But... The bugger is that as the encode progresses the damn thing's size bloody accelerates! So, that by the time it got to about 33% and I multiplied by 3 it was going to be too big!

So, how do you go about estimating this kind of thing, because even when you take a relatively decent sized sample, it is NOT indicative of the total resulting size. It always gets bigger faster as it goes (and yes, I have indeed had that problem for years...)

I GUESS if I know what to do, I can take the original UHD bitrate and somehow go by that and the file size to estimate at what bitrate would yield a size that would fit on a BD? Any suggestions?

Thanks!

DoctorM
25th December 2023, 01:16
I'm going to assume it's me, but I see no option regarding uncompressed audio.

I've re-encoded just extras to a BD blanking the movie and making it a BD5.

In the output, at least two of the files have PCM stereo audio that is double the size of the SD video.
Is there a setting I have wrong that would cause this?

MrVideo
26th December 2023, 03:07
Again, I'm trying to convert a 50 Gig UHD to a playable Blu-ray for my older OPPO player. I would love to use BDRB, primarily because you can set the output size, but I still haven't quite figured out how to do that yet.
You don't have to do a thing. Just select the 25 GB media size and let BDRB determine what bitrate to use to get everything to fit. BTW, I suspect you mean 60 GB UHD disc.

Lathe
12th January 2024, 10:14
You don't have to do a thing. Just select the 25 GB media size and let BDRB determine what bitrate to use to get everything to fit. BTW, I suspect you mean 60 GB UHD disc.

I appreciate the reply, but I don't think that is quite right. If I do just that, won't it simply shrink the size but still KEEP the HEVC UHD format. I want it in a playable format for my older OPPO, which would be a standard Blu-ray AVC 1080 format. I can use another well known program to do this and also choose the color space filter to convert from HDR-SDR, BUT... with that program there is no way to set the output size, whereas with BDRB there is. I guess I'll just hafta experiment around with it.

MrVideo
12th January 2024, 14:07
Ah, OK. I misunderstood. Converting from UHD format to BD format is indeed a whole 'nother can-o-worms. Because the UHD and BD menu structures are way different, there is no simple way to go between the two. The only way I know of is to rebuild the BD structure from scratch, which BDRB is great for doing so. You can use the standalone encoder to convert from HEVC to AVC and from 2160p to 1080p. From there you can put those files into BDRB to build a new BD disc and if the files are too large, it will re-encode to get them to fit.

Just a thought.

raul124
15th January 2024, 14:44
I too would like to convert a UHD 4K to 1080P format, I just don't know how, can someone show me the steps to take in making this happen? thanks

Blurayhd
29th January 2024, 19:32
Hi guys the thing is I have my several Bluray movie collection and I´m pass it to a MKV movie but every movie the size could be 22gb and I wish to encode so I can reduce the size but keeping the best movie quality possible and for that in BDrebuilder section Alternate movie only there is CRF, two pass etc I so need to know if you can recomend what number to put in Two pass for reduce but get the best quality?

Thank You in advance

Emulgator
30th January 2024, 01:14
You would specify Two Pass Target Size 22000MB.
Besides, you may set up your personal profile modifying \BD_Rebuilder\Misc\alternate.txt
# The options below show up in the Alternate Output Dialog
# Settings:
# caption=Text to show on alternate selection list
# vEncoder=Video encoder, 0=x264 (default), 1=x265, 2=HC Encoder (MPEG-2)
# Note: A cType of 3 or 4 (see below) forces MPEG-2 via HCEncoder
# vBitrate=Bitrate to use for two-pass video encoding, * = variable (DVD only)
# mBitrate=Maximum bitrate (and VBV buffer size) for VBR video encoding. Uses system defaults when not specified.
# aBitrate=Bitrate to use for audio encoding, * = automatic (constant quality encode, not allowed for iPod & iPad)
# aType=Output Audio Type, 0=AC3 (Default), 1=AAC (Note: Audio bitrate less than 384Kbs implies stereo downmix)
# 2=[Intact audio -- MKV only]
# vFormat=Video Format: 0=320x240/180, 1= 480x360/270, 2= 640x480/360, 3= 1024x768/576,
# 4= 1280x720, 5= 1920x1080, 6= 720x480/576, 7= No Resizing, 8=Intact
# vKeyint=Video GOP size (interval): Default=24, "Auto" = 10x framerate (MKV & MP4 only)
# cType= Container/limits type, 0=iPod (mp4), 1=MKV, 2=iPad (mp4), 3=DVD-5, 4=DVD-9, 5=MP4 6=iPad 2+ (MP4)

spotswood
6th February 2024, 00:45
@jdobbs et al... I've just noticed an anomaly in the log entries between v0.61.0.28 and the latest v0.61.0.29. Differences shown below...

v0.61.0.28:
Below the line at [13:15:24] Reencoding video [VID_00000], the Source Video, Rate/Length and Bitrate parameters are shown (in bold below).

[02/05/24] BD Rebuilder v0.61.28
- Input BD size: 1.48 GB
- Approximate total content: [00:28:35.574]
- Target BD size: 0.75 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Quality: High Quality (Default), 1-Pass VBR
- Converting to UHD-BD (HEVC) output format
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=1 HD=1 Kbs=640
[13:15:17] PHASE ONE, Encoding
- [13:15:17] Processing: VID_00000 (1 of 1)
- [13:15:17] Extracting A/V streams [VID_00000]
- [13:15:24] Reencoding video [VID_00000]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29.970fps, 51,416 frames
- Bitrate: 3,224 Kbs
- [13:15:24] Reencoding: VID_00000, Pass 1 of 1

In v0.61.0.29:
The same parameters below [13:22:32] Reencoding video [VID_00000] are not shown. Was this by design? Thanks for any info/explanation.

[02/05/24] BD Rebuilder v0.61.29
- Input BD size: 1.48 GB
- Approximate total content: [00:28:35.574]
- Target BD size: 0.75 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Quality: High Quality (Default), 1-Pass VBR
- Converting to UHD-BD (HEVC) output format
- Decoding/Frame serving: NVENCC
- Audio Settings: AC3=0 DTS=1 HD=1 Kbs=640
[13:22:25] PHASE ONE, Encoding
- [13:22:25] Processing: VID_00000 (1 of 1)
- [13:22:25] Extracting A/V streams [VID_00000]
- [13:22:32] Reencoding video [VID_00000]

jdobbs
6th February 2024, 02:11
@spotswood

Make sure you have "Verbose Status Reporting" checked under the SETTINGS menu.

spotswood
6th February 2024, 03:41
@spotswood

Make sure you have "Verbose Status Reporting" checked under the SETTINGS menu.Thanks for the fast reply. Don't know why it was unchecked, but that did it. Thanks!

Lathe
7th March 2024, 05:54
Okay, just a quickie (because that's the way I roll...)

I have a UK DVD I bought long ago (the movie 'SCISSORS') I already have a Blu-ray of it and I wanted to give the DVD to my friend. But, he has a really old DVD player that won't play UK DVDs. I first tried to remove the Region coding, but it wouldn't play. Then I remembered that it was also in the PAL format, which his player will not play. Then I used BDRB with alternate output to create a playable NTSC DVD structure, but his player won't play DVD folders, there has to be a menu.

Is there a way to 'Import' the DVD into BDRB and do the exact same thing I just did, but with a Quick-Play menu for DVD, not for Blu-ray, because then it will work on his player because I've played other burned DVDs where I think long ago I used DVD Shrink to blank one of two films on the DVD so it would fit on the 4.5 Gig DVD and it played just fine with it's original menu intact on his player.

Is there a way to create just a simple Quick-Play menu for DVDs using BDRB?

Thanks!

cartman0208
7th March 2024, 09:31
You mean a DVD Rebuilder just like the BlurayDisk Rebuilder? ;)
http://www.jdobbs.net/Pages/DVDRebuilder/DVD-RB.htm
https://forum.doom9.org/showthread.php?t=75452

Lathe
7th March 2024, 23:11
You mean a DVD Rebuilder just like the BlurayDisk Rebuilder? ;)
http://www.jdobbs.net/Pages/DVDRebuilder/DVD-RB.htm
https://forum.doom9.org/showthread.php?t=75452

Hmmmm.... :cool:

MrVideo
13th March 2024, 05:11
There are some outstanding issues that haven't been resolved. Two of them that are bitting me are:

1: The titles.inf file is being created, but never looked at when trying to build a BD. Whenever I import the same files, BDRB treats the files as if I am importing them for the first time. Not a killer, but annoying none-the-less.

2. This one is a killer. I also don't remember if there is a way around it. I have a BDRB configuration where I am using a newer tsmuxer that is UHD aware, mostly so that it will handle EAC3 files, which are UHD compliant, sort-of. Why sort-of? EAC3 needs the AC3 core to be UHD compliant. But, the new tsmuxer will work with the EAC3 audio that is contained in MKV files and my BD player will pass said EAC3 file to my Denon AVR via HDMI. The Sony player is set to directly output the audio streams over HDMI without touching them. But, when importing said MKV file into BDRB, it wants to convert the EAC3 to AC3, which is currently being done wrong (I know there is a work-around somewhere in the above postings), but I need BDRB to NOT convert to AC3. Why? Because that will ultimately remove any included Dolby Atmos. Not good. There needs to be an option within BDRB that tells BDRB to not convert to AC3 and that it is done at the user's risk.

Does anyone know away around the issue so that I can end up keeping the EAC3 file? Of course, the best thing is an updated BDRB that uses the newer tsmuxer and doesn't convert EAC3 files. But, right now I'll take a workaround.

Thanks

Lathe
13th March 2024, 05:55
There are some outstanding issues that haven't been resolved. Two of them are bitting me:


Hmmm, are these issues really 'Bitting' you Mr. Grammar...? :D

BTW, oddly after I don't know how many years, I am actually getting notifications of posts in this thread now!

MrVideo
13th March 2024, 07:06
Hmmm, are these issues really 'Bitting' you Mr. Grammar...? :D
Both work, but many say it should be biting. Blame it on the keyboard entering the "t" twice" :eek:
BTW, oddly after I don't know how many years, I am actually getting notifications of posts in this thread now!
I still don't.

Lowpro
13th March 2024, 17:50
Does anyone know away around the issue so that I can end up keeping the EAC3 file? Of course, the best thing is an updated BDRB that uses the newer tsmuxer and doesn't convert EAC3 files. But, right now I'll take a workaround.

I just reincorporate the given EAC3 file after the fact and move on.

Not sure is this would be helpful to you, but I use FFMPEG quite a bit for different things.

Below is what I run from the command line to extract EAC3 audio from a MP4.

ffmpeg -i <filename>.mp4 -vn -acodec copy <filename>.eac3

And here's a command I've been using lately to extract and convert AAC to AC3.

ffmpeg -i <filename>.mp4 -c:v copy -c:a ac3 -b:a 224k <filename>.ac3

If I have a set of MP4 files I run a batch file. Quick and easy.

MrVideo
14th March 2024, 02:44
I just reincorporate the given EAC3 file after the fact and move on.
I've tried that in the past and it failed. One has to use tsmuxer to swap out the audio from the M2TS file that BDRB makes.
Problem is the file now no longer fits the info described in the other BD files. I have BDEdit, but that didn't seem to help. I'll have to try it again.
Not sure is this would be helpful to you, but I use FFMPEG quite a bit for different things.

Below is what I run from the command line to extract EAC3 audio from a MP4.

ffmpeg -i <filename>.mp4 -vn -acodec copy <filename>.eac3

And here's a command I've been using lately to extract and convert AAC to AC3.

ffmpeg -i <filename>.mp4 -c:v copy -c:a ac3 -b:a 224k <filename>.ac3

If I have a set of MP4 files I run a batch file. Quick and easy.
tsmuxer and VideoReDo can be used to extract audio and convert AAC to AC3. In the case of replacing the screwed up audio with the original EAC3 file, tsmuxer would be used, since I would output a new M2TS file.

BTW, I use ffmpeg to rewrap MKV to MP4 of files that contain EAC3 audio, because the Sony UHD BD player refuses to output the EAC3 audio when contained within a MKV wrapper. Sony considers MKV files with EAC3 as being bootlegged. What is stupid is that MP4 and M2TS files will be played just fine. Illogical.

MrVideo
14th March 2024, 06:04
Does anyone know how to extract EIA-608 data captions from a TS? I need to create a BD compatible SRT file.

The captions are in two separate streams of the TS file.

Thanks

gonca
14th March 2024, 13:10
Does anyone know how to extract EIA-608 data captions from a TS? I need to create a BD compatible SRT file.

The captions are in two separate streams of the TS file.

Thanks

Have you tried demuxing with TsMuxer??

Lowpro
15th March 2024, 01:06
I've tried that in the past and it failed. One has to use tsmuxer to swap out the audio from the M2TS file that BDRB makes.
Problem is the file now no longer fits the info described in the other BD files. I have BDEdit, but that didn't seem to help. I'll have to try it again.From BDedit update the audio attributes of the PlayItem within the MPLS file and save, then press the "Apply to CLPI" button applying the changes made to the MPLS file to the CLPI file and save.

MrVideo
15th March 2024, 03:16
then press the "Apply to CLPI" button applying the changes made to the MPLS file to the CLPI file and save.
Ah! That is probably what I didn't do last time. Thanks.

MrVideo
15th March 2024, 04:47
Have you tried demuxing with TsMuxer??
tsmuxer does see the subtitles. Now I have other issues. If it isn't one thing, it is another.

MrVideo
15th March 2024, 11:48
Replacing the audio file worked. I must have not done the apply last time. The subtitles are out-of-sync. I have something to try regarding that.

When I tried to import the M2TS file into tsmuxer, it complained that it didn't like the video and didn't import it. Strange since BDRB used it to work with the video in the first place. I know that it is the same version as I installed it into the BDRB program location.So, I used the M2TS file that I imported into BDRB. BDEdit complained that the packet size was wrong and I let it correct it. When I tried playing the disc, it refused to show the video, instead showing the menu background image, but played the audio files and subtitles. Weird. Back to the drawing board.

UPDATE: Nope, can't fix the screwed up audio file. Tsmuxer does not like the M2TS file that BDRB put together. No idea why not.

Needless to say, BDRB needs to be fixed so that it does not screw with EAC3 files (user option). Plus the titles.inf issue must be fixed as will. It is a real PITA when trying to redo a job. Having to do it all from scratch every time really sucks.

jdobbs
9th April 2024, 19:58
Needless to say, BDRB needs to be fixed so that it does not screw with EAC3 files (user option). Plus the titles.inf issue must be fixed as will. It is a real PITA when trying to redo a job. Having to do it all from scratch every time really sucks.You use the term "fixed" pretty loosely. BD-RB doesn't "screw" with the EAC3 files -- it reencodes them because failing to do so would create a disc that violates the Blu-ray standard.

MrVideo
10th April 2024, 22:30
You use the term "fixed" pretty loosely. BD-RB doesn't "screw" with the EAC3 files -- it reencodes them because failing to do so would create a disc that violates the Blu-ray standard.
When building a UHD/2160p disc, an EAC3 file is NOT in violation of the standard, but BDRB tries to re-encode the audio anyway. The result of said encode is a single channel.

jdobbs
11th April 2024, 20:54
When building a UHD/2160p disc, an EAC3 file is NOT in violation of the standard, but BDRB tries to re-encode the audio anyway. The result of said encode is a single channel.Can you tell me how you would include the required DD core then?

MrVideo
12th April 2024, 00:58
I knew you were going to bring out the lack of a core. :rolleyes:

Personally, I feel that it is a moot point for both BD and UHD discs. I don't know of any system that can't play EAC3 audio, w/o a core. I do not know if my Sony UHD player will decode the audio, as the player is set to send the raw audio to the AVR via HDMI. I suspect other users do the same thing.

I've been searching for a way to add a silent core, but not found anything. I thought for sure that I found it once. I did run across a posting where the author said not to bother as devices pretty much accept coreless EAC3 files.

IMHO, the simplest thing to do it create a hidden option: RECODEEAC3=1, where 1 = recode and 0 = do not recode. Add explanatory note that not recoding EAC3 to AC3 might result in legacy devices not playing the audio. Use at your own risk.

Thanks for thinking about doing that.

Mark_Venture
19th April 2024, 19:45
Does BD-Rebuilder support QuickSync or just NVENC, for GPU encoding?

I mean, I've been using BD-RB with NVENC for a while now and loving it, but I might have to pass off my Nvidia card to my son. With limited funds at the moment, I can't buy a replacement, so if QS is supported, that would be great.

Emulgator
19th April 2024, 20:38
You may hand that QuickSync encoding over to StaxRip,
(actively maintained ATM, and I get prime HW encoder quality from the various Rigayas incorporated there)
mux there (or tsMuxeR standalone) and let BD-RB have that.

Mark_Venture
19th April 2024, 21:23
You may hand that QuickSync encoding over to StaxRip,
(actively maintained ATM, and I get prime HW encoder quality from the various Rigayas incorporated there)
mux there (or tsMuxeR standalone) and let BD-RB have that.
is there an idiots guide for that?

OR is there a simple front end for Rigayas QSV encoder like NVENCCRE that had been added with BD Rebuilder?

jdobbs
19th April 2024, 21:56
Does BD-Rebuilder support QuickSync or just NVENC, for GPU encoding?

I mean, I've been using BD-RB with NVENC for a while now and loving it, but I might have to pass off my Nvidia card to my son. With limited funds at the moment, I can't buy a replacement, so if QS is supported, that would be great.On that subject... I was thinking about adding QuickSync support (probably via FFMPEG). But in a test (using a 13th gen i5 [i5-13420H] with built-in UHD graphic support) doing H265 encoding I was a little surprised how much slower it was than my Nvidia card. My Nvidia card is giving well over 300fps on 1080p encodes -- and I was only averaging about 100fps using that GPU and Quicksync. Is that typical? It doesn't seem that much faster than X265 on that same CPU?

CV91913
19th April 2024, 23:20
The only app I have that uses Quick Sync is CloneBD. Using a gen 9 i7 I have seen 1080p encodes in the 300+ range. It is variable but generally averages in the 200+. I pretty much use it to convert BD to mp4. I set it to create 4gb files at 720p. Takes about 15 min.

iambryanknowles
20th April 2024, 02:33
Ignore

Mark_Venture
20th April 2024, 15:53
On that subject... I was thinking about adding QuickSync support (probably via FFMPEG). But in a test (using a 13th gen i5 [i5-13420H] with built-in UHD graphic support) doing H265 encoding I was a little surprised how much slower it was than my Nvidia card. My Nvidia card is giving well over 300fps on 1080p encodes -- and I was only averaging about 100fps using that GPU and Quicksync. Is that typical? It doesn't seem that much faster than X265 on that same CPU?
If you want to give me command lines for both QuickSync and Nvidia that I could run against the same MKV, I can can share the outcome.

I have EVGA GeForce RTX 3060 XC GAMING 12GB, 12G-P5-3657-KR, and i7-14700k (UHD770), and i9-10900k(uhd630) that I can run it against.

Emulgator
21st April 2024, 10:39
As I tried it last time (I have to reconfigure in BIOS to unhide iGPU, so not doing that everyday) QuickSync was still miles faster than
x265 (the latter yielding 0,7fps for a prime 4K UHD-BD on this i9-11900K) vs. nVidia 3080 running like 26..28fps for a comparable good UHD-BD NVEnc profile. Will have to run a comparison again, given the latest developments.

raul124
22nd April 2024, 14:24
If you want to give me command lines for both QuickSync and Nvidia that I could run against the same MKV, I can can share the outcome.

I have EVGA GeForce RTX 3060 XC GAMING 12GB, 12G-P5-3657-KR, and i7-14700k (UHD770), and i9-10900k(uhd630) that I can run it against.

Very interesting topic. I would love to find out the outcome :goodpost:

DoctorM
23rd April 2024, 00:18
I can't figure something out.
I'm trying to rebuild a disc with bonus features from a couple different sources. I took a screenshot from one of the source BDs and edited it a bit.
I set the config file with "MENU_BACKGROUND=C:\Users\DoctorM\Desktop\QM Bonus Features\QMMenu.png" but the background is a starry sky.
I tried converting it to a JPG and the same thing.
Is there something I'm missing?

Emulgator
23rd April 2024, 00:34
Path contains spaces, so got to be in quotes

DoctorM
23rd April 2024, 05:09
Path contains spaces, so got to be in quotes

Yup. That seems to have done it.

cartman0208
3rd May 2024, 13:54
On that subject... I was thinking about adding QuickSync support (probably via FFMPEG). But in a test (using a 13th gen i5 [i5-13420H] with built-in UHD graphic support) doing H265 encoding I was a little surprised how much slower it was than my Nvidia card. My Nvidia card is giving well over 300fps on 1080p encodes -- and I was only averaging about 100fps using that GPU and Quicksync. Is that typical? It doesn't seem that much faster than X265 on that same CPU?

That would match the observations made here:
https://technical.city/en/video/UHD-Graphics-770-vs-Arc-A770
The clock speeds of the build-in gpu are way lower than in the dedicated ones.
Nevertheless a good performance for something you basically get for free with your processor. ;)

Mark_Venture
4th May 2024, 16:37
On that subject... I was thinking about adding QuickSync support (probably via FFMPEG). But in a test (using a 13th gen i5 [i5-13420H] with built-in UHD graphic support) doing H265 encoding I was a little surprised how much slower it was than my Nvidia card. My Nvidia card is giving well over 300fps on 1080p encodes -- and I was only averaging about 100fps using that GPU and Quicksync. Is that typical? It doesn't seem that much faster than X265 on that same CPU?
I just noticed, isn't the i5 13420H a mobile processor? Will its GPU be as strong as a desktop 13th gen's UHD7xx gpu?.

jdobbs
4th May 2024, 19:32
I just noticed, isn't the i5 13420H a mobile processor? Will its GPU be as strong as a desktop 13th gen's UHD7xx gpu?.Yes, it was on a notebook that I borrowed. Not sure what impact that would have on GPU encode speeds.

iambryanknowles
16th May 2024, 14:25
BD Rebuilder has started to fail during audio conversion. It has started adding "_eng" to the end of the extracted audio file name, before the file extension. I've found that if I rename the file deleting "_eng" and rerun the program, it successfully converts the audio. Do you know what could be causing this?
For AC3 files, it also generates an empty file without the "_eng".

kpic
18th May 2024, 16:42
Not sure if this is a bug or not or just a limitation?

UHD 4K title through BDRB, set UHDMaxrate=36000 (I'll do this as I am putting it on BD50 media so the bitrate needs to come down) - Done it plenty of times w\no issue.

As expected it encoded the main movie only down, well this current title I have has 25!! TV spots & trailers, BDRB obviously did not encode those (even with 'Quicker Encode' set to on it never picked them up) so it never brought the bitrate down on any of them (spikes of 90+Mbps on some of them).

Thought I'd be smart; I pulled out the main movie M2TS that left only the extras (4.55gb worth), figured BDRB could encode these down if I turn on the 'Quicker Encode for extras' on and set the CRF=30 in the INI and set the size limit to 3gb. Set this way BDRB did pick up all the extras however they ended up with a Dolby Digital only file (They are all TrueHD audio) even though I didn't change the setup (HD audio intact etc). I suppose BDRB saw the Quick Encode and CRF=3- and size of 3gb and figured the only way to do that was to strip out the TrueHD audio track?

Even if this would have worked I still would have had to get all those M2TS files back into the main structure and may have had to edit with BDEdit every one of those 25 clips & playlists.

So I guess I'm asking if there is an easier way, is there a HiddenOpt to ensure the entire structure (Main movie & extras) are all encoded down?

EDIT TO ADD: Everything does show up to encode if I set the target to BD-9 but that doesn't help much as of course I want a BD-50 taget size)

cartman0208
21st May 2024, 06:42
So I guess I'm asking if there is an easier way, is there a HiddenOpt to ensure the entire structure (Main movie & extras) are all encoded down?
I'm not 100% sure about the following, but give it a try.
Go to Settings - Import/Quickplay
What's the threshold for Minimum BD Playlist minutes?
If that is set to low (default is 10 minutes I think) BDRB doesn't pick up trailers and such and leaves those intact.

musiclover
21st May 2024, 09:24
So I guess I'm asking if there is an easier way, is there a HiddenOpt to ensure the entire structure (Main movie & extras) are all encoded down?


Set the following in your ini file: MIN_M2TS_SIZE=0

MrVideo
23rd May 2024, 06:03
UHD 4K title through BDRB, set UHDMaxrate=36000 (I'll do this as I am putting it on BD50 media so the bitrate needs to come down) - Done it plenty of times w\no issue.
Why not set: Target size BD=50

kpic
23rd May 2024, 15:19
Thanks everyone, results...

cartman0208: I actually never saw those options, but I'm doing a 'Full Backup' not the Quickplay so I don't think any of that'll work?

MrVideo: Target size is not a problem, and the size of the files are not a problem. I'm trying to lower the bit-rate of each of the M2TS files not just the main movie (by setting the 'UHDMaxrate' option). Bringing the size down of the original UHD to fit on a BD-50 is fine but you also need to lower the bit-rate as well (BDR media has an upper threshold to bit-rate limit). I am attempting to get all of the high bit-rate trailers to show up in the 'stream' window to ensure BDRB is encoding those as well as the main movie (using UHDMaxrate limit I set)

musiclover: Well setting the MIN_M2TS_SIZE=0 did in fact do 'something' but odd result. Now the main movie (as usual) shows up in the window but as well as 3 other M2TS; 2.8mb (one of the smallest files on the disc and is just the 'Not in HDR' message), 53mb (the disc intro) & 20mb (an end of disc message). So it seems to have done the opposite, those M2TS files are some of the smallest M2TS files (and thus are not even trailers) it didn't recognize any of the 20+ trailers that range in size from 48mb to 450mb. Setting MIN_M2TS_SIZE=1 (or any number above '0') just picks up the main movie only again.

Odd that it picked up the 53mb M2TS that is an intro but none of the teaser trailers that were even smaller (from 40mb to 50mb) so wonder why it skipped those? Some of them are about 9 seconds in length could that be the issue? Although it also didn't pick up any of the longer 2 minute trailers either. So for some reason it's not picking any of those up and decided (randomly?) on those three M2TS files?

musiclover
23rd May 2024, 16:25
@kpic
Just a longshot. Try it with REENCODE_MENUS=1 in your ini file.

And setting Target size BD=50 may also have some effect. BDRB should know then to lower the bitrate of all videos.

MrVideo
23rd May 2024, 21:26
And setting Target size BD=50 may also have some effect. BDRB should know then to lower the bitrate of all videos.
Exactly, which is why I suggested it. The only way to reduce the size of the video file is to lower the bitrate.

kpic
24th May 2024, 01:10
Exactly, which is why I suggested it. The only way to reduce the size of the video file is to lower the bitrate.

So sorry MrVideo, that seems to be my fault there. I was wondering why you mentioned that then I re-read my original post and I didn't mention that I had already reduced the size set as well.

The original un-touched is 82gb (movie=81gb & 1gb in extras). My first try I did set the Target=50 as normal (along with my UHDMaxrate set) but the result dropped it all the way down to 39gb (though at this point I didn't compare any of the extras to see if they were shrunk down compared to the originals)

I then set a custom size to 46500 and that gave me a total size of 44gb, at this point I noticed the extras were not touched at all.

So I'll try another re-encode with the normal 'Target=50' set instead of a custom size and I'll set the 'REENCODE_MENUS=1' as well and see what I get with that.

kpic
24th May 2024, 12:47
To follow-up on the results...

Setting 'Target=BD50' and with the INI set to 'REENCODE_MENUS=1' & 'MIN_M2TS_SIZE=0' did nothing to the extras (none of them were re-encoded).

However this time with those INI statements in there I was able to select 'Target=BD25' (before it required a BD-9 output) and it did end up re-encode every single one of the teasers\trailers (including the super-short 9 second ones) and thus also lowered the bit-rate way down (from overall 109 to 35.5) to where I had the 'UHDMaxrate' set, but of course the main movie took a big, big hit (now only 19gb).

At least this way I don't have to re-insert the 20+ trailers and deal with them individually, I just have to deal with re-inserting the main movie into the disc structure instead and just deal with that one. But I suppose there is no one-trick easier way to deal with this situation?

So I originally thought BDRB would take a look at each file and with that UHDMaxrate setting determine that 'Ok these 20 M2TS files need to be re-encoded to lower the bit-rate to match that UHDMaxrate setting' but I guess it doesn't, it appears to just take the largest M2TS file (assuming it's the main movie) and that's the only one it determines to 'lower the bit-rate'. I'm no programmer or anything like that but if BDRB were to able someway take the initial look at the file through Mediainfo it would see that the bit-rate for that file is too high and needs to match or be under the 'UHDMaxrate' setting.

iambryanknowles
25th May 2024, 02:30
Running 1080p AVC to UHD/x265 BD9 (UHD_CONVERT_ENABLE)

was looking at the command line and noticed it says FFMPEG
x265.bat says
"C:\Program Files\BD_Rebuilder\tools\ffmpeg.exe" -probesize 100MB -i "D:\BDREBUILDER\IMPORTS\POKEMON_THE_FIRST_MOVIE_-_MEWTWO_STRIKES_BACK_(1080P)_(STABILIZED)____[DARKDREAM]\BDMV\STREAM\00000.m2ts" -an -pix_fmt yuv420p10le -f yuv4mpegpipe -strict -1 -vf pad=1920:1080:0:22 - | "C:\Program Files\BD_Rebuilder\tools\x265-64.exe" - --preset slow --profile main10 --uhd-bd --repeat-headers --vbv-bufsize 45000 --vbv-maxrate 48000 --colorprim bt709 --transfer bt709 --colormatrix bt709 --fps 23.976 --sar 1:1 --qpfile "D:\BDREBUILDER\WORKFILES\VID_00000.CHP" --keyint 24 --bitrate 5979 --y4m --vbv-bufsize 17000 --vbv-maxrate 17500 --stats "D:\BDREBUILDER\WORKFILES\VID_00000.AVS.hevc.stats" --pass 2 --output "D:\BDREBUILDER\WORKFILES\VID_00000.AVS.hevc"

but I have it set for DGDecNV - shouldn't the .avs file be being fed to x265?

Or am I misunderstanding?

Actually, it happens in Alternate MKV/HEVC mode as well. My gpu is a 970m, so maybe it's always checking HEVC support on the gpu for x265 encoding, even with an AVC source? It does index the file before encoding.

jdobbs
30th May 2024, 21:04
On that subject... I was thinking about adding QuickSync support (probably via FFMPEG). But in a test (using a 13th gen i5 [i5-13420H] with built-in UHD graphic support) doing H265 encoding I was a little surprised how much slower it was than my Nvidia card. My Nvidia card is giving well over 300fps on 1080p encodes -- and I was only averaging about 100fps using that GPU and Quicksync. Is that typical? It doesn't seem that much faster than X265 on that same CPU?If you want to give me command lines for both QuickSync and Nvidia that I could run against the same MKV, I can can share the outcome.

I have EVGA GeForce RTX 3060 XC GAMING 12GB, 12G-P5-3657-KR, and i7-14700k (UHD770), and i9-10900k(uhd630) that I can run it against.I just noticed, isn't the i5 13420H a mobile processor? Will its GPU be as strong as a desktop 13th gen's UHD7xx gpu?.Just a note on this topic. I ended up buying a DELL notebook with an I7-1360P processor and IRIS Xe graphics. I'm doing some testing -- and it is actually running significantly faster than my Nvidia card. (I just did a 1080p encode at 465fps.) I'm pretty excited about that. I also noticed that Rigaya has developed QSVEncC which is very similar to the NVEncC software that I'm using in BD-RB and NVENCC. That's what I used for the encode I mentioned. It was way faster than my testing with FFMPEG. So it may not be a huge task enhancing BD-RB to take advantage of the Intel Quick Sync technology.

I'll let you know what I find.

iambryanknowles
30th May 2024, 23:24
Also just ran into a problem where creating a 720p AVCHD BD5, the calculated bitrate is based on converting the audio to AC3, even when Do Not Encode DTS is selected.

Edit: Remebered DTS isn't part of the spec. But assuming it should auto enable ac3 encoding then?

jdobbs
31st May 2024, 15:03
Also just ran into a problem where creating a 720p AVCHD BD5, the calculated bitrate is based on converting the audio to AC3, even when Do Not Encode DTS is selected.

Edit: Remebered DTS isn't part of the spec. But assuming it should auto enable ac3 encoding then?Exactly.

iambryanknowles
8th June 2024, 19:48
Oops. Realized my mistake there.

Today I ran into an issue when importing an mkv that has Dolby Digital Plus with Atmos data. When it converts the 5.1 file to ac3, it results in a stereo file.

Emulgator
9th June 2024, 12:50
Just a note on this topic. I ended up buying a DELL notebook with an I7-1360P processor and IRIS Xe graphics. I'm doing some testing -- and it is actually running significantly faster than my Nvidia card. (I just did a 1080p encode at 465fps.) I'm pretty excited about that. I also noticed that Rigaya has developed QSVEncC which is very similar to the NVEncC software that I'm using in BD-RB and NVENCC. That's what I used for the encode I mentioned. It was way faster than my testing with FFMPEG. So it may not be a huge task enhancing BD-RB to take advantage of the Intel Quick Sync technology.
Testwise I am calling both h.265 hardware encoders from Staxrip 2.39.3 for UHD-BD encode attempts.
(Notebook i9-11900K, Intel UHD750, QSVEncC is eating less power than NVEncC nVidia 3080, and the latter is free to run a different encode)
At the moment I have problems with rigaya's QSVEncC builds north of 7.61.
Controlled from Staxrip these won't take orders, although parameters seem to be passed the console reports some defaults
Up to QSVEncC 7.61 they do work, but Bitrate is off, undershooting by far, like -50%.
This may be needing some matching work.

Ah, just seeing Staxrip updated to 2.40. Testing this combo now, defaults only...
The h.265 fault stays with rigaya's QSVEncC builds north of 7.62.
rigaya's QSVEncC 7.65 runs h264, runs MPEG-2, runs VP9, (AV1 is not supported on my platform)

I have just reported that to rigaya https://github.com/rigaya/QSVEnc/issues/202

Got rigaya's answer: add --function-mode PG to commandline and it works again.

jdobbs
9th June 2024, 16:17
Oops. Realized my mistake there.

Today I ran into an issue when importing an mkv that has Dolby Digital Plus with Atmos data. When it converts the 5.1 file to ac3, it results in a stereo file.I just tested importing an MKV with Atmos -- I see the same thing.

It appears that when reading the extracted audio with AVISYNTH, it sees the source as stereo. I haven't played with this in a while. Anyone have any ideas? I found that I can use FFMPEG to convert the audio to AC3 and it works. But that isn't really a solution, just a workaround.

I also tried using a newer version of NicAudio.dll and it correctly decodes as 6 channel (the old one didn't), but it didn't solve the issue. I'll look at the code and see what I can do about it.

iambryanknowles
9th June 2024, 23:25
Similarly, importing mkv with 7.1 TrueHD converts to a mono ac3.

jdobbs
9th June 2024, 23:55
Similarly, importing mkv with 7.1 TrueHD converts to a mono ac3.Weird. I wonder what has changed? I would have thought an issue like this would have been reported a long time ago.

tebasuna51
10th June 2024, 08:59
I just tested importing an MKV with Atmos -- I see the same thing.

It appears that when reading the extracted audio with AVISYNTH, it sees the source as stereo. I haven't played with this in a while. Anyone have any ideas? I found that I can use FFMPEG to convert the audio to AC3 and it works. But that isn't really a solution, just a workaround.

I also tried using a newer version of NicAudio.dll and it correctly decodes as 6 channel (the old one didn't), but it didn't solve the issue. I'll look at the code and see what I can do about it.

When I let the development of NicAudio, in 2012, was because there are others AviSynth decoders better.

I test mkv's with THD, THD Atmos, EAC3 7.1 and EAC3 Atmos and LWLibavAudioSource() work fine output the right number of channels and 24 int for THD or 32 float for EAC3.

Of course the Atmos data is ignored, we need Cavernize to decode EAC3 Atmos in a specific speakers config.

jdobbs
12th June 2024, 00:32
When I let the development of NicAudio, in 2012, was because there are others AviSynth decoders better.

I test mkv's with THD, THD Atmos, EAC3 7.1 and EAC3 Atmos and LWLibavAudioSource() work fine output the right number of channels and 24 int for THD or 32 float for EAC3.

Of course the Atmos data is ignored, we need Cavernize to decode EAC3 Atmos in a specific speakers config.I ended up modifying the code to just using FFMPEG. In my testing it works fine.

I'm close to releasing a new version that will include this fix, a few others, and the addition of support for Intel Quick Sync GPU encoding.

I've also modified NVENCCRE so it also includes support for Intel GPUs. I call it GPUENCC now.

MrVideo
13th June 2024, 14:42
How does one get NVENCCRE to resize to 4K? I have a 1080p video that I need to upconvert to 4K. Here's the deal. My UHD player/BenQ projector combo refuses to play 1080/25i videos at 25i.The player passes 1080p/60 to the projector. I do not know if it is because the player can't negotiate the frame rate, or the player just won't do the MKV file at the encoded frame rate. The BenQ manual lists 1080/25i in its list.

What's the big deal, you might ask. I have many original Doctor Who DVDs at 25fps and want to view them at the original frame rate. I know that it will display 4K at 25. I bought the original 25fps DVDs specifically to view them at the original frame rate.

Any chance of getting the new GPUENCC to include upconverting to 4K?

The idea is not to try and go directly from 576i to 2160, as the video isn't square pixels. The idea is to go to 1080/25i using AVIsynth to resize to 1080, adding black borders to get to 1920x1080. Then upconvert to 4K.

Thanks.

Emulgator
13th June 2024, 17:08
Since such upconverting algos may well differ from task to task
I can only suggest to do this outside from BD-RB, pass such task to Avisynth/Topaz, then simple mux, then reimport.
Control would be at your hands then, and jdobbs free from responsibility for solving any such combination in his free software.
Uprezzing alone has many choices that can not hoped to be incorporated. Hi-Q uprezzing asks for something like Topaz, or other AI stuff.
Hard to do any maintenance for all combos for free, I would gather.
(Depending on source: varying SAR/DAR, letterboxing, and: can you trust flagging, and one user wanting source untouched,
but working externally upconverted on all playback combos,
and other user wanting source restored to the max temporal/statial resolution, of course with max compatibility, and next user please...)

MrVideo
13th June 2024, 22:58
Topaz is not free. Spending $300 on this side project is not worth it Plus, it does not work with Win7.

Doing an uprez is already available, i.e., 720p to 1080p. Yes, SAR/DAR is an issue, which is why I've done that outside of BDRB. The user can be easily warned that uprezzing is for 1:1 pixel operation only.

jdobbs
14th June 2024, 00:54
How does one get NVENCCRE to resize to 4K? I have a 1080p video that I need to upconvert to 4K. Here's the deal. My UHD player/BenQ projector combo refuses to play 1080/25i videos at 25i.The player passes 1080p/60 to the projector. I do not know if it is because the player can't negotiate the frame rate, or the player just won't do the MKV file at the encoded frame rate. The BenQ manual lists 1080/25i in its list.

What's the big deal, you might ask. I have many original Doctor Who DVDs at 25fps and want to view them at the original frame rate. I know that it will display 4K at 25. I bought the original 25fps DVDs specifically to view them at the original frame rate.

Any chance of getting the new GPUENCC to include upconverting to 4K?

The idea is not to try and go directly from 576i to 2160, as the video isn't square pixels. The idea is to go to 1080/25i using AVIsynth to resize to 1080, adding black borders to get to 1920x1080. Then upconvert to 4K.

Thanks.Try adding this to the "Options" area of your NVENCCRE.INI:

ENC_CUSTOM=--output-res 3840x2160

MrVideo
14th June 2024, 03:33
Try adding this to the "Options" area of your NVENCCRE.INI:

ENC_CUSTOM=--output-res 3840x2160
Thank you kind sir... that did the trick. The UHD player and Benq projector are happy now: displaying 2160 @ 25.

Is there a list somewhere containing all of the available options?

MrVideo
14th June 2024, 04:03
Too bad that I can't sync the AVIsynth script with the nVidia GPU encoder via NVENCCRE. Using an HEVC software encoder would be a Royal PITA, as it would take many, many hours. The GPU is just so much faster. That said, the jobs can be done in parallel, i.e., while a DVD file was being recoded to 1080, NVENCCRE can be doing a recode to 2160. But going from 576 to 2160 at the same time would be better.

What I noticed is that 576 DVDs actually have lower horizontal resolution than 480 DVDs. Huh, you may say. A 480 4:3 video is 640x480. The DVD is 720x480 (sometimes 704). 576 4:3 is 768x576. The DVD is 720. Oops, fewer horizontal bits.

jdobbs
15th June 2024, 01:24
Too bad that I can't sync the AVIsynth script with the nVidia GPU encoder via NVENCCRE. Using an HEVC software encoder would be a Royal PITA, as it would take many, many hours. The GPU is just so much faster. That said, the jobs can be done in parallel, i.e., while a DVD file was being recoded to 1080, NVENCCRE can be doing a recode to 2160. But going from 576 to 2160 at the same time would be better.

What I noticed is that 576 DVDs actually have lower horizontal resolution than 480 DVDs. Huh, you may say. A 480 4:3 video is 640x480. The DVD is 720x480 (sometimes 704). 576 4:3 is 768x576. The DVD is 720. Oops, fewer horizontal bits.You may want to look at some of the options available directly via NVENCC (using ENC_CUSTOM=) at this link (https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md) -- there are quite a few things you can do directly that AVISYNTH does for you. One thing to look at, though is the order of any preprocessing (--vpp) options. For example, one annoying thing I found is that the output resizing happens before padding. So if you wanted to change a 4:3 source into a 16:9 1080p output, for example, you would have to do this:

--output-res 1440x1080 --vpp-pad 240,0,240,0

Lathe
15th June 2024, 04:43
I'm wondering if BDRB does this or if actually ANYTHING does this...

I have a nice MKV file of a full movie, all encoded to be Blu-ray compliant. It has 4 audio tracks, the main audio and 3 commentary tracks. Now, with MKVMerge, you can see every track, nicely labeled for what it is. Main audio, director's commentary, 2nd commentary with so and so, and 3rd commentary with that person. AND, all the subs are taken from 3 different sources and I think go with all the commentary tracks as well as the main audio.

But, here's the catch... As soon as I use TSMuxer to mux it into BDMV folder form to burn to Blu-ray, WHAM! all the nice titles of each track are totally lost and after muxing it merely says 'Track 1', 'Track 2', etc...

IS there ANY way at all with BDRB or otherwise to preserve all the excellent titles of each stream when you mux the MKV file into a Blu-ray folder? I have not found a way to do that which really sux because it sure would be NICE to then play the resulting Blu-ray and see all the tracks and their names so you know which is which.

Any suggestions? Thanks!

***EDIT

Here is what I'm seeing when the file is in its MKV form. This is ALL LOST, any way to keep it?

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 38 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 449 MiB (2%)
Title : Main
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 130 MiB (1%)
Title : Commentary by director John Dahl, writer Rick Dahl and editor Scott Chestnut
Language : English
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -31 dB
compr : -7.50 dB
dynrng : -7.50 dB
ltrtcmixlev : -3.0 dB
ltrtsurmixlev : -3.0 dB
lorocmixlev : -3.0 dB
lorosurmixlev : -3.0 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #3
ID : 4
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 38 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 135 MiB (1%)
Title : Commentary by historian Alain Silver and filmmaker Christopher Coppola
Language : English
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -31 dB
compr : -0.28 dB
ltrtcmixlev : -3.0 dB
ltrtsurmixlev : -3.0 dB
lorocmixlev : -3.0 dB
lorosurmixlev : -3.0 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #4
ID : 5
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 304 MiB (2%)
Title : Commentary by Mondo Digital's Nathaniel Thompson
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Text #1
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 30 min
Bit rate : 40 b/s
Frame rate : 0.183 FPS
Count of elements : 993
Stream size : 26.5 KiB (0%)
Title : US / Vinegar Syndrome
Language : English (US)
Default : No
Forced : No

Text #2
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 30 min
Bit rate : 39 b/s
Frame rate : 0.145 FPS
Count of elements : 787
Stream size : 25.9 KiB (0%)
Title : UK / Plan B Entertainment
Language : English (GB)
Default : No
Forced : No

Text #3
ID : 8
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 37 min
Bit rate : 46 b/s
Frame rate : 0.220 FPS
Count of elements : 1291
Stream size : 33.5 KiB (0%)
Title : SDH / US / Vinegar Syndrome
Language : English (US)
Default : No
Forced : No

Text #4
ID : 9
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 38 min
Bit rate : 44 b/s
Frame rate : 0.212 FPS
Count of elements : 1249
Stream size : 31.8 KiB (0%)
Title : SDH / US / Umbrella Entertainment
Language : English (US)
Default : No
Forced : No

Text #5
ID : 10
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 32 min
Bit rate : 39 b/s
Frame rate : 0.147 FPS
Count of elements : 814
Stream size : 26.6 KiB (0%)
Title : SDH / UK / Plan B Entertainment
Language : English (GB)
Default : No
Forced : No

***EDIT 2

Okay, here is the metadata shown in TSMuxer. Is there a way to add the titles to this so that it will show when the resulting Blu-ray is burned to disc?

MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500
V_MPEG4/ISO/AVC, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", insertSEI, contSPS, track=1, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=2, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=3, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=4, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=5, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=6, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=7, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=8, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=9, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=10, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=11, lang=vie

MrVideo
15th June 2024, 09:57
You may want to look at some of the options available directly via NVENCC (using ENC_CUSTOM=) at this link (https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md) -- there are quite a few things you can do directly that AVISYNTH does for you. One thing to look at, though is the order of any preprocessing (--vpp) options. For example, one annoying thing I found is that the output resizing happens before padding. So if you wanted to change a 4:3 source into a 16:9 1080p output, for example, you would have to do this:

--output-res 1440x1080 --vpp-pad 240,0,240,0
Thanks for the update. I will certainly dig into this.

MrVideo
16th June 2024, 03:25
I'm not sure what I am doing wrong, but when I do
ENC_CUSTOM=--output-res 2880x2160 --vpp-pad 480,0,480,0
or
ENC_CUSTOM=--output-res 2880x2160
ENC_CUSTOM=--vpp-pad 480,0,480,0
The resulting video in both cases is 2880x2160. The padding was never added.

UPDATE: I just looked at the NV last command file and the --vpp-pad is nowhere to be found. The 2nd example above was what I used in this case.

iambryanknowles
16th June 2024, 05:59
For IMPORT_PAL_TO_FILM=1, it seems that the video frame rate changes, but that the audio doesn't reencode to match. Is that handled by another option, or is that something that can be implemented in the new release?

Edit: Tested this with PCM afterwards and that worked, so I think it's at odds with "don't reencode ac3".

When importing a Pal to Film file, the chapters don't seem to be adjusted.

Also, when PAL is imported as film this way, it is automatically resized in avisynth, regardless of Scale SD to 720/1080. Is there a chance you could allow that scaling directly from the PAL frame size?

jdobbs
16th June 2024, 13:19
I'm not sure what I am doing wrong, but when I do
ENC_CUSTOM=--output-res 2880x2160 --vpp-pad 480,0,480,0
or
ENC_CUSTOM=--output-res 2880x2160
ENC_CUSTOM=--vpp-pad 480,0,480,0
The resulting video in both cases is 2880x2160. The padding was never added.

UPDATE: I just looked at the NV last command file and the --vpp-pad is nowhere to be found. The 2nd example above was what I used in this case.You can't put two ENC_CUSTOM lines. When you do, the first one is the only one that is applied. But the first line looks like it should work. Look through our INI and make sure there isn't more than one.

jdobbs
16th June 2024, 13:23
For IMPORT_PAL_TO_FILM=1, it seems that the video frame rate changes, but that the audio doesn't reencode to match. Is that handled by another option, or is that something that can be implemented in the new release?

Edit: Tested this with PCM afterwards and that worked, so I think it's at odds with "don't reencode ac3".

When importing a Pal to Film file, the chapters don't seem to be adjusted.

Also, when PAL is imported as film this way, it is automatically resized in avisynth, regardless of Scale SD to 720/1080. Is there a chance you could allow that scaling directly from the PAL frame size?If the frame rate is changed, then the audio definitely has to be adjusted too -- so the AC3 has to be reencoded. I thought I'd made the code force the reencode, but I'll look at it and see.

MrVideo
16th June 2024, 13:58
You can't put two ENC_CUSTOM lines. When you do, the first one is the only one that is applied. But the first line looks like it should work. Look through our INI and make sure there isn't more than one.
Thanks for the tip about the ENC_CUSTOM. It is the first one in the file. All of the others are commented out anyway. I put it back to the single line and ran it again. Still no joy, but:
"C:\BD_Rebuilder-0.61.25\tools\nvenc\nvencc.exe" --avhw --output-res 2880x2160
--vpp-pad 480,0,480,0 --interlace auto --vpp-deinterlace normal -i "E:\Doctor_Who-test.mkv"
--codec h265 --preset default --profile main10 --output-depth 10 --chromaloc auto --colorprim auto
--transfer auto --colormatrix auto --master-display copy --max-cll copy --qp-min 0 --multipass 2pass-full
--vbr 4000 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24
--no-b-adapt --gop-len 24 --audio-copy 1 --sub-copy --chapter-copy
-o "E:\BD-REBUILDER\WORK\Doctor_Who-test.mkv"
Notice how the pad is there. I use it all the time to add letterbox black to videos, so I know it can work.

UPDATE: I did some more digging. I took the output from the run and placed it into VideoReDo. The 4:3 image was squished horizontally. It makes no difference if the pad was before, or after, the res value. What I discovered makes perfect sense. And what was that? The output res doesn't have the padding added to it to make it 3840. The output res is what it actually puts out. So, what it does is take the output res and subtract any padding and upsizes that value. In this case 2880. Within an AVISynth script, you add padding to the original file and then upres it to the final size. I've never tried upressing to a 4:3 size and then adding padding.

So, one has to remember that the output res must be the final result and you figure out what the padding needs to be to get to that final size.

Learn something new every day.

Lathe
16th June 2024, 23:45
I'm wondering if BDRB does this or if actually ANYTHING does this...

I have a nice MKV file of a full movie, all encoded to be Blu-ray compliant. It has 4 audio tracks, the main audio and 3 commentary tracks. Now, with MKVMerge, you can see every track, nicely labeled for what it is. Main audio, director's commentary, 2nd commentary with so and so, and 3rd commentary with that person. AND, all the subs are taken from 3 different sources and I think go with all the commentary tracks as well as the main audio.

But, here's the catch... As soon as I use TSMuxer to mux it into BDMV folder form to burn to Blu-ray, WHAM! all the nice titles of each track are totally lost and after muxing it merely says 'Track 1', 'Track 2', etc...

IS there ANY way at all with BDRB or otherwise to preserve all the excellent titles of each stream when you mux the MKV file into a Blu-ray folder? I have not found a way to do that which really sux because it sure would be NICE to then play the resulting Blu-ray and see all the tracks and their names so you know which is which.

Any suggestions? Thanks!

***EDIT

Here is what I'm seeing when the file is in its MKV form. This is ALL LOST, any way to keep it?

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 38 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 449 MiB (2%)
Title : Main
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 130 MiB (1%)
Title : Commentary by director John Dahl, writer Rick Dahl and editor Scott Chestnut
Language : English
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -31 dB
compr : -7.50 dB
dynrng : -7.50 dB
ltrtcmixlev : -3.0 dB
ltrtsurmixlev : -3.0 dB
lorocmixlev : -3.0 dB
lorosurmixlev : -3.0 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #3
ID : 4
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 38 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 135 MiB (1%)
Title : Commentary by historian Alain Silver and filmmaker Christopher Coppola
Language : English
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -31 dB
compr : -0.28 dB
ltrtcmixlev : -3.0 dB
ltrtsurmixlev : -3.0 dB
lorocmixlev : -3.0 dB
lorosurmixlev : -3.0 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #4
ID : 5
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 304 MiB (2%)
Title : Commentary by Mondo Digital's Nathaniel Thompson
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Text #1
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 30 min
Bit rate : 40 b/s
Frame rate : 0.183 FPS
Count of elements : 993
Stream size : 26.5 KiB (0%)
Title : US / Vinegar Syndrome
Language : English (US)
Default : No
Forced : No

Text #2
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 30 min
Bit rate : 39 b/s
Frame rate : 0.145 FPS
Count of elements : 787
Stream size : 25.9 KiB (0%)
Title : UK / Plan B Entertainment
Language : English (GB)
Default : No
Forced : No

Text #3
ID : 8
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 37 min
Bit rate : 46 b/s
Frame rate : 0.220 FPS
Count of elements : 1291
Stream size : 33.5 KiB (0%)
Title : SDH / US / Vinegar Syndrome
Language : English (US)
Default : No
Forced : No

Text #4
ID : 9
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 38 min
Bit rate : 44 b/s
Frame rate : 0.212 FPS
Count of elements : 1249
Stream size : 31.8 KiB (0%)
Title : SDH / US / Umbrella Entertainment
Language : English (US)
Default : No
Forced : No

Text #5
ID : 10
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 32 min
Bit rate : 39 b/s
Frame rate : 0.147 FPS
Count of elements : 814
Stream size : 26.6 KiB (0%)
Title : SDH / UK / Plan B Entertainment
Language : English (GB)
Default : No
Forced : No

***EDIT 2

Okay, here is the metadata shown in TSMuxer. Is there a way to add the titles to this so that it will show when the resulting Blu-ray is burned to disc?

MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500
V_MPEG4/ISO/AVC, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", insertSEI, contSPS, track=1, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=2, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=3, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=4, lang=eng
A_AC3, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv", track=5, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=6, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=7, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=8, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=9, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=10, lang=eng
S_TEXT/UTF8, "D:\__MKVMerge\Red.Rock.West.1993.1080p.BluRay.FLAC.2.0.x264-c0kE.mkv",font-name="Arial",font-size=65,font-color=0xffffffff,bottom-offset=24,font-border=5,text-align=center,video-width=1920,video-height=1038,fps=23.976, track=11, lang=vie

I guess not... :)

jdobbs
17th June 2024, 21:56
I guess not... :)I can tell you I don't know how. I'll look around and see if I can find anything.

Lathe
18th June 2024, 03:52
I can tell you I don't know how. I'll look around and see if I can find anything.

Oh, thanks man! Didn't expect a reply from The Man himself! :D

Emulgator
18th June 2024, 13:09
I think there is no provision in .m2ts to have property <title>
It might be able to shoehorn something in somewhere, but which application shall read that ?
https://stackoverflow.com/questions/40278071/extract-original-name-date-from-m2ts-mpeg2-ts-files

Lathe
19th June 2024, 00:44
I think there is no provision in .m2ts to have property <title>
It might be able to shoehorn something in somewhere, but which application shall read that ?

Appreciate the input. Just seems to me like something that would be very basic. Now, when playing commercial Blu-rays, I THINK they show titles to the tracks. Might hafta start ripping everything to MKV so I can display the track titles :D (nah...)

MrVideo
20th June 2024, 02:34
Does anyone know how to repair subtitle tracks that do not have the dts in sequential order? The NV encoder bitches about the subtitle being wrong and aborts. Funny thing is is that the program that created the MKV file in the first place didn't bitch about it. Using a later tsmuxer beta to rewrap to m2ts doesn't fix it (it was a long shot).

At the moment I'm running the program without saving the subtitle streams. Personally I do not really care about them.

jdobbs
22nd June 2024, 21:32
I have updated the first post of this thread with a link to the latest release (v0.62.01) of BD Rebuilder. Changes for this release:
- Added support for GPU encoding using Intel
GPUs (Quick Sync). Note that your GPU must
be advanced enough, must have support enabled
and drivers installed. This feature is still
in the experimental stages and needs testing.
If you would like to test it, you can enable
it by adding "QSYNC_TEST=1" to the "Options"
area of BDREBUILDER.INI. Please report your
findings on the DOOM9 BD Rebuilder Bug
Reporting site.
- Replaced NVENCCRE with GPUENCCRE so that it
supports both NVIDIA and INTEL GPUs.
- Set GPUENCCRE to remux MKV output via
MKVMERGE by default to low the probability
of errors in muxing. It can be changed
via the OUTPUT/SPECIAL PROCESSING menu.
- Corrected NVENCCRE error (now GPUENCCRE)
that caused subtitles to not be handled
properly when using "Keep Original Video
(Intact)" mode.
- Fixed an error when importing files that
include Dolby E-AC3/ATMOS or TRUEHD that
could result in stereo or mono output.
- Added a text clarifier when imports fail
due to illegal character(s) in the path or
filename.
- Fixed an issue in which converting DVD/BD
to SRT was failing due to changes in the
newer version of MKVEXTRACT.
- Fixed an issue in import resizing of
certain input file that use slight off size
widths.
- Other minor corrections and cosmetic fixes.

Lowpro
22nd June 2024, 22:58
I have updated the first post of this thread with a link to the latest release (v0.62.01) of BD Rebuilder. Changes for this release:
- Added support for GPU encoding using Intel
GPUs (Quick Sync). Note that your GPU must
be advanced enough, must have support enabled
and drivers installed. This feature is still
in the experimental stages and needs testing.
If you would like to test it, you can enable
it by adding "QSYNC_TEST=1" to the "Options"
area of BDREBUILDER.INI. Please report your
findings on the DOOM9 BD Rebuilder Bug
Reporting site.
- Replaced NVENCCRE with GPUENCCRE so that it
supports both NVIDIA and INTEL GPUs.
- Set GPUENCCRE to remux MKV output via
MKVMERGE by default to low the probability
of errors in muxing. It can be changed
via the OUTPUT/SPECIAL PROCESSING menu.
- Corrected NVENCCRE error (now GPUENCCRE)
that caused subtitles to not be handled
properly when using "Keep Original Video
(Intact)" mode.
- Fixed an error when importing files that
include Dolby E-AC3/ATMOS or TRUEHD that
could result in stereo or mono output.
- Added a text clarifier when imports fail
due to illegal character(s) in the path or
filename.
- Fixed an issue in which converting DVD/BD
to SRT was failing due to changes in the
newer version of MKVEXTRACT.
- Fixed an issue in import resizing of
certain input file that use slight off size
widths.
- Other minor corrections and cosmetic fixes.

Very nice. Very nice, indeed. Thanks!

musiclover
23rd June 2024, 16:00
The release of the new GPUENCC doesn't work with Nvencc for me. I keep getting the message "- ERROR -- Encode failed. Job aborted." right at the start of each job. While NVENCCRE handles these jobs OK.
Is GPUENCC supposed to work at once or does it need changes in the GPUENCC.INI file?
----------------------
[06.23.24] GPU Reencoder v0.01.12
----------------------
[16:50:06]Start Job [1 of 1]
- Reencoding "The Analogues at Pinkpop 2024.mp4"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
- ERROR -- Encode failed. Job aborted.

----------------------
[06.23.24] NVENCC Reencoder v0.10.15
----------------------
[16:52:00]Start Job [1 of 1]
- Reencoding "The Analogues at Pinkpop 2024.mp4"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
[16:58:14]Job Completed [1 of 1]

jdobbs
23rd June 2024, 20:13
The release of the new GPUENCC doesn't work with Nvencc for me. I keep getting the message "- ERROR -- Encode failed. Job aborted." right at the start of each job. While NVENCCRE handles these jobs OK.
Is GPUENCC supposed to work at once or does it need changes in the GPUENCC.INI file?
----------------------
[06.23.24] GPU Reencoder v0.01.12
----------------------
[16:50:06]Start Job [1 of 1]
- Reencoding "The Analogues at Pinkpop 2024.mp4"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
- ERROR -- Encode failed. Job aborted.

----------------------
[06.23.24] NVENCC Reencoder v0.10.15
----------------------
[16:52:00]Start Job [1 of 1]
- Reencoding "The Analogues at Pinkpop 2024.mp4"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
[16:58:14]Job Completed [1 of 1]
Hmmm... I thought I'd left that code untouched -- but I just tried a job and got the same result. I'll find out what I did and post a new version today.

jdobbs
23rd June 2024, 20:41
Hmmm... I thought I'd left that code untouched -- but I just tried a job and got the same result. I'll find out what I did and post a new version today.It was a dumbass mistake (I'm known for those). I've fixed it and will post a new version in a few minutes.

jdobbs
23rd June 2024, 20:51
I have updated the first post of this thread with a link to the latest release of BD Rebuilder (v0.62.02). Changes for this release (and v0.62.01):June 23rd, 2024 - v0.62.02
- Fixed an error that caused GPUENCCRE to fail
when attempting to use NVIDIA. (v0.62.02)
- Added support for GPU encoding using Intel
GPUs (Quick Sync). Note that your GPU must
be advanced enough, must have support enabled
and drivers installed. This feature is still
in the experimental stages and needs testing.
If you would like to test it, you can enable
it by adding "QSYNC_TEST=1" to the "Options"
area of BDREBUILDER.INI. Please report your
findings on the DOOM9 BD Rebuilder Bug
Reporting site.
- Replaced NVENCCRE with GPUENCCRE so that it
supports both NVIDIA and INTEL GPUs.
- Set GPUENCCRE to remux MKV output via
MKVMERGE by default to low the probability
of errors in muxing. It can be changed
via the OUTPUT/SPECIAL PROCESSING menu.
- Corrected NVENCCRE error (now GPUENCCRE)
that caused subtitles to not be handled
properly when using "Keep Original Video
(Intact)" mode.
- Fixed an error when importing files that
include Dolby E-AC3/ATMOS or TRUEHD that
could result in stereo or mono output.
- Added a text clarifier when imports fail
due to illegal character(s) in the path or
filename.
- Fixed an issue in which converting DVD/BD
to SRT was failing due to changes in the
newer version of MKVEXTRACT.
- Fixed an issue in import resizing of
certain input file that use slight off size
widths.
- Other minor corrections and cosmetic fixes.

musiclover
23rd June 2024, 21:18
Thank you for the quick fix.

I used the fixed version to do the same job twice. First using NVIDIA Encoding GPU and the second time using INTEL Encoding GPU.
----------------------
[06.23.24] GPU Reencoder v0.01.13
----------------------
[22.03.55]Start Job [1 of 1]
- Reencoding "Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"
-- Collecting input file information...
-- Input : AVC, 1280x720, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
-- Remuxing output with MKVMERGE
[22.06.45]Job Completed [1 of 1]
----------------------
[06.23.24] GPU Reencoder v0.01.13
----------------------
[22.07.19]Start Job [1 of 1]
- Reencoding "Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"
-- Collecting input file information...
-- Input : AVC, 1280x720, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
-- Remuxing output with MKVMERGE
[22.10.07]Job Completed [1 of 1]

Both GPU's were equally quick doing the job. And the results were identical in size.

Alas the log does not indicate which GPU is used.

Lathe
23rd June 2024, 21:24
It was a dumbass mistake (I'm known for those). I've fixed it and will post a new version in a few minutes.

'THE MAN' does not make dumbass mistakes... https://lh3.googleusercontent.com/pw/AP1GczNbHYEU7SXU6hiIPoDFs1zcmEvyx9P0WbGl6ruemF25_PdeDrslBGUr23QjuMeRv-fuYNHz7cKN9Eskl7F5jMx1Yz1XUHCBJIqo5kSqgGrhTmAkRWMa59XctCb1XFFTpOIf1-RMl_0BlSQfE23bufCL4w=w15-h15-s-no-gm?authuser=0

Our Faith will not be shaken Sir...

jdobbs
23rd June 2024, 21:40
'THE MAN' does not make dumbass mistakes... https://lh3.googleusercontent.com/pw/AP1GczNbHYEU7SXU6hiIPoDFs1zcmEvyx9P0WbGl6ruemF25_PdeDrslBGUr23QjuMeRv-fuYNHz7cKN9Eskl7F5jMx1Yz1XUHCBJIqo5kSqgGrhTmAkRWMa59XctCb1XFFTpOIf1-RMl_0BlSQfE23bufCL4w=w15-h15-s-no-gm?authuser=0

Our Faith will not be shaken Sir...Oh yeah? Well I just found another one in BD-RB that makes UHD backups fail when using Intel Quick Sync.

Ugggghhhh...

jdobbs
23rd June 2024, 21:42
Alas the log does not indicate which GPU is used. Good idea. I'll add that.

Lathe
23rd June 2024, 21:43
Oh yeah? Well I just found another one that makes UHD backups fail when using Intel Quick Sync.

Ugggghhhh...

Okay... NOW yer pushin' it... :D

jdobbs
23rd June 2024, 22:04
Both GPU's were equally quick doing the job. And the results were identical in size. That worries me a bit. After each job is completed, can you look at GPULASTCMD.TXT (in the destination folder) and make sure the right encoder is executed? I don't have a machine that supports both encoders, so I can't test that. I can only do one or the other.

musiclover
24th June 2024, 08:52
Good idea. I'll add that.

You could maybe also log the activities of audio and subtitles.

musiclover
24th June 2024, 09:08
That worries me a bit. After each job is completed, can you look at GPULASTCMD.TXT (in the destination folder) and make sure the right encoder is executed? I don't have a machine that supports both encoders, so I can't test that. I can only do one or the other.

You were right to worry. Both jobs used nvencc.exe

NVIDIA Encoding GPU selected
----------------------
[06.24.24] GPU Reencoder v0.01.13
----------------------
[09.55.48]Start Job [1 of 1]
- Reencoding "Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"
-- Collecting input file information...
-- Input : AVC, 1280x720, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
-- Remuxing output with MKVMERGE
[09.58.43]Job Completed [1 of 1]

"C:\BD Rebuilder\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --interlace auto --vpp-deinterlace normal -i "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv" --codec h264 --preset default --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 23 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 --audio-copy 1 --sub-source "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.srt" --sub-copy 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 --chapter-copy -o "D:\WORK\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"


INTEL Encoding GPU selected
----------------------
[06.24.24] GPU Reencoder v0.01.13
----------------------
[09.59.18]Start Job [1 of 1]
- Reencoding "Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"
-- Collecting input file information...
-- Input : AVC, 1280x720, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
-- Remuxing output with MKVMERGE
[10.02.09]Job Completed [1 of 1]

"C:\BD Rebuilder\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --interlace auto --vpp-deinterlace normal -i "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv" --codec h264 --preset default --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 23 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 --audio-copy 1 --sub-source "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.srt" --sub-copy 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 --chapter-copy -o "D:\WORK\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"

dietachi
24th June 2024, 12:36
Is it possible to select the Intel GPU in the same way as in the cmd command of qsvenc?
I have a multi-GPU setup in one of my machines, an Intel Arc A770 and an iGPU - Intel UHD 770.
As well as a non-Intel - Nvidia RTX 2060, which shouldn't be affected by that.

jdobbs
24th June 2024, 13:23
You were right to worry. Both jobs used nvencc.exe

NVIDIA Encoding GPU selected
----------------------
[06.24.24] GPU Reencoder v0.01.13
----------------------
[09.55.48]Start Job [1 of 1]
- Reencoding "Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"
-- Collecting input file information...
-- Input : AVC, 1280x720, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
-- Remuxing output with MKVMERGE
[09.58.43]Job Completed [1 of 1]

"C:\BD Rebuilder\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --interlace auto --vpp-deinterlace normal -i "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv" --codec h264 --preset default --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 23 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 --audio-copy 1 --sub-source "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.srt" --sub-copy 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 --chapter-copy -o "D:\WORK\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"


INTEL Encoding GPU selected
----------------------
[06.24.24] GPU Reencoder v0.01.13
----------------------
[09.59.18]Start Job [1 of 1]
- Reencoding "Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"
-- Collecting input file information...
-- Input : AVC, 1280x720, 25fps
-- Output: H264 (AVC), No Resize, Keep fps, CQ 23
-- Remuxing output with MKVMERGE
[10.02.09]Job Completed [1 of 1]

"C:\BD Rebuilder\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --interlace auto --vpp-deinterlace normal -i "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv" --codec h264 --preset default --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 23 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 --audio-copy 1 --sub-source "E:\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.srt" --sub-copy 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 --chapter-copy -o "D:\WORK\Doctor Who 2023 S01E08 Empire of Death 720p DSNP WEB-DL DD 5 1 H 264-playWEB.mkv"That's really weird. I can't repeat that. I changed the code so I can set to one or the other (regardless of whether the GPU exists) and the correct command line is generated.

jellyhead1
24th June 2024, 15:04
I just tried the QSVEnc option and the resulting video was converted from 1920x804 to 1920x1356. I don't see any options to change which would correct this.

Another question I've have for some time, is how to stop BDRebuilder from adding the black bars to movies when the source does not have them.

jdobbs
24th June 2024, 15:27
I just tried the QSVEnc option and the resulting video was converted from 1920x804 to 1920x1356. I don't see any options to change which would correct this.

Another question I've have for some time, is how to stop BDRebuilder from adding the black bars to movies when the source does not have them.The resizing error was in BD Rebuilder, or GPUENCCE? Can you post the command line that was used for the encode? In BD Rebuilder it is in LASTCMD.TXT in the BD-RB folder, in GPUENCCRE it is called GPULASTCMD.TXT and is located in the destination folder.

BD Rebuilder has to add the black bars because the Blu-Ray standard only accepts standard sizes (3840x2160, 1920x1080, 1440x1080, 1280x720, and 720x480/576 [NTSC/PAL]).

musiclover
24th June 2024, 15:48
That's really weird. I can't repeat that. I changed the code so I can set to one or the other (regardless of whether the GPU exists) and the correct command line is generated.

After some more testing I come to the conclusion that switching from GPU after a job leads to GPUENCC using the previous GPU or giving an error message. For the right outcome after switching from GPU I have to restart GPUENCC and then all works well.

jdobbs
24th June 2024, 19:13
After some more testing I come to the conclusion that switching from GPU after a job leads to GPUENCC using the previous GPU or giving an error message. For the right outcome after switching from GPU I have to restart GPUENCC and then all works well.I found some issues with switching from one to the other as well. A couple of settings that are meant for NVIDIA weren't being reset when I reselected the INTEL option a second time. I've fixed it and will create a new release soon. I'm going to do some more testing before I do.

jdobbs
24th June 2024, 19:46
After some more testing I come to the conclusion that switching from GPU after a job leads to GPUENCC using the previous GPU or giving an error message. For the right outcome after switching from GPU I have to restart GPUENCC and then all works well.Could you try replacing GPUENCC.exe with the one in this zip file (https://jammernhilftnichts.de/jdobbs/GPUENCC0114.zip) and see if it fixes your issue?

musiclover
24th June 2024, 21:39
Could you try replacing GPUENCC.exe with the one in this zip file (https://jammernhilftnichts.de/jdobbs/GPUENCC0114.zip) and see if it fixes your issue?

With this version NVIDIA GPU is working fine, but INTEL GPU is not completing the jobs. It failed mostly before 10% of the job was done. The longest it worked was 70% of the job. Even restarting the program had no effect.


[06.24.24] GPU Reencoder v0.01.14
----------------------
[22.26.39]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[22.30.11]Job Completed [1 of 1]
----------------------
[06.24.24] GPU Reencoder v0.01.14
----------------------
[22.30.51]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
- ERROR -- Encode failed. Job aborted.

"C:\BD Rebuilder\BD_Rebuilder\tools\qsvenc\qsvencc.exe" --avhw --output-res 1280x720 -i "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" --codec h264 --quality balanced --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --icq 20 --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --gop-len 24 --audio-copy 1 --sub-source "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.srt" --sub-copy 17,1,2 --chapter-copy -o "D:\WORK\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"

jdobbs
24th June 2024, 23:14
With this version NVIDIA GPU is working fine, but INTEL GPU is not completing the jobs. It failed mostly before 10% of the job was done. The longest it worked was 70% of the job. Even restarting the program had no effect.


[06.24.24] GPU Reencoder v0.01.14
----------------------
[22.26.39]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[22.30.11]Job Completed [1 of 1]
----------------------
[06.24.24] GPU Reencoder v0.01.14
----------------------
[22.30.51]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
- ERROR -- Encode failed. Job aborted.

"C:\BD Rebuilder\BD_Rebuilder\tools\qsvenc\qsvencc.exe" --avhw --output-res 1280x720 -i "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" --codec h264 --quality balanced --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --icq 20 --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --gop-len 24 --audio-copy 1 --sub-source "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.srt" --sub-copy 17,1,2 --chapter-copy -o "D:\WORK\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"Thanks for the feedback. Can you run the command from a COMMAND prompt and see what error you are getting? I haven't had any problems with encoding...

I do see a possible unrelated issue, though. The input isn't 16:9, but the resizing is outputting it to 1280x720 with no padding. That's probably true on both encodes.

The previous version succeeded in encoding (but having to restart it)?

jellyhead1
25th June 2024, 04:31
The resizing error was in BD Rebuilder, or GPUENCCE? Can you post the command line that was used for the encode?

This was encoding to alternate output "MKV Container, 1920x1080, 640kbs DD5.1" which is what I normally use. I was using NVEnc or software before upgrading to an i9-10900K without experiencing this. I have encoded many videos using the software encoder and i9 with v0.61.29 without an issue.

LASTCMD.TXT:
"C:\Video Editing\BDRebuilder\tools\qsvenc\qsvencc.exe" --avs -i "G:\VIDEO RECORDING\MOVIES\HD\BLU-RAY\BDREBUILDER\WORKFILES\TEMP.AVS" --quality balanced --qp-min 0 --icq 17 --sar 1:1 --aud --pic-struct --vbv-bufsize 30000 --max-bitrate 35000 --no-b-adapt --gop-len 24 -o "G:\VIDEO RECORDING\MOVIES\HD\BLU-RAY\BDREBUILDER\WORKFILES\TEMP.264"

I don't see a "GPULASTCMD.TXT", just the usual "BD-REBUILDER.LOG" and "MOVIE_NAME.inf"

This is the MOVIE_NAME.inf:
[Status]
LABEL=MOVIE_NAME
VERSION=v0.62.02
SOURCE_SIZE=8568563712
SOURCE_VIDEO_SIZE=8568563712
TARGET_SIZE=24641536000
REDUCTION=2.87580705801257
RESIZE_1080=0
RESIZE_1440=0
AUDIO_TO_KEEP=eng;
KEEP_HD_AUDIO=-1
SUBS_TO_KEEP=eng;
BACKUP_MODE=1
MOVIEONLY_TYPE=10
USE_LAVF=0
INSTANCES=1
DGDECNV=0
DGDECIM=0
FRIMSOURCE=0
FFMS2=0
SSIF_MODE=0
UHD_V3_MODE=0
QUICK=0
ENCODE_STEP=0
COMPLETED=1
REBUILD_COMPLETE=1
[00000]
AUDIO=1
PGS=1000
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=24641536000
NSIZE=0
FLINK=0
MLINK=0

This is the BD-REBUILDER.LOG:
[06/24/24] BD Rebuilder v0.62.02
[19:12:07] Source: MOVIE_NAME_00000
- Input BD size: 7.98 GB
- Approximate total content: [02:28:11.757]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV Container, 1920x1080, 640Kbs DD5.1
- Quality: High Quality (Default)
- Decoding/Frame serving: QSVENCC
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[19:12:11] PHASE ONE, Encoding
- [19:12:11] Processing: VID_00000 (1 of 1)
- [19:12:11] Extracting A/V streams [VID_00000]
- [19:12:31] Reencoding video [VID_00000]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 213,189 frames
- [19:12:31] Reencoding: VID_00000, Pass 1 of 1
- Analyzing 17.00 19.00 [19.00]
- [19:33:55] Video Encode complete
- [19:33:55] Processing audio tracks
- Track 4352 (eng): Keeping original audio
[19:33:57]PHASE ONE complete
[19:33:57]PHASE TWO - Rebuild Started
- [19:33:57] Building ALTERNATE OUTPUT Structure
[19:34:34] - Encode and Rebuild complete
- WORKFILES folder removed.
[19:34:35] JOB: MOVIE_NAME finished.

musiclover
25th June 2024, 09:53
Thanks for the feedback. Can you run the command from a COMMAND prompt and see what error you are getting? I haven't had any problems with encoding...

I do see a possible unrelated issue, though. The input isn't 16:9, but the resizing is outputting it to 1280x720 with no padding. That's probably true on both encodes.

The previous version succeeded in encoding (but having to restart it)?

A strange thing happened today. After starting my computer this morning GPUENCC v0.01.14 worked perfectly. No problems with changing the GPU's. I wonder what happened yesterday though. There was certainly something wrong going on but I cannot make that happen today although I performed the same job. I hate it when that happens. Don't you?

----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[09.29.34]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[09.35.48]Job Completed [1 of 1]
----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[09.47.10]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[09.50.55]Job Completed [1 of 1]
----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[09.54.36]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[10.00.52]Job Completed [1 of 1]
----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[10.03.11]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[10.06.59]Job Completed [1 of 1]
----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[10.18.26]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 20
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[10.25.51]Job Completed [1 of 1]

As you can see the NVIDIA GPU is quicker handling the job but the INTEL GPU has a much better size ratio. But the difference is huge. I don't trust it.
The size of the source file was 5.005.060 kb. NVIDIA GPU made that 3.254.475 kb and INTEL GPU came to 1.151.442 kb.
The padding is an issue with both GPU's.

musiclover
25th June 2024, 19:48
Tonight I tried again with the same job with both GPU's. Both jobs completed OK. But.... I didn't change a thing in the settings and still the outcome was different from this morning. The end size of the NVIDIA GPU job was 2.180.806 kb and that of the INTEL GPU job was 901.306 kb. It struck me to see that though I set the highest constant quality this morning and also tonight at CQ23 GPUENCC used this morning constantly CQ20 but tonight it used CQ23.

----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[20.23.25]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 23
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[20.26.56]Job Completed [1 of 1]
----------------------
[06.25.24] GPU Reencoder v0.01.14
----------------------
[20.28.07]Start Job [1 of 1]
- Reencoding "House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : AVC, 1920x960, 23.976fps
-- Vid: H264 (AVC), 1280x720, Keep fps, CQ 23
-- Aud: Intact (Keep Original), no reencode
-- Remuxing output with MKVMERGE
[20.35.31]Job Completed [1 of 1]

Last command of this morning
"C:\BD Rebuilder\BD_Rebuilder\tools\qsvenc\qsvencc.exe" --avhw --output-res 1280x720 -i "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" --codec h264 --quality balanced --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --icq 20 --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --gop-len 24 --audio-copy 1 --sub-source "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.srt" --sub-copy 17,1,2 --chapter-copy -o "D:\WORK\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"

Last command of tonight
"C:\BD Rebuilder\BD_Rebuilder\tools\qsvenc\qsvencc.exe" --avhw --output-res 1280x720 -i "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" --codec h264 --quality balanced --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --icq 23 --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --gop-len 24 --audio-copy 1 --sub-source "E:\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.srt" --sub-copy 17,1,2 --chapter-copy -o "D:\WORK\House.of.the.Dragon.S02E02.1080p.REPACK.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv"

I hope you can get to the bottom of this.

jdobbs
25th June 2024, 21:43
So you're saying it changed to CQ23 on its own?

jdobbs
25th June 2024, 21:48
As you can see the NVIDIA GPU is quicker handling the job but the INTEL GPU has a much better size ratio. But the difference is huge. I don't trust it.
The size of the source file was 5.005.060 kb. NVIDIA GPU made that 3.254.475 kb and INTEL GPU came to 1.151.442 kb.
The padding is an issue with both GPU's. I don't think the CQ values of the two encoders are equivalent, or the algorithm for ICQ (Intel) and VBR-Quality (NVIDIA) are significantly different. I'm going to have to do some encode quality testing (PSNR/SSIM) to see what numbers/results are approximately equal.

dietachi
25th June 2024, 22:41
I don't think the CQ values of the two encoders are equivalent, or the algorithm for ICQ (Intel) and VBR-Quality (NVIDIA) are significantly different. I'm going to have to do some encode quality testing (PSNR/SSIM) to see what numbers/results are approximately equal.

Intel ICQ: Requires more processing power because it’s constantly adjusting to maintain quality.

Nvidia VBR Quality: Requires less processing power because it balances data use without frequent adjustments.


In ICQ (Intelligent Constant Quality), the file size depends on the video’s complexity because it adjusts the bitrate to maintain consistent quality throughout. Complex scenes use more data, resulting in larger file sizes, whereas simpler scenes use less. This means ICQ can sometimes produce smaller files with better quality because it efficiently allocates data based on scene requirements.

In VBR (Variable Bitrate), the file size is more predictable but can vary because it aims for an average bitrate. While it balances quality and file size, some scenes might get less data than needed, resulting in lower quality compared to ICQ's more targeted data allocation.

ICQ can still look better even with a smaller file size compared to VBR. This happens because ICQ focuses on maintaining consistent quality by efficiently allocating data to more complex scenes while using less for simpler ones.

VBR, aiming for an average bitrate, might allocate data less efficiently, resulting in larger files but not necessarily better quality.

Thus, a 1GB ICQ-encoded video can appear better than a 5GB VBR-encoded video because ICQ prioritizes quality over size.

jdobbs
25th June 2024, 23:51
VBR-Quality isn't simple VBR. Newer versions of NVENCC use the parameter --qvbr (same thing). It also set's a quality target and adjusts based upon video complexity. It is the NVENCC equivalent to QSVENCC's ICQ and X264/X265's CRF.

You can see other NVENCC options and read about qvbr at at this link (https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md#--crop-intintintint).

dietachi
26th June 2024, 00:33
VBR-Quality isn't simple VBR. Newer versions of NVENCC use the parameter --qvbr (same thing). It also set's a quality target and adjusts based upon video complexity. It is the NVENCC equivalent to QSVENCC's ICQ and X264/X265's CRF.

You can see other NVENCC options and read about qvbr at at this link (https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md#--crop-intintintint).

While the core concept and goals of ICQ and QVBR are aligned, real-world outcomes can still exhibit variations due to the unique approaches and optimizations each company employs in their encoding solutions.

You may want to run some test encodes with both engines and compare them, that's what I did.

jdobbs
26th June 2024, 00:57
While the core concept and goals of ICQ and QVBR are aligned, real-world outcomes can still exhibit variations due to the unique approaches and optimizations each company employs in their encoding solutions.

You may want to run some test encodes with both engines and compare them, that's what I did.I think I have a pretty good understanding of how these things work. For example, here are some results (https://forum.doom9.org/showthread.php?p=1929974#post1929974) that compares the NVIDIA (CQM, qvbr) settings to X264 (CRF) using SSIM (Structural Similarity Index Measure). A few posts down you'll see a similar test in which I used PSNR (Peak Signal to Noise Ratio) and came to an almost identical conclusion.

One of the weaknesses I see in QSVENCC (Intel) is that you have to choose the quality factor as an integer, while X264 and NVENCC both use a floating values (note, however, that NVENCC quality output only changes at roughly .5 increments).

dietachi
26th June 2024, 01:08
I think I have a pretty good understanding of how these things work. For example, here are some results (https://forum.doom9.org/showthread.php?p=1929974#post1929974) that compares the NVIDIA (CQM, qvbr) settings to X264 (CRF)


My apologies.

I was referring to the QSVEnc vs NVEnc.

In the test that I conducted the ICQ on Intel was slower compared to the QVBR on NVIDIA.
But ICQ had better results.
I also run CQP on QSVEnc but that is very hard to control as it is a lot affected by the video, grain etc.that one needs additional settings.

I tested with the Arc 750, Arc 770, RTX 2060 and RTX 3080. As well with Intel UHD 770 and Intel Iris.

dietachi
26th June 2024, 01:28
I try to run some tests this weekend if you'd like on the Arcs.

jdobbs
26th June 2024, 01:45
I try to run some tests this weekend if you'd like on the Arcs.I'd be interested to see the results.

musiclover
26th June 2024, 07:11
So you're saying it changed to CQ23 on its own?

Yes, that's what I'm saying. GPUENCC has 3 settings. 32 (Good Quality), 28 (High Quality) and 23 (Highest Quality). I used 23 (Highest Quality). So how did it get to 20?

update:
Oh, now I see. The NVIDIA GPU settings are different from the INTEL GPU settings. The above numbers are fore the NVIDIA GPU. The highest quality setting with the INTEL GPU is 20. It needed to change between the NVIDIA and INTEL jobs but it didn't.

jdobbs
26th June 2024, 14:09
Yes, that's what I'm saying. GPUENCC has 3 settings. 32 (Good Quality), 28 (High Quality) and 23 (Highest Quality). I used 23 (Highest Quality). So how did it get to 20?

update:
Oh, now I see. The NVIDIA GPU settings are different from the INTEL GPU settings. The above numbers are fore the NVIDIA GPU. The highest quality setting with the INTEL GPU is 20. It needed to change between the NVIDIA and INTEL jobs but it didn't. I should have mentioned that. The numbers aren't equivalent between encoders, so they change.

After I do some SSIM and PSNR testing I'll probably change the defaults for the Intel GPU.

Just as a reference, you can set what you want the values to be with on the menu with an option in the GPUENCC.INI file. For example:


NV_HEVC_Q_VALUES=32,28,23
QSV_HEVC_Q_VALUES=28,23,20

NV_AVC_Q_VALUES=32,28,23
QSV_AVC_Q_VALUES=28,23,20

The example values above are the defaults if they aren't explicitly set.

musiclover
26th June 2024, 15:23
I should have mentioned that. The numbers aren't equivalent between encoders, so they change.

But they didn't change. This behaviour must be amended.

jdobbs
26th June 2024, 15:38
But they didn't change. This behaviour must be amended.When you select between them you aren't selecting the number as much as the quality/size level (Good, High, and Highest). The highest setting creates a result that has better quality -- at the expense of a larger size. They change to a value that should be roughly equivalent between the two encoders. A value of 20 in one encoder may be equal to a value of 23 in another (in terms of size and quality). For example, from my previous testing I know that a value of 23 in X264 is equivalent to a value of 28 in the NVIDIA encoder.

But... like I said, I need to do some tests to determine what values are equivalent between INTEL and NVIDIA.

musiclover
26th June 2024, 16:02
Originally Posted by jdobbs
So you're saying it changed to CQ23 on its own?

I was just saying that when I change from GPU the CQ doesn't change with it. It stays on 20 or 23 for the highest quality just what is was when I started GPUENCC. That needs to be rectified. See the logs in my earlier posts.
You wrote before that a couple of settings that are meant for NVIDIA weren't being reset when you reselected the INTEL option. This is one of them.

jdobbs
27th June 2024, 01:15
I was just saying that when I change from GPU the CQ doesn't change with it. It stays on 20 or 23 for the highest quality just what is was when I started GPUENCC. That needs to be rectified. See the logs in my earlier posts.
You wrote before that a couple of settings that are meant for NVIDIA weren't being reset when you reselected the INTEL option. This is one of them.Yep. I checked and that is definitely the case. I've fixed it for the next release.

jdobbs
27th June 2024, 02:04
I've started my SSIM comparisons of NVENCC and QSVENCC. I'll have completed the HEVC tests later tonight and will do AVC tomorrow. From what it looks like so far with the HEVC testing, the Intel (QSVENCC) encoder is giving the the same objectively measured quality at a significantly smaller file size (using --qvbr for NVENCC vs --icq for QSVENCC). Impressive. More to come...

jdobbs
27th June 2024, 14:44
So below is what I found in my comparison of HEVC encoding for NVIDIA and INTEL using NVENCC and QSVENCC.

The SSIM values were based upon 11 sources that varied in type, complexity, and cinematography. Samples (using the BD-RB size estimation algorithm) were made from all 11 and were combined into a source for encode. It was then encoded using whole constant quality values ranging from 11 to 40 (rarely would you use anything higher or lower). The default quality values were used ("default" in NVENCC and "balanced" in GPUENCC). The original file size was 2830849344. The SSIM values were gathered using FFMPEG's SSIM calculator.

It's mainly meant for informational/planning purposes. So, for example, if you like encoding with a CQM (NVIDIA) value of 28 you would use an ICQ (Intel) value of 27 for approximately equivalent quality and your file would be 87.57% of the output size.

Of course there would be variability based upon the source... but this provides a rough guideline. Also, this isn't meant to be a comparison of the two encoders. I'd have to get a lot more scientific for that. Frankly they are both incredibly fast and provide high quality. It's really meant to provide me with a basis for the default values I use in BD-RB and GPUENCC so I can add Intel support to them.


nvidia ssim file size intel ssim file size size diff

nv_hevc_11 0.99469 2735438211 qsv_hevc_11 0.99492 2370988385 86.68 %
nv_hevc_12 0.99448 2552227295
nv_hevc_13 0.99401 2328739840 qsv_hevc_12 0.99420 2151610991 92.39 %
nv_hevc_14 0.99338 2122928050 qsv_hevc_13 0.99337 1919639622 90.42 %
nv_hevc_15 0.99244 1900798214 qsv_hevc_14 0.99236 1686108802 88.71 %
nv_hevc_16 0.99132 1688757477 qsv_hevc_15 0.99134 1486820316 88.04 %
nv_hevc_17 0.99009 1492524278 qsv_hevc_16 0.99005 1289467174 86.40 %
nv_hevc_18 0.98871 1310176603 qsv_hevc_17 0.98864 1116438300 85.21 %
nv_hevc_19 0.98728 1148904500 qsv_hevc_18 0.98702 960051106 83.56 %
nv_hevc_20 0.98584 1009198253 qsv_hevc_19 0.98533 821968709 81.45 %
nv_hevc_21 0.98436 885250807
nv_hevc_22 0.98282 772522049 qsv_hevc_20 0.98337 690590341 89.39 %
nv_hevc_23 0.98117 666817944 qsv_hevc_21 0.98144 583298263 87.47 %
nv_hevc_24 0.97950 573435830 qsv_hevc_22 0.97931 481562861 83.98 %
nv_hevc_25 0.97791 493929976 qsv_hevc_23 0.97716 394645310 79.90 %
nv_hevc_26 0.97634 423749808 qsv_hevc_24 0.97651 370217079 87.37 %
qsv_hevc_25 0.97589 349571314
nv_hevc_27 0.97472 360136885 qsv_hevc_26 0.97526 331796120 92.13 %
nv_hevc_28 0.97322 307347661 qsv_hevc_27 0.97312 269137749 87.57 %
nv_hevc_29 0.97173 261407806 qsv_hevc_28 0.97105 218090181 83.43 %
nv_hevc_30 0.97027 222447802
nv_hevc_31 0.96877 187941863 qsv_hevc_29 0.96899 174132836 92.65 %
nv_hevc_32 0.96730 158906997 qsv_hevc_30 0.96703 141389351 88.98 %
nv_hevc_33 0.96580 134505532
nv_hevc_34 0.96434 114609022 qsv_hevc_31 0.96489 112962058 98.56 %
nv_hevc_35 0.96279 97577670 qsv_hevc_32 0.96299 92046174 94.33 %
nv_hevc_36 0.96118 83653349 qsv_hevc_33 0.96143 79951128 95.57 %
nv_hevc_37 0.95954 72067442 qsv_hevc_34 0.95938 67142107 93.17 %
nv_hevc_38 0.95776 62530064 qsv_hevc_35 0.95721 57324572 91.68 %
nv_hevc_39 0.95583 54649663 qsv_hevc_36 0.95506 49657159 90.86 %
nv_hevc_40 0.95368 47941203 qsv_hevc_37 0.95286 43762369 91.28 %
qsv_hevc_38 0.95107 41276063
qsv_hevc_39 0.94866 36743861
qsv_hevc_40 0.94613 33191208

giavra
27th June 2024, 16:21
please can the developer of the program add the target size up BD100?

jdobbs
27th June 2024, 20:53
please can the developer of the program add the target size up BD100?You can do that with the hidden option:

CUSTOM_TARGET_SIZE=nnnnn

Replace the "nnnnn" with the size you want. It is measured in one megabyte units ( 1MB=1048576 bytes). For example, if you wanted to set it to the default for BD-50:

CUSTOM_TARGET_SIZE=47366

jdobbs
28th June 2024, 14:40
Below are my results for AVC using the same method as described previously. Quite a difference in results when comparing AVC vs HEVC. So in this example, if you normally use a 28 for your NVIDIA AVC encoding (equivalent to a 23 in X264), you would want to use a 24 with the Intel encoder to get similar quality/size.

Again, these result are based upon my NVIDIA GPU and INTEL GPU. Results for others may vary -- but it is, at least, a guideline.
nvidia ssim file size intel ssim file size qs/nv
------ ---- --------- ----- ---- --------- -----
nv_avc_11 0.99518 2948116978
nv_avc_12 0.99497 2761225255
nv_avc_13 0.99444 2512675762
nv_avc_14 0.99379 2286065628
nv_avc_15 0.99287 2046803154
nv_avc_16 0.99175 1815499678 qsv_avc_11 0.99153 1893426489 104.29 %
nv_avc_17 0.99051 1604944659 qsv_avc_12 0.99010 1603360551 99.90 %
nv_avc_18 0.98914 1414594099 qsv_avc_13 0.98906 1433470502 101.31 %
nv_avc_19 0.98765 1246257654 qsv_avc_14 0.98823 1346877145 108.07 %
qsv_avc_15 0.98682 1194170603
nv_avc_20 0.98609 1100816582 qsv_avc_16 0.98555 1067648837 96.99 %
nv_avc_21 0.98438 968974715 qsv_avc_17 0.98399 919960017 94.94 %
nv_avc_22 0.98256 846555035
nv_avc_23 0.98065 734747056 qsv_avc_18 0.98138 783519276 106.64 %
qsv_avc_19 0.98004 682129810
nv_avc_24 0.97876 636552082 qsv_avc_20 0.97896 633512936 99.52 %
qsv_avc_21 0.97807 594858870
nv_avc_25 0.97689 550045786 qsv_avc_22 0.97634 517590569 94.10 %
nv_avc_26 0.97507 474855796 qsv_avc_23 0.97427 435570699 91.73 %
nv_avc_27 0.97320 406958743
nv_avc_28 0.97144 349505495 qsv_avc_24 0.97225 369357022 105.68 %
nv_avc_29 0.96967 298829575 qsv_avc_25 0.97013 315503691 105.58 %
nv_avc_30 0.96796 255814282 qsv_avc_26 0.96832 267564075 104.59 %
nv_avc_31 0.96628 218977265 qsv_avc_27 0.96627 222208146 101.48 %
nv_avc_32 0.96461 187703741 qsv_avc_28 0.96446 188119186 100.22 %
nv_avc_33 0.96292 161102530 qsv_avc_29 0.96336 174831668 108.52 %
qsv_avc_30 0.96221 151929585
nv_avc_34 0.96124 139469378 qsv_avc_31 0.96033 128760419 92.32 %
nv_avc_35 0.95942 120404165
qsv_avc_32 0.95846 110359080
nv_avc_36 0.95754 104934340
qsv_avc_33 0.95654 94901002
nv_avc_37 0.95549 91922125
qsv_avc_34 0.95467 81918195
nv_avc_38 0.95329 81313119 qsv_avc_35 0.95271 72491981 89.15 %
nv_avc_39 0.95088 72668211 qsv_avc_36 0.95078 65106093 89.59 %
nv_avc_40 0.94814 65427077 qsv_avc_37 0.94804 56929912 81.01 %
qsv_avc_38 0.94534 50436225
qsv_avc_39 0.94264 45691280
qsv_avc_40 0.94040 42331347

jdobbs
28th June 2024, 20:55
I have updated the first post of this thread with a link to the latest release of BD Rebuilder (v0.62.04). Changes for this release:- Corrected an error in which UHD-BD encoding
while using the INTEL GPU could fail.
- Corrected an error in GPUENCC in which
changing GPUs might cause an encode to fail
due to incorrect mode values in the command
line.
- Updated the INTEL GPU prediction tables to
make them more accurate when using ICQ.
- Fixed an issue in GPUENCC in which default
constant quality settings were not being
adjusted when changing the selected encoder.
- Added an informational line to the log in
GPUENCC the identifies which GPU is being
used for an encode.
- Other minor corrections and cosmetic fixes.

dietachi
29th June 2024, 03:18
I'd be interested to see the results.

I tried to run some tests with the latest version of BD Rebuilder.


Metric Result 1 (QSVEnc) Result 2 (QSVEncC) Result 3 (NVENC)
SSIM 0.997954 0.997589 0.998094
PSNR (dB) 52.822 51.719 52.565
File Size Avg (bytes) 988,297,957 887,747,613 1,415,654,002
File Size % Difference - -10.18% +43.17%




Encoding Speed
ARC A770: AVG 450 fps (normal), 400 fps (--bframes 16 --ref 8 --scenario-info archive)
RTX 2060 (NVENC): AVG 330 fps
Both were encoding from one NVMe to another.

Additional Notes:
- Buffer adjustments to increase encoding speed were not used for QSVEnc testing.
- AVSW can sometimes offer faster de/encoding, particularly in specific CPU/GPU configurations or when handling input file decode errors.


Based on my previous tests, CQP encoding appears to yield better SSIM and PSNR values compared to ICQ.
However, ICQ may offer advantages when precise control over file size is crucial, especially for media destined for formats like CD, DVD, or BD, where strict size limitations apply for what BD Rebuilder is intended.


Some questions:

When transitioning from encoding via GPUENCC to BDRB with HEVC selected in GPUENCC, it defaults to using HEVC for Blu-ray in BD Rebuilder. Shouldn't it default to AVC instead and switch to HEVC only for Ultra HD?


Is there a specific reason why higher b-frames, reference frames, scenario information, etc., for QSVenc, are not utilised when converting to MKV? Or is that in the planning for future versions?

jdobbs
29th June 2024, 13:15
I tried to run some tests with the latest version of BD Rebuilder.


Metric Result 1 (QSVEnc) Result 2 (QSVEncC) Result 3 (NVENC)
SSIM 0.997954 0.997589 0.998094
PSNR (dB) 52.822 51.719 52.565
File Size Avg (bytes) 988,297,957 887,747,613 1,415,654,002
File Size % Difference - -10.18% +43.17%




Encoding Speed
ARC A770: AVG 450 fps (normal), 400 fps (--bframes 16 --ref 8 --scenario-info archive)
RTX 2060 (NVENC): AVG 330 fps
Both were encoding from one NVMe to another.

Additional Notes:
- Buffer adjustments to increase encoding speed were not used for QSVEnc testing.
- AVSW can sometimes offer faster de/encoding, particularly in specific CPU/GPU configurations or when handling input file decode errors.


Based on my previous tests, CQP encoding appears to yield better SSIM and PSNR values compared to ICQ.
However, ICQ may offer advantages when precise control over file size is crucial, especially for media destined for formats like CD, DVD, or BD, where strict size limitations apply for what BD Rebuilder is intended.


Some questions:

When transitioning from encoding via GPUENCC to BDRB with HEVC selected in GPUENCC, it defaults to using HEVC for Blu-ray in BD Rebuilder. Shouldn't it default to AVC instead and switch to HEVC only for Ultra HD?


Is there a specific reason why higher b-frames, reference frames, scenario information, etc., for QSVenc, are not utilised when converting to MKV? Or is that in the planning for future versions?There is no connection between GPUENCC and BD-RB. So selecting something in GPUENCC would have no effect. The only way BD-RB will ever use HEVC is if you are creating a UHD-BD. That means the ource is UHD or "Convert BD to UHD" is selected under SETTINGS/OUTPUT OPTIONS.

GPUENCC uses a set of default settings -- I could probably make it possible to change them. You can also use the hidden option ENC_CUSTOM (do a search of this thread) to change some of the defaults.

dietachi
29th June 2024, 15:25
There is no connection between GPUENCC and BD-RB. So selecting something in GPUENCC would have no effect. The only way BD-RB will ever use HEVC is if you are creating a UHD-BD. That means the ource is UHD or "Convert BD to UHD" is selected under SETTINGS/OUTPUT OPTIONS.

GPUENCC uses a set of default settings -- I could probably make it possible to change them. You can also use the hidden option ENC_CUSTOM (do a search of this thread) to change some of the defaults.


Roger that.
I'll check the BDRB settings.

For the ENC_CUSTOM, I'll test that as well. Thank you.

I noticed that NVEnc now supports SDR to HDR on Turing GPUs as well as NVIDIA VSR (Video Super Resolution) resize, but only on x64.
I'll gonna give that a try.

musiclover
30th June 2024, 10:52
I do see a possible unrelated issue, though. The input isn't 16:9, but the resizing is outputting it to 1280x720 with no padding. That's probably true on both encodes.



The padding is an issue with both GPU's.

It seems the padding issue is not resolved yet.

musiclover
30th June 2024, 17:46
In GPUENCC the QC setting meant for INTEL wasn't reset when reselecting NVIDIA after INTEL errored out. In INTEL CQ 18 (highest quality) was selected. After changing to NVIDIA it should have changed to 23. But it didn't.

GPUREENCODE.LOG
----------------------
[06.30.24] GPU Reencoder v0.01.15
----------------------
[17.11.03]Start Job [1 of 1]
- Reencoding "Keane Glastonbury 2160p 2024-06-29 .mp4"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : HEVC, 3840x2160, 50fps
-- Vid: H264 (AVC), 1920x1080, 25 fps, CQ 18
-- Aud: Intact (Keep Original), no reencode
- ERROR -- Encode failed. Job aborted.
----------------------
[06.30.24] GPU Reencoder v0.01.15
----------------------
[17.24.15]Start Job [1 of 1]
- Reencoding "Keane Glastonbury 2160p 2024-06-29 .mp4"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : HEVC, 3840x2160, 50fps
-- Vid: H264 (AVC), 1920x1080, 25 fps, CQ 18
-- Aud: Intact (Keep Original), no reencode
[18.42.45]Job Completed [1 of 1]

GPULASTCMD.TXT
"C:\BD Rebuilder\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --fps 25 --output-res 1920x1080 -i "E:\Keane Glastonbury 2160p 2024-06-29 .mp4" --codec h264 --preset default --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 18 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 --audio-copy 1 --chapter-copy -o "D:\WORK\Keane Glastonbury 2160p 2024-06-29 .mp4"

DrinkLyeAndDie
30th June 2024, 20:16
Can someone please remind me how to import one or more HEVC MKV files and output a Bluray (AVC) disc? I am positive I've done it before but I can't remember how and I'm having no luck finding an actual answer when sifting through a lot of search results. No matter what I do I wind up with a HEVC encoded Bluray output.

jdobbs
30th June 2024, 21:17
Can someone please remind me how to import one or more HEVC MKV files and output a Bluray (AVC) disc? I am positive I've done it before but I can't remember how and I'm having no luck finding an actual answer when sifting through a lot of search results. No matter what I do I wind up with a HEVC encoded Bluray output.That shouldn't be an issue.

Do you have UHD_CONVERT_ENABLE=1 and UHD_V3_MODE=1 in your INI file? The first one makes the option "Convert BD to UHD..." available on the SETTINGS/OUTPUT OPTIONS menu. The second one gets set when you actually select it.

That should be the only way it will create HEVC Blu-Ray output from a 1080p source (or smaller).

If you are importing a 2160p HEVC source, that is different, as it has to be HEVC.

DrinkLyeAndDie
30th June 2024, 21:29
That shouldn't be an issue.

Do you have UHD_CONVERT_ENABLE=1 and UHD_V3_MODE=1 in your INI file? The first one makes the option "Convert BD to UHD..." available on the SETTINGS/OUTPUT OPTIONS menu. The second one gets set when you actually select it.

That should be the only way it will create HEVC Blu-Ray output from a 1080p source (or smaller).

If you are importing a 2160p HEVC source, that is different, as it has to be HEVC.

Thanks for the reply jdobbs. The source[s] are anywhere from 480 to 1080p. No 2160p sources. Neither of the settings you mentioned is enabled. I actually deleted my regular BDREBUILDER.INI file and let BD-RB create a new one.

I feel like I'm doing something very stupid and causing the issue but I really can't figure out what.

Here's my INI:

[Options]
VERSION=0.62.0.4
ENCODER=0
MODE=0
ENCODE_QUALITY=5
ONEPASS_ENCODING=1
AUTO_QUALITY=0
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=all
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=0
DEINTERLACE=1
SD_TO_1080=0
IGNORE_3D=0
CONVERT_WIDE=0
DTS_REENCODE=1
AC3_REENCODE=0
AC3_640=1
AC3_192=0
KEEP_HD_AUDIO=1
AUDIO_DRC=0
DECODER=3
AVCHD=1
REMOVE_WORKFILES=1
REMOVE_OUTPUT=0
USE_FILTERS=0
BDMV_CERT_ONLY=1
IVTC_PULLDOWN=0
ASSUME_DVD_PAL=0
FRIMSOURCE=0
COMPLETION_BEEP=1
OUTPUT_SBS=0
NEROAAC=1
SUPTITLE=0
PGSTOSRT=0
AUDIO_TRACK_LIMIT=1
SUBTITLE_TRACK_LIMIT=1
CUSTOM_TARGET_SIZE=22450
TARGET_SIZE=22450
NVENC_CAPABLE=1
MENU_BACKGROUND=C:\BD_Rebuilder\misc\menuback.jpg
MENU_AUDIO=C:\BD_Rebuilder\tools\blankclip\blank.ac3
IMPORT_THRESHOLD=15
QUICK_PLAY_THRESHOLD=10
MENU_AUTO_BACKGROUND=1
MENU_AUTO_DVDAUDIO=1
MENU_PLAY_SEQUENTIAL=0
MENU_START_WITH_MENU=1
IMPORT_LIMIT_LANG=0
IMPORT_KEEP_PLAYALL=0
IMPORT_PREPARE_MKV=1
MOVIEONLY_TYPE=0
ALTCRF=23
ALT_TARGET=1024
ALT_CRF_TARGET=1024
ALTMETHOD=0
ALTAUTOCROP=0
[Paths]
NeroAACPath=C:\Program Files (x86)\NeroACC\neroAacEnc.exe
SupTitlePath=C:\Program Files (x86)\SupTitle\SupTitle.dll
DGIndexNV=C:\Program Files (x86)\DGDecNV\DGIndexNV.exe
DGDecNV=C:\Program Files (x86)\DGDecNV\DGDecodeNV.dll
SOURCE_PATH=E:\_TEMP\BD-RB\IMPORTS\S01E01_-_PILOT\
TesseractPath=C:\Program Files (x86)\Tesseract-OCR\tesseract.exe
WORKING_PATH=E:\_TEMP\BD-RB\

jdobbs
30th June 2024, 22:08
Thanks for the reply jdobbs. The source[s] are anywhere from 480 to 1080p. No 2160p sources. Neither of the settings you mentioned is enabled. I actually deleted my regular BDREBUILDER.INI file and let BD-RB create a new one.

I feel like I'm doing something very stupid and causing the issue but I really can't figure out what.

Here's my INI:

[Options]
VERSION=0.62.0.4
ENCODER=0
MODE=0
ENCODE_QUALITY=5
ONEPASS_ENCODING=1
AUTO_QUALITY=0
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=all
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
RESIZE_720=0
DEINTERLACE=1
SD_TO_1080=0
IGNORE_3D=0
CONVERT_WIDE=0
DTS_REENCODE=1
AC3_REENCODE=0
AC3_640=1
AC3_192=0
KEEP_HD_AUDIO=1
AUDIO_DRC=0
DECODER=3
AVCHD=1
REMOVE_WORKFILES=1
REMOVE_OUTPUT=0
USE_FILTERS=0
BDMV_CERT_ONLY=1
IVTC_PULLDOWN=0
ASSUME_DVD_PAL=0
FRIMSOURCE=0
COMPLETION_BEEP=1
OUTPUT_SBS=0
NEROAAC=1
SUPTITLE=0
PGSTOSRT=0
AUDIO_TRACK_LIMIT=1
SUBTITLE_TRACK_LIMIT=1
CUSTOM_TARGET_SIZE=22450
TARGET_SIZE=22450
NVENC_CAPABLE=1
MENU_BACKGROUND=C:\BD_Rebuilder\misc\menuback.jpg
MENU_AUDIO=C:\BD_Rebuilder\tools\blankclip\blank.ac3
IMPORT_THRESHOLD=15
QUICK_PLAY_THRESHOLD=10
MENU_AUTO_BACKGROUND=1
MENU_AUTO_DVDAUDIO=1
MENU_PLAY_SEQUENTIAL=0
MENU_START_WITH_MENU=1
IMPORT_LIMIT_LANG=0
IMPORT_KEEP_PLAYALL=0
IMPORT_PREPARE_MKV=1
MOVIEONLY_TYPE=0
ALTCRF=23
ALT_TARGET=1024
ALT_CRF_TARGET=1024
ALTMETHOD=0
ALTAUTOCROP=0
[Paths]
NeroAACPath=C:\Program Files (x86)\NeroACC\neroAacEnc.exe
SupTitlePath=C:\Program Files (x86)\SupTitle\SupTitle.dll
DGIndexNV=C:\Program Files (x86)\DGDecNV\DGIndexNV.exe
DGDecNV=C:\Program Files (x86)\DGDecNV\DGDecodeNV.dll
SOURCE_PATH=E:\_TEMP\BD-RB\IMPORTS\S01E01_-_PILOT\
TesseractPath=C:\Program Files (x86)\Tesseract-OCR\tesseract.exe
WORKING_PATH=E:\_TEMP\BD-RB\
Nope. It's not you. I just imported an HEVC 1080p file and it did the same thing.

How the hell did I screw that up?

On the plus side, it's actually creating a legal (UHD) blu-ray when I run it... on the minus side, IT'S NOT SUPPOSED TO!

Well... it's not a new bug. I just tried v0.61.29 from a year ago -- and it does the same thing. It looks like it is something in the IMPORT routines, because afer the import BD-RB identifies the source as a UHD-BD.

DrinkLyeAndDie
30th June 2024, 23:15
Nope. It's not you. I just imported an HEVC 1080p file and it did the same thing.

How the hell did I screw that up?

On the plus side, it's actually creating a legal (UHD) blu-ray when I run it... on the minus side, IT'S NOT SUPPOSED TO!

Well... it's not a new bug. I just tried v0.61.29 from a year ago -- and it does the same thing. It looks like it is something in the IMPORT routines, because afer the import BD-RB identifies the source as a UHD-BD.

I was really beginning to think I was just a complete idiot. Glad that I'm not although that, unfortunately, means more work for you. :eek: I guess it's been quite awhile since I tried doing this. It also means no one else uses this ability very often, too, or they haven't noticed that it isn't working properly.

Thanks for looking into it and letting me know, jdobbs. Much appreciated.

jdobbs
30th June 2024, 23:42
I was really beginning to think I was just a complete idiot. Glad that I'm not although that, unfortunately, means more work for you. :eek: I guess it's been quite awhile since I tried doing this. It also means no one else uses this ability very often, too, or they haven't noticed that it isn't working properly.

Thanks for looking into it and letting me know, jdobbs. Much appreciated.Turns out this has been the case since V0.61.17 (Sept of 2020).

If you enter the line below in the "[Options]" area of your INI it should fix the issue. In the meantime I will create a more permanent solution for the next release.

ENABLE_NEW_TSMUXER=0

Lathe
30th June 2024, 23:46
Nope. It's not you. I just imported an HEVC 1080p file and it did the same thing.

How the hell did I screw that up?



Uh oh... Looks like it's time for a Regime change... https://lh3.googleusercontent.com/pw/AP1GczNuSHXicvIvdYEl-wb99oyNaE1gavkEGTT7HSnVqz5pGPEXLyXQvQ8LiOllw7D6hYjqX6y71aZ09-magBjY5mcW2zU5pSdDprOC1jGadqQHhzSQ_RRGV4lBT_9ydGbj80uWSk895V-CwIUn5x2BXCXrtg=w15-h15-s-no-gm?authuser=0

Lathe
30th June 2024, 23:52
Can someone please remind me how to import one or more HEVC MKV files and output a Bluray (AVC) disc? I am positive I've done it before but I can't remember how and I'm having no luck finding an actual answer when sifting through a lot of search results. No matter what I do I wind up with a HEVC encoded Bluray output.

So, if I am understanding correctly, this is to import say a HEVC MKV file for example, and you want to convert it either to an AVC MKV file or a fully playable 1080 Blu-ray, right?

I would also like to know how to do this because many times I do want to convert an HEVC MKV file to an x264 encoded file or Blu-ray. I THINK one way I did it was to set the output for 'Archive' and that is already set to AVC/AC3. That would also do the same, wouldn't it, or am I misremembering...?

DrinkLyeAndDie
1st July 2024, 00:19
Turns out this has been the case since V0.61.17 (Sept of 2020).

If you enter the line below in the "[Options]" area of your INI it should fix the issue. In the meantime I will create a more permanent solution for the next release.

ENABLE_NEW_TSMUXER=0

Thank you! Just did a quick test on my system and success!

jdobbs
1st July 2024, 01:01
Thank you! Just did a quick test on my system and success!So it worked? That means I was right one time in a row!

Nothing to be proud of, I guess. Even a broken clock is right twice a day.

DrinkLyeAndDie
1st July 2024, 01:24
So it worked? That means I was right one time in a row!

Nothing to be proud of, I guess. Even a broken clock is right twice a day.

Yes, it worked. I did a quick test where I imported 2 HEVC encoded TV episodes and created a Bluray from them. When it was done I checked and they were AVC encoded in the backup disc.

Would it be possible in the log window to indicate whether the output is being encoded as HEVC or AVC during the actual process. I might have noticed the issue earlier had this been indicated somewhere.

I had already wiped the test info but I redid it again but just with a single small file each way. Before adding ENABLE_NEW_TSMUXER=0 and after. I used Mediainfo to check the main m2ts file when the process was done.

Before:

General
ID : 1 (0x1)
Complete name : E:\_Work\_BD-RB\_OUTPUT\TEST\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 1.80 GiB
Duration : 43 min 43 s
Overall bit rate mode : Variable
Overall bit rate : 5 891 kb/s
Maximum Overall bit rate : 35.5 Mb/s
Frame rate : 29.970 FPS

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L4.1@High
Codec ID : 36
Duration : 43 min 42 s
Bit rate : 5 424 kb/s
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.524
Stream size : 1.66 GiB (92%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 43 min 43 s
Bit rate mode : Constant
Bit rate : 224 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 27 ms
Stream size : 70.0 MiB (4%)
Service kind : Complete Main
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

After:

General
ID : 1 (0x1)
Complete name : E:\_Work\_BD-RB\_OUTPUT\TEST\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 4.39 GiB
Duration : 43 min 43 s
Overall bit rate mode : Variable
Overall bit rate : 14.4 Mb/s
Maximum Overall bit rate : 35.5 Mb/s
Frame rate : 29.970 FPS

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 3 frames
Format settings, GOP : M=4, N=30
Codec ID : 27
Duration : 43 min 43 s
Bit rate mode : Variable
Bit rate : 13.6 Mb/s
Maximum bit rate : 35.0 Mb/s
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 1.311
Stream size : 4.15 GiB (94%)

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 43 min 43 s
Bit rate mode : Constant
Bit rate : 224 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 27 ms
Stream size : 70.0 MiB (2%)
Service kind : Complete Main
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

DrinkLyeAndDie
1st July 2024, 02:45
So, if I am understanding correctly, this is to import say a HEVC MKV file for example, and you want to convert it either to an AVC MKV file or a fully playable 1080 Blu-ray, right?

I want to take HEVC MKVs that I created from my disc library and then create a playable Blu-ray disc output to be burned to disc. I want to do this all in a single flow where I import the files directly into BD-RB and let it do the conversion and Bluray output without my having to first convert from HEVC to AVC and then import to create the Bluray output. I want a single one-step set it and forget it rather than two steps. This is doable and removing the bug this is easily doable again. :)

I would also like to know how to do this because many times I do want to convert an HEVC MKV file to an x264 encoded file or Blu-ray. I THINK one way I did it was to set the output for 'Archive' and that is already set to AVC/AC3. That would also do the same, wouldn't it, or am I misremembering...?

To just convert an HEVC MKV to an AVC MKV under Mode pick Movie-Only Backup, then select Alternate Movie-Only Output. From there select the sizing, audio, etc. If you don't want the output to remain as HEVC then make sure not to select one that is HEVC or has Intact Video in the name. Pick the one applicable to what you want or create your own alternate output selection which can be added to the alternate.txt which contains the preset options. Then import the files and off you go.

For making a standard Bluray disc it should be as simple selecting Full Backup under mode, selecting the encoder, size, etc, importing the HEVC MKVs, and off you go. Unless you explicitly tell it to create UHD (HEVC) content then I believe it used and should have continued to by default output as standard Bluray (AVC). With the added INI file option jdobbs posted this is working again.

Lathe
1st July 2024, 03:07
I want to take HEVC MKVs that I created from my disc library and then create a playable Blu-ray disc output to be burned to disc. I want to do this all in a single flow where I import the files directly into BD-RB and let it do the conversion and Bluray output without my having to first convert from HEVC to AVC and then import to create the Bluray output. I want a single one-step set it and forget it rather than two steps. This is doable and removing the bug this is easily doable again. :)



To just convert an HEVC MKV to an AVC MKV under Mode pick Movie-Only Backup, then select Alternate Movie-Only Output. From there select the sizing, audio, etc. If you don't want the output to remain as HEVC then make sure not to select one that is HEVC or has Intact Video in the name. Pick the one applicable to what you want or create your own alternate output selection which can be added to the alternate.txt which contains the preset options. Then import the files and off you go.

For making a standard Bluray disc it should be as simple selecting Full Backup under mode, selecting the encoder, size, etc, importing the HEVC MKVs, and off you go. Unless you explicitly tell it to create UHD (HEVC) content then I believe it used and should have continued to by default output as standard Bluray (AVC). With the added INI file option jdobbs posted this is working again.

Yeah, that is pretty much what I thought... Thanks for the reply. I believe I have also done that with alternate movie-only output too. I would suppose that if you wanted that final step to convert to a playable Blu-ray, you could just simply mux it through TSMuxer to create the Blu-ray folder and burn if you wished to do so.

MrVideo
1st July 2024, 04:26
Even a broken clock is right twice a day.
An old mechanical clock, maybe. But a newer digital clock; not so much. :eek:

giavra
1st July 2024, 11:57
You can do that with the hidden option:

CUSTOM_TARGET_SIZE=nnnnn

Replace the "nnnnn" with the size you want. It is measured in one megabyte units ( 1MB=1048576 bytes). For example, if you wanted to set it to the default for BD-50:

CUSTOM_TARGET_SIZE=47366

Thank You Very Much

Blurayhd
1st July 2024, 14:30
Hi all, Jdobbs mention

Added support for GPU encoding using Intel GPUs (Quick Sync). Note that your GPU must be advanced enough,

So I have an Nvidia GTX 1080 TI 11gb its enough or will crash?

jdobbs
1st July 2024, 15:53
Hi all, Jdobbs mention



So I have an Nvidia GTX 1080 TI 11gb its enough or will crash?In that post I'm talking about Intel GPU capabilities.

But, if you are talking about encoding using the GTX 1080, yes it should encode. But if you are trying to encode to UHD-BD that card doesn't have HEVC B-Frame support (see this link (https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new)). I'm not sure if that will make it not work -- but it would likely make it less efficient.

datman
1st July 2024, 16:24
It's been a long time since I posted. Perhaps somehow related to Anydvd being gone. I can no longer run BDRB. I keep getting a failure to retrieve audio. I tried reinstalling all the software no help.

Error in attempt to extract audio/subs.
- Bitstream exception Unknown exception. It does not have to be! Please contact application support team for more information.
[10:19:42] - Failed to retrieve audio, aborted

jdobbs
1st July 2024, 20:39
It's been a long time since I posted. Perhaps somehow related to Anydvd being gone. I can no longer run BDRB. I keep getting a failure to retrieve audio. I tried reinstalling all the software no help.

Error in attempt to extract audio/subs.
- Bitstream exception Unknown exception. It does not have to be! Please contact application support team for more information.
[10:19:42] - Failed to retrieve audio, abortedDo you get it on more than one source? The only time I remember seeing that in the past is when the source is corrupt.

datman
1st July 2024, 22:45
Do you get it on more than one source? The only time I remember seeing that in the past is when the source is corrupt.

Yes I loaded recent ISO files and that I already used BDRB on and got the same issue. It may have something to do with loading DVDfab the first time I got the error was just after trying to run BDRB on a DVDfab rip. Trying to find a replacement for Anydvd.

I got it to work using Xreveal to decode the rip. I'm not sure what I did wrong perhaps new software learning curve.

MrVideo
5th July 2024, 10:57
It didn't dawn me until recently that the few encode failures were not a result of the GPU, since the GPU is not handling the subtitles, or at least that is what I believe, Here is the mediainfo output:
Text #1
ID : 4
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 37 min
Bit rate : 44.6 kb/s
Frame rate : 0.449 FPS
Count of elements : 2622
Stream size : 31.1 MiB (0%)
Language : English
Default : No
Forced : No

Text #2
ID : 5
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 38 min
Bit rate : 56.2 kb/s
Frame rate : 0.259 FPS
Count of elements : 1526
Stream size : 39.5 MiB (0%)
Language : English
Default : No
Forced : No
Here is what the output log contains:
----------------------
[07/05/24] NVENCC Reencoder v0.10.7
----------------------
[04:09:13]Start Job [1 of 1]
- Reencoding "DOCTOR_WHO_S12_DISC_1_-_ROBOT.Title21.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 25fps
-- Output: H265 (HEVC), No Resize, Keep fps, VBR 4000
- ERROR -- Encode failed. Job aborted.
It only gets thru about 1425 video frames before it fails.

The MKV imported file was made by DVDFab. What I am doing is taking 1080/25 videos and upconverting to 2160/25 because my UHD player/Benq projector combo converts 576 and 1080 25fps videos into 60 fps. 2160/25 it leaves alone.

If I tell the program not to keep the subtitles, it goes to completion.

Any ideas as the what is causing the failure?

I don't use an Intel GPU, so I haven't installed the latest software yet.

jdobbs
6th July 2024, 00:03
It didn't dawn me until recently that the few encode failures were not a result of the GPU, since the GPU is not handling the subtitles, or at least that is what I believe, Here is the mediainfo output:
Text #1
ID : 4
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 37 min
Bit rate : 44.6 kb/s
Frame rate : 0.449 FPS
Count of elements : 2622
Stream size : 31.1 MiB (0%)
Language : English
Default : No
Forced : No

Text #2
ID : 5
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 38 min
Bit rate : 56.2 kb/s
Frame rate : 0.259 FPS
Count of elements : 1526
Stream size : 39.5 MiB (0%)
Language : English
Default : No
Forced : No
Here is what the output log contains:
----------------------
[07/05/24] NVENCC Reencoder v0.10.7
----------------------
[04:09:13]Start Job [1 of 1]
- Reencoding "DOCTOR_WHO_S12_DISC_1_-_ROBOT.Title21.mkv"
-- Collecting input file information...
-- Input : AVC, 1920x1080, 25fps
-- Output: H265 (HEVC), No Resize, Keep fps, VBR 4000
- ERROR -- Encode failed. Job aborted.
It only gets thru about 1425 video frames before it fails.

The MKV imported file was made by DVDFab. What I am doing is taking 1080/25 videos and upconverting to 2160/25 because my UHD player/Benq projector combo converts 576 and 1080 25fps videos into 60 fps. 2160/25 it leaves alone.

If I tell the program not to keep the subtitles, it goes to completion.

Any ideas as the what is causing the failure?

I don't use an Intel GPU, so I haven't installed the latest software yet.After it fails, go to the GPULASTCMD.TXT or LASTCMD.TXT file (depending upon which app) and run it from a CMD window to see what error is causing it to fail.

MrVideo
6th July 2024, 00:54
Sorry. I should have done that. I have in the past. I get the same error as I have before:

http://vidiot.com/images/nvlastcmd_error.jpg

Is there something that the BBC, or whomever they are using, that is causing this issue? When DVDFab creates the MKV rip of the story, it doesn't error. I'm confused as to why one works and the other doesn't.

Emulgator
6th July 2024, 07:36
non-monotonically increasing DTS: I would try to rip again using MakeMKV (has been rock solid here), and if that problem still persists it may well be a fault inherited from that particular disc.

musiclover
6th July 2024, 09:15
I do see a possible unrelated issue, though. The input isn't 16:9, but the resizing is outputting it to 1280x720 with no padding. That's probably true on both encodes.



The padding is an issue with both GPU's.

It seems the padding issue is not resolved yet.

musiclover
6th July 2024, 09:16
In GPUENCC the QC setting meant for INTEL wasn't reset when reselecting NVIDIA after INTEL errored out. In INTEL CQ 18 (highest quality) was selected. After changing to NVIDIA it should have changed to 23. But it didn't.

GPUREENCODE.LOG
----------------------
[06.30.24] GPU Reencoder v0.01.15
----------------------
[17.11.03]Start Job [1 of 1]
- Reencoding "Keane Glastonbury 2160p 2024-06-29 .mp4"
-- Using INTEL GPU for Video Encode
-- Collecting input file information...
-- Input : HEVC, 3840x2160, 50fps
-- Vid: H264 (AVC), 1920x1080, 25 fps, CQ 18
-- Aud: Intact (Keep Original), no reencode
- ERROR -- Encode failed. Job aborted.
----------------------
[06.30.24] GPU Reencoder v0.01.15
----------------------
[17.24.15]Start Job [1 of 1]
- Reencoding "Keane Glastonbury 2160p 2024-06-29 .mp4"
-- Using NVIDIA GPU for Video Encode
-- Collecting input file information...
-- Input : HEVC, 3840x2160, 50fps
-- Vid: H264 (AVC), 1920x1080, 25 fps, CQ 18
-- Aud: Intact (Keep Original), no reencode
[18.42.45]Job Completed [1 of 1]

GPULASTCMD.TXT
"C:\BD Rebuilder\BD_Rebuilder\tools\nvenc\nvencc.exe" --avhw --fps 25 --output-res 1920x1080 -i "E:\Keane Glastonbury 2160p 2024-06-29 .mp4" --codec h264 --preset default --colorprim bt709 --transfer bt709 --colormatrix bt709 --qp-min 0 --multipass 2pass-full --vbr 0 --vbr-quality 18 --aq --aq-temporal --aud --pic-struct --vbv-bufsize 45000 --max-bitrate 48000 --lookahead 24 --no-b-adapt --gop-len 24 --audio-copy 1 --chapter-copy -o "D:\WORK\Keane Glastonbury 2160p 2024-06-29 .mp4"

MrVideo
6th July 2024, 11:57
That seems to have solved it with this particular disc. I suspect the other 5 will work out just as well.

What I have noticed is that the program is not free. Yet, the web page says that while it is in beta, it is free.

Thanks for the pointer.

Mark_Venture
6th July 2024, 16:09
In GPUENCC, is there a way to limit overall bit rate while re-encoding? I mean, I know i can select CQ number which is what I usually do, but I still can end up with higher bit rates.

I select the output as Nvidia, HEVC, No-Resize, Keep FPS, CQ29 (sometimes 23)

My use case is this:

Using Plex Server and Player apps, for TV's where I use Roku Ultras (R4670 and R4802) which have 100mbps internal NICs, those devices struggle if the MKV's bit rate it too high (switching to Wifi didn't help). I know I can force the player app on the Roku to "20M 4K" for local, but that also means any disc rip over 20m will transcode during playback, even 1080p's, and I'd rather not have to transcode them all.

So when re-encoding my 4K Disc Rip MKV's with GPUENCC, I'm wondering if I can limit the bit rate to say 40-45Mbps or such overall bit rate so that way I have a copy for playback on my Roku Ultras without having to transcode, and the 1080p's wouldn't be impacted.

gonca
6th July 2024, 16:12
That seems to have solved it with this particular disc. I suspect the other 5 will work out just as well.

What I have noticed is that the program is not free. Yet, the web page says that while it is in beta, it is free.

Thanks for the pointer.

It has been in BETA, free, for about 15 years.
The license is more of a donation and it gets rid of the beta key hassle

Lathe
6th July 2024, 22:43
It has been in BETA, free, for about 15 years.
The license is more of a donation and it gets rid of the beta key hassle

HE LIVES!

BTW, how are the elk doing in your area? I hear they're dropping like flies with questionable injuries due to some unknown, insatiable force...

MrVideo
7th July 2024, 02:34
In GPUENCC, is there a way to limit overall bit rate while re-encoding? I mean, I know i can select CQ number which is what I usually do, but I still can end up with higher bit rates.

Ya, select variable bit rate instead. If you don't the values that are there, before you start the program, edit the INI file and change one of the values to what you want.

gonca
7th July 2024, 12:01
HE LIVES!

BTW, how are the elk doing in your area? I hear they're dropping like flies with questionable injuries due to some unknown, insatiable force...

You do realize that Toronto is south of some continental U,S, cities?

Blurayhd
7th July 2024, 14:36
@Jdobbs when I set for convert 2160p to 1080p I get this error and I dont know what to do!

----------------------
[22:05:41] Importing MKV: PULP_FICTION_[1994]_UHDREMUX_2160P
- Collecting audio/video streams from source...
- Building pseudo-BD source structure...
[22:17:02] Video import completed successfully.
----------------------
[07/06/24] BD Rebuilder v0.62.04
[22:17:32] Source: PULP_FICTION_[1994]_UHDREMUX_2160P_00000
- Input BD size: 76,52 GB
- Approximate total content: [02:34:30.677]
- Windows Version: 6.2 [9200]
- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV Container, 1920x1080, Intact Audio
- Quality: Highest (Very Slow)
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[22:17:32] PHASE ONE, Encoding
- [22:17:32] Processing: VID_00000 (1 of 1)
- [22:17:32] Extracting A/V streams [VID_00000]
- [22:25:11] Reencoding video [VID_00000]
- Source Video: HEVC, 3840x2160
- Rate/Length: 23,976fps, 222.274 frames
- [22:25:11] Reencoding: VID_00000, Pass 1 of 1
- Encode failed. Aborting.
- BD-Rebuilder v0.62.04
- Windows Version: 6.2 [9200]
- Working Path Free Space: 835,92GB
- AVISYNTH Version: 2.6.0.6, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[22:25:11] - Failed video encode, aborted

gonca
7th July 2024, 20:35
Try running your file thru mkvtoolnix, just to make sure there are no glitches in it

MrVideo
8th July 2024, 00:50
@Jdobbs when I set for convert 2160p to 1080p I get this error and I dont know what to do!
Run the lastcmd txt file in a CMD window to see what the error is.

MrVideo
8th July 2024, 06:15
Does anyone know of a program that can join MKV/M2TS files into a single MKV/M2TS? It turns out some of the discs I am working on do not have a play-all type playlist. At the moment that means I have to use VideoReDo to join them, but VRD does not work with sub-titles, so they are lost.

These are the videos that I have been upconverting to 2160/25.

MakeMKV doesn't seem to have an option to do so.

Thanks.

musiclover
8th July 2024, 08:37
Does anyone know of a program that can join MKV/M2TS files into a single MKV/M2TS? It turns out some of the discs I am working on do not have a play-all type playlist. At the moment that means I have to use VideoReDo to join them, but VRD does not work with sub-titles, so they are lost.

These are the videos that I have upconverting to 2160/25.

MakeMKV doesn't seem to have an option to do so.

Thanks.

MKVToolnix can do that. Right click on the file and choose append

Lathe
8th July 2024, 08:52
MKVToolnix can do that. Right click on the file and choose append

Man... you'd really think someone called 'Mr. Video' would know about this... https://lh3.googleusercontent.com/pw/AP1GczNbHYEU7SXU6hiIPoDFs1zcmEvyx9P0WbGl6ruemF25_PdeDrslBGUr23QjuMeRv-fuYNHz7cKN9Eskl7F5jMx1Yz1XUHCBJIqo5kSqgGrhTmAkRWMa59XctCb1XFFTpOIf1-RMl_0BlSQfE23bufCL4w=w15-h15-s-no-gm?authuser=0

gonca
8th July 2024, 12:11
If your audio is THD then you have carry the THD + AC3 core and merge them at the end if you want to create a playable BD disc

MrVideo
8th July 2024, 12:57
MKVToolnix can do that. Right click on the file and choose append
I never use MKVToolnix. I always use the mkv program via the command line. It'll recompute the chapter marks as well as the subtitle timings?

UPDATE: No need to do a right-click. Just drag all of the files to be merged and go from there.

MrVideo
8th July 2024, 13:00
If your audio is THD then you have carry the THD + AC3 core and merge them at the end if you want to create a playable BD disc
The audio is either plain DD or DTS-MA. All are from the DVDs and/or Blu-rays.

jellyhead1
8th July 2024, 17:23
Does anyone know of a program that can join MKV/M2TS files into a single MKV/M2TS? It turns out some of the discs I am working on do not have a play-all type playlist. At the moment that means I have to use VideoReDo to join them, but VRD does not work with sub-titles, so they are lost.

These are the videos that I have been upconverting to 2160/25.

MakeMKV doesn't seem to have an option to do so.

Thanks.

MKVToolNix (Append) or tsMuxerGUI (Join)

jdobbs
9th July 2024, 15:52
I never use MKVToolnix. I always use the mkv program via the command line. It'll recompute the chapter marks as well as the subtitle timings?

UPDATE: No need to do a right-click. Just drag all of the files to be merged and go from there. You can use mkvmerge.exe to create an MKV -- you just add plus signs between the multiple filenames and they will be appended to each other.

Blurayhd
9th July 2024, 15:56
How do you burn to disc those movies that you encode to bd25 with rebuilder? years ago I use IMGburn but I cant remember what options to set i ask this because when I try to play in some rerwritable disc player (in my case Play 3) cant play it

jdobbs
9th July 2024, 16:28
How do you burn to disc those movies that you encode to bd25 with rebuilder? years ago I use IMGburn but I cant remember what options to set i ask this because when I try to play in some rerwritable disc player (in my case Play 3) cant play itI put a link (shortcut) on my desktop to IMGBURN. Here is what I added to the "Target" area of the properties:

"C:\Program Files (x86)\ImgBurn\ImgBurn.exe" /MODE BUILD /BUILDMODE DEVICE /DEST G: /FILESYSTEM "UDF"/UDFREVISION "2.50"

My burner is drive G:

When it starts, just add the folder that contains the Blu-Ray file (BDMV, etc) and burn.

You can also select "Burn to Disc (with IMGBURN)" from the SETTINGS/OUTPUT OPTIONS menu in BD-RB if you want it to do it automatically at the end of the rebuild. You can tell it which drive to use with a hidden option:

IMGBURN_TARGET_DEVICE=s

s = Drive to use for burning with ImgBurn (ex: e:, f:, etc)

cartman0208
9th July 2024, 20:48
It has been in BETA, free, for about 15 years....
You mean ... almost as long as BD Rebuilder :D
Sorry, couldn't resist ;)

jdobbs
9th July 2024, 22:30
You mean ... almost as long as BD Rebuilder :D
Sorry, couldn't resist ;)You have to go for a record in something!

MrVideo
9th July 2024, 22:38
You can use mkvmerge.exe to create an MKV -- you just add plus signs between the multiple filenames and they will be appended to each other.
Thanks for the info.

Lathe
10th July 2024, 00:28
How do you burn to disc those movies that you encode to bd25 with rebuilder? years ago I use IMGburn but I cant remember what options to set i ask this because when I try to play in some rerwritable disc player (in my case Play 3) cant play it

After using IMGBurn for many years, I started to have trouble with it. So, I started using BurnAwareFree which I've used to burn probably well over 100 playable Blu-rays, as well as data discs with MKV files and also ISO files. I've never had one issue with it and it is free.

You just drop the BDMV/CERT files or the individual MKV's together or an ISO into the window and click 'Burn' Couldn't be easier...

HIGHLY Recommend it!

cartman0208
10th July 2024, 13:47
How do you burn to disc those movies that you encode to bd25 with rebuilder? years ago I use IMGburn but I cant remember what options to set i ask this because when I try to play in some rerwritable disc player (in my case Play 3) cant play it

From my experience rewritable discs do not play well on BD Players.
Did you try a one-time writable disc for comparison?

MrVideo
10th July 2024, 14:24
From my experience rewritable discs do not play well on BD Players.
Interesting. I've never had an issue playing rewritable BD discs in my BD players or my UHD player.

cartman0208
10th July 2024, 15:06
To be more specific ... it was a 100GB rewritable disc.
And of course it depends on the player ... and the writing drive.

jdobbs
10th July 2024, 15:29
Interesting. I've never had an issue playing rewritable BD discs in my BD players or my UHD player.To be more specific ... it was a 100GB rewritable disc.
And of course it depends on the player ... and the writing drive.
I've never had an issue either. But I don't think I've ever used a rewritable that was more than 25GB.

Blurayhd
10th July 2024, 17:06
I dont know why I tried with diferent movies that are 2160p MKV to reencode in 1080p and I always get an error from BDrebuilder, and just for curious I tried with another tool and encode just fine

I so like to encode with Rebuilder but like I sayng when I select as source an 2160p mkv and alternate movie 1080p justs give me an error

jdobbs
10th July 2024, 19:55
I dont know why I tried with diferent movies that are 2160p MKV to reencode in 1080p and I always get an error from BDrebuilder, and just for curious I tried with another tool and encode just fine

I so like to encode with Rebuilder but like I sayng when I select as source an 2160p mkv and alternate movie 1080p justs give me an errorThis happens during import?

Blurayhd
10th July 2024, 21:26
This happens during import?

No, this happens few seconds when reencode starts "Failed video encode", cancel

jdobbs
10th July 2024, 21:37
No, this happens few seconds when reencode starts "Failed video encode", cancelWeird. I just imported a 2160p source and then output it as 1080p with no issues.

What Alternate Output preset did you use? Also, which encoder did you have selected (in the SETTINGS/ENCODER menu)?

MrVideo
10th July 2024, 22:18
I've never had an issue either. But I don't think I've ever used a rewritable that was more than 25GB.
Yep, mine are 25GB only.

Blurayhd
10th July 2024, 23:13
Weird. I just imported a 2160p source and then output it as 1080p with no issues.

What Alternate Output preset did you use? Also, which encoder did you have selected (in the SETTINGS/ENCODER menu)?

- MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
- Mode: MKV Container, 1920x1080, Intact Audio

And I tried Nvidia and x264 both

Lathe
12th July 2024, 05:06
I ripped a DVD using MakeMKV and it had the usual resulting 'combing', etc... I'm running it through BDRB and I set it to use IVTC for sources that need it. But, I'm checking the resulting .264 file and also the AVS file, and it looks like BDRB is 'Decombing' using 'Blend' Now, shouldn't it be using IVTC AVS script instead? Do I need to go and add the AVS script into BDRB? If I set it to use IVTC and instead it is Decombing using blending, is that right?

Thanks!

***EDIT

Okay, here is what BDRB chose for the encode, this is with the 'Deinterlace' in the settings checked:

#Created by BD Rebuilder - v0.62.01
DirectshowSource("E:\TSMUXER\IMPORTS\A1_T00\BDMV\STREAM\00000.m2ts", fps=29.97, framecount=171698, audio=false)
MSharpen()
ConvertToYV12()
LoadPlugin("F:\EXECUTABLES\BD-RBV06201\BD_Rebuilder\tools\decomb521.dll")
FieldDeinterlace(blend=true)
ConvertToYV12().AssumeFPS(30000,1001)

Now, I ran it again and UNchecked the 'Deinterlace' and added the IVTC AVS code, and this is what it is doing now:

#Created by BD Rebuilder - v0.62.01
DirectshowSource("E:\TSMUXER\IMPORTS\A1_T00\BDMV\STREAM\00000.m2ts", fps=29.97, framecount=171698, audio=false)
TFM().TDecimate()
MSharpen()
BilinearResize(720,480)
ConvertToYV12().AssumeFPS(30000,1001)

Just doing some reading, that 'Blending' didn't sound right, so I'm trying it with just the straight IVTC, although I DO have that checked in the settings, but BDRB did NOT use it and did the Deinterlace/Blend thing instead. So, I'm a bit confused. The first encode done automatically by BDRB did get rid of the combing, but some of the motion looked a tad choppy at times.

It is a simple, basic NTSC DVD, nothing fancy.

Any thoughts...? Thanks!

***EDIT 2

I checked the resulting encode using the IVTC and so far I think it looks a LOT better. I wonder why BDRB did not choose to use that instead of the Deinterlace/Blend...?

***EDIT 3
(what would I do without edits... :))

Anyway, yeah the second encode with the 2nd settings above looks fantastic! Heh, the only thing was the video was rendered at 29.xx, so it was sped up and not in sync with the audio. I just ran the components in the Workfiles through MKVMerge and set the frame rate of the video to 23.xx since I suppose that when you use IVTC the result is progressive. Yep... when I remuxed it with the video set at the right frame rate it turned out great!

Again, am I missing something...? Why doesn't BDRB automatically set it the 2nd way? And, I'm kind of thinking that if it is a run of the mill US DVD, I bet 95% of the time I should just use IVTC, right? I wonder why BDRB chooses to 'Blend' it, it sure doesn't look as good.

jdobbs
12th July 2024, 13:28
The only time it will use "blend" is if you have this in your INI file:

DEINTERLACER_BLEND=1

From HIDDENOPTS.TXT:
DEINTERLACER_BLEND=n n = 0/1 - 0=No field blending during deinterlacing (default), 1=Blending during deinterlacing

You also have a choice of the deinterlacer type:
DEINTERLACER_TYPE=n n = 1-5 - 1=DECOMB,2=None,3=SmoothDeinterlace (default),4=Progressive (fake),5=3+1
But... I looked at the code and the default is actually "2". I must have changed it at some point and didn't change the doc.

ROB271
12th July 2024, 20:49
Hello, i would like to report a bug thats been present in BD-RB for a couple of years now

When dolby vision support was first added to BD-RB there was an initial release where the dolby vision track was given the wrong stream ID, this bug was promplty fixed by the author BUT was never fixed in the internal routine that handles the correction of bitstream exception errors returned by tsmuxer, resulting in the m2ts file where bitstream exception occured being unplayable with dolby vision enabled.

If i then demux BD-RB output the dolby vision track on an affected m2ts file where bitstream exception occured demuxes as track_4114 rather than track_4117.

Im hoping this is just a code correction for the author.

Thankyou

jdobbs
12th July 2024, 21:44
Hello, i would like to report a bug thats been present in BD-RB for a couple of years now

When dolby vision support was first added to BD-RB there was an initial release where the dolby vision track was given the wrong stream ID, this bug was promplty fixed by the author BUT was never fixed in the internal routine that handles the correction of bitstream exception errors returned by tsmuxer, resulting in the m2ts file where bitstream exception occured being unplayable with dolby vision enabled.

If i then demux BD-RB output the dolby vision track on an affected m2ts file where bitstream exception occured demuxes as track_4114 rather than track_4117.

Im hoping this is just a code correction for the author.

ThankyouI'll take a look at it.

Lathe
13th July 2024, 01:38
The only time it will use "blend" is if you have this in your INI file:

DEINTERLACER_BLEND=1

From HIDDENOPTS.TXT:
DEINTERLACER_BLEND=n n = 0/1 - 0=No field blending during deinterlacing (default), 1=Blending during deinterlacing

You also have a choice of the deinterlacer type:
DEINTERLACER_TYPE=n n = 1-5 - 1=DECOMB,2=None,3=SmoothDeinterlace (default),4=Progressive (fake),5=3+1
But... I looked at the code and the default is actually "2". I must have changed it at some point and didn't change the doc.

Thanks kindly for the reply! I still don't understand why BDRB didn't choose IVTC, which turned out looking the best...?

jdobbs
13th July 2024, 13:35
Thanks kindly for the reply! I still don't understand why BDRB didn't choose IVTC, which turned out looking the best...?Do you have "IVTC sources with 3:2 Pulldown" selected in the SETUP dialog?

Lathe
14th July 2024, 00:11
Do you have "IVTC sources with 3:2 Pulldown" selected in the SETUP dialog?

Yes...

***EDIT

I guess from now on if I am doing a normal US DVD, I'll just add this to the AVS code:

TFM().TDecimate()

It turned out really good when I did that, except I had to mux it with MKVMerge and change the frame rate to 23.xx, THEN it looked great! :)

MrVideo
14th July 2024, 04:48
Do you have "IVTC sources with 3:2 Pulldown" selected in the SETUP dialog?
That begs the question: how is the video determined to have 3:2 pulldown?

MrVideo
14th July 2024, 04:53
I guess from now on if I am doing a normal US DVD, I'll just add this to the AVS code:

TFM().TDecimate()
Based upon my above posting, it seems to me that it is not being determined that the video has 3:2 pulldown. Therefore the two IVTC filters are not being added by BDRB to its AVS script.

WAG on my part.

Lathe
14th July 2024, 04:58
Based upon my above posting, it seems to me that it is not being determined that the video has 3:2 pulldown. Therefore the two IVTC filters are not being added by BDRB to its AVS script.

WAG on my part.

Well yes, it appears that BDRB is not recognizing that the DVD has that. After running BDRB with the IVTC AVS script added, the movie came out looking perfect. But, the first time where it chose Field.Deinterlace/Blend it was choppy. So, I'm just GUESSING that it must've needed the IVTC treatment. I'm certainly not an expert on that (and I don't play one on television...)

I THINK from what I read that unless it is an unusual circumstance, basically all 'usual' US DVDs need that, so I honestly don't know...

MrVideo
14th July 2024, 08:31
I THINK from what I read that unless it is an unusual circumstance, basically all 'usual' US DVDs need that, so I honestly don't know...
If it is a movie, or scripted U.S. TV show, then yes. That is because they are all produced at 23.976/24 fps. 576 DVDs will have 25 fps source material. 25 fps source material that is standards converted to 23.976 will not be able to simply get back to 25 fps.

jdobbs
14th July 2024, 13:43
That begs the question: how is the video determined to have 3:2 pulldown?BD-RB scans the source for the pulldown flag.

But it isn't always that easy.

There are two common ways that authors adjust a 23.976/24 fps source to make it 29.97. Telecining is the most common. It's pretty easy, because the source is really 23.976, and when a player sees the flag it creates the additional frame (1 in 4) needed to make it 29.97. It is handled easily by IVTC, which just ignores the flag. But sometimes (you will see this much more often on imports) the author just repeats one frame out of every five. In that case you have to use a Decimate routine to find the repeated frame (by its similarity to the frame before it) and remove it.

Sometimes, though, especially when someone has reencoded a telecined source, you'll find one that is very difficult to fix. A telecined source has the added contrived frame (from the frame server/player) that is made up of two sets of scan lines (even and odd) -- one set is from the frame before it, and the other from the frame following it. When it is reencoded it is often done with blending to make the added frame look less contrived. The telecine flag isn't there (because the contrived frame was reencoded). When that happens it is almost impossible to make a clear 23.976 output from it and it's better just to keep it 29.97.

Also, sometimes when a telecined source is reencoded, the player or frame server inserts the contrived frame and it is reencoded as well, but this time without blending. In that case (without blending) the telecined frame can to be recognized (by the notable differences between the even and odd scan lines). That usually works out -- but can sometimes show a bit of a "skip" every now and then when the IVTC routine couldn't determine correctly which frame was inserted (in a group of five), and removes the wrong frame.

To make it even worse. Sometimes you'll find sources (even occasionally on professionally authored originals) that mix IVTC (flagged) video with video that includes contrived frames. That's why some IVTC programs have to scan the source frame-by-frame before doing the conversion so it knows where to change mechanisms during conversion.

I guess the point is that it can sometimes be very complicated. But luckily, BD-RB does most of the analysis for you. The hidden options are mostly there for the times when you run into odd sources and want to override its decisions. But it is important that you remember to disable those hidden options before you start another job -- because they might not be appropriate for it.

[Note] All of this because of engineering decisions that 30fps (29.97) would make the clearest picture on a television (because of the short persistence of phospher glow when hit by an electron beam in a picture tube) -- while motion pictures were authored at 24fps. That's also why television pictures were divided into two sets (even and odd) of scan lines, so as one faded the other was created next to it and it wasn't as noticable.

The scary part is that I'm old enough to remember when these things were happening.

RetsimLegin
14th July 2024, 14:09
I have experimented with resampling the frame rate on telecine'd material to 23.976. How successful that is depends on the how much editing AFTER conversion to 29.97 was done; in other words, whether the extra frames are uniformly spaced throughout. Where they are, it works, although some trial and error may be needed to get the first frame right (i.e. so that the skipped frame is always the extra one).

But where post editing took place, I have found it necessary to do the same thing multiple times, each with a start point one frame further in from the start. And then inspect each outout and select the parts that are right and edit them back together. Long job.

Blurayhd
14th July 2024, 18:12
Hello, why Bdrebuilder do this? why convert the DTS to Ac3? I mean I had to use another tool because for some reazon rebuilder does that?

[13:14:29] Importing MKV: SISU.2022.BDREMUX.1080P.H.264-LMHD
- Collecting audio/video streams from source...
- Converting audio, Track #3, THD to AC3...

jdobbs
14th July 2024, 22:26
Hello, why Bdrebuilder do this? why convert the DTS to Ac3? I mean I had to use another tool because for some reazon rebuilder does that?That's just the default (AC3 is very efficient). If you don't want it converted, go to the SETTINGS/SETUP dialog and check "Do not convert DTS to AC3" in the "Audio Encoding" panel.

Lathe
14th July 2024, 22:52
If it is a movie, or scripted U.S. TV show, then yes. That is because they are all produced at 23.976/24 fps. 576 DVDs will have 25 fps source material. 25 fps source material that is standards converted to 23.976 will not be able to simply get back to 25 fps.

Well, I understand the first sentence, which is good... :)

Lathe
14th July 2024, 22:57
BD-RB scans the source for the pulldown flag.

But it isn't always that easy.

There are two common ways that authors adjust a 23.976/24 fps source to make it 29.97. Telecining is the most common. It's pretty easy, because the source is really 23.976, and when a player sees the flag it creates the additional frame (1 in 4) needed to make it 29.97. It is handled easily by IVTC, which just ignores the flag. But sometimes (you will see this much more often on imports) the author just repeats one frame out of every five. In that case you have to use a Decimate routine to find the repeated frame (by its similarity to the frame before it) and remove it.

Sometimes, though, especially when someone has reencoded a telecined source, you'll find one that is very difficult to fix. A telecined source has the added contrived frame (from the frame server/player) that is made up of two sets of scan lines (even and odd) -- one set is from the frame before it, and the other from the frame following it. When it is reencoded it is often done with blending to make the added frame look less contrived. The telecine flag isn't there (because the contrived frame was reencoded). When that happens it is almost impossible to make a clear 23.976 output from it and it's better just to keep it 29.97.

Also, sometimes when a telecined source is reencoded, the player or frame server inserts the contrived frame and it is reencoded as well, but this time without blending. In that case (without blending) the telecined frame can to be recognized (by the notable differences between the even and odd scan lines). That usually works out -- but can sometimes show a bit of a "skip" every now and then when the IVTC routine couldn't determine correctly which frame was inserted (in a group of five), and removes the wrong frame.

To make it even worse. Sometimes you'll find sources (even occasionally on professionally authored originals) that mix IVTC (flagged) video with video that includes contrived frames. That's why some IVTC programs have to scan the source frame-by-frame before doing the conversion so it knows where to change mechanisms during conversion.

I guess the point is that it can sometimes be very complicated. But luckily, BD-RB does most of the analysis for you. The hidden options are mostly there for the times when you run into odd sources and want to override its decisions. But it is important that you remember to disable those hidden options before you start another job -- because they can might not be appropriate for it.

[Note] All of this because of engineering decisions that 30fps (29.97) would make the clearest picture on a television (because of the short persistence of phospher glow when hit by an electron beam in a picture tube) -- while motion pictures were authored at 24fps. That's also why television pictures were divided into two sets (even and odd) of scan lines, so as one faded the other was created next to it and it wasn't as noticable.

The scary part is that I'm old enough to remember when these things were happening.

Wow, excellent information and most helpful, thank you JD!

And hey... even though you are aging rapidly (as evidenced sadly by your inability to determine Lossless audio) you are doing a right Bang Up job here Sir! https://lh3.googleusercontent.com/pw/AP1GczM6e_HiYvWh_NfVikZ9hO9126jKfMu_uRlu8XGs6K45ncKxx-HueHuHfErKWdQsYyrv4Myhag-ji3N72UHjA9MGeSBggLGZnM9_hEhpCFD7oErYPAzX1hwBhJ984gZGlPzUy9vu_cUAQckRWRmz--wGYw=w25-h28-s-no-gm?authuser=0

Lathe
14th July 2024, 23:00
I have experimented with resampling the frame rate on telecine'd material to 23.976. How successful that is depends on the how much editing AFTER conversion to 29.97 was done; in other words, whether the extra frames are uniformly spaced throughout. Where they are, it works, although some trial and error may be needed to get the first frame right (i.e. so that the skipped frame is always the extra one).

But where post editing took place, I have found it necessary to do the same thing multiple times, each with a start point one frame further in from the start. And then inspect each outout and select the parts that are right and edit them back together. Long job.

Yep, I've had some recreated DVDs, usually from foreign HD sources, where they have encoded the file improperly. In those cases I don't have the knowhow like most of you do to go through and micro analyze to see what's wrong, so I have to just do my best to 'gloss' over everything and make it look it's best :)

Blurayhd
15th July 2024, 19:14
That's just the default (AC3 is very efficient). If you don't want it converted, go to the SETTINGS/SETUP dialog and check "Do not convert DTS to AC3" in the "Audio Encoding" panel.

Thank You but I have already that option on and still convert the track

This happens when I import from an MKV movie

gonca
15th July 2024, 19:37
Thank You but I have already that option on and still convert the track

This happens when I import from an MKV movie

Do you have
KEEP HD AUDIO
selected?

Blurayhd
15th July 2024, 20:29
Do you have
KEEP HD AUDIO
selected?

Yes I do

I don't know what's happening

MrVideo
15th July 2024, 22:37
Hello, why Bdrebuilder do this? why convert the DTS to Ac3? I mean I had to use another tool because for some reazon rebuilder does that?
You are complainig about DTS being converted to AC3, when that is not the case:
[13:14:29] Importing MKV: SISU.2022.BDREMUX.1080P.H.264-LMHD
- Collecting audio/video streams from source...
- Converting audio, Track #3, THD to AC3...
Read again what you posted. It is THD that is being converted, not DTS.

MrVideo
15th July 2024, 22:44
You also have a choice of the deinterlacer type:
DEINTERLACER_TYPE=n n = 1-5 - 1=DECOMB,2=None,3=SmoothDeinterlace (default),4=Progressive (fake),5=3+1

Maybe an option 6: TFM().TDecimate()

Lathe
15th July 2024, 23:30
Maybe an option 6: TFM().TDecimate()

You know... It's extremely rare and almost never happens, but I do believe this time you are right! :D

jdobbs
16th July 2024, 15:37
Maybe an option 6: TFM().TDecimate()That setting is for deinterlacing -- not IVTC. There are also hidden settings for IVTC:IMPORT_NO_PULLDOWN=n n = 0/1 - Default=0, if set to 1, removes pulldown flags (IVTC) during import of MPEG2/DVD

IVTC_1080i=n n = 0/1 - Default=0, 1=Perform IVTC on all 1080i sources (careful -- sometimes a bad idea)
IVTC_1080p=n n = 0/1 - Default=0, 1=Perform IVTC on all 1080p 29.97fps sources (careful)
IVTC_480i=n n = 0/1 - Default=0, 1=Perform IVTC on all 480i sources (careful -- sometimes a bad idea)
IVTC_METHOD=n n = 0/1 = Default=1, 1=Use TIVTC for IVTC, 0=Use DECOMB for IVTC,
IVTC_SELECTION=n n = 0/1 - Default=0, 1=Enables IVTC on dropdown menu, normally for hard telecined sources
IVTC_TELECIDE=n n = 0/1 - Default=1, 1=Use IVTC_METHOD for Inverse telecining (IVTC) never uses direct IVTC

SD_PROGRESSIVE=n n = 0/1 - 1=ON (default). Keeps IVTC'd 480i sources as 480p. "0" inserts pulldown flags.

MrVideo
16th July 2024, 22:07
Ahh! Gotchya. Maybe this should have been mentioned earlier so that Lathe could have used one, or more, of those settings. Specifically:
IMPORT_NO_PULLDOWN=1
IVTC_SELECTION=1
IVTC_480i=1
IVTC_1080i=1

Lathe
16th July 2024, 23:55
Ahh! Gotchya. Maybe this should have been mentioned earlier so that Lathe could have used one, or more, of those settings. Specifically:
IMPORT_NO_PULLDOWN=1
IVTC_SELECTION=1
IVTC_480i=1
IVTC_1080i=1

Yeah, I sure didn't know about those. I'm still a bit confused, but the ones you mention specifically above I'll keep in mind.

Still, FWIW, just adding the AVS line seemed to do it perfectly, but I sure don't understand all the ins and outs of it...

Lathe
16th July 2024, 23:57
Oh, BTW... Does BDRB do HDR-SDR conversion? I'm currently using CleverFFmpeg since it seems to use some sort of 'Mobius' thing and the colours come out better than using Handbrake's colour BT709 colour filter.

I'd be going of course from UHD to HD also.

gonca
17th July 2024, 01:10
I'm still a bit confused,
Story of your life

MrVideo
17th July 2024, 02:37
Still, FWIW, just adding the AVS line seemed to do it perfectly, but I sure don't understand all the ins and outs of it...
Your adding the AVS filters still requires you to rewrap at a different frame rate. It is very possible by letting BDRB do the IVTC, it "should" come out at the correct frame rate.

Lathe
17th July 2024, 06:23
Your adding the AVS filters still requires you to rewrap at a different frame rate. It is very possible by letting BDRB do the IVTC, it "should" come out at the correct frame rate.

Oh yeah, that's right, the frame rate didn't come out right.

gonca
17th July 2024, 16:28
@Lathe
do you have a NVidia gpu?

Lathe
18th July 2024, 00:56
@Lathe
do you have a NVidia gpu?

It's an AMD Radeon, so I don't think I can get into all this esoteric GPU stuff. I'll probably just have to stay with using my CPU which does just fine.

gonca
18th July 2024, 01:39
Try the DG filters.
A bunch can work in software mode.
DGHDRtoSDR
DGPQtoHLG_1.0

Lathe
18th July 2024, 01:54
Try the DG filters.
A bunch can work in software mode.
DGHDRtoSDR
DGPQtoHLG_1.0

Thanks! How do I employ these 'DG' filters, what context/program?

gonca
18th July 2024, 11:54
They are AVS filters
https://www.rationalqm.us/mine.html

Lathe
18th July 2024, 20:27
They are AVS filters
https://www.rationalqm.us/mine.html

I'll check them out, thanks!

***EDIT

So, the ones where it says 2.6 and 'above', can I then just drop them in my new AVS+ plugins folder or do I have to put them in my old 2.6 plugins folder?

tebasuna51
19th July 2024, 09:22
So, the ones where it says 2.6 and 'above', can I then just drop them in my new AVS+ plugins folder or do I have to put them in my old 2.6 plugins folder?

You can put the 32 bits versions in the old 2.6 (2.5 really) plugins folder, they can be used also with Avs+ 32 bits.

gonca
19th July 2024, 11:13
I'll check them out, thanks!

***EDIT

So, the ones where it says 2.6 and 'above', can I then just drop them in my new AVS+ plugins folder or do I have to put them in my old 2.6 plugins folder?

You can also keep them in their own folder and load them manually/explicitly

Lathe
19th July 2024, 23:12
Thanks guys!

dietachi
21st July 2024, 02:58
@jdobbs

I want to check your requirements to test the encoding to check its compatibility with VCEEnc.
I have a Ryzen 5 5600G APU and a Radeon RX 7600 GPU for testing.
Maybe not in the planning, but it might be an add-on for the future.

Thank you.

Blurayhd
21st July 2024, 14:20
You are complainig about DTS being converted to AC3, when that is not the case:
[13:14:29] Importing MKV: SISU.2022.BDREMUX.1080P.H.264-LMHD
- Collecting audio/video streams from source...
- Converting audio, Track #3, THD to AC3...
Read again what you posted. It is THD that is being converted, not DTS.

I can't make it possible for bdrebuilder to create a disk for me with truehd

gonca
21st July 2024, 15:58
BD requires an AC3 core interleaved with a THD track.
MKV does not support that.
Maybe that is why BDRB will not create a BD with a THD track, not compliant in your case.

Lathe
21st July 2024, 21:22
I can't make it possible for bdrebuilder to create a disk for me with truehd

MKV's do not natively have the AC3 core in the TrueHD file. So, you need to use a program like Eac3to (like I do to do this very thing) drop the MKV file in the interface, in the dropdown menu choose the True file, and then to the right of it, choose the TrueHD+AC3. I always also choose to the right of that 'No 2nd encode' just to avoid that, but that is your choice. Then below that you click on Run CMD Line.

The resulting file will be a TruHD+AC3 file which will show in TSMuxer so that you can mux it back into a BDMV folder format for BDRB to import and process.

(It's nice to be able to help somebody ELSE sometimes! :))

jdobbs
22nd July 2024, 14:27
@jdobbs

I want to check your requirements to test the encoding to check its compatibility with VCEEnc.
I have a Ryzen 5 5600G APU and a Radeon RX 7600 GPU for testing.
Maybe not in the planning, but it might be an add-on for the future.

Thank you.I'll take a look at it. One thing I noticed right away was its lack of a smart "constant quality" mode. You either have to set a cbr/vbr bitrate, or set a constant quantizer (selectable by frame type). But, other than that, most of the command line parameters seem to line up with NVENCC and/or QSVENCC. Personally, I use constant quality for most of my encoding. I even get annoyed at QSVENCC for only allowing an integer for the constant quality value. It limits how accurate the prediction/sizing can be in that mode.

Another limitation is that I don't personally have a system with the AMD GPU -- so I'd rely completely on someone else to test it.

dietachi
23rd July 2024, 10:30
I'll take a look at it. One thing I noticed right away was its lack of a smart "constant quality" mode. You either have to set a cbr/vbr bitrate, or set a constant quantizer (selectable by frame type). But, other than that, most of the command line parameters seem to line up with NVENCC and/or QSVENCC. Personally, I use constant quality for most of my encoding. I even get annoyed at QSVENCC for only allowing an integer for the constant quality value. It limits how accurate the prediction/sizing can be in that mode.

Another limitation is that I don't personally have a system with the AMD GPU -- so I'd rely completely on someone else to test it.


Thank you, I will try that out.
One problem I can tell is that each generation if AMD GPUs and APUs has different options that may not work in the next or the previous one. Example B-frames are not supported by all AMD cards, unfortunately.


As for QSVEnc the only option I found to further fine tune CQP is
--qp-offset <int>[:<int>][:<int>]...
Set qp offset of each pyramid reference layers. (default = 0)
But I did not test that for BluRay or UHD.

jdobbs
23rd July 2024, 16:05
Thank you, I will try that out.
One problem I can tell is that each generation if AMD GPUs and APUs has different options that may not work in the next or the previous one. Example B-frames are not supported by all AMD cards, unfortunately.


As for QSVEnc the only option I found to further fine tune CQP is
--qp-offset <int>[:<int>][:<int>]...
Set qp offset of each pyramid reference layers. (default = 0)
But I did not test that for BluRay or UHD.I think I may try to implement it for testing at least... but trying that without having a VCE GPU of my own may be asking for trouble.

Would you mind running the following commands from a CMD window and post the output here?

\pathto\VCEEncC.exe --check-hw

\pathto\VCEEncC.exe --check-features

Blurayhd
23rd July 2024, 22:02
Hello, encoding with Nvidia or Intel also maintains the amazing quality than encoding with x264? thank you in advance

dietachi
23rd July 2024, 23:19
I think I may try to implement it for testing at least... but trying that without having a VCE GPU of my own may be asking for trouble.

Would you mind running the following commands from a CMD window and post the output here?

\pathto\VCEEncC.exe --check-hw

\pathto\VCEEncC.exe --check-features

Sure

I'll run the commands once I'm back at one of the machines. Might take a while.

jdobbs
23rd July 2024, 23:32
Hello, encoding with Nvidia or Intel also maintains the amazing quality than encoding with x264? thank you in advanceI did extensive testing using SSIM and PSNR comparisons (to reduce subjectivity). Both scored with roughly equal quality at approximately the same output size. You just have remember to use different constant quality settings (the values aren't 1:1).

dietachi
24th July 2024, 09:15
I think I may try to implement it for testing at least... but trying that without having a VCE GPU of my own may be asking for trouble.

Would you mind running the following commands from a CMD window and post the output here?

\pathto\VCEEncC.exe --check-hw

\pathto\VCEEncC.exe --check-features

I did run the checks.

For the RX 7600.

Please find below:

--check-hw


VCEEnc (x64) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:57 (VC 1940/Win)
AMF Version 1.4.34
reader: raw, avs, vpy, avsw, avhw
VCE available
device #0: AMD Radeon RX 7600
Supported Codecs:
H.264/AVC
H.265/HEVC
AV1


--check-features

device #0: AMD Radeon RX 7600
H.264/AVC encode features
acceleration: Hardware-accelerated
max profile: High
max level: unknown
max bitrate: 1000000 kbps
ref frames: 1-16
Bframe support: yes
HW instances: 1
pre analysis: yes
max streams: 16
timeout support: yes
smart access: no

H.264/AVC input:
Width: 128 - 4096
Height: 128 - 4096
alignment: 32
Interlace: no
pix format: YUV420P[7], YV12[2], BGRA[3], RGBA[5], ARGB[4], NV12[1](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

H.264/AVC output:
Width: 128 - 4096
Height: 128 - 4096
alignment: 32
Interlace: no
pix format: NV12[1](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

H.265/HEVC encode features
10bit depth: yes
acceleration: Hardware-accelerated
max profile: main10
max level: unknown
max bitrate: 1000000 kbps
ref frames: 1-16
pre analysis: yes
max streams: 16
timeout support: yes
smart access: no

H.265/HEVC input:
Width: 128 - 8192
Height: 128 - 4352
alignment: 32
Interlace: no
pix format: YUV420P[7], YV12[2], BGRA[3], RGBA[5], ARGB[4], NV12[1](native), P010[10](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

H.265/HEVC output:
Width: 128 - 8192
Height: 128 - 4352
alignment: 32
Interlace: no
pix format: NV12[1](native), P010[10](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

AV1 encode features
10bit depth: yes
acceleration: Hardware-accelerated
max profile: main
max level: unknown
max bitrate: 1000000 kbps
Temporal layers: 4
pre analysis: yes
max streams: 1
timeout support: no
smart access: no

AV1 input:
Width: 128 - 8192
Height: 128 - 4352
alignment: 32
Interlace: no
pix format: YUV420P[7], YV12[2], BGRA[3], RGBA[5], ARGB[4], NV12[1](native), P010[10](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

AV1 output:
Width: 128 - 8192
Height: 128 - 4352
alignment: 32
Interlace: no
pix format: NV12[1](native), P010[10](native)
memory type: DX11(native), OPENCL, OPENGL, HOST



device #0: AMD Radeon RX 7600
H.264/AVC decode features
10bit depth: no
acceleration: Hardware-accelerated
max streams: 16
smart access: no

H.264/AVC output:
Width: 32 - 4096
Height: 32 - 4096
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)

H.265/HEVC decode features
10bit depth: yes
acceleration: Hardware-accelerated
max streams: 0
smart access: no

H.265/HEVC output:
Width: 32 - 7680
Height: 32 - 4320
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)

VP9 decode features
10bit depth: yes
acceleration: Hardware-accelerated
max streams: 16
smart access: no

VP9 output:
Width: 32 - 7680
Height: 32 - 4320
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)



device #0: AMD Radeon RX 7600
AMFVideoConverter features
acceleration: GPU-accelerated

input:
Width: 32 - 2147483647
Height: 32 - 2147483647
alignment: 2
Interlace: no
pix format: NV12[1](native), YV12[2](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), YUV420P[7](native), YUY2[9](native), UYVY[12](native)
memory type: DX11(native), OPENCL(native), OPENGL(native), HOST

output:
Width: 32 - 2147483647
Height: 32 - 2147483647
alignment: 2
Interlace: no
pix format: NV12[1](native), YV12[2](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), YUV420P[7](native)
memory type: DX11(native), OPENCL(native), OPENGL(native), HOST

AMFHQScaler features
acceleration: GPU-accelerated

input:
Width: 32 - 8192
Height: 32 - 4096
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

output:
Width: 32 - 16384
Height: 32 - 8192
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

AMFVQEnhancer features
acceleration: GPU-accelerated

input:
Width: 32 - 8192
Height: 32 - 4096
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

output:
Width: 32 - 16384
Height: 32 - 8192
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)



Please find below results for the Ryzen 5 5600g APU (Vega 7 if I am not mistaken)

--check-hw

VCEEnc (x64) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:57 (VC 1940/Win)
AMF Version 1.4.34
reader: raw, avs, vpy, avsw, avhw
VCE available
device #0: AMD Radeon
Supported Codecs:
H.264/AVC
H.265/HEVC


--check-features


device #0: AMD Radeon
H.264/AVC encode features
acceleration: Hardware-accelerated
max profile: High
max level: unknown
max bitrate: 1000000 kbps
ref frames: 1-16
Bframe support: no
HW instances: 1
pre analysis: yes
max streams: 16
timeout support: yes
smart access: no

H.264/AVC input:
Width: 128 - 4096
Height: 128 - 4096
alignment: 32
Interlace: no
pix format: YUV420P[7], YV12[2], BGRA[3], RGBA[5], ARGB[4], NV12[1](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

H.264/AVC output:
Width: 128 - 4096
Height: 128 - 4096
alignment: 32
Interlace: no
pix format: NV12[1](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

H.265/HEVC encode features
10bit depth: yes
acceleration: Hardware-accelerated
max profile: main
max level: unknown
max bitrate: 1000000 kbps
ref frames: 1-16
pre analysis: yes
max streams: 16
timeout support: yes
smart access: no

H.265/HEVC input:
Width: 128 - 4096
Height: 128 - 4096
alignment: 32
Interlace: no
pix format: YUV420P[7], YV12[2], BGRA[3], RGBA[5], ARGB[4], NV12[1](native), P010[10](native)
memory type: DX11(native), OPENCL, OPENGL, HOST

H.265/HEVC output:
Width: 128 - 4096
Height: 128 - 4096
alignment: 32
Interlace: no
pix format: NV12[1](native), P010[10](native)
memory type: DX11(native), OPENCL, OPENGL, HOST



device #0: AMD Radeon
H.264/AVC decode features
10bit depth: no
acceleration: Hardware-accelerated
max streams: 16
smart access: no

H.264/AVC output:
Width: 32 - 4096
Height: 32 - 2160
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)

H.265/HEVC decode features
10bit depth: yes
acceleration: Hardware-accelerated
max streams: 0
smart access: no

H.265/HEVC output:
Width: 32 - 7680
Height: 32 - 4320
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)

MPEG2 decode features
10bit depth: no
acceleration: Hardware-accelerated
max streams: 16
smart access: no

MPEG2 output:
Width: 32 - 1920
Height: 32 - 1080
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)

VP9 decode features
10bit depth: yes
acceleration: Hardware-accelerated
max streams: 16
smart access: no

VP9 output:
Width: 32 - 7680
Height: 32 - 4320
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)

VC-1 decode features
10bit depth: no
acceleration: Hardware-accelerated
max streams: 16
smart access: no

VC-1 output:
Width: 32 - 1920
Height: 32 - 1080
alignment: 32
Interlace: yes
pix format: NV12[1](native), P010[10](native), P012[19](native), BGRA[3], RGBA[5]
memory type: DX11(native)



device #0: AMD Radeon
AMFVideoConverter features
acceleration: GPU-accelerated

input:
Width: 32 - 2147483647
Height: 32 - 2147483647
alignment: 2
Interlace: no
pix format: NV12[1](native), YV12[2](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), YUV420P[7](native), YUY2[9](native), UYVY[12](native)
memory type: DX11(native), OPENCL(native), OPENGL(native), HOST

output:
Width: 32 - 2147483647
Height: 32 - 2147483647
alignment: 2
Interlace: no
pix format: NV12[1](native), YV12[2](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), YUV420P[7](native)
memory type: DX11(native), OPENCL(native), OPENGL(native), HOST

AMFHQScaler features
acceleration: GPU-accelerated

input:
Width: 32 - 8192
Height: 32 - 4096
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

output:
Width: 32 - 16384
Height: 32 - 8192
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

AMFVQEnhancer features
acceleration: GPU-accelerated

input:
Width: 32 - 8192
Height: 32 - 4096
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

output:
Width: 32 - 16384
Height: 32 - 8192
alignment: 2
Interlace: no
pix format: NV12[1](native), BGRA[3](native), ARGB[4](native), RGBA[5](native), P010[10](native), RGBA_F16[11](native), R10G10B10A2[13](native)
memory type: DX11(native), OPENCL(native)

jdobbs
24th July 2024, 13:38
Thanks. That helps.

dietachi
25th July 2024, 14:07
Thanks. That helps.

Welcome.

jdobbs
25th July 2024, 21:12
I have updated the first post of this thread with a link to the most recent release (v0.62.06) of BD-RB. Changes for this release:- Added code to correct resizing when using
Intel GPU on imported sources that are not
standard resolutions to make up for its
unusual resize-before-padding behavior.
- Added similar resizing adjustments to
GPUENCC for when padding and resizing are
required.
- Corrected an issue in which resizing an SD
4:3 source to 1080p or 720p source while
forcing UHD output could result in output
with an incorrect aspect ratio.
- Corrected an issue in which non-UHD HEVC
files that are imported cause the pseudo
BD Structure to be flagged as UHD-BD, and
results in reencoding to HEVC and the
creation of a UHD-BD structure when
performing a rebuild.
- Removed QSYNC_TEST requirement to enable
Intel Quick Sync testing/usage. It is now
available by default -- but, of course, it
only works for those with appropriate GPUs.
- Other minor corrections and cosmetic fixes.

Blurayhd
25th July 2024, 23:25
I have updated the first post of this thread with a link to the most recent release (v0.62.06) of BD-RB. Changes for this release:- Added code to correct resizing when using
Intel GPU on imported sources that are not
standard resolutions to make up for its
unusual resize-before-padding behavior.
- Added similar resizing adjustments to
GPUENCC for when padding and resizing are
required.
- Corrected an issue in which resizing an SD
4:3 source to 1080p or 720p source while
forcing UHD output could result in output
with an incorrect aspect ratio.
- Corrected an issue in which non-UHD HEVC
files that are imported cause the pseudo
BD Structure to be flagged as UHD-BD, and
results in reencoding to HEVC and the
creation of a UHD-BD structure when
performing a rebuild.
- Removed QSYNC_TEST requirement to enable
Intel Quick Sync testing/usage. It is now
available by default -- but, of course, it
only works for those with appropriate GPUs.
- Other minor corrections and cosmetic fixes.

Thank You Jdobbs, how to know if my GPU Intel is good enough?

Lathe
26th July 2024, 01:57
Hmmm... I know I'm forgetting something, but I'm trying to convert an HEVC MKV file into an x264 archive file (AVC/AC3) but, I keep getting errors. I tried first using alternate output 1920x1080 keep intact audio, and then I tried the archive backup that I mention above. Both failed... I've attached the MediaInfo txt file of the original MKV file.

Oh, I see that attachments need to be 'Approved', so please forgive me, but I'll just add the file information below then.

***EDIT

Okay, I tried reinstalling AVS from your #1 page here. I had installed the newest version because everyone said it would work, but with BDRB it did not. But, it still failed. I'll include the failed information below the MediaInfo of the original file.

Here are the logs:

[Status]
LABEL=IL.SORRISO.DELLA.IENA.1972.1080P.BLURAY.DUAL.DDP.1.0.X265-SM737
VERSION=v0.62.01
SOURCE_SIZE=3290222716
SOURCE_VIDEO_SIZE=3290204160
TARGET_SIZE=24851251200
REDUCTION=7.55309744791034
RESIZE_1080=0
RESIZE_1440=0
AUDIO_TO_KEEP=eng;
KEEP_HD_AUDIO=-1
SUBS_TO_KEEP=eng;
BACKUP_MODE=0
MOVIEONLY_TYPE=0
USE_LAVF=-1
INSTANCES=1
DGDECNV=0
DGDECIM=0
FRIMSOURCE=0
FFMS2=0
SSIF_MODE=0
UHD_V3_MODE=0
QUICK=1
ENCODE_STEP=1.5
[00000]
AUDIO=111
PGS=11
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=24851232644
SPLITS=1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----------------------
[17:47:08] Importing MKV: IL.SORRISO.DELLA.IENA.1972.1080P.BLURAY.DUAL.DDP.1.0.X265-SM737
- Preparing MKV for processing...
- Collecting audio/video streams from source...
- Building pseudo-BD source structure...
[17:47:49] Video import completed successfully.
----------------------

----------------------
[07/25/24] BD Rebuilder v0.62.01
[17:50:24] Source: IL.SORRISO.DELLA.IENA.1972.1080P.BLURAY.DUAL.DDP.1.0.X265-SM737
- Input BD size: 3.06 GB
- Approximate total content: [01:28:20.420]
- Windows Version: 6.2 [9200]
- Archive Backup (AVC/AC3) mode enabled
- Quality: High Quality (Default)
- X264 Tweak(s) enabled
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
- Resuming from previously started job.
[17:50:26] PHASE ONE, Encoding
- [17:50:26] Processing: VID_00000 (1 of 1)
- [17:50:26] Reencoding video [VID_00000]
- Source Video: HEVC, 1920x1080
- Rate/Length: 23.976fps, 127,083 frames
- [17:50:26] Reencoding: VID_00000, Pass 1 of 1
- Encode failed. Aborting.
- BD-Rebuilder v0.62.01
- Windows Version: 6.2 [9200]
- Working Path Free Space: 184.86GB
- AVISYNTH Version: 2.5.8.0, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[17:50:28] - Failed video encode, aborted
----------------------
[17:51:08] Importing MKV: IL.SORRISO.DELLA.IENA.1972.1080P.BLURAY.DUAL.DDP.1.0.X265-SM737
- Preparing MKV for processing...
- Collecting audio/video streams from source...
- Building pseudo-BD source structure...
[17:51:46] Video import completed successfully.
----------------------
[07/25/24] BD Rebuilder v0.62.01
[17:51:54] Source: IL.SORRISO.DELLA.IENA.1972.1080P.BLURAY.DUAL.DDP.1.0.X265-SM737
- Input BD size: 3.06 GB
- Approximate total content: [01:28:20.420]
- Windows Version: 6.2 [9200]
- Archive Backup (AVC/AC3) mode enabled
- Quality: High Quality (Default)
- X264 Tweak(s) enabled
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[17:51:55] PHASE ONE, Encoding
- [17:51:55] Processing: VID_00000 (1 of 1)
- [17:51:55] Extracting A/V streams [VID_00000]
- [17:52:08] Reencoding video [VID_00000]
- Source Video: HEVC, 1920x1080
- Rate/Length: 23.976fps, 127,083 frames
- [17:52:08] Reencoding: VID_00000, Pass 1 of 1
- Encode failed. Aborting.
- BD-Rebuilder v0.62.01
- Windows Version: 6.2 [9200]
- Working Path Free Space: 184.86GB
- AVISYNTH Version: 2.5.8.0, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[17:52:09] - Failed video encode, aborted

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Original HEVC MediaInfo file:

General
Unique ID : 67595281969964806923358460752008863402 (0x32DA60B52D0A1DC136A0CDC9BAB45EAA)
Complete name : D:\__MKVMerge\Il.sorriso.della.iena.1972.1080p.BluRay.DUAL.DDP.1.0.x265-SM737.mkv
Format : Matroska
Format version : Version 4
File size : 2.84 GiB
Duration : 1 h 28 min
Overall bit rate : 4 600 kb/s
Frame rate : 23.976 FPS
Encoded date : 2024-07-26 00:44:55 UTC
Writing application : mkvmerge v86.0 ('Winter') 64-bit
Writing library : libebml v1.4.5 + libmatroska v1.7.1 / Lavf60.16.100

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L4.1@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 28 min
Bit rate : 3 501 kb/s
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 0)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.095
Stream size : 2.16 GiB (76%)
Writing library : x265 3.5+1-f0c1022b6:[Linux][GCC 13.2.0][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=3 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x800 / interlace=0 / total-frames=0 / level-idc=41 / high-tier=1 / uhd-bd=0 / ref=6 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-eob / no-eos / no-hrd / info / hash=0 / temporal-layers=0 / open-gop / min-keyint=24 / keyint=240 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-frame-dup / no-hme / no-weightp / no-weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=3500 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=2 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30 / aq-mode=4 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=1 / chromaloc-top=0 / chromaloc-bottom=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass / no-mcstf / no-sbrc
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 28 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 1 channel
Channel layout : M
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 1 s 600 ms
Stream size : 121 MiB (4%)
Title : Commentary with Author Troy Howarth and Film Maker Nathaniel Thompson
Language : English
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 28 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 1 channel
Channel layout : M
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 1 s 600 ms
Stream size : 283 MiB (10%)
Language : Italian
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Audio #3
ID : 4
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 28 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 1 channel
Channel layout : M
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 1 s 600 ms
Stream size : 283 MiB (10%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -31 dB
dialnorm_Average : -31 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31 dB

Text #1
ID : 5
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 28 min
Bit rate : 16.8 kb/s
Frame rate : 0.215 FPS
Count of elements : 1138
Stream size : 10.6 MiB (0%)
Title : SDH
Language : English
Default : Yes
Forced : No

Text #2
ID : 6
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 27 min
Bit rate : 14.7 kb/s
Frame rate : 0.186 FPS
Count of elements : 978
Stream size : 9.24 MiB (0%)
Language : English
Default : No
Forced : No



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Last attempt:

----------------------
[18:20:28] Importing MKV: 00000
- Preparing MKV for processing...
- Collecting audio/video streams from source...
- Building pseudo-BD source structure...
[18:21:17] Video import completed successfully.
----------------------
[07/25/24] BD Rebuilder v0.62.01
[18:21:22] Source: 00000
- Input BD size: 3.06 GB
- Approximate total content: [01:28:20.420]
- Windows Version: 6.2 [9200]
- Archive Backup (AVC/AC3) mode enabled
- Quality: High Quality (Default)
- X264 Tweak(s) enabled
- UHD-BD source detected.
- Decoding/Frame serving: FFMPEG
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[18:21:22] PHASE ONE, Encoding
- [18:21:22] Processing: VID_00000 (1 of 1)
- [18:21:22] Extracting A/V streams [VID_00000]
- [18:21:40] Reencoding video [VID_00000]
- Source Video: HEVC, 1920x1080
- Rate/Length: 23.976fps, 127,083 frames
- [18:21:40] Reencoding: VID_00000, Pass 1 of 1
- Encode failed. Aborting.
- BD-Rebuilder v0.62.01
- Windows Version: 6.2 [9200]
- Working Path Free Space: 182.02GB
- AVISYNTH Version: 2.6.0.6, Ok
- LAVFILTERS: Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[18:21:41] - Failed video encode, aborted

gonca
26th July 2024, 11:49
@Lathe
Try using LAV as frame server and disable your "tweaks" temporarily.

MrVideo
26th July 2024, 11:49
I'm trying to convert an HEVC MKV file into an x264 archive file (AVC/AC3)
Please code wrap included text.

That said, I'm confused as to why you would want to convert a smaller video file into a larger video file. Is the wrapper for the new file going to be MKV? If not, what?

If it is going to be a MKV file, then don't use BDRB, instead use the standalone encoder. That is assuming you have a compatible nVidia or Intel GPU. The whole process will then be quick and easy.

Lathe
26th July 2024, 22:23
@Lathe
Try using LAV as frame server and disable your "tweaks" temporarily.

Will do, thanks!

I went ahead and used CleverFFMpeg which works great, but you don't have as much control over the parameters.

Lathe
26th July 2024, 22:27
Please code wrap included text.

That said, I'm confused as to why you would want to convert a smaller video file into a larger video file. Is the wrapper for the new file going to be MKV? If not, what?

If it is going to be a MKV file, then don't use BDRB, instead use the standalone encoder. That is assuming you have a compatible nVidia or Intel GPU. The whole process will then be quick and easy.

Yeah, sorry about that, I don't know how to 'code wrap', I know that's a nuisance, my apologies...

No, I don't want to create a larger file, but my OPPO will not play HEVC files, so since I archive everything to playable disc I need to convert to x264 with the correct parameters.

It's so funny how I can never tell how big a file is going to come out (unless I do a sample and extrapolate on that of course) But, sometimes I can take a full on UHD file at like 50+ Gigs and use a fairly high CRF value (high as in low) and I'll be surprised at how small the resulting playable Blu-ray is. Then, I can take a small file like this and use basically the same CRF, and the file goes from around 3 Gigs to like 15! :) But, at least I can do it, I just wish I could figure out why BDRB is not doing it.

MrVideo
27th July 2024, 00:41
Yeah, sorry about that, I don't know how to 'code wrap', I know that's a nuisance, my apologies...
It is easy. Here is an example.
Do a Reply w/ Quote to this posting and you will see how it is done.
No, I don't want to create a larger file, but my OPPO will not play HEVC files, so since I archive everything to playable disc I need to convert to x264 with the correct parameters.
I'm going to assume that you are creating BD-ROM discs containing MKV files. If not, you should be, as the Oppo will play those.

Use the standalone program that comes with the BDRB release to recode the H265 videos to H264. Of coursse the use of this program requires a compatible nVidia or Intel GPU. If so, you can select H.264 and the quality or bitrate. It is a one-stop shop for re-encoding videos.

If you don't have a compatible GPU, then I'm afraid that I can't be of help, as I do not use BDRB for any kind of archiving, other than building UHD discs w/ menus.

Lathe
27th July 2024, 00:44
It is easy. Here is an example.
Do a Reply w/ Quote to this posting and you will see how it is done.

I'm going to assume that you are creating BD-ROM discs containing MKV files. If not, you should be, as the Oppo will play those.

Use the standalone program that comes with the BDRB release to recode the H265 videos to H264. Of coursse the use of this program requires a compatible nVidia or Intel GPU. If so, you can select H.264 and the quality or bitrate. It is a one-stop shop for re-encoding videos.

If you don't have a compatible GPU, then I'm afraid that I can't be of help, as I do not use BDRB for any kind of archiving, other than building UHD discs w/ menus.

Thank you! :)

Blurayhd
27th July 2024, 15:12
Hello, I dont know what to do, I try encoding a movie and with procesor take almost 8 hours and with my nvidia take no more than 17 minutes, I ask because the final quality?

jdobbs
27th July 2024, 15:47
Hello, I dont know what to do, I try encoding a movie and with procesor take almost 8 hours and with my nvidia take no more than 17 minutes, I ask because the final quality?My experience has been that they are of equivalent quality at a given bitrate. I can't say for sure if that holds true when you are forced to use low bitrates, as I haven't tested that. But definitely when using constant quality encodes you see similar quality at similar output sizes.

Blurayhd
27th July 2024, 16:21
My experience has been that they are of equivalent quality at a given bitrate. I can't say for sure if that holds true when you are forced to use low bitrates, as I haven't tested that. But definitely when using constant quality encodes you see similar quality at similar output sizes.

And another thing is the size, I dont know what but with procesor the final size is few gb less than Nvidia

MrVideo
28th July 2024, 02:53
And another thing is the size, I dont know what but with procesor the final size is few gb less than Nvidia
If you have the software encode set for two-pass, that will help reduce the size.

Lathe
28th July 2024, 03:13
that will help reduce the size.

WHAT?!! Reduce the size...??!

I've always heard that size matters... https://lh3.googleusercontent.com/pw/AP1GczNuSHXicvIvdYEl-wb99oyNaE1gavkEGTT7HSnVqz5pGPEXLyXQvQ8LiOllw7D6hYjqX6y71aZ09-magBjY5mcW2zU5pSdDprOC1jGadqQHhzSQ_RRGV4lBT_9ydGbj80uWSk895V-CwIUn5x2BXCXrtg=w15-h15-s-no-gm?authuser=0

gonca
28th July 2024, 09:22
WHAT?!! Reduce the size...??!

I've always heard that size matters... https://lh3.googleusercontent.com/pw/AP1GczNuSHXicvIvdYEl-wb99oyNaE1gavkEGTT7HSnVqz5pGPEXLyXQvQ8LiOllw7D6hYjqX6y71aZ09-magBjY5mcW2zU5pSdDprOC1jGadqQHhzSQ_RRGV4lBT_9ydGbj80uWSk895V-CwIUn5x2BXCXrtg=w15-h15-s-no-gm?authuser=0

Well said, PEEWEE.

Blurayhd
30th July 2024, 14:50
If you have the software encode set for two-pass, that will help reduce the size.

Two pass but which biltrate to use? which one will I put?

gonca
30th July 2024, 16:15
Two pass but which biltrate to use? which one will I put?

Maybe use file size?

coopervid
2nd August 2024, 17:57
From my experience rewritable discs do not play well on BD Players.
Did you try a one-time writable disc for comparison?

Generally most standalone player will only recognize BD-R 50. Some 66GB (2 layers) on BD-R XL but not 100GB. Only one player is known to read 100GB from BD-Rs or be it BD-RE.

Intel Iris the Great
3rd August 2024, 02:04
Hello everyone,

First time poster here, so I hope it’s okay to ask this right here.

I’m testing the newly available Decoding/Frame serving: QSVENCC option in BD Rebuilder v0.62.06 with my Intel Iris Plus Graphics GPU on my Intel Core i7 – 1065G7 system. It works really well and super-fast at reencoding MPEG-4 (AVC), 1920x1080 HD video source, but fails when encountering VC-1, 1920x1080 HD video source. It also fails when encountering MPEG-4 (AVC), 720x480 SD video source within the BD structure. Needless to say, the reencoding works fine for all SD or HD video sources when using Decoding/Frame serving: DirectShow.

I’m thinking there’s probably a setting(s) that needs to be changed so that Intel QuickSync can work properly on my system when using BD Rebuilder. Also, everything looks fine here:

[08/02/24] Checking System Settings
- BD-Rebuilder v0.62.06
- Windows Version: 6.2 [9200]
- Working Path Free Space: 857.07GB
- AVISYNTH Version: 2.6.0.6, Ok
- HAALI Splitter: 1.9.42.1, Ok
- FFDSHOW: 4504, Ok
- FFDSHOW VC-1 set to "wmv9", Ok
- FFDSHOW MPEG2 set to "libavcodec": Ok
- FFDSHOW AVC set to "libavcodec": Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[08/02/24] Systems Settings Check complete

Hoping someone can help. Thanks in advance.

jdobbs
3rd August 2024, 21:50
Hello everyone,

First time poster here, so I hope it’s okay to ask this right here.

I’m testing the newly available Decoding/Frame serving: QSVENCC option in BD Rebuilder v0.62.06 with my Intel Iris Plus Graphics GPU on my Intel Core i7 – 1065G7 system. It works really well and super-fast at reencoding MPEG-4 (AVC), 1920x1080 HD video source, but fails when encountering VC-1, 1920x1080 HD video source. It also fails when encountering MPEG-4 (AVC), 720x480 SD video source within the BD structure. Needless to say, the reencoding works fine for all SD or HD video sources when using Decoding/Frame serving: DirectShow.

I’m thinking there’s probably a setting(s) that needs to be changed so that Intel QuickSync can work properly on my system when using BD Rebuilder. Also, everything looks fine here:

[08/02/24] Checking System Settings
- BD-Rebuilder v0.62.06
- Windows Version: 6.2 [9200]
- Working Path Free Space: 857.07GB
- AVISYNTH Version: 2.6.0.6, Ok
- HAALI Splitter: 1.9.42.1, Ok
- FFDSHOW: 4504, Ok
- FFDSHOW VC-1 set to "wmv9", Ok
- FFDSHOW MPEG2 set to "libavcodec": Ok
- FFDSHOW AVC set to "libavcodec": Ok
- X264: Ok
- X265: Ok
- AFTEN: Ok
- FAAC: Ok
- MP4BOX: Ok
- WAVI: Ok
- TSMUXER: Ok
- FRIMEncode: Ok
- FRIMDecode: Ok
[08/02/24] Systems Settings Check complete

Hoping someone can help. Thanks in advance.Hmm... Haven't tested that. I'll take a look at it.

Blurayhd
4th August 2024, 14:15
Hello, I so wish to know in Alternate movie what CRF number do you recomend to use? for amazing quality? what you use? thank you in advance

Lathe
4th August 2024, 22:30
Hello, I so wish to know in Alternate movie what CRF number do you recomend to use? for amazing quality? what you use? thank you in advance

Well, it's really personal choice, but for me if I am backing up say a normal Blu-ray (HD) if you have plenty of room and your main objective is not in shrinking it as small as it can go (like gonca does, for example...) then if you can get away with '16' that is pretty much transparent. If that is producing a file size too big for what you want (you can always run the encode and about 10% the way through check the 'Properties' of the resulting file in the 'Workfiles' to project roughly the final size) then '18' should be perfectly fine.

But, if you need smaller file sizes then many use 20-22 or so. Personally, I wouldn't go higher than that.

I hope that helps!

Blurayhd
4th August 2024, 22:46
Well, it's really personal choice, but for me if I am backing up say a normal Blu-ray (HD) if you have plenty of room and your main objective is not in shrinking it as small as it can go (like gonca does, for example...) then if you can get away with '16' that is pretty much transparent. If that is producing a file size too big for what you want (you can always run the encode and about 10% the way through check the 'Properties' of the resulting file in the 'Workfiles' to project roughly the final size) then '18' should be perfectly fine.

But, if you need smaller file sizes then many use 20-22 or so. Personally, I wouldn't go higher than that.

I hope that helps!

Thank You, always in Veryslow right?

jdobbs
4th August 2024, 22:48
Hello, I so wish to know in Alternate movie what CRF number do you recomend to use? for amazing quality? what you use? thank you in advanceIt changes depending upon which encoder you are using (x264, x265, NVIDIA, INTEL). The same number delivers different quality for each.

Lathe
4th August 2024, 22:54
Thank You, always in Veryslow right?

Well, that is up to you... If you do not have to worry about playability or compliance, then sure if you wish to do that. But, if you want playability on certain devices, I think 'Medium' is as high as you can go, but you can add some higher x264 'Tweaks' if you want. Personally, although I don't have the Loosey Goosey approach as JD does ('Sure, MP3 is just fine, you can't hear the difference anyway...' :rolleyes: J/K) and 'Fast' is sufficient, still, for me personally anything over 'Medium' with some higher 'Tweaks' is probably overkill.

But, if your software players will play the encode, then sure whatever you want to squeeze out of it... :)

Lathe
4th August 2024, 22:56
Hello, I so wish to know in Alternate movie what CRF number do you recomend to use? for amazing quality? what you use? thank you in advance

Oh, that's right... JD brings up a good point. I was thinking x264 because that is what I always use, but if you are using x265 or something else, than sorry I don't know about that.

Blurayhd
5th August 2024, 14:06
Well, that is up to you... If you do not have to worry about playability or compliance, then sure if you wish to do that. But, if you want playability on certain devices, I think 'Medium' is as high as you can go, but you can add some higher x264 'Tweaks' if you want. Personally, although I don't have the Loosey Goosey approach as JD does ('Sure, MP3 is just fine, you can't hear the difference anyway...' :rolleyes: J/K) and 'Fast' is sufficient, still, for me personally anything over 'Medium' with some higher 'Tweaks' is probably overkill.

But, if your software players will play the encode, then sure whatever you want to squeeze out of it... :)

If I understand correctly, you mean that it depends on what you select, veryslow in this case, whether it plays on my TV or not? If that is the case, which one should I select for compatibility?

jdobbs
5th August 2024, 20:56
Well, that is up to you... If you do not have to worry about playability or compliance, then sure if you wish to do that. But, if you want playability on certain devices, I think 'Medium' is as high as you can go, but you can add some higher x264 'Tweaks' if you want. Personally, although I don't have the Loosey Goosey approach as JD does ('Sure, MP3 is just fine, you can't hear the difference anyway...' :rolleyes: J/K) and 'Fast' is sufficient, still, for me personally anything over 'Medium' with some higher 'Tweaks' is probably overkill.

But, if your software players will play the encode, then sure whatever you want to squeeze out of it... :)Loosey Goosey?

Sorry, but I just believe in math, science, and engineering.

Lathe
5th August 2024, 23:21
Loosey Goosey?

Sorry, but I just believe in math, science, and engineering.

:D

Sorry Boss, couldn't resist...

Lathe
5th August 2024, 23:35
If I understand correctly, you mean that it depends on what you select, veryslow in this case, whether it plays on my TV or not? If that is the case, which one should I select for compatibility?

No, no, not exactly, sorry...

If you are already using some kind of software player that plays whatever you already encode then you are fine. I was only referring to if you are going to use a Hardware player, like a Blu-ray player to play actual discs, then the settings have to be compliant. But, I kind of doubt you or many others are actually doing that.

So, if whatever you are using to play your encoded files plays them okay, then you can use the most severe settings you want :) But, like I was teasing about JD, he feels even with the standard 'Fast' setting, etc., is good enough due to the efficient x264 codec, which for most simple not-too-big stuff, that is perfectly fine.

Now, IF I am compressing say a Blu-ray that is fairly large AND it contains a lot of detailed visual information, then just for my neurotic peace of mind, I just set it to the BDRB setting of 'High' (default - which actually I believe is the standard x264 'Medium' setting) and then I'll throw in a few tweaks 'Just Because' like bumping up the Psychovisual a little, increasing the ME and SUBme settings a tad, adding Trellis 2, and a few little things like that that won't affect hardware playability, but you don't really need to mess with that.

For Blu-rays that are just a little bigger than a BD25 where you are only shrinking it a few Gigs, AND if the material isn't too demanding, I'll just leave it on 'Fast' 1 Pass, and use milder 'Tweaks', but that is just me...

I hope that helps!

jdobbs
6th August 2024, 00:00
No, no, not exactly, sorry...Sigh... of course not. Typical...

By this:
('Sure, MP3 is just fine, you can't hear the difference anyway...' :rolleyes: J/K)

I assume you mean my comments where I tell everyone that high definition audio is nonsense. Unfortunately it is, whether people want to believe it or not. The audio companies (who have signed on to selling it, and are making a mint doing so) performed their own extensive double blind tests that proved that 5.1 AC3 @ 640Kbs is indistinguishable to the human ear from the original source. High definition? The human ear can only hear from 20hz to 20Khz, which pretty much all standards support. So I wish someone would explain what makes it "high". You know what I've found? That the only thing you get from HD audio is a little more gain. They increase the volume so people think they hear more.

I just like to call a spade a spade, and HD audio is the modern equivalent of snake oil. But, just like magical medical wonders of the 1800s, facts mean nothing and people will continue to swear by it, and more importantly, spend their money on it. No sense trying to reason with them or give them sound advice.

Math, science, and engineering are the only truths. But, unfortunately, they have less and less influence in the modern world. Dark ages, anyone? Get used to the idea. It won't be the first time.

Getting off of my soapbox now...

Blurayhd
6th August 2024, 22:49
No, no, not exactly, sorry...

If you are already using some kind of software player that plays whatever you already encode then you are fine. I was only referring to if you are going to use a Hardware player, like a Blu-ray player to play actual discs, then the settings have to be compliant. But, I kind of doubt you or many others are actually doing that.

The idea is play the MKV movie in one pendrive put on a USB on my TV

Lathe
6th August 2024, 22:50
The idea is play the MKV movie in one pendrive put on a USB on my TV

There you go... So, if whatever you are doing plays properly you are set.

spotswood
8th August 2024, 00:04
So I wish someone would explain what makes it "high". You know what I've found? That the only thing you get from HD audio is a little more gain. They increase the volume so people think they hear more. No sense trying to reason with them or give them sound advice...
I see what you did there... :D

jdobbs
8th August 2024, 13:19
I see what you did there... :DGood eye. ;)

jdobbs
9th August 2024, 22:47
I have updated the first post of this thread with a link to the latest version of BD-Rebuilder (v0.62.10). Changes for this release:- Added a "Encode after Import" option to
the FILE/IMPORT menu. When checked BD-RB
will automatically reencode the imported
BD structure after importing it. Note:
Clear the working folder before the import
if you don't want BD-RB to pause and ask
whether to clear it during the reencode.
- Fixed an issue in which X265 could fail to
perform CRF prediction when set for output
to UHD format.
- Added experimental code for support of AMD
GPUs via VCEENCC. Note that this s/w does
not support an equivalent of CRF encoding
(so it is disabled). In order to test
this new feature it must be enabled in the
"[Options]" area of BDREBUILDER.INI by
adding VCE_TEST=1. If your GPU doesn't
support B-Frames and you experience issues,
they can be disabled by also including
VCE_BFRAMES=0 in the "[Options]" area of
BDREBUILDER.INI. You should also ensure you
are using the most current video drivers.
A personal "thanks" to dietachi for initial
testing of the VCE capability.
- Updated the included version of FFMPEG to
v4.2.1.
- Other minor corrections and cosmetic fixes.

jdobbs
10th August 2024, 16:48
Just as a note, if anyone is using the latest version of BD Rebuilder for encoding with older gen AMD GPUs (around Polaris), it has been reported that b-frame usage might result in poor quality. If you experiencing this, you might want to add VCE_BFRAMES=0 to your BDREBUILDER.INI. B-Frames aren't required -- but they will typically make encoding more efficient.

MajorEvent
15th August 2024, 13:51
Just a little thing. The title on the first post still says 62.06 not 62.10

jdobbs
16th August 2024, 01:54
Just a little thing. The title on the first post still says 62.06 not 62.10Whoops. Fixed. Thanks for the heads-up.

dietachi
16th August 2024, 03:43
@jdobbs

Reencoding of VC1 fails for Intel GPU, QSVEnc.


qsvencc.exe" --avhw --fps 23.976 -i "I:\VIDEO\BTTF_BD\BDMV\STREAM\00300.m2ts" --codec h264 --quality fastest --qp-min 0 --icq 27 --sar 1:1 --aud --pic-struct --vbv-bufsize 30000 --max-bitrate 35000 --no-b-adapt --gop-len 24 -o "H:\BD_REBUILDER_WORK\WORKFILES\VID_00300.AVS.264"




H:\BD_REBUILDER_WORK\WORKFILES\VID_00300.AVS.264
--------------------------------------------------------------------------------
avqsv: codec vc1(yuv420p) unable to decode by qsv.
failed to initialize file reader(s).


QSVEncC.exe finished with error!


According to Rigaya, the problem is that VC1 is not implemented as hardware decoding, as there have been issues in the past.
For the VC1 video, the decoding should be done via --avsw.

It is also not listed under the decode capabilities of the HW.


QSVEncC
Supports QSV(hw) decoding
MPEG2
H.264/AVC
HEVC
VP8
VP9
AV1
Supports various formats such as avs, vpy, y4m, and raw
Supports demux/muxing using libavformat
Supports decode using libavcodec



This is related to the issue here:
https://forum.doom9.org/showthread.php?p=2005030#post2005030

Hello everyone,

First time poster here, so I hope it’s okay to ask this right here.

I’m testing the newly available Decoding/Frame serving: QSVENCC option in BD Rebuilder v0.62.06 with my Intel Iris Plus Graphics GPU on my Intel Core i7 – 1065G7 system. It works really well and super-fast at reencoding MPEG-4 (AVC), 1920x1080 HD video source, but fails when encountering VC-1, 1920x1080 HD video source. It also fails when encountering MPEG-4 (AVC), 720x480 SD video source within the BD structure. Needless to say, the reencoding works fine for all SD or HD video sources when using Decoding/Frame serving: DirectShow.

I’m thinking there’s probably a setting(s) that needs to be changed so that Intel QuickSync can work properly on my system when using BD Rebuilder.

Thank you.

dietachi
16th August 2024, 04:04
@jdobbs

Additionally, regarding the 480i issue in the same issue here:
I’m testing the newly available Decoding/Frame serving: QSVENCC option in BD Rebuilder v0.62.06 with my Intel Iris Plus Graphics GPU on my Intel Core i7 – 1065G7 system. It works really well and super-fast at reencoding MPEG-4 (AVC), 1920x1080 HD video source, but fails when encountering VC-1, 1920x1080 HD video source. It also fails when encountering MPEG-4 (AVC), 720x480 SD video source within the BD structure. Needless to say, the reencoding works fine for all SD or HD video sources when using Decoding/Frame serving: DirectShow.



"D:\BdRebuilder\tools\qsvenc\qsvencc.exe" --avhw --fps 29.97 --interlace tff --vpp-deinterlace adaptive -i "I:\VIDEO\BTTF_BD\BDMV\STREAM\00314.m2ts" --codec h264 --quality fastest --qp-min 0 --icq 18 --sar 40:33 --aud --pic-struct --vbv-bufsize 30000 --max-bitrate 35000 --no-b-adapt --gop-len 30 -o "H:\BD_REBUILDER_WORK\WORKFILES\VID_00314.AVS.264"
Error: Invalid value "adaptive" for "--vpp-deinterlace"
QSVEncC.exe finished with error!


According to the listed options, adaptive is unavailable in QSVEnc.


--vpp-deinterlace <string>
Activate GPU deinterlacer.

parameters
none ... no deinterlace (default)
normal ... standard 60i → 30p interleave cancellation.
it ... inverse telecine
bob ... 60i → 60p interleaved.


The encoding proceeds if I replace it with any of the other available options.

Thank you.

jdobbs
16th August 2024, 13:34
@dietachi

Thanks for the in-depth reporting. I'll correct for another release.

Have you tried replacing "--avhw" with "--avsw" in the command line to see if VC1 decoding works?

dietachi
16th August 2024, 13:36
@dietachi

Have you tried replacing "--avhw" with "--avsw" in the command line to see if VC1 decoding works?

Yes, "--avsw" works.

jdobbs
16th August 2024, 13:41
Yes, "--avsw" works.Thanks. I'm glad you mentioned those issues, I had it in on my bug list to look at them (from the previous post) - but forgot to actually do it.

jdobbs
16th August 2024, 17:06
I have updated the first post of this thread with a link to the latest version of BD-RB (v0.62.11). Changes for this release:- Corrected an issue in which encoding can
fail while using the QSVENC (Intel) GPU
encoder if encoding 720x480 interlaced
sources and deinterlacing is enabled.
- Fixed an error in which VC-1 sources were
failing to encode while using the QSVENC
(Intel) GPU encoder.
- Other minor corrections and cosmetic fixes.

Blurayhd
16th August 2024, 18:44
I have updated the first post of this thread with a link to the latest version of BD-RB (v0.62.11). Changes for this release:- Corrected an issue in which encoding can
fail while using the QSVENC (Intel) GPU
encoder if encoding 720x480 interlaced
sources and deinterlacing is enabled.
- Fixed an error in which VC-1 sources were
failing to encode while using the QSVENC
(Intel) GPU encoder.
- Other minor corrections and cosmetic fixes.

Executable cant modify, cant run

jdobbs
16th August 2024, 22:17
Executable cant modify, cant runHuh? It works here.

Anybody else having issues?

zinoswink
17th August 2024, 00:18
Executes just fine, no issue.

dietachi
17th August 2024, 01:15
Huh? It works here.

Anybody else having issues?

There are no issues here.

VC1 and 480i work fine in the latest version as well for QSVEnc.

jdobbs
17th August 2024, 12:53
Executes just fine, no issue.There are no issues here.

VC1 and 480i work fine in the latest version as well for QSVEnc.Thanks.

Intel Iris the Great
17th August 2024, 14:08
Works very well, thanks for the quick fix.

jdobbs
17th August 2024, 15:28
Works very well, thanks for the quick fix.Cool :)

dietachi
18th August 2024, 14:52
@jdobbs

VC1 and 480i have problems with VCEEnc.

For VC1:


"G:\BD_Rebuilder\tools\vceenc\vceencc.exe" --avhw --fps 23.976 -i "K:\BTTF_BD\BDMV\STREAM\00300.m2ts" --codec h264 --preset fast --qp-min 0 --vbr 9624 --sar 1:1 --vbv-bufsize 30000 --max-bitrate 35000 --gop-len 24 --bframes 3 -o "G:\BD_REBUILDER\WORK\WORKFILES\VID_00300.AVS.264"
--------------------------------------------------------------------------------
G:\BD_REBUILDER\WORK\WORKFILES\VID_00300.AVS.264
--------------------------------------------------------------------------------
avvce: codec vc1(yuv420p) unable to decode by vce.
failed to initialize file reader(s).
Finished with error in VCEEncC.



I switched to "--avsw" and it works


"G:\BD_Rebuilder\tools\vceenc\vceencc.exe" --avsw --fps 23.976 -i "K:\BTTF_BD\BDMV\STREAM\00300.m2ts" --codec h264 --preset fast --qp-min 0 --vbr 9624 --sar 1:1 --vbv-bufsize 30000 --max-bitrate 35000 --gop-len 24 --bframes 3 -o "G:\BD_REBUILDER\WORK\WORKFILES\VID_00300.AVS.264"
--------------------------------------------------------------------------------
G:\BD_REBUILDER\WORK\WORKFILES\VID_00300.AVS.264
--------------------------------------------------------------------------------
storage->SetProperty(BPicturesDeltaQP)=6 failed: invalid param..
storage->SetProperty(ReferenceBPicturesDeltaQP)=4 failed: invalid param..
VCEEnc (x86) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:30 (VC 1940/Win)
OS: Windows 11 x64 (22631) [UTF-8]
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.99GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]
AMF: Runtime 1.4.34 / SDK 1.4.34
Input Info: avsw: vc1(yv12)->nv12 [AVX2], 1920x1080, 24000/1001 fps



For the 480i the option "--vpp-deinterlace" does not exist in VCEEnc, only the following:


--vpp-afs
--vpp-nnedi
--vpp-yadif
--vpp-decomb


I tested it with "--vpp-decomb" and it works


G:\BD_Rebuilder\tools\vceenc\vceencc.exe" --avhw --fps 29.97 --interlace tff --vpp-decomb -i "K:\BTTF_BD\BDMV\STREAM\00314.m2ts" --codec h264 --preset fast --qp-min 0 --vbr 2021 --sar 40:33 --vbv-bufsize 30000 --max-bitrate 35000 --gop-len 30 --bframes 3 -o "G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264"
--------------------------------------------------------------------------------
G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264
--------------------------------------------------------------------------------
storage->SetProperty(BPicturesDeltaQP)=6 failed: invalid param..
storage->SetProperty(ReferenceBPicturesDeltaQP)=4 failed: invalid param..
VCEEnc (x86) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:30 (VC 1940/Win)
OS: Windows 11 x64 (22631) [UTF-8]
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.96GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]
AMF: Runtime 1.4.34 / SDK 1.4.34
Input Info: avvce: H.264/AVC, 720x480, 30000/1001 fps
VPP cspconv(nv12 -> yv12)
decomb: full on, threshold 20, dthreshold 7, blend off
cspconv(yv12 -> nv12)



Works with "--vpp-nnedi"


"G:\BD_Rebuilder\tools\vceenc\vceencc.exe" --avhw --fps 29.97 --interlace tff --vpp-nnedi -i "K:\BTTF_BD\BDMV\STREAM\00314.m2ts" --codec h264 --preset fast --qp-min 0 --vbr 2021 --sar 40:33 --vbv-bufsize 30000 --max-bitrate 35000 --gop-len 30 --bframes 3 -o "G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264"
--------------------------------------------------------------------------------
G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264
--------------------------------------------------------------------------------
storage->SetProperty(BPicturesDeltaQP)=6 failed: invalid param..
storage->SetProperty(ReferenceBPicturesDeltaQP)=4 failed: invalid param..
VCEEnc (x86) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:30 (VC 1940/Win)
OS: Windows 11 x64 (22631) [UTF-8]
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.92GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]
AMF: Runtime 1.4.34 / SDK 1.4.34
Input Info: avvce: H.264/AVC, 720x480, 30000/1001 fps
VPP cspconv(nv12 -> yv12)
nnedi: field auto, nns 32, nsize 32x4, quality fast, prec fp32
pre_screen new_block, errortype abs, weight "internal"


It works for "--vpp-yadif mode=auto"


"G:\BD_Rebuilder\tools\vceenc\vceencc.exe" --avhw --fps 29.97 --interlace tff --vpp-yadif mode=auto -i "K:\BTTF_BD\BDMV\STREAM\00314.m2ts" --codec h264 --preset fast --qp-min 0 --vbr 2021 --sar 40:33 --vbv-bufsize 30000 --max-bitrate 35000 --gop-len 30 --bframes 3 -o "G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264"
--------------------------------------------------------------------------------
G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264
--------------------------------------------------------------------------------
storage->SetProperty(BPicturesDeltaQP)=6 failed: invalid param..
storage->SetProperty(ReferenceBPicturesDeltaQP)=4 failed: invalid param..
VCEEnc (x86) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:30 (VC 1940/Win)
OS: Windows 11 x64 (22631) [UTF-8]
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.74GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]
AMF: Runtime 1.4.34 / SDK 1.4.34
Input Info: avvce: H.264/AVC, 720x480, 30000/1001 fps
VPP cspconv(nv12 -> yv12)
yadif: mode auto



It works with "--vpp-afs preset=default"


"G:\BD_Rebuilder\tools\vceenc\vceencc.exe" --avhw --fps 29.97 --interlace tff --vpp-afs preset=default -i "K:\BTTF_BD\BDMV\STREAM\00314.m2ts" --codec h264 --preset fast --qp-min 0 --vbr 2021 --sar 40:33 --vbv-bufsize 30000 --max-bitrate 35000 --gop-len 30 --bframes 3 -o "G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264"
--------------------------------------------------------------------------------
G:\BD_REBUILDER\WORK\WORKFILES\VID_00314.AVS.264
--------------------------------------------------------------------------------
storage->SetProperty(BPicturesDeltaQP)=6 failed: invalid param..
storage->SetProperty(ReferenceBPicturesDeltaQP)=4 failed: invalid param..
VCEEnc (x86) 8.23 (r1710) by rigaya, Jul 18 2024 12:57:30 (VC 1940/Win)
OS: Windows 11 x64 (22631) [UTF-8]
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.83GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]
AMF: Runtime 1.4.34 / SDK 1.4.34
Input Info: avvce: H.264/AVC, 720x480, 30000/1001 fps
VPP cspconv(nv12 -> yv12)
afs: clip(T 16, B 16, L 32, R 32), switch 0, coeff_shift 192
thre(shift 128, deint 48, Ymotion 112, Cmotion 224)
level 3, shift on, drop off, smooth off, force24 off
tune off, tb_order 1(tff), rff on, timecode off, log off
cspconv(yv12 -> nv12)


For "--vpp-afs preset=XYZ" I did not check all the modes.

My apologies. I didn't had enough time to test this at the same time as the QSVenc.
Let me know if you need more info.

jdobbs
18th August 2024, 15:59
@dietachi

I'll work on it. As you know, I don't have a VCEEnc GPU for testing. Of the options available to replace "--vpp-deinterlace", which do you think generates the best looking output?

I'm inclined to go with "-vpp-decomb" since the others appear to throw away one field and regenerate it from the kept field. But I have seen instances where that actually looks better...

dietachi
18th August 2024, 16:06
@dietachi

I'll work on it. As you know, I don't have a VCEEnc GPU for testing. Of the options available to replace "--vpp-deinterlace", which do you think generates the best looking output?

I'm inclined to go with "-vpp-decomb" since the others appear to throw away one field and regenerate it from the kept field. But I have seen instances where that actually looks better...


I will try to run some tests, but I can only do so after this Thursday.

When I had a look at the output videos after the encodes.
For this video "--vpp-decomb" was good.

I noticed in the past that "--vpp-afs" can cause some problems depending on the source file.

jdobbs
18th August 2024, 16:08
I will try to run some tests, but I can only do so after this Thursday.

When I had a look at the output videos after the encodes.
For this video "--vpp-decomb" was good.

I noticed in the past that "--vpp-afs" can cause some problems depending on the source file.I'll just go ahead and replace it with "--vpp-decomb". If it appears to have issues later, we can always address it again.

jdobbs
18th August 2024, 21:22
I have updated the first post of this thread with a link to the latest version of BD-RB (v0.62.12). Changes for this release:- Corrected an issue in which encoding can
fail while using the VCEENCC (AMD) GPU
encoder if encoding 720x480 interlaced
sources and deinterlacing is enabled.
- Fixed an error in which VC-1 sources were
failing to encode while using the VCEENCC
(AMD) GPU encoder.
- Other minor corrections and cosmetic fixes.

jdobbs
19th August 2024, 00:02
I will try to run some tests, but I can only do so after this Thursday.

When I had a look at the output videos after the encodes.
For this video "--vpp-decomb" was good.

I noticed in the past that "--vpp-afs" can cause some problems depending on the source file.I just thought I'd share something I just discovered. If you are encoding a source that is VC-1 using QSVEnc (Intel GPU), the speed of the encode is slower than what you might typically see because of the change to to "--avsw".

I found that forcing the encoder to use AVISYNTH and "--avs" as a source is actually faster -- almost twice as fast on my system.

There is a hidden setting NVENC_FORCE_AVS=1 that can be used. While it appears (by the name) to be applied only to NVEnc, it just so happens that it is applied across all three GPU encoders. So if you have a heavily VC-1 source, and are in a hurry, you might save yourself some encoding time by adding it to BDREBUILDER.INI's "[Options]" area just before the encode.

I'm not sure if the speed increase is also the case when using VCEEnc, as I'm not able to test it. It would be interesting to find out.

Of course you'd also have to remember to remove or disable that hidden setting when you are doing non-VC-1 sources -- as "--avhw" is likely significantly faster than using AVS mode.

dietachi
19th August 2024, 00:36
I just thought I'd share something I just discovered. If you are encoding a source that is VC-1 using QSVEnc (Intel GPU), the speed of the encode is slower than what you might typically see because of the change to to "--avsw".

I found that forcing the encoder to use AVISYNTH and "--avs" as a source is actually faster -- almost twice as fast on my system.

There is a hidden setting NVENC_FORCE_AVS=1 that can be used. While it appears (by the name) to be applied only to NVEnc, it just so happens that it is applied across all three GPU encoders. So if you have a heavily VC-1 source, and are in a hurry, you might save yourself some encoding time by adding it to BDREBUILDER.INI's "[Options]" area just before the encode.

I'm not sure if the speed increase is also the case when using VCEEnc, as I'm not able to test it. It would be interesting to find out.

Of course you'd also have to remember to remove or disable that hidden setting when you are doing non-VC-1 sources -- as "--avhw" is likely significantly faster than using AVS mode.


Thank you for the information.
I will test this with VCEEnc and QSVEnc where both GPUs are in the same machine.
The disc I have to test is all mixed codec and interlaced and progressive for extras etc, while the main title is AVC.
Once done I'll report back.

Intel Iris the Great
19th August 2024, 23:00
I just thought I'd share something I just discovered. If you are encoding a source that is VC-1 using QSVEnc (Intel GPU), the speed of the encode is slower than what you might typically see because of the change to to "--avsw".

I found that forcing the encoder to use AVISYNTH and "--avs" as a source is actually faster -- almost twice as fast on my system.

There is a hidden setting NVENC_FORCE_AVS=1 that can be used. While it appears (by the name) to be applied only to NVEnc, it just so happens that it is applied across all three GPU encoders. So if you have a heavily VC-1 source, and are in a hurry, you might save yourself some encoding time by adding it to BDREBUILDER.INI's "[Options]" area just before the encode.

I'm not sure if the speed increase is also the case when using VCEEnc, as I'm not able to test it. It would be interesting to find out.

Of course you'd also have to remember to remove or disable that hidden setting when you are doing non-VC-1 sources -- as "--avhw" is likely significantly faster than using AVS mode.

Yeah I noticed too that the VC-1 encode was much slower than an MPEG-4 encode using QSVEnc. Well it's already done now, but for now I won't be using VC-1 anytime soon. Thanks for the clarification though.

As for speed on my system, the QSVEnc GPU encoder runs over 3x faster than DirectShow CPU encoder for MPEG-4 encodes, so that's quite a significant increase !!

dietachi
20th August 2024, 01:50
I just thought I'd share something I just discovered. If you are encoding a source that is VC-1 using QSVEnc (Intel GPU), the speed of the encode is slower than what you might typically see because of the change to to "--avsw".

I found that forcing the encoder to use AVISYNTH and "--avs" as a source is actually faster -- almost twice as fast on my system.

There is a hidden setting NVENC_FORCE_AVS=1 that can be used. While it appears (by the name) to be applied only to NVEnc, it just so happens that it is applied across all three GPU encoders. So if you have a heavily VC-1 source, and are in a hurry, you might save yourself some encoding time by adding it to BDREBUILDER.INI's "[Options]" area just before the encode.

I'm not sure if the speed increase is also the case when using VCEEnc, as I'm not able to test it. It would be interesting to find out.

Of course you'd also have to remember to remove or disable that hidden setting when you are doing non-VC-1 sources -- as "--avhw" is likely significantly faster than using AVS mode.

AVS vs. AVSW Encoding Performance Comparison

This comparison evaluates the encoding performance difference between using the --avs option and the --avsw option with two different GPU setups, using specific quality and preset settings for each encoder.

QSVEnc Settings: --quality fastest
VCEEnc Settings: --preset fast

Test Setup 1: QSVEnc with Intel Arc A770 Graphics
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.99GHz] (16C/32T)
GPU Info: Intel Arc A770 Graphics (512EU) 300-2400MHz (32.0.101.5768)

Video Source: VC-1 - 1920x1080

With --avs: Encoded 15,456 frames at 435.87 fps, 5616.79 kbps, 431.64 MB.

With --avsw: Encoded 15,456 frames at 145.93 fps, 5616.78 kbps, 431.64 MB.

Result: The --avs option was approximately 3 times faster than --avsw .

Test Setup 2: VCEEnc with AMD Radeon RX 7600
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.99GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]

Video Source: VC-1 - 1920x1080

With --avs: Encoded 15,456 frames at 304.35 fps, 9550.10 kbps, 733.90 MB.

With --avsw: Encoded 15,456 frames at 121.79 fps, 9550.10 kbps, 733.90 MB.

Result: The --avs option was approximately 2.5 times faster than --avsw.

In summary, for VC-1 1920x1080 video decoding, the --avs option is notably faster than --avsw, achieving up to 3 times the speed depending on the system configuration.

dietachi
20th August 2024, 01:53
I have updated the first post of this thread with a link to the latest version of BD-RB (v0.62.12). Changes for this release:- Corrected an issue in which encoding can
fail while using the VCEENCC (AMD) GPU
encoder if encoding 720x480 interlaced
sources and deinterlacing is enabled.
- Fixed an error in which VC-1 sources were
failing to encode while using the VCEENCC
(AMD) GPU encoder.
- Other minor corrections and cosmetic fixes.

I have tested both fixes and can confirm that they are working fine.

dietachi
20th August 2024, 02:37
AVHW vs. AVS Encoding Performance Comparison

This comparison evaluates the encoding performance of --avhw versus --avs for an AVC 1920x1080 video source across two different GPU configurations.

Test Setup 1: VCEEnc with AMD Radeon RX 7600
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.92GHz] (16C/32T)
GPU: AMD Radeon RX 7600 [32.0.11029.1008]

With --avhw: Encoded 16,001 frames at 285.68 fps, 19526.57 kbps, 1553.48 MB.

With --avs: Encoded 16,001 frames at 190.26 fps, 19526.57 kbps, 1553.48 MB.

Result: The --avhw option was around 1.5 times faster than --avs on the AMD Radeon RX 7600.

Test Setup 2: QSVEnc with Intel Arc A770 Graphics
CPU: AMD Ryzen 9 5950X 16-Core Processor [4.92GHz] (16C/32T)
GPU: Intel Arc A770 Graphics (512EU) 300-2400MHz (32.0.101.5768)

With --avhw: Encoded 16,001 frames at 479.16 fps, 19960.55 kbps, 1588.01 MB.

With --avs: Encoded 16,001 frames at 304.42 fps, 19966.33 kbps, 1588.47 MB.

Result: The --avhw option was around 1.6 times faster than --avs on the Intel Arc A770 Graphics.

jdobbs
20th August 2024, 13:53
@dietachi

Thanks for the testing and feedback. It's good to know that my experience wasn't an anomaly.

I think I may go in and change the default encoding to "--avs" for QSVEnc and VCEEnc when VC-1 is the source. That way the user won't have to add and remove "NVENC_FORCE_AVS=1" from their BDREBUILDER.INI file to get the faster speeds.

jdobbs
23rd August 2024, 01:49
For anyone who may be interested, I've done some testing to compare what can give similar results across three of the HEVC encoders available through BD-RB (X265, QSVEncc, and NVEncc). Using a source that combines parts (using the BD-RB prediction sampling algorithm) of several different types of movies, I ran each encoder using its version of constant quality encoding. This way, if you have been using one encoder and want to try another -- you can see what value results in equivalent quality (per SSIM results), and what you might expect in terms of sizing.

Just as an additional note -- each of the GPU encoders is many, many times faster...X265 SSIM SIZE NVIDIA SSIM FILESIZE SIZE % INTEL SSIM FILESIZE SIZE %
CRF
NV_HEVC_11 0.99469 2735438211 QSV_HEVC_11 0.99492 2370988385
NV_HEVC_12 0.99448 2552227295
NV_HEVC_13 0.99401 2328739840 QSV_HEVC_12 0.99420 2151610991
11 0.99335 1949610802 NV_HEVC_14 0.99338 2122928050 108.88 QSV_HEVC_13 0.99337 1919639622 98.46
12 0.99262 1750487380 NV_HEVC_15 0.99244 1900798214 108.59 QSV_HEVC_14 0.99236 1686108802 89.79
13 0.99179 1566882823 NV_HEVC_16 0.99132 1688757477 107.78 QSV_HEVC_15 0.99134 1486820316 94.89
14 0.99082 1396060525
15 0.98977 1237639586 NV_HEVC_17 0.99009 1492524278 120.59 QSV_HEVC_16 0.99005 1289467174 104.19
16 0.98858 1087869492 NV_HEVC_18 0.98871 1310176603 120.44 QSV_HEVC_17 0.98864 1116438300 102.63
17 0.98712 939036774 NV_HEVC_19 0.98728 1148904500 122.35 QSV_HEVC_18 0.98702 960051106 102.24
18 0.98546 801110032 NV_HEVC_20 0.98584 1009198253 125.97 QSV_HEVC_19 0.98533 821968709 102.60
NV_HEVC_21 0.98436 885250807
19 0.98365 677460693 NV_HEVC_22 0.98282 772522049 114.03 QSV_HEVC_20 0.98337 690590341 101.94
20 0.98166 566939264 NV_HEVC_23 0.98117 666817944 117.62 QSV_HEVC_21 0.98144 583298263 102.89
21 0.97953 469052281 NV_HEVC_24 0.97950 573435830 122.25 QSV_HEVC_22 0.97931 481562861 102.67
22 0.97733 384487124 NV_HEVC_25 0.97791 493929976 128.46 QSV_HEVC_23 0.97716 394645310 102.64
NV_HEVC_26 0.97634 423749808 QSV_HEVC_24 0.97651 370217079
QSV_HEVC_25 0.97589 349571314
23 0.97510 312082984 NV_HEVC_27 0.97472 360136885 115.40 QSV_HEVC_26 0.97526 331796120 106.32
24 0.97293 251675944 NV_HEVC_28 0.97322 307347661 122.12 QSV_HEVC_27 0.97312 269137749 106.94
NV_HEVC_29 0.97173 261407806
25 0.97086 201981938 QSV_HEVC_28 0.97105 218090181 107.98
NV_HEVC_30 0.97027 222447802
26 0.96889 161696455 NV_HEVC_31 0.96877 187941863 116.23 QSV_HEVC_29 0.96899 174132836 107.69
27 0.96709 130308016 NV_HEVC_32 0.96730 158906997 121.95 QSV_HEVC_30 0.96703 141389351 108.50
28 0.96542 106218339 NV_HEVC_33 0.96580 134505532 126.63
QSV_HEVC_31 0.96489 112962058
29 0.96384 88090623 NV_HEVC_34 0.96434 114609022 130.10
30 0.96225 74482214 NV_HEVC_35 0.96279 97577670 131.01 QSV_HEVC_32 0.96299 92046174 123.58
31 0.96061 63853702 NV_HEVC_36 0.96118 83653349 131.01 QSV_HEVC_33 0.96143 79951128 125.21
32 0.95889 55398574 NV_HEVC_37 0.95954 72067442 130.09 QSV_HEVC_34 0.95938 67142107 121.20
33 0.95706 48562088 NV_HEVC_38 0.95776 62530064 128.76 QSV_HEVC_35 0.95721 57324572 118.04
34 0.95510 42844610 NV_HEVC_39 0.95583 54649663 127.55 QSV_HEVC_36 0.95506 49657159 115.90
35 0.95297 38016642 NV_HEVC_40 0.95368 47941203 126.11 QSV_HEVC_37 0.95286 43762369 115.11
36 0.95068 33822068 QSV_HEVC_38 0.95107 41276063 122.04
37 0.94826 30198276 QSV_HEVC_39 0.94866 36743861 121.68
38 0.94571 27011194 QSV_HEVC_40 0.94613 33191208 122.88
39 0.94304 24209378
40 0.94019 21764853Example: Let's say you had been using X265 with a CRF of 23 and like the results. By the table you could use QSVEncc using a ICQ value of 26 -- and get similar quality with about a 6% increase in output file size. If you chose to use NVEncc you could select 27 and get the same results with a 15% increase.

Rich86
30th August 2024, 03:18
Greetings to everyone!
I generally use ripping and conversion software very little these days.
I am still a physical media guy, and like to have a BD backup copy to go with my 4K/UHD disc when I make purchases these days.
Of course the providers (in their infinite wisdom) often skip providing a BD of the movie when providing the 4K/UHD disc.
In these cases, I rip the 4K/UHD disc to my hard drive and then create a BD copy of the movie to burn onto BDR media.
However, BDRB has been my goto software for many years, but lately I can no longer depend on it if I want to take advantage of my video card NVENC capabilities. It seems to always fail.
If I use different software, it seems to work fine. If anyone else runs into this and has an idea if I am doing something wrong, pls fill me in.
I remain forever grateful for jdobbs software endeavors and support.

dietachi
30th August 2024, 03:34
Greetings to everyone!
I generally use ripping and conversion software very little these days.
I am still a physical media guy, and like to have a BD backup copy to go with my 4K/UHD disc when I make purchases these days.
Of course the providers (in their infinite wisdom) often skip providing a BD of the movie when providing the 4K/UHD disc.
In these cases, I rip the 4K/UHD disc to my hard drive and then create a BD copy of the movie to burn onto BDR media.
However, BDRB has been my goto software for many years, but lately I can no longer depend on it if I want to take advantage of my video card NVENC capabilities. It seems to always fail.
If I use different software, it seems to work fine. If anyone else runs into this and has an idea if I am doing something wrong, pls fill me in.
I remain forever grateful for jdobbs software endeavors and support.



Hello,
could you please provide the following details?

Which GPU are you currently using?
Which driver version is installed for your GPU?
Which version of BD Rebuilder are you using?

Additionally, when BD Rebuilder fails at encoding, could you try opening the lastcmd.txt file located in the BD Rebuilder folder?

Please open a command line in Windows, execute that command, and let us know if it fails by sharing the error message you receive.

This information will help to better understand the issue and assist you further.

Rich86
30th August 2024, 07:08
Thanks. Requested info follows:
1, Nvidia GEForce GTX760
2. driver = 475.06
3. BDRB 62.12
4. GPU #0 (NVIDIA GeForce GTX 760) does not support H.265/HEVC encoding.
Unknown erro occurred during checking GPU.

I'm not sure I understand this error. If I run this using DVDFab specifying NVENC it seems to work fine?
--------------------------------------------
Update: I did some further checking and apparently DVDFab uses NVENC for H.264 video but switches to software encoding for H.265.
I guess I'll have to update my video card if I want to use NVENC for H.265 encoding.
Many thanks for your comments and guidance helping me to understand what was going on and why.

dietachi
30th August 2024, 07:54
Thanks. Requested info follows:
1, Nvidia GEForce GTX760
2. driver = 475.06
3. BDRB 62.12
4. GPU #0 (NVIDIA GeForce GTX 760) does not support H.265/HEVC encoding.
Unknown erro occurred during checking GPU.

I'm not sure I understand this error. If I run this using DVDFab specifying NVENC it seems to work fine?
--------------------------------------------
Update: I did some further checking and apparently DVDFab uses NVENC for H.264 video but switches to software encoding for H.265.
I guess I'll have to update my video card if I want to use NVENC for H.265 encoding.
Many thanks for your comments and guidance helping me to understand what was going on and why.


The problem is that, as far as I know, the NVIDIA GeForce GTX 760 can't encode HEVC, only AVC.

If you re-encode BD to BD, that should be no issue, as the GPU can encode H.264/AVC.

If you open a UHD with BD Rebuilder, it will shrink the disc to a UHD, which is HEVC/H.265.

Unfortunately, I don't know if an option exists to enable the UHD to BD format conversion.

You need a newer GPU if you want to encode UHD to UHD.

Here is the Video Encode and Decode GPU Support Matrix for NVIDIA GPUs.
https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new

------

Update:
If you want to check the capabilities of the GPU (GTX 760), you can copy the first part from the LASTCMD.TXT and paste to the Windows command line, and add --check-features

You should get a result similar to:


"D:\BdRebuilder\tools\nvenc\nvencc.exe" --check-features
NVEncC (x86) 5.41 (r2064) by rigaya, Oct 14 2021 13:59:26 (VC 1929/Win)
[NVENC API v11.1, CUDA 11.1]
reader: raw, y4m, avi, avs, vpy, avsw, avhw [H.264/AVC, H.265/HEVC, MPEG2, VP8, VP9, VC-1, MPEG1, MPEG4, AV1]

Environment Info
OS : Windows 11 x64 (22631) [UTF-8]
CPU: 12th Gen Intel Core i9-12900K [4.91GHz] (16C/24T)
RAM: Used 12831 MB, Total 65289 MB

#0: NVIDIA GeForce RTX 3080 (8704 cores, 1725 MHz)[2147483.64]
NVEnc features
Codec: H.264/AVC
Encoder Engines 1
Max Bframes 4
B Ref Mode 3 (each + only middle)
RC Modes 63
Field Encoding 0 (no)
MonoChrome no
FMO no
Quater-Pel MV yes
B Direct Mode yes
CABAC yes
Adaptive Transform yes
Max Temporal Layers 4
Hierarchial P Frames yes
Hierarchial B Frames yes
Max Level 62 (6.2)
Min Level 10 (1)
4:4:4 yes
Min Width 145
Max Width 4096
Min Height 49
Max Height 4096
Multiple Refs yes
Max LTR Frames 8
Dynamic Resolution Change yes
Dynamic Bitrate Change yes
Forced constant QP yes
Dynamic RC Mode Change no
Subframe Readback yes
Constrained Encoding yes
Intra Refresh yes
Custom VBV Bufsize yes
Dynamic Slice Mode yes
Ref Pic Invalidiation yes
PreProcess no
Async Encoding yes
Max MBs 65536
Lossless yes
SAO no
Me Only Mode 1 (I,P frames)
Lookahead yes
AQ (temporal) yes
Weighted Prediction yes
10bit depth no

Codec: H.265/HEVC
Encoder Engines 1
Max Bframes 5
B Ref Mode 3 (each + only middle)
RC Modes 63
Field Encoding 0 (no)
MonoChrome no
Quater-Pel MV yes
B Direct Mode no
Max Temporal Layers 0
Hierarchial P Frames no
Hierarchial B Frames no
Max Level 186 (6.2)
Min Level 30 (1)
4:4:4 yes
Min Width 129
Max Width 8192
Min Height 33
Max Height 8192
Multiple Refs yes
Max LTR Frames 7
Dynamic Resolution Change yes
Dynamic Bitrate Change yes
Forced constant QP yes
Dynamic RC Mode Change no
Subframe Readback yes
Constrained Encoding yes
Intra Refresh yes
Custom VBV Bufsize yes
Dynamic Slice Mode yes
Ref Pic Invalidiation yes
PreProcess no
Async Encoding yes
Max MBs 262144
Lossless yes
SAO yes
Me Only Mode 1 (I,P frames)
Lookahead yes
AQ (temporal) yes
Weighted Prediction yes
10bit depth yes


NVDec features
H.264/AVC: nv12, yv12
H.265/HEVC: nv12, yv12, yv12(10bit), yv12(12bit), yuv444, yuv444(10bit), yuv444(12bit)
MPEG1: nv12, yv12
MPEG2: nv12, yv12
MPEG4: nv12, yv12
VP8: nv12, yv12
VP9: nv12, yv12, yv12(10bit), yv12(12bit)
VC-1: nv12, yv12
AV1: nv12, yv12, yv12(10bit)

Rich86
30th August 2024, 16:48
It appears that DVDFab uses a combination of tools in its UHD to BD process.
It appears to be using software to decode the 4K/UHD video & the video card resources to encode that video for BD.
It seems to work ok.

cartman0208
30th August 2024, 22:32
For anyone who may be interested, I've done some testing to compare what can give similar results across three of the HEVC encoders available through BD-RB (X265, QSVEncc, and NVEncc). Using a source that combines parts (using the BD-RB prediction sampling algorithm) of several different types of movies, I ran each encoder using its version of constant quality encoding. This way, if you have been using one encoder and want to try another -- you can see what value results in equivalent quality (per SSIM results), and what you might expect in terms of sizing.

Just as an additional note -- each of the GPU encoders is many, many times faster...X265 SSIM SIZE NVIDIA SSIM FILESIZE SIZE % INTEL SSIM FILESIZE SIZE %
CRF
NV_HEVC_11 0.99469 2735438211 QSV_HEVC_11 0.99492 2370988385
NV_HEVC_12 0.99448 2552227295
NV_HEVC_13 0.99401 2328739840 QSV_HEVC_12 0.99420 2151610991
11 0.99335 1949610802 NV_HEVC_14 0.99338 2122928050 108.88 QSV_HEVC_13 0.99337 1919639622 98.46
12 0.99262 1750487380 NV_HEVC_15 0.99244 1900798214 108.59 QSV_HEVC_14 0.99236 1686108802 89.79
13 0.99179 1566882823 NV_HEVC_16 0.99132 1688757477 107.78 QSV_HEVC_15 0.99134 1486820316 94.89
14 0.99082 1396060525
15 0.98977 1237639586 NV_HEVC_17 0.99009 1492524278 120.59 QSV_HEVC_16 0.99005 1289467174 104.19
16 0.98858 1087869492 NV_HEVC_18 0.98871 1310176603 120.44 QSV_HEVC_17 0.98864 1116438300 102.63
17 0.98712 939036774 NV_HEVC_19 0.98728 1148904500 122.35 QSV_HEVC_18 0.98702 960051106 102.24
18 0.98546 801110032 NV_HEVC_20 0.98584 1009198253 125.97 QSV_HEVC_19 0.98533 821968709 102.60
NV_HEVC_21 0.98436 885250807
19 0.98365 677460693 NV_HEVC_22 0.98282 772522049 114.03 QSV_HEVC_20 0.98337 690590341 101.94
20 0.98166 566939264 NV_HEVC_23 0.98117 666817944 117.62 QSV_HEVC_21 0.98144 583298263 102.89
21 0.97953 469052281 NV_HEVC_24 0.97950 573435830 122.25 QSV_HEVC_22 0.97931 481562861 102.67
22 0.97733 384487124 NV_HEVC_25 0.97791 493929976 128.46 QSV_HEVC_23 0.97716 394645310 102.64
NV_HEVC_26 0.97634 423749808 QSV_HEVC_24 0.97651 370217079
QSV_HEVC_25 0.97589 349571314
23 0.97510 312082984 NV_HEVC_27 0.97472 360136885 115.40 QSV_HEVC_26 0.97526 331796120 106.32
24 0.97293 251675944 NV_HEVC_28 0.97322 307347661 122.12 QSV_HEVC_27 0.97312 269137749 106.94
NV_HEVC_29 0.97173 261407806
25 0.97086 201981938 QSV_HEVC_28 0.97105 218090181 107.98
NV_HEVC_30 0.97027 222447802
26 0.96889 161696455 NV_HEVC_31 0.96877 187941863 116.23 QSV_HEVC_29 0.96899 174132836 107.69
27 0.96709 130308016 NV_HEVC_32 0.96730 158906997 121.95 QSV_HEVC_30 0.96703 141389351 108.50
28 0.96542 106218339 NV_HEVC_33 0.96580 134505532 126.63
QSV_HEVC_31 0.96489 112962058
29 0.96384 88090623 NV_HEVC_34 0.96434 114609022 130.10
30 0.96225 74482214 NV_HEVC_35 0.96279 97577670 131.01 QSV_HEVC_32 0.96299 92046174 123.58
31 0.96061 63853702 NV_HEVC_36 0.96118 83653349 131.01 QSV_HEVC_33 0.96143 79951128 125.21
32 0.95889 55398574 NV_HEVC_37 0.95954 72067442 130.09 QSV_HEVC_34 0.95938 67142107 121.20
33 0.95706 48562088 NV_HEVC_38 0.95776 62530064 128.76 QSV_HEVC_35 0.95721 57324572 118.04
34 0.95510 42844610 NV_HEVC_39 0.95583 54649663 127.55 QSV_HEVC_36 0.95506 49657159 115.90
35 0.95297 38016642 NV_HEVC_40 0.95368 47941203 126.11 QSV_HEVC_37 0.95286 43762369 115.11
36 0.95068 33822068 QSV_HEVC_38 0.95107 41276063 122.04
37 0.94826 30198276 QSV_HEVC_39 0.94866 36743861 121.68
38 0.94571 27011194 QSV_HEVC_40 0.94613 33191208 122.88
39 0.94304 24209378
40 0.94019 21764853Example: Let's say you had been using X265 with a CRF of 23 and like the results. By the table you could use QSVEncc using a ICQ value of 26 -- and get similar quality with about a 6% increase in output file size. If you chose to use NVEncc you could select 27 and get the same results with a 15% increase.

That's very cool, thanks ... I would be very much interested in the associated encoding times ;)
I'd venture Intel and Nvidia won't differ much

jdobbs
30th August 2024, 22:35
It appears that DVDFab uses a combination of tools in its UHD to BD process.
It appears to be using software to decode the 4K/UHD video & the video card resources to encode that video for BD.
It seems to work ok.I'll look at how hard it would be to recognize early cards and automatically use software encoding.

In the meantime, though, try adding the line below to the "[Options]" area of BDREBUILDER.INI and force software decoding, just to see if that solves the issue.

NVENC_FORCE_AVS=1

jdobbs
30th August 2024, 22:41
That's very cool, thanks ... I would be very much interested in the associated encoding times ;)
I'd venture Intel and Nvidia won't differ muchYou know, if I was a little smarter I would have recorded that when I was doing this!

[Edit] Hmmm... I still have the resulting files with timecodes on them... I may just be able to put something together. I'll tell you this with assurance, though: Both Intel and Nvidia are many, many, many times faster than X265 (at least on my i7 system while using FFMPEG to frameserve to it).

[Another Edit] Never mind. I looked at some of the files, and (weirdly) they make no sense. Some of them show as "last modified" an hour before they were created. :confused: That's some pretty fast encoding, eh?

Lathe
31st August 2024, 02:27
You know, if I were a little smarter...

That's why we're here JD, for moral support and to make up the difference... https://lh3.googleusercontent.com/pw/AP1GczNuSHXicvIvdYEl-wb99oyNaE1gavkEGTT7HSnVqz5pGPEXLyXQvQ8LiOllw7D6hYjqX6y71aZ09-magBjY5mcW2zU5pSdDprOC1jGadqQHhzSQ_RRGV4lBT_9ydGbj80uWSk895V-CwIUn5x2BXCXrtg=w15-h15-s-no-gm?authuser=0

jdobbs
31st August 2024, 13:00
That's why we're here JD, for moral support and to make up the difference... https://lh3.googleusercontent.com/pw/AP1GczNuSHXicvIvdYEl-wb99oyNaE1gavkEGTT7HSnVqz5pGPEXLyXQvQ8LiOllw7D6hYjqX6y71aZ09-magBjY5mcW2zU5pSdDprOC1jGadqQHhzSQ_RRGV4lBT_9ydGbj80uWSk895V-CwIUn5x2BXCXrtg=w15-h15-s-no-gm?authuser=0And I'd be lost without you.

Rich86
31st August 2024, 20:29
I'll look at how hard it would be to recognize early cards and automatically use software encoding.

In the meantime, though, try adding the line below to the "[Options]" area of BDREBUILDER.INI and force software decoding, just to see if that solves the issue.

NVENC_FORCE_AVS=1

I made the change you suggested. It did not fail, but it looks like it is going to run forever?

jdobbs
31st August 2024, 20:32
Wow. That is really slow. I don't think it is AVISYNTH, as it runs pretty fast most of the time. Ugghh... You're probably better off with X265.

gonca
31st August 2024, 22:05
@Rich86
If possible could you check CPU and GPU usage (during the encode) from task manager and post the info.

SquallMX
3rd September 2024, 17:25
BDRebuilder is completely broken on Windows 24H2.

I tried several disks, on several modes only to get weird error messages, I even created a simple BD structure with TSMuxerGUI, same result:

[09/03/24] BD Rebuilder v0.62.12
[10:17:13] Source: SAMPLE
- Input BD size: 0.04 GB
- Approximate total content: [00:00:12.680]
- Target BD size: 22.46 GB
- Windows Version: 6.2 [9200]
- Quality: Highest (Very Slow), Two Pass
- X264 Tweak(s) enabled
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
- [10:17:13] DoEncoding() 00011 1502
[10:17:14] - Failed to complete.


Sometimes detects a BD with completely wrong values:
https://i.imgur.com/7R2cIGg.png

Sometimes instead a error message appears {THE SELECTED SOURCE IS NOT BD FORMAT }

It was working fine on 23H2.

jdobbs
3rd September 2024, 20:00
Can anybody else confirm issues with Windows 24H2? I'm still on 23H2. I haven't even gotten an update notification for 24H2.

SquallMX
3rd September 2024, 20:44
Can anybody else confirm issues with Windows 24H2? I'm still on 23H2. I haven't even gotten an update notification for 24H2.

It's only available for Business at the moment. I going to install it on another PC and test it for the same issues. Maybe is just a botched install, too bad if that is the case, the Business edition is free from bloatware and ads.

MrVideo
3rd September 2024, 22:30
What the hell is 24H2? What is it. i.e., the version of Win 11?

jdobbs
3rd September 2024, 23:50
It's only available for Business at the moment. I going to install it on another PC and test it for the same issues. Maybe is just a botched install, too bad if that is the case, the Business edition is free from bloatware and ads.Unfortunately that's what is sounds like -- either that or just a badly tested release. Any other software showing issues?

jdobbs
3rd September 2024, 23:51
What the hell is 24H2? What is it. i.e., the version of Win 11?Yes, its a Windows 11 version number.

SquallMX
4th September 2024, 06:08
Unfortunately that's what is sounds like -- either that or just a badly tested release. Any other software showing issues?

Finally I found the cause of this misbehavior!

It was the option "Beta: Use Unicode UTF-8 for worldwide language support", disabling this checkbox fixed the issue after a restart.

According to my google-fu "If you check this option, Windows will use codepage 65001 (Unicode UTF-8) instead of the local codepage. The downside is that ANSI-Only programs (most older programs) will show garbage instead of accented characters." Looks like BD-Rebuilder is one of those older programs.

jdobbs
4th September 2024, 13:52
Finally I found the cause of this misbehavior!

It was the option "Beta: Use Unicode UTF-8 for worldwide language support", disabling this checkbox fixed the issue after a restart.

According to my google-fu "If you check this option, Windows will use codepage 65001 (Unicode UTF-8) instead of the local codepage. The downside is that ANSI-Only programs (most older programs) will show garbage instead of accented characters." Looks like BD-Rebuilder is one of those older programs.Hmmm... I seem to remember getting a report of that error many, many years ago.

stonesfan129
6th September 2024, 12:23
jdobbs, is there any way you can add the AMD VCE encoder into this program? I see that Intel QSV was added, and I think NVENC has always been available. I specifically would like to compress some 4K content to BD50/BD25. Thank you.

jdobbs
6th September 2024, 12:34
jdobbs, is there any way you can add the AMD VCE encoder into this program? I see that Intel QSV was added, and I think NVENC has always been available. I specifically would like to compress some 4K content to BD50/BD25. Thank you.It was added for testing in v0.62.10 (see CHANGES.TXT). You can enable it (for testing) by adding the following line to the "[Options]" area of BDREBUILDER.INI (in the same folder as BDRB.EXE):

VCE_TEST=1

Lathe
6th September 2024, 23:01
What the hell is 24H2? What is it. i.e., the version of Win 11?

... Annnnnnd, that's why after a very scary, almost compulsory huge screen filled prompt basically TELLING me I have to upgrade to W11, I desperately searched for what to do. For me personally, I have turned off Windows update completely in the system settings (they're not going to update W10 anyway) That was the only way I could prevent a very FORCEFUL update to W11.

Lathe
6th September 2024, 23:03
Hmmm... I seem to remember getting a report of that error many, many years ago.

It was McFly coming back to warn you that this would happen...

stonesfan129
6th September 2024, 23:49
It was added for testing in v0.62.10 (see CHANGES.TXT). You can enable it (for testing) by adding the following line to the "[Options]" area of BDREBUILDER.INI (in the same folder as BDRB.EXE):

VCE_TEST=1

Thank you. This will be great for doing some test 4KBD encodes to BD50 and BD25.

jdobbs
7th September 2024, 01:04
It was McFly coming back to warn you that this would happen...:scared: Could it be?

Hooman
8th September 2024, 08:31
Hi, when (re-)muxing with BD-RB, the playlists’ IN_Time always defaults to 00:00:00:00. If the original IN_Time is different, we’ll see an unintended portion at the start of the clips. Can you please fix this issue?

jdobbs
8th September 2024, 14:04
Can you post the log for that encode?

Hooman
8th September 2024, 15:16
Can you post the log for that encode?
It’s not an issue with the encodes. Whenever the clip (the streams) contains a part at its start that is to be skipped according to its corresponding playlist file, BD-RB doesn't retain the (PlayItem's) IN_Time at its original value and changes it to 00:00:00:00. This could be due to the commands BD-RB sends to tsMuxer (Or the "Rebuilding BD file Structure"). The attached image shows the original structure as imported into Scenarist by a BD-Reauthor script. The black frame that reads ‘Cinerama Everywhere, RT 8:20…’ is a shot of the short part at the start of the clip that is not intended to be played back.

If I rebuild the same title (even with the FORCE_NOENCODE=1 flag?) and then import the rebuilt version into Scenarist for re-authoring, the aforementioned IN_Time is not the same as in the original MPLS. When that playlist/clip is called from the disc menu, those few frames at the start of the clip play back because the IN_Time has changed. Maybe something like BDTools can correct it in MPLS files.

PS
For this particular clip, the “IN_time” of the PlayItem and the “mark_time_stamp” of the first “PlayListMark” in the original playlist MPLS (converted by BDTools to readable JSON) is 27167041. However, in the BD-Rebuilt version, it has changed to 27000000.
{
"MPLS": {
"version_number": "0200",
"reserved_header": [
0
],
"AppInfoPlayList": {
"reserved01": 0,
"PlayList_playback_type": 1,
"UO_mask_table": {
"menu_call_mask": 0,
"title_search_mask": 0,
"chapter_search_mask": 0,
"time_search_mask": 0,
"skip_to_next_point_mask": 0,
"skip_back_to_previous_point_mask": 0,
"play_FirstPlay_mask": 0,
"stop_mask": 0,
"pause_on_mask": 0,
"pause_off_mask": 0,
"still_off_mask": 0,
"forward_play_mask": 0,
"backward_play_mask": 0,
"resume_mask": 0,
"move_up_selected_button_mask": 0,
"move_down_selected_button_mask": 0,
"move_left_selected_button_mask": 0,
"move_right_selected_button_mask": 0,
"select_button_mask": 0,
"activate_button_mask": 0,
"select_button_and_activate_mask": 0,
"primary_audio_stream_number_change_mask": 0,
"reserved01": 0,
"angle_number_change_mask": 0,
"popup_on_mask": 0,
"popup_off_mask": 0,
"PG_textST_enable_disable_mask": 0,
"PG_textST_stream_number_change_mask": 0,
"secondary_video_enable_disable_mask": 0,
"secondary_video_stream_number_change_mask": 0,
"secondary_audio_enable_disable_mask": 0,
"secondary_audio_stream_number_change_mask": 0,
"reserved02": 0,
"PiP_PG_textST_stream_number_change_mask": 0,
"reserved03": 0
},
"reserved02": 0,
"PlayList_random_access_flag": 0,
"audio_mix_app_flag": 1,
"lossless_may_bypass_mixer_flag": 0,
"MVC_Base_view_R_flag": 0
},
"PlayList": {
"reserved01": 0,
"PlayItem": [
{
"Clip_Information_file_name": "00018",
"Clip_codec_identifier": "M2TS",
"ref_to_STC_id": 0,
"reserved01": 0,
"is_multi_angle": 0,
"connection_condition": 1,
"IN_time": 27167041,
"OUT_time": 49802154,
"UO_mask_table": {
"menu_call_mask": 0,
"title_search_mask": 0,
"chapter_search_mask": 0,
"time_search_mask": 0,
"skip_to_next_point_mask": 0,
"skip_back_to_previous_point_mask": 0,
"play_FirstPlay_mask": 0,
"stop_mask": 0,
"pause_on_mask": 0,
"pause_off_mask": 0,
"still_off_mask": 0,
"forward_play_mask": 0,
"backward_play_mask": 0,
"resume_mask": 0,
"move_up_selected_button_mask": 0,
"move_down_selected_button_mask": 0,
"move_left_selected_button_mask": 0,
"move_right_selected_button_mask": 0,
"select_button_mask": 0,
"activate_button_mask": 0,
"select_button_and_activate_mask": 0,
"primary_audio_stream_number_change_mask": 0,
"reserved01": 0,
"angle_number_change_mask": 0,
"popup_on_mask": 0,
"popup_off_mask": 0,
"PG_textST_enable_disable_mask": 0,
"PG_textST_stream_number_change_mask": 0,
"secondary_video_enable_disable_mask": 0,
"secondary_video_stream_number_change_mask": 0,
"secondary_audio_enable_disable_mask": 0,
"secondary_audio_stream_number_change_mask": 0,
"reserved02": 0,
"PiP_PG_textST_stream_number_change_mask": 0,
"reserved03": 0
},
"PlayItem_random_access_flag": 0,
"reserved02": 0,
"still_mode": 0,
"still_time": 0,
"STN_table": {
"reserved01": 0,
"number_of_PiP_PG_textST_stream_entries_plus": 0,
"stream": [
{
"type": 1,
"pid": 4113,
"stream_coding_type": "H.264",
"video_format": "1080p",
"frame_rate": "23.976",
"reserved01": 0
},
{
"type": 1,
"pid": 4352,
"stream_coding_type": "AC-3",
"audio_presentation_type": "Stereo",
"sampling_frequency": "48 kHz",
"language_code": "fra"
},
{
"type": 2,
"subpath_id": 0,
"subclip_id": 0,
"pid": 5120,
"stream_coding_type": "IGS",
"language_code": "eng",
"reserved01": 0
}
]
}
}
],
"SubPath": [
{
"reserved01": 0,
"SubPath_type": 3,
"reserved02": 0,
"is_repeat_SubPath": 0,
"reserved03": 0,
"SubPlayItem": [
{
"Clip_Information_file_name": "00016",
"Clip_codec_identifier": "M2TS",
"ref_to_STC_id": 0,
"reserved01": 0,
"is_multi_Clip_entries": 0,
"sp_connection_condition": 1,
"SubPlayItem_IN_time": 27000000,
"SubPlayItem_OUT_time": 27001876,
"sync_PlayItem_id": 0,
"sync_start_PTS_of_PlayItem": 0
}
]
}
]
},
"PlayListMark": [
{
"reserved01": 0,
"mark_type": 1,
"ref_to_PlayItem_id": 0,
"mark_time_stamp": 27167041,
"entry_ES_PID": 65535,
"duration": 0
},
{
"reserved01": 0,
"mark_type": 1,
"ref_to_PlayItem_id": 0,
"mark_time_stamp": 49800277,
"entry_ES_PID": 65535,
"duration": 0
}
]
}
}
I believe this issue can only be resolved by a reverse conversion of the JSON file back into an MPLS playlist after BD-RB’s work.

jdobbs
8th September 2024, 21:45
There is other useful information in the log... for example, was it a full backup or a movie-only? But I guess you decided it wasn't needed and provided something I didn't ask for instead.

Hooman
8th September 2024, 21:58
Sorry, didn't realize the log was needed.
It was a full backup.
Here is the log:
[09/06/24]BD Rebuilder v0.61.28
[08:59:11] Source: JOB_TITLE
- Input BD size: 43.72 GB
- Approximate total content: [04:58:08.562]
- Target BD size: 24.30 GB
- Windows Version: 6.2 [9200]
- Quality: High Quality (Default), Two Pass
- Decoding/Frame serving: DGDecNV
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
- Resuming from previously started job.
[08:59:14] PHASE ONE, Encoding
- [08:59:14] Processing: VID_00003 (2 of 9)
- [08:59:14] Extracting A/V streams [VID_00003]
- [09:04:03] Reencoding video [VID_00003]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 83,529 frames
- Bitrate: 11,188 Kbs
- [09:04:03] Reencoding: VID_00003, Pass 1 of 2
- [09:39:03] Reencoding: VID_00003, Pass 2 of 2
- [11:18:34] Video Encode complete
- [11:18:34] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- Track 4353 (eng): Keeping original audio
- Track 4354 (eng): Keeping original audio
- [11:18:34] Multiplexing M2TS
- [11:22:17] Processing: VID_00004 (3 of 9)
- [11:22:17] Extracting A/V streams [VID_00004]
- [11:22:57] Reencoding video [VID_00004]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 18,152 frames
- Bitrate: 9,249 Kbs
- [11:22:57] Reencoding: VID_00004, Pass 1 of 2
- [11:30:10] Reencoding: VID_00004, Pass 2 of 2
- [11:48:50] Video Encode complete
- [11:48:50] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [11:48:50] Multiplexing M2TS
- [11:49:04] Processing: VID_00007 (4 of 9)
- [11:49:04] Extracting A/V streams [VID_00007]
- [11:49:20] Reencoding video [VID_00007]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 22,315 frames
- Bitrate: 2,527 Kbs
- [11:49:20] Reencoding: VID_00007, Pass 1 of 2
- [11:55:16] Reencoding: VID_00007, Pass 2 of 2
- [12:03:24] Video Encode complete
- [12:03:24] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [12:03:24] Multiplexing M2TS
- [12:03:31] Processing: VID_00011 (5 of 9)
- [12:03:31] Extracting A/V streams [VID_00011]
- [12:03:50] Reencoding video [VID_00011]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29.970fps, 25,111 frames
- Bitrate: 4,040 Kbs
- [12:03:50] Reencoding: VID_00011, Pass 1 of 2
- [12:14:52] Reencoding: VID_00011, Pass 2 of 2
- [12:39:37] Video Encode complete
- [12:39:37] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [12:39:37] Multiplexing M2TS
- [12:39:48] Processing: VID_00012 (6 of 9)
- [12:39:48] Extracting A/V streams [VID_00012]
- [12:40:00] Reencoding video [VID_00012]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 8,578 frames
- Bitrate: 3,527 Kbs
- [12:40:00] Reencoding: VID_00012, Pass 1 of 2
- [12:42:43] Reencoding: VID_00012, Pass 2 of 2
- [12:49:50] Video Encode complete
- [12:49:50] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [12:49:50] Multiplexing M2TS
- [12:49:56] Processing: VID_00013 (7 of 9)
- [12:49:56] Extracting A/V streams [VID_00013]
- [12:50:20] Reencoding video [VID_00013]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 8,660 frames
- Bitrate: 12,251 Kbs
- [12:50:20] Reencoding: VID_00013, Pass 1 of 2
- [12:54:11] Reencoding: VID_00013, Pass 2 of 2
- [13:05:50] Video Encode complete
- [13:05:50] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [13:05:50] Multiplexing M2TS
- [13:06:03] Processing: VID_00018 (8 of 9)
- [13:06:03] Extracting A/V streams [VID_00018]
- [13:06:19] Reencoding video [VID_00018]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 12,060 frames
- Bitrate: 5,119 Kbs
- [13:06:19] Reencoding: VID_00018, Pass 1 of 2
- [13:11:19] Reencoding: VID_00018, Pass 2 of 2
- [13:22:34] Video Encode complete
- [13:22:34] Processing audio tracks
- Track 4352 (fra): Keeping original audio
- [13:22:34] Multiplexing M2TS
- [13:22:42] Processing: VID_00019 (9 of 9)
- [13:22:42] Extracting A/V streams [VID_00019]
- [13:24:16] Reencoding video [VID_00019]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 29.970fps, 104,046 frames
- Bitrate: 7,172 Kbs
- [13:24:16] Reencoding: VID_00019, Pass 1 of 2
- [14:06:15] Reencoding: VID_00019, Pass 2 of 2
- [15:58:16] Video Encode complete
- [15:58:16] Processing audio tracks
- Track 4352 (eng): Keeping original audio
- [15:58:16] Multiplexing M2TS
[15:59:29]PHASE ONE complete
[15:59:29]PHASE TWO - Rebuild Started
- [15:59:29] Rebuilding BD file Structure
[16:00:04] - Encode and Rebuild complete
[16:00:04] JOB: JOB_TITLE finished.

and the inf:
[Status]
LABEL=JOB_TITLE
VERSION=v0.61.28
SOURCE_SIZE=46943731324
SOURCE_VIDEO_SIZE=44934285312
TARGET_SIZE=26088570880
REDUCTION=.535874214996572
RESIZE_1080=0
RESIZE_1440=0
AUDIO_TO_KEEP=all
KEEP_HD_AUDIO=-1
SUBS_TO_KEEP=all
BACKUP_MODE=0
MOVIEONLY_TYPE=0
USE_LAVF=0
INSTANCES=1
DGDECNV=-1
DGDECIM=0
FRIMSOURCE=0
FFMS2=0
SSIF_MODE=0
UHD_V3_MODE=0
QUICK=0
ENCODE_STEP=0
COMPLETED=9
REBUILD_COMPLETE=1
[00002]
AUDIO=111
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=9246285730
RATE=11507
SPLITS=1
NSTART=27000000
NEND=204107555
NSIZE=8848588800
FLINK=0
MLINK=0
[00003]
AUDIO=111
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=8327054407
RATE=11188
SPLITS=1
NSTART=27000000
NEND=183773491
NSIZE=7944744960
FLINK=0
MLINK=0
[00004]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=969496565
RATE=9249
SPLITS=1
NSTART=27000000
NEND=61069035
NSIZE=948553728
FLINK=0
MLINK=0
[00007]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=350516679
RATE=2527
SPLITS=1
NSTART=27000000
NEND=68882465
NSIZE=343523328
FLINK=0
MLINK=0
[00011]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=486022446
RATE=4040
SPLITS=1
NSTART=27000000
NEND=64704166
NSIZE=474673152
FLINK=0
MLINK=0
[00012]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=182880271
RATE=3527
SPLITS=1
NSTART=27000000
NEND=43099833
NSIZE=179073024
FLINK=0
MLINK=0
[00013]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=676139437
RATE=12251
SPLITS=1
NSTART=27000000
NEND=43253737
NSIZE=662796288
FLINK=0
MLINK=0
[00018]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=364861714
RATE=5119
SPLITS=1
NSTART=27000000
NEND=49635113
NSIZE=358785024
FLINK=0
MLINK=0
[00019]
AUDIO=1
PGS=
APULLDOWN=0
S1440=0
VIDEO2=0
V2MBRATE=0
M2TS_TARGET=3475867620
RATE=7172
SPLITS=1
NSTART=27000000
NEND=183225069
NSIZE=3390314496
FLINK=0
MLINK=0

Lathe
8th September 2024, 22:11
Well, I probably missed this being covered before, and if so, my humble apologies...

Can you use BDRB to convert from a UHD/HDR source to a playable SDR 1080 Blu-ray? Is there any adjustment for changing the color filter to BT709 or any other parameters that allow this?

Or, sort of conversely (not really) can you also simply convert any UHD source using x264 to make a playable Blu-ray? It seems that whenever I try to convert HEVC to x264 it always throws an error. Any secret settings in the configurations? I've tried using both alternate movie only format and archive format (AVC/AC3) neither seem to work for this.

Thanks!

jdobbs
8th September 2024, 23:15
Well, I probably missed this being covered before, and if so, my humble apologies...

Can you use BDRB to convert from a UHD/HDR source to a playable SDR 1080 Blu-ray? Is there any adjustment for changing the color filter to BT709 or any other parameters that allow this?

Or, sort of conversely (not really) can you also simply convert any UHD source using x264 to make a playable Blu-ray? It seems that whenever I try to convert HEVC to x264 it always throws an error. Any secret settings in the configurations? I've tried using both alternate movie only format and archive format (AVC/AC3) neither seem to work for this.

Thanks!Right now there isn't an easy way to go from UHD to HD. There will probably never be a way to do a full backup -- that's because of differences in v2 and v3 file formats/types.

I'm looking at the possibility of adding a movie-only and/or quick-menu type backup.

Right now you'd have to create an alternate backup in 1080p and then import it.

Lathe
8th September 2024, 23:47
Right now there isn't an easy way to go from UHD to HD. There will probably never be a way to do a full backup -- that's because of differences in v2 and v3 file formats/types.

I'm looking at the possibility of adding a movie-only and/or quick-menu type backup.

Right now you'd have to create an alternate backup in 1080p and then import it.

Okidoke, thanks JD! So, I CAN import either the full UHD blu-ray (m2ts) or 2160 HEVC file and use alternate movie only backup? Would I then be selecting HEVC (it's original format) or can I choose x264? I'm a little fuzzy about the exact steps to use after importing the file...

And, I'm assuming there is no ability to use a BT709 filter to convert it to SDR either, right?

gonca
9th September 2024, 01:25
And, I'm assuming there is no ability to use a BT709 filter to convert it to SDR either, right?

You might be able to input a tonemapping filter with the avisynth tweaks setting

jdobbs
9th September 2024, 01:28
Okidoke, thanks JD! So, I CAN import either the full UHD blu-ray (m2ts) or 2160 HEVC file and use alternate movie only backup? Would I then be selecting HEVC (it's original format) or can I choose x264? I'm a little fuzzy about the exact steps to use after importing the file...

And, I'm assuming there is no ability to use a BT709 filter to convert it to SDR either, right?You can choose X264 for the output to alternate (or any other H264 encoder for that matter). Then when you import, you won't have to encode again (unless you decide to do a near-identical [low CRF] encode during the alternate phase) -- that way after importing you can reencode again.

If you decide to do only on encode (alternate), add ALTERNATE_BLURAY=1 to your REBUILDER.INI. That way the alternate encode will be forced to meet Blu-Ray requirements (making it possible to import without reencoding a second time).

Lathe
9th September 2024, 02:28
You might be able to input a tonemapping filter with the avisynth tweaks setting

Ah yes, I was thinking about that...

Lathe
9th September 2024, 02:30
You can choose X264 for the output to alternate (or any other H264 encoder for that matter). Then when you import, you won't have to encode again (unless you decide to do a near-identical [low CRF] encode during the alternate phase) -- that way after importing you can reencode again.

If you decide to do only on encode (alternate), add ALTERNATE_BLURAY=1 to your REBUILDER.INI. That way the alternate encode will be forced to meet Blu-Ray requirements (making it possible to import without reencoding a second time).

Ah, good, thank you Sir!