Log in

View Full Version : BD3D2MK3D v1.17: Convert 3D BDs or MKV to 3D SBS, T&B or Frame-sequential MKV


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21] 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

Sxc
31st May 2016, 13:58
Well, I've read some doc on 10bit color depth support and the BD standard and compatibility with avisynth (including this doc (http://avisynth.nl/index.php/High_bit-depth_Support_with_Avisynth)), and I'm not sure it is a good idea to implement it. AFAIK, currently, avisynth is still limited to 8-bit (although some filters may use more bits internally), and I wonder if encoding in 10-bit is really interesting if avisynth returns a 8-bit video anyway.

Perhaps it is possible to use various alternative filters within avisynth to output 10 or 12-bit, but honestly, I don't know how, I'm not sure they will be compatible with the filters BD3D2MK3D requires, and again, given the fact that the input BD is encoded in 8-bit (TV range), I don't think that the gain will be major. Note also that most monitors and TVs are 8-bit only, and therefore you can only expect a more or less well dithered 8bit color depth in final, even if the whole processing and encoding processes are made correctly in 10 or 12-bits.

So, unless somebody can explain what I'll have to do to effectively support 10 or 12-bit color depth during the whole process and can show me clearly that there is a big advantage, I will not do it. Sorry.

Anyway, if you really want to encode in 10 or 12-bit, you can replace the x264/x265 exe with the 10/12-bit version, as you know. You can even create several small cmd files to restore the 8-bit version or overwrite it with another version, and call the right batch when necessary, before launching the encoding.

Well, setting aside the fact that the source was only encoded at 8bit, re-encoding the freshly decoded uncompressed video from avisynth using 10bit is giving a better quality file (no banding that wasn't visible on the source when being played appearing in the encode) with a not insignificant smaller filesize than using H.264 to get equivalent quality.

It's certainly easy enough to replace the executable as you say anyway, but their is a trend now to use H.265 with 10 bit on re-encodes of content that was originally H.264 8bit is common, especially for animated material.

r0lZ
31st May 2016, 15:12
Well, 10-bit and x265 encoding have above all the reputation to be incompatible with most hardware. Only a few peoples can afford an extremely expensive 10-bit monitor, and I'm even not sure that 10-bit HD TVs exist. 10-bit will probably slowly become a new standard (probably with 4K UHD), but even that is not sure. Most peoples are still happy with the standard PAL or NTSC resolution of the DVD, and I'm not sure the market is ready for high quality 10-bit HD!

My main concern is that Avisynth is not supposed to output 10-bit. It should theoretically output only 8-bit (furthermore, limited by the TV range, so it's effectively less than 8-bit.) If you do the resize with x264, I agree that some new colors can appear, but afaik it is not possible to resize with x265. The removal of the noise during the compression is mainly responsible of the banding, but I don't know if encoding in 10-bit gives better result, because the noise is removed anyway. Is the encoder smart enough to replace the noisy pixels with an uniform color chosen among the 10-bit colors? Or does it simply remove the pixels not equal to its neighbours, therefore replacing the pixel with a color available in the 8-bit range? Honestly, I don't know.

And what happens if you play the movie on a 8-bit monitor or TV? Again, I suppose that the quality of the reduction from 10 to 8-bit depends of the TV. A high quality, 10-bit aware monitor will probably generate some dithering in order to globally keep the original colors, but mid-range TVs and monitor will probably simply truncate the 2 additional bits of colors, and display terrible banding artefacts, reducing the gain to nothing. Most TVs may even fail to recognise the 10-bit colors correctly, and either refuse to play the file or play it with totally wrong colors.

Also, supporting the other color depths is not as trivial as it looks. For example, I have to take into account that 10-bit h264 is not compliant with the BD standard, and therefore I have to disable the BD Compatible option when something else than 8-bit x264 is selected. In the other hand, if you replace the exe, you are supposed to know what you are doing! ;)

Anyway, I will try to do some tests. If it appears that many TVs and monitors benefit of the 10-bit encoding, I will implement it. But currently, I'm sceptical.

r0lZ
8th June 2016, 08:21
As I suspected, my tests of 10-bit h264 encodings have proven that most hardware players do not support it. In fact, I have tested it on 3 TVs and 2 hardware media players, and it has always been rejected! On my PC, it is accepted by all software players I've tested, but perhaps due to the 8-bit monitor I'm using, I can't see any significant difference with the 8-bit encoding. I have also noted that the banding problem is already very visible in some original BDs, and is usually only a very little bit strengthened by the 8-bit re-encode (with h264 and the default CRF 23!) Therefore, I'm now totally convinced that encoding in 10-bit is usually not a good idea, except if you have the 10-bit compatible equipment and a very small improvement is important for you. But I have also seen that modifying my code to support the 10 and 12-bit encoders was relatively easy, so I did it anyway. Therefore, it is now possible to encode in 10-bit (and 12-bit in h265 too). There is a warning if you select that option to explain why it's probably not a good idea, but you can do it. So, here is the new version. I hope you will enjoy it.

Note that due to the new colour depth support, I have been forced to rename the x264 and x265 executable files in the toolset folder. You will see a dialog when you launch v0.90 for the first time, asking if the old files can be deleted. You should accept only if all projects generated with previous versions of BD3D2MK3D have been already encoded, as otherwise the __ENCODE_3D.cmd script will not find the x26* exe and fail.

This version contains also some little improvements and fixes two bugs in Convert SRT to ASS 3D.


v0.90 (June 8, 2016)
- Added the possibility to select the colour depth (8, 10 or 12-bit) of the final video in the last tab.
- Added 2 procedures in the context menu of the MPLS list in tab 1 to sort the playlists by MPLS or by M2TS/SSIF number(s)
- Added 4 procedures in the context menu of the MPLS list in tab 1 to easily remove the MPLS that do not contain the movie. (Useful mainly for protected BDs.)
- Added the URL to download the x265 builds by LigH in Help -> x265 version. (Thanks LoRd_MuldeR!)
- Bug fixed again in Convert SRT to ASS 3D: The first subtitle was sometimes missing when the input file is encoded in UTF-8/16.
- Bug fixed in Convert SRT to ASS 3D: The vertical positions of the subtitles was wrong when using a guide file.
- Updated MkvToolnix executables to the latest version (v9.2.0)
- Due to the new colour depth option, the file names of the x264 and x265 executables in the toolset folder have changed.

Download: BD3D2MK3D.7z (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2MK3D.7z)

Sxc
9th June 2016, 02:38
Thanks for adding that supportt, and agree with you regarding using H.264 10 bit, there is next to no hardware support for it. Where it makes a big difference is with H.265 encodes.

The android hardware players (as well as Samsung/LG Smart TV) that have H.265 support also support 10bit files. There is a noticeable difference between using 8 and 10 bit when it comes to banding in my experience, especially in dark scenes. The down sampling being done from the 10bit to 8 bit when it appears on your 8bit display on your computer is still superior to just having encoding it as 8bit with H.265.

I know at least my OLED 4K TV is rendering the 10bit with 10bits too.

r0lZ
9th June 2016, 09:40
Oh, yes, of course, if you have a 4K TV, 10bit is supported. AFAIK, 10bit is part of the UHD specs, so all UHD TVs must support it. Anyway, now, you can easily encode even in 12bit x265 if you wish.

Triple-M
12th June 2016, 14:15
Today i installed your newest Version but now i can't encode the 3D movie. When i open the Launcher, a window open but nothing happen. Also the Microsoft Security Essentials detect a Virus/Trojaner in BD3D2MK3D. I was shocked!

r0lZ
12th June 2016, 16:59
The virus detection is a false positive, as you can see with VirusTotal (https://www.virustotal.com/en/file/bd9e49272bf1ba63d4e6b390ef36621cc4dd48de1c965941ba8c0b848b99d920/analysis/1465745452/): Detection ratio: 0 / 56, and Joti (https://virusscan.jotti.org/en-GB/filescanjob/o1bdbe6p58): 1 / 20. It's almost perfect. Even M$ does not detect a virus. However, ClamAV detects shutdowngui.exe (in the toolset folder) as a PUA (Potentially Unwanted Application). It's probably because, as its name suggests, shutdowngui can shut the computer down. It is used to do just that, when the Shutdown option is enabled in the last tab. I have written myself that program, and it has not been modified since years. Anyway, a PUA is not a virus. It's just a program that can do potentially dangerous things. It is up to you to decide if you want to keep it or not. (You don't need it if you don't use the Shutdown option.)

I have no idea why "nothing happens" when you launch BD3D2MK3D, but it's probably because M$ blocks it due to the false positive virus detection. You should try to update your virus definitions or add the BD3D2MK3D folder to its ignore or false positive list. Or better, stop using the very bad M$ Security Essentials and install a good antivirus. Avast, Avira, AVG and Panda are free and already much better that the M$ SE. You may also want to scan BD3D2MK3D.exe and/or the other programs in the toolset folder with VirusTotal, just to be sure. But the scan I did was made with the version downloaded from my homepage, and it is virus free, so you should obtain the same result (unless the exe has been infected on YOUR computer).

Conclusion: Do not panic, and try to fix your antivirus problem. Anyway, the problem is not on my side.

Triple-M
12th June 2016, 18:01
i have deinstalled Microsoft Security Essentials and installed another AntiVirus but after demux still doesn't happen, the Windows hangs...

r0lZ
12th June 2016, 19:31
What's exactly the problem ? When does it hang ? Is the small window with the demux progress already opened ? What is the BD you are processing ? Can you post the BD3D2MK3D.log file (from the project directory) here ?

Triple-M
13th June 2016, 08:22
Here is the Log:


Log file generated by BD3D2MK3D v0.90
Conversion of "M:/Pixels (2015)/Pixels (2015).MVC.mkv" to Side-by-Side.
Movie title: Pixels
Generating project "Pixels\MKV3D"...

*******************************************************************************

Main job started Mon Jun 13 09:02:59 CEST 2016.

Saving file "MKV3D.demux.meta"...
Saving file "chapters_2D_no_delay.ogm.txt"...
Saving file "chapters_2D_no_delay.qpfile"...
Saving file "chapters_3D_delay.ogm.txt"...
Saving file "chapters_3D.qpfile"...

-------------------------------------------------------------------------------

*** Demuxing the streams...
Network Optix tsMuxeR. Version 2.6.9. www.networkoptix.com
Decoding H264 stream (track 1): Profile: High@4.1 Resolution: 1920:1080p Frame rate: 23.976
H.264 muxing fps is not set. Get fps from stream. Value: 23.976
Decoding H264 stream (track 2): H.264/MVC Views: 2 Profile: High@4.1 Resolution: 1920:1080p Frame rate: 23.976
MVC muxing fps is not set. Get fps from stream. Value: 23.976
H264 bitstream changed: insert nal unit delimiters
H264 bitstream changed: insert nal unit delimiters
Decoding DTS-HD stream (track 3): Bitrate: 1536Kbps core + MLP data.Sample Rate: 48KHz Channels: 5.1 (DTS Master Audio)
Decoding PGS stream (track 4): Resolution: 1920:1080 Frame rate: 23.976
Processed 152232 video frames
Processed 152232 video frames
Flushing write buffer
Demux complete.
Demuxing time: 15 min 13 sec


-------------------------------------------------------------------------------

*** Retrieving audio delays from "Pixels (2015).MVC.mkv"...
Stream 2: 0 ms

-------------------------------------------------------------------------------

*** Extracting 3D-planes from MVC stream...
Extracting 3D-planes from MVC file with BD3D2MK3D v0.90 (c) r0lZ and MVCPlanes2OFS v2.0 (c) 2015 by Nico8583
Input MVC file: "MKV3D.track_1.mvc"
Output folder: "."
Command: "C:\Users\Desktop\BD3D2MK3D\toolset\MVCPlanes2OFS.exe" "MKV3D.track_1.mvc" "."

Unable to open file MKV3D.track_1.mvc

Extraction took 0 seconds (00:00:00)
Extracted 0 3D-planes with 0 frames @ 0 fps.

-------------------------------------------------------------------------------

*** Converting "MKV3D.track_3.Deu.sup" to 3D BD SUP. Please wait!

* Warning: Subtitle track "MKV3D.track_3.Deu.2D.sup" is associated with the 3D-plane file 3D-Plane-05.ofs, but the 3D-Plane #5 doesn't exist or is empty.
There are no other 3D-planes to use. Using constant depth of 0 (+ additional depth of 0)!
The subtitles will appear on the surface of the screen (unless yuou have specified a non-zero additional depth).
*** Converting subtitle file "MKV3D.track_3.Deu.sup" to 3D SBS using 3D-plane "" + additional depth 0...
Subtitle language: deu (German)
*** Converting subtitle "MKV3D.track_3.Deu.sup" to "temp_2D.xml"...
> "C:\\ProgramData\\Oracle\\Java\\javapath\\java.exe" -Xmx256m -jar "C:\\Users\\Desktop\\BD3D2MK3D\\toolset\\BDSup2Sub.jar" "MKV3D.track_3.Deu.sup" -o "MKV3D.track_3.Deu.3D_2D/temp_2D.xml" --palette-mode keep --minimum-time 1 --language de --force-all set --convert-fps 24p,24p
* BDSup2Sub "temp_2D.xml": ERROR: Input file not found: M:\Pixels (2015)\Pixels\MKV3D\MKV3D.track_3.Deu.sup
ERROR: Input file not found: M:\Pixels (2015)\Pixels\MKV3D\MKV3D.track_3.Deu.sup
child process exited abnormally
*** BDSup2Sub close error: child process exited abnormally
child process exited abnormally. No captions in subtitle stream?
*** Found 0 captions, including 0 forced captions.
ERROR: Can't convert "MKV3D.track_3.Deu.sup" to XML/PNG format!
Deleting temp directory "MKV3D.track_3.Deu.3D_2D".
* Can't convert "MKV3D.track_3.Deu.sup" to 3D BD SUP!

-------------------------------------------------------------------------------

*** Converting "MKV3D.track_3.Deu.sup" to 2D VobSub. Please wait!
No captions found in "MKV3D.track_3.Deu.sup" or conversion error. Stream skipped.

-------------------------------------------------------------------------------

*** Generating the avisynth script...

*** Saving "__ENCODE_3D_MOVIE.avs"...
Saving file "__ENCODE_3D_MOVIE.avs"...
*** Generating the batch files...

*** Saving "__ENCODE_3D.cmd"
x264 command:
"C:\Users\Desktop\BD3D2MK3D\toolset\avs2yuv.exe" ^
"__ENCODE_3D_MOVIE.avs" -frames 152232 -o - ^
| "C:\Users\Desktop\BD3D2MK3D\toolset\x264_8bit_x64.exe" ^
--crf 15 --preset slower ^
--bluray-compat --profile high --level 4.1 --open-gop --keyint 24 --slices 4 ^
--colormatrix bt709 --colorprim bt709 --transfer bt709 --b-pyramid strict ^
--vbv-bufsize 30000 --vbv-maxrate 40000 --aud ^
--sar 1:1 --range tv --colormatrix bt709 ^
--frame-packing 3 --qpfile chapters_3D.qpfile --frames 152232 --fps 24000/1001 ^
--output "MKV3D_3D.264" --demuxer y4m --stdin y4m -
*** Generating the batch files...

*** Saving "_ENCODE_2D.cmd"
x264 command:
"C:\Users\Desktop\BD3D2MK3D\toolset\x264_8bit_x64.exe" ^
--crf 15 --preset slower ^
--bluray-compat --profile high --level 4.1 --open-gop --keyint 24 --slices 4 ^
--colormatrix bt709 --colorprim bt709 --transfer bt709 --b-pyramid strict ^
--vbv-bufsize 30000 --vbv-maxrate 40000 --aud ^
--qpfile chapters_2D_no_delay.qpfile --fps 24000/1001 --sar 1:1 ^
--output "MKV3D_2D.264" "MKV3D.track_1.264"

*** Saving "__TAGS_3D.xml"

> x264_8bit_x64.exe --version
x264 0.148.2692 64f4e24
(libswscale 4.1.100)
(libavformat 57.34.100)
(ffmpegsource 2.22.0.1)
built by Komisar on Apr 13 2016, gcc: 4.9.2 (multilib.generic.Komisar)
x264 configuration: --bit-depth=8 --chroma-format=all
libx264 configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later


*** Saving "__MUX_3D.cmd"

*** Saving "__MUX_3D_OPTIONS.txt"
*** Adding attachments...

*** Saving "_TAGS_2D.xml"

> x264_8bit_x64.exe --version
x264 0.148.2692 64f4e24
(libswscale 4.1.100)
(libavformat 57.34.100)
(ffmpegsource 2.22.0.1)
built by Komisar on Apr 13 2016, gcc: 4.9.2 (multilib.generic.Komisar)
x264 configuration: --bit-depth=8 --chroma-format=all
libx264 configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later


*** Saving "_MUX_2D_REENCODED.cmd"

*** Saving "_MUX_2D_REENCODED_OPTIONS.txt"

*** Saving "_MUX_2D_LOSSLESS.cmd" and "_MUX_2D_LOSSLESS_OPTIONS.txt"

*** Saving "__POSTPROCESS_3D.cmd" and "_POSTPROCESS_2D.cmd"
*** Done. Avisynth script and batch files generated.

-------------------------------------------------------------------------------


Job finished Mon Jun 13 09:18:27 CEST 2016
Whole job took 15 minutes and 28 seconds.

Done with warnings!

* Warning: Subtitle track "MKV3D.track_3.Deu.2D.sup" is associated with the 3D-plane file 3D-Plane-05.ofs, but the 3D-Plane #5 doesn't exist or is empty.
There are no other 3D-planes to use. Using constant depth of 0 (+ additional depth of 0)!
The subtitles will appear on the surface of the screen (unless yuou have specified a non-zero additional depth).
* Can't convert "MKV3D.track_3.Deu.sup" to 3D BD SUP!

Launch "__ENCODE_3D_LAUNCHER.cmd" to encode the 3D video (and optionally mux to MKV).

*******************************************************************************


When demux is finished, i click on "ENCODE 3D LAUNCHER" and a little window open. Then only the Cursor is blinking and nothing else happen.

r0lZ
13th June 2016, 08:46
Hum, it seems that the demuxed streams do not have the usual stream numbers, and BD3D2MK3D tries to process the wrong files. I don't understand why, so I need more info. Can you show me the content of the project folder Pixels\MKV3D ? Also, please post here the content of the MKV3D.demux.meta file. And finally, I need the content of the stream list of the first tab of BD3D2MK3D, when the 3D MKV created by MakeMKV is loaded. (Just right-click on the large pane and select "Copy to clipboard" and paste the text here.) In the meantime, I will try to reproduce the problem here, but since I don't understand it, that may be difficult.

The MakeMKV input mode is very new and in this case, it seems that it has a bug. If you want, you can try to process the BD with another decrypter, and create an ISO, then mount it and process it with BD3D2MK3D, or use AnyDVD HD to decrypt the original BD on the fly. Opening an unprotected BD "normally" should work without problem.

Sxc
19th June 2016, 07:12
Welcome to the Doom9 forums, Sxc!

The SAR has been changed in v0.86. It is now 1:1 for all frame packing modes (Full and Half SBS and T&B). It seems that it's the best SAR to use with the vast majority of players. It's the conclusion of a long discussion and many tests (starting with this post (http://forum.doom9.org/showthread.php?p=1758904#post1758904)).

Do you have a problem with the new setting? AFAIK, as soon as you switch to 3D mode (or the TV switches automatically to 3D mode), the SAR should be ignored and the aspect ratio should be correct. At least, it's what happens with my Samsung TV.

If your TV does not display the movie correctly, try to change Settings -> Full-SBS/T&B aspect ratio. And if that doesn't work, you can edit the __ENCODE_3D.cmd script and change the --sar option manually.

I will consider that suggestion. But take in mind that the 10 or 12 color bit modes are not compatible with many hardware players and/or graphic cards. But I agree that reducing the banding artefacts is a good thing if it works for you. Banding remains certainly the most noticeable problem of the videos encoded in h264 or h265.

Sorry to dredge this old subject up, but the change in SAR does break it for playing back 3D full TAB movies on LG 4K OLED TV (just got around to doing an encode with it).

I end up with a pillarboxed video as compared to the perfection I had before.

Can I trouble you to make it user selectable just whenever you next do a release, I appreciate you making the changes you have which is making my life easier already :)

r0lZ
19th June 2016, 07:24
Are you sure it's the SAR that is the culprit? AFAIK, only your TV seems sensible to the new SAR values.

But it's OK. I will add an option to control it.

Sxc
19th June 2016, 11:24
Yep it definitely doesn't like the SAR, did a quick encode of a trailer from the same ISO and same effect, did it again with SAR 2:1 and its full screen all good again.

r0lZ
19th June 2016, 11:32
Just to be sure, the SAR 2:1 you have used, it's for Full-T&B. Right?

Sxc
19th June 2016, 11:45
Yes, that's correct, I'm doing all mine as Full T&B.

r0lZ
19th June 2016, 13:56
OK, I've already added the option. But be patient. I will release the new version later, when some other things will have changed...

r0lZ
21st June 2016, 13:08
Today i installed your newest Version but now i can't encode the 3D movie. When i open the Launcher, a window open but nothing happen. Also the Microsoft Security Essentials detect a Virus/Trojaner in BD3D2MK3D. I was shocked!
After many PMs with Triple-M, we have been able to understand what was the problem. It was due to a big bug in tsMuxeR, when the input file is a 3D-MVC MKV file (created by MakeMKV) has at least one dot in the file name (not including the dot of the .mkv extension of course).

When tsMuxeR demuxes a file, it creates the elementary streams with the same file name than the original file followed by the track number, and, of course, the extension of the file type. To do that, it must of course remove the .mkv extension of the original file name. And here is the bug. Instead of removing the part of the file name beginning with the LAST dot, it removes everything after the FIRST dot! For example, if the original MKV is "Creature.From.The.Black.Lagoon.1954.3D.mkv", it should create elementary streams like "Creature.From.The.Black.Lagoon.1954.3D.track_1.avc", but due to that bug it creates instead "Creature.track_1.avc" !
BD3D2MK3D expected the right file name, and since it was not found, the whole procedure failed.

I have never noticed that bug because I don't use often MVC-MKV files as input, and the bug did not happen when a BD was used for the input. Also, the tests I did in MKV input mode were made with filenames without dots. Thanks to the bug report and the discussion I've had with Triple-M, I have been able to implement a workaround for that nasty bug.

It is also confirmed that the virus reported by the M$ Security Essentials was a false positive.

There is also a new option, requested by Triple-M by PM, to save the final SBS or T&B MKV in the source folder of the original MVC-MKV. (Of course, that option is available only in MVC MKV input mode.)

This version adds also the SAR option requested by Sxc here (http://forum.doom9.org/showthread.php?p=1771021#post1771021).


v0.91 (June 21, 2016)
- Added the option Full-SBS/T&B aspect ratio -> Use SAR 1:1 for all modes to go back to the SAR 2:1 or 1:2 for Full-SBS and T&B.
- Added an option in the last tab to save the final MKV in the source folder (available only in 3D MKV input mode)
- Workaround for a tsMuxeR bug when opening a 3D-MVC MKV file with dots in the file name.
- Fix: Help -> x264 Version and Help -> x265 Version were broken in v0.90.
- Updated the x265 binaries to the latest version (v1.9+200)

Download: BD3D2MK3D.7z (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2MK3D.7z)

Privateer5000
21st June 2016, 21:42
Hi r0lZ, i have a Problem with the latest version. After Opening a 3D Bluray, i selected the necessary stream, did all my settings and hit run, it started to demux the streams, but when it finished demuxing the stream i got an error Message. This is what the Log File says:
can't read "videooutputbasename": no such variable
can't read "videooutputbasename": no such variable
while executing
"set infn $videooutputbasename$ext2$ext1"
(procedure "GenerateAvs" line 1146)
invoked from within
"GenerateAvs"
invoked from within
".nbf5.gf.gen invoke "
invoked from within
".nbf5.gf.gen instate {pressed !disabled} { .nbf5.gf.gen state !pressed; .nbf5.gf.gen invoke } "
(command bound to event)

Sadly i already deleted Version 0.90, so i am not able to downgrade. Perhaps you could make the last version, or last 2, of BD3D2MK3D available for download after releasing a new version, so People like me can do a downgrade. Hope you can fix it soon.

r0lZ
21st June 2016, 23:24
Damn! Right. Thanks for the report.
It's a bug I've just introduced with the workaround for the tsMuxeR bug in v0.91.
Here is the fix. Please let me know if it works for you. I haven't much time to test right now.

v0.92 (June 22, 2016)
- Fix: Bug introduced in v0.91: videooutputbasename not properly initialised

Download: BD3D2MK3D.7z (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2MK3D.7z)

Privateer5000
22nd June 2016, 19:51
Thanks for the fast fix. Now it works like it should. Thank you very much

rod93
6th July 2016, 18:43
hi
i try to encode a bd3d in frame sequential but when i want to see it on 3d projector with powerdvd 15, the film isn't in 3d why?

(i was thinking fs was in 2040*1080 but the output file is in 1080p why?)

thank you to save me

r0lZ
6th July 2016, 19:02
Welcome to the Doom9 forums, rod93.

First, if you use BD3D2MK3D, please use the BD3D2MK3D official thread (http://forum.doom9.org/showthread.php?t=170828). This one is obsolete and dead since July 2014.

Frame sequential 3D is just like a normal video, without changes in resolution, but there are two times the number of frames (so 47.952 fps instead of 32.976). Therefore, the 1080p resolution is absolutely normal.

FS is usually not well supported by most players. I suggest to try to use Half-SBS or Half-T&B first. If that works, try Full-SBS or Full-T&B. That should work on PC with a good player (but most relatively old hardware players will probably refuse to play the full resolution.) Also, be sure to use the last version of BD3D2MK3D.

[EDIT] The previous post, by rod93, has been posted in the old "Guide to convert BD 3D to 3D Left+Right Stereoscopic and Anaglyph", and moved here by tebasuna51 after a few replies. Hence my request in the beginning of this post.

rod93
7th July 2016, 00:09
Ok so full t&b mâke à 3840*2160 mkv ?

Envoyé de mon 6039Y en utilisant Tapatalk

rod93
7th July 2016, 00:13
Powerdvd dont support fs ?

Envoyé de mon 6039Y en utilisant Tapatalk

r0lZ
7th July 2016, 09:36
Ok so full t&b mâke à 3840*2160 mkv ?
No. 1920 x 2193. In Full-SBS, the two full size 1080p images are stacked vertically: 1920 x (1080*2) = 1920 x 2193. In full-SBS, it's the opposite: 3840 x 1080.

Powerdvd dont support fs ?
I don't know. I don't use PowerDVD. But anyway, your projector must support the resolution or frame rate.

Also, have you tried to change the PowerDVD 3D-mode setting manually? Many players do not automatically switch to the right 3D-mode, because they ignore the stereoscopy and frame-packing info stored in the MKV. When it's the case, you have to go to the 3D settings menu of the player, and select yourself the right SBS, T&B or FS mode.

youli
7th July 2016, 09:44
Hello, r0lZ. Hello, everyone.
I made the first HEVC 10-bit full over-under BD-Rip for test of my new UHD TV LG 55UF85.
It looks great!

Really, x265 default settings trying to convert noise pixels to flat areas for bitrate reduction - it looks like artefacts. After tests for preserving high-frequency detail by x265 encoder, and also saving of the native noise during the compression I added few command line options (bold):
--me umh --subme 7 --aq-mode 3 --aq-strength 0.7 --no-sao --no-deblock --rd 3 --psy-rd 0.8 --b-adapt 1 --ctu 64 --rc-lookahead 24 --bframes 4 --merange 25 --ipratio 1.1 --pbratio 1.0 --qcomp 0.8 --rdoq-level 1 --psy-rdoq 0.7

Media info:
wpp / ctu=64 / min-cu-size=16 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=2 / subme=7 / merange=25 / no-rect / no-amp / max-merge=2 / temporal-mvp / early-skip / recursion-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=0 / rc-lookahead=24 / lookahead-slices=8 / bframes=4 / bframe-bias=0 / b-adapt=1 / ref=1 / limit-refs=0 / no-limit-modes / no-weightp / no-weightb / aq-mode=3 / qg-size=32 / aq-strength=0.70 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=0.80 / rdoq-level=1 / psy-rdoq=0.70 / no-rd-refine / no-signhide / no-deblock / no-sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=crf / crf=23.0 / qcomp=0.80 / qpmin=0 / qpmax=51 / qpstep=4 / ipratio=1.10 / pbratio=1.00

http://s018.radikal.ru/i527/1607/0d/ecd9301559d0t.jpg (http://s018.radikal.ru/i527/1607/0d/ecd9301559d0.png) http://s002.radikal.ru/i198/1607/06/c1bc4ae6f5f0t.jpg (http://s002.radikal.ru/i198/1607/06/c1bc4ae6f5f0.png)

x265 [info]: frame I: 669, Avg QP:20.95 kb/s: 23348.66
x265 [info]: frame P: 98386, Avg QP:22.91 kb/s: 11636.39
x265 [info]: frame B: 66156, Avg QP:24.43 kb/s: 3368.81
x265 [info]: consecutive B-frames: 36.1% 61.9% 1.4% 0.5% 0.2%

encoded 165211 frames in 37868.77s (4.36 fps), 8373.20 kb/s, Avg QP:23.51

r0lZ, thanks again for your program!:)

r0lZ
7th July 2016, 09:50
Thanks for the info, and for the thanks, youli !

rod93
7th July 2016, 12:41
Thank you i will test in fp
Its working on t&b in full HD res


Envoyé de mon 6039Y en utilisant Tapatalk

rod93
7th July 2016, 23:57
ok it's working very well with t&b in x264

i trying in x265 can you help me to configure it for that profil for have quality with a reasonable size?

tebasuna51
8th July 2016, 09:42
i trying in x265 can you help me to configure it for that profil for have quality with a reasonable size?

The quality/size is controlled by the crf parameter. There are other parameters than can be changed, can improve some movie sources but not for all sources.

The x265 encoder is still under development and, by the moment, is better let default parameters and use only the CRF, to control the quality/size, and PRESET (..., Medium, Slow, ...) to control the encoding time.

BTW you can read this post (http://forum.doom9.org/showthread.php?p=1773155#post1773155).

r0lZ
8th July 2016, 09:54
Well, I don't encode in x265 myself, because my TV doesn't understand that format yet. I have simply encoded the default settings in BD3D2MK3D. (For example, the default CRF value is 28 instead of 23 for x264.) Many peoples consider the default CRF values too high, and they prefer to encode with a lower CRF, between 17 and 20 for x264. Personally, I use often the CRF 20, but with a slower preset (slow or slower instead of medium, again for x264), but take in mind that x265 is by nature much slower than x264, and selecting a slow preset can result in extremely long encoding times.

Personally, I don't like to change individual settings precisely, because usually that give worse results than a good preset, that has been fine-tuned by specialists to give excellent results. But again, some peoples want to try different settings, perhaps (and IMO too often) because they have read somewhere on the net that incredible compression with low quality loss can be archived with specific settings. It's usually not true, and often, that settings were conceived when there was no "Preset" setting in x264. It was therefore necessary to give all settings explicitly anyway. But now, things are much more simple, and I see no good reason to overwrite the selected preset with specific settings. If you are not happy with an encoding, try to lower the CRF or use another preset first, and specify manually additional settings only if you know what you are doing.

Also, don't forget that x265 is still under constant development, and it may have some bugs or weakness that will be fixed over time. Therefore, it might be difficult to say today what are the best parameters for that encoder. And, of course, there is no "best" method. The quality of the encoding depends greatly of the source video, and even with the same source, some peoples may prefer an encoding that others don't like. So, there is no precise answer to your question.

Here (http://forum.doom9.org/showthread.php?p=1773155#post1773155) in the BD3D2MKL3D thread, youli has posted recently a message explaining that he is not happy with the x265 default settings, and he suggests to add manually a lot of additional settings. Maybe he is right. You can try his settings if you wish. But don't ask me if that will certainly give better results than the default parameters. Honestly, I don't know.

You may also use the SSIM or PSNR tunes to have a relatively precise and objective measure of the quality of the encodings. You should encode the same short clip several times with different settings, and compare the final SSIM or PSNR values to determine the "best" method. However, remember that it's not because one settings gives excellent results with your test clip that it's the best setting for any video source. See the articles on Wikipedia for more info (SSIM (https://en.wikipedia.org/wiki/Structural_similarity), PSNR (https://en.wikipedia.org/wiki/PSNR)).

[EDIT] tebasuna51 has posted his reply when I was writing mine. And he has explained essentially the same thing than me.

@tebasuna51: Perhaps you can move these new posts in the BD3D2MK3D thread?

tebasuna51
8th July 2016, 21:30
@tebasuna51: Perhaps you can move these new posts in the BD3D2MK3D thread?

Done.

youli
10th July 2016, 04:14
ok it's working very well with t&b in x264

i trying in x265 can you help me to configure it for that profil for have quality with a reasonable size?

For example:

--crf 23 --preset ultrafast --me umh --subme 7 --aq-mode 3 --aq-strength 0.7 --no-sao --no-deblock --rd 3 --psy-rd 0.9 --b-adapt 1 --ctu 64 --rc-lookahead 24 --bframes 4 --merange 25 --ipratio 1.2 --pbratio 1.1 --qcomp 0.8 --rdoq-level 1 --psy-rdoq 1.5 --sar 2:1

P.S.
1. It will no fast, just settings based on ultrafast preset only!
2. You can get the file size between 5 - 20GB, it depends of movie. For example, with one sound stream R.I.P.D. - 5,12 GB or Ant-man - 17,2 GB.
3. Option "--sar 2:1" for LG TV.

youli
10th July 2016, 06:04
You may also use the SSIM or PSNR tunes to have a relatively precise and objective measure of the quality of the encodings. You should encode the same short clip several times with different settings, and compare the final SSIM or PSNR values to determine the "best" method...
Yes, you are right. But...

If the "psy" and "aq" optimizations are enabled, then they will reduce the level of SSIM, and also misrepresent the level of PSNR. Rather, these values will be assessed incorrectly.
I mean this options : "--rd, --psy-rd, --rdoq-level, --psy-rdoq" and "--aq-mode, aq-strength".

Correct results of PSNR and SSIM can only be obtained if psycho-visual optimizations and adaptive quantization are disabled.

Of course I assessed structure similarity during the tests. If crf = 23, the SSIM Mean about 98.9%.

For x264 "Avg QP" for B frames recommended less than 23.
It can be assumed, that for x265 "Avg QP" for B frames recommended less than 28.

x265 [info]: frame I: 560, Avg QP:20.08 kb/s: 29462.21
x265 [info]: frame P: 81439, Avg QP:23.06 kb/s: 10158.44
x265 [info]: frame B: 55969, Avg QP:25.15 kb/s: 2148.81

So above, I have a slight excess of the bitrate at --crf 23.

r0lZ
10th July 2016, 07:32
Afaik, when you specify the SSIM or PSNR options, the incompatible optimisations are automatically disabled. Of course, if you specify them manually (via the Additional Options field of BD3D2MK3D), they will conflict, and I don't know exactly what will happen, but I suppose you're right and the values will be assessed incorrectly.

youli
10th July 2016, 08:07
I made a lot of rips. In my experience, in most cases the average QP for B frames is one of the main indicators of quality.

At crf mode for x264 default value 23 minus 5 = 18 - very good quality (average QP for B will less then 23).
So at crf mode for x265 default value 28 minus 5 = 23 (average QP for B will less then 28).
It is just analogy ;)
Of course the options - me, subme, merange, rc-lookahead, qcomp... are very important too.

tebasuna51
10th July 2016, 10:27
All opinions about x265 encoder (HEVC) configuration are welcome, but there are a specific thread High Efficiency Video Coding (HEVC) (http://forum.doom9.org/forumdisplay.php?f=81) when you can read about that with experienced users.

Further discussion about that is a little off topic here. Even when r0lZ (and myself) don't use x265 to encode.
BD3D2MK3D can encode and configure x265 in a similar way than x264, please use this thread for specific 3D troubles and the related thread for general configuration.

Sxc
13th July 2016, 16:02
So I was having a lot of trouble with intermittent corruption (only on the right eye!) when encoding my Kung Fu Panda 3 BD. Disc plays fine and re-ripped it twice. As usual I was using x265, so tried x264 and exact same issue. I disabled hardware acceleration and voila the problem went away. I noticed it quite quickly at the 20th Century Fox searchlight at the beginning. I was doing the encoding on a i7-6700K CPU with latest drivers.

Just a heads up if anyone else has had weird intermittent corruption appear on their encodes (but no crashes when encoding) to try disabling under Settings / MVC Decoder / Hardware Acceleration.

r0lZ
13th July 2016, 16:10
Thanks for the information. It's not the first time that the drivers for the Intel hardware cause troubles, and indeed, disabling the hardware acceleration usually solves the problem.

thahandy
13th July 2016, 19:29
DVDfab (a year or 2 ago), for example, has the same issue. It gave me pixels when i enabled hardware acceleration. Seems its still not glitch free to use HWA.

@ r0lZ
Not really a issue, but checking for the ArcSoft DTS codec making BD3D2MK3D freezes for a min,
and noticed its eac3to waiting to be completed.


t:\DEMUX\BD3D2MK3D\toolset>eac3to -test
eac3to (v3.31) is up to date
Nero Audio Decoder (Nero 6 or older) doesn't seem to be installed
http://www.nero.com/eng/store-blu-ray.html
CAUTION: You need Nero 7. Nero 8 won't work with eac3to.
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (3.31.0.0) doesn't seem to be installed

freeze of 45sec

Haali Matroska Muxer (2013-04-14) is installed
Nero AAC Encoder (1.5.4.0) is installed
Surcode DTS Encoder doesn't seem to be installed
http://www.surcode.com
t:\DEMUX\BD3D2MK3D\toolset>

No idea why its doing that on my machine.

r0lZ
14th July 2016, 09:56
Hum, bizarre. Anyway, I can't control that.

Note that the Arcsoft decoder is not necessary any more. The recent dcadec is as good, if not better, and it is free. (I realize that the Help message about the DTS decoders is outdated, and I will modify it immediately.)

Note also that if you select the ArcSoft decoder in the menu, each time BD3D2MK3D starts, it will check again if it is properly installed, and therefore in your case the program will need a long time to start. I definitively suggest to use DcaDec instead.

Polar
14th July 2016, 14:54
rOlZ (and anybody else that has contributed to this feature), a BIG thank you for enabling FS :thanks:. It all started one year ago when I posted this question (http://forum.doom9.org/showthread.php?p=1731505#post1731505).

I never got around to do extensive testing (and to thank you :thanks:), but a few days ago I converted my Avatar 3D Blue Ray to 720p FS. Works like a charm :).

For those who are interested, I use a 3D ready projector with DLP link. so the only way to playback 3D is in 720p FS.

Just one more question: is there a way to convert HSBS files to FS? Looks like the software only can work with ISO or 3D-MKV (where the last one requires the 3D file created by MakeMKV). What if I do not have the required extra file? Did some playing around by downloading some 3D SBS test files, but no go :(. Any advice?

r0lZ
14th July 2016, 16:12
Thanks for the thanks!

Converting from full or half SBS or T&B to FS is not possible with BD3D2MK3D, and I will probably never implement that feature, because it's not the main purpose of BD3D2MK3D, made, as its name implies, to convert a 3D-BD to a lossy 3D format. I don't want to implement new features to convert from an already re-encoded video to another lossy format, because the final quality will be worse, and it's too difficult to implement.

However, it should not be very difficult to write an avisynth script to do the conversion. With the additional help of some free tools (like a GUI for x264 and Mkvtoolnix) it should be easy to encode the new video stream and replace it in the original MKV. I can write an example script one of these days, but currently I have no time. Please remind me in one week or so if I forget...

robl45
16th July 2016, 18:46
Is there a guide for this anywhere? I'm looking to take MKV MVC from make mkv and compress it with X265 and keep it in mvc format.

robl45
17th July 2016, 02:56
Tried converting John Carter to x265 today, first time trying this. I used makemkv to rip the MVC MKV and then chose frame sequential and picked the alien speaking subtitle. I got this error. Could someone please advise how to stop this error from happening?

Thanks



Job finished Sat Jul 16 20:27:34 EDT 2016
Whole job took 5 minutes and 54 seconds.

Done with warnings!

* Can't convert "MKV3D.track_4.Eng.sup" to 3D BD SUP!

Launch "__ENCODE_3D_LAUNCHER.cmd" to encode the 3D video (and optionally mux to MKV).

Use a delay of 19999 ms if you mux the files yourself.

*******************************************************************************
() 1 %

EDIT: I seem to have this error as well

*** Converting "MKV3D.track_4.Eng.sup" to 3D BD SUP. Please wait!
*** Converting subtitle file "MKV3D.track_4.Eng.sup" to 3D Full using 3D-plane "3D-Plane-05.ofs" + additional depth 0...
Subtitle language: eng (English)
*** Converting subtitle "MKV3D.track_4.Eng.sup" to "temp_2D.xml"...
> "C:\\ProgramData\\Oracle\\Java\\javapath\\java.exe" -Xmx256m -jar "C:\\Users\\Rob\\Downloads\\BD3D2MK3D\\BD3D2MK3D\\toolset\\BDSup2Sub.jar" "MKV3D.track_4.Eng.sup" -o "MKV3D.track_4.Eng.3D_2D/temp_2D.xml" --palette-mode keep --minimum-time 1 --language en --convert-fps 24p,24p
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
child process exited abnormally
*** BDSup2Sub close error: child process exited abnormally
child process exited abnormally. No captions in subtitle stream?
*** Found 0 captions, including 0 forced captions.
ERROR: Can't convert "MKV3D.track_4.Eng.sup" to XML/PNG format!
Deleting temp directory "MKV3D.track_4.Eng.3D_2D".
* Can't convert "MKV3D.track_4.Eng.sup" to 3D BD SUP!


EDIT2: Tried again and got this error

Encoding movie in 3D
Movie: John Carter
Encoding started Sun 07/17/2016 1:16:29.50

C:\Users\Rob\Downloads\John Carter\MKV3D>"C:\Users\Rob\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\avs2yuv.exe" "__ENCODE_3D_MOVIE.avs" -frames 380825 -o - | "C:\Users\Rob\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\x265_8bit_x86.exe" --crf 28 --preset medium --sar 1:1 --range limited --colorprim bt709 --qpfile chapters_3D.qpfile --frames 380825 --fps 48000/1001 --output "MKV3D_3D.265" --y4m -

Avisynth error:
Script error: there is no function named "SupTitle"
(__ENCODE_3D_MOVIE.avs, line 35)
x265 [error]: unable to open input file <->
Encoding finished Sun 07/17/2016 1:16:30.16

C:\Users\Rob\Downloads\John Carter\MKV3D>"C:\Users\Rob\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\mkvmerge.exe" @__MUX_3D_OPTIONS.txt | "C:\Users\Rob\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\tee.exe" "MKV3D_3D.mkvmerge.log"
mkvmerge v9.2.0 ('Photograph') 32bit
Error: The file 'MKV3D_3D.265' could not be opened for reading: open file error.

Press any key to continue . . .

r0lZ
17th July 2016, 11:22
Is there a guide for this anywhere? I'm looking to take MKV MVC from make mkv and compress it with X265 and keep it in mvc format.
You cannot use x264 to compress to MVC. x264 is an AVC encoder. It is unable to create the MVC track.

Also, BD3D2MK3D is not designed to produce AVC+MVC, so it's not the right tool for you.

You need the FRIM Encoder (http://forum.doom9.org/showthread.php?t=169651&highlight=FRIMencode) to do what you want.

You can also use MakeMKV is you want to keep the original AVC and MVC tracks from the 3DBD without re-encoding.

r0lZ
17th July 2016, 11:34
*** BDSup2Sub close error: child process exited abnormally
child process exited abnormally. No captions in subtitle stream?
*** Found 0 captions, including 0 forced captions.
ERROR: Can't convert "MKV3D.track_4.Eng.sup" to XML/PNG format!

Obviously, there is something wrong with the subtitle track. It is empty, or it has discrepancies. Try another subtitle track.
You can also try to extract that track with another program, like eac3to, but I doubt you will succeed.


Avisynth error:
Script error: there is no function named "SupTitle"
(__ENCODE_3D_MOVIE.avs, line 35)

I suppose you have used the option to hardcode a subtitle stream over the video in the last tab. Right?

Can you post the content of the __ENCODE_3D_MOVIE.avs file? It should load the SupTitle plugin.

Also, please verify that you have the SupTitle.dll, SupCore.dll, loadhelper.dll, msvcp100.dll and msvcr100.dll files in the BD3D2MK3D\toolset folder.

robl45
17th July 2016, 15:47
You cannot use x264 to compress to MVC. x264 is an AVC encoder. It is unable to create the MVC track.

Also, BD3D2MK3D is not designed to produce AVC+MVC, so it's not the right tool for you.

You need the FRIM Encoder (http://forum.doom9.org/showthread.php?t=169651&highlight=FRIMencode) to do what you want.

You can also use MakeMKV is you want to keep the original AVC and MVC tracks from the 3DBD without re-encoding.

I'm sorry, I don't mean to be stupid, I thought the point of this program was to take the mkv mvc file from makemkv and be able to compress it to a more manageble size. So this won't compress it to a smaller size, only convert it to a different format?

r0lZ
17th July 2016, 19:53
No. BD3D2MK3D converts from the BD3D format (AVC+MVC) to side-by-side, top & bottom or frame sequential format, encoded with the AVC codec (x264) or if you prefer HEVC (x265). Since that conversion requires to re-encode the video, it compresses it as well (more or less, depending of your encoding parameters). SBS and T&B are the most useful formats, because they are recognised by all 3D players. Frame Sequential is recognised by some players (notably DLP projectors) and is recommended only if your player doesn't support SBS or T&B.

In the other hand, recompressing to the same BD3D format (AVC + MVC) doesn't make much sense, except if you want to re-create a 3DBD with smaller files (such as for burning the movie only on a DVD formatted in BD format). To compress to the BD3D format, you need a "twin encoder", to create the AVC stream for the main view, and the MVC stream for the dependent view. And encoding to MVC is not possible with x264 or x265. To do that, you need an encoder based on the Intel toolkit (the only available free MVC encoder), such as FRIM. That encoder gives less good results than x264.

The third solution is to put the original AVC and MVC streams without re-encoding them into a MKV container with MakeMKV, to create the so called MVC MKV. Currently, only stereoscopic player can easily play that kind of MKV, so the only advantage of that format is that it's a good backup of the original BD. But it takes much disc space and is almost unplayable. You can save much disc space if you re-encode the AVC and MVC streams with FRIM, but what's the point? You'll get a too poor quality for a backup, and the MKV will still be playable only by Stereoscopic Player. Anyway, it's something BD3D2MK3D doesn't do.

Use the right tool to do what you want. Good quality SBS, T&B or FS in AVC or HEVC with BD3D2MK3D, or AVC+MVC with FRIM Encoder and a 3DBD authoring program is you want to compress the 3DBD to another 3DBD or create an almost useless MVC MKV.