View Full Version : BD3D2MK3D v1.17: Convert 3D BDs or MKV to 3D SBS, T&B or Frame-sequential MKV
videoh
15th November 2019, 00:33
Your explanation is irrelevant. You are violating my license and I demand that you remove my software. I do not grant you permission to use it. I will re-post this notification and demand after every post you ever make until you remove my software from your distribution.
You have FRIM. You do not need to rip me off.
confessor
17th November 2019, 13:28
Hello. What could be the problem?
Encoding movie in 3D
Movie: m
Encoding started 17.11.2019 16:27:15,36
H:\mkv\temp\m\00000>"H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\x264_x64.exe" --output-depth 8 --crf 23 --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 203743 --fps 24000/1001 --output "00000_3D.264" "__ENCODE_3D_MOVIE.avs"
avs [error]: `__ENCODE_3D_MOVIE.avs' didn't return a video clip
x264 [error]: could not open input file `__ENCODE_3D_MOVIE.avs'
Encoding finished 17.11.2019 16:27:15,42
H:\mkv\temp\m\00000>"H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\mkvmerge.exe" @__MUX_3D_OPTIONS.json | "H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\tee.exe" "00000_3D.mkvmerge.log"
mkvmerge v38.0.0 ('The Silent Type') 32-bit
Error: The type of file '00000_3D.264' could not be recognized.
Sorry if discussed earlier.
r0lZ
17th November 2019, 23:29
Welcome to the Doom9 forums, confessor.
Well, I don't know what could be the cause of the problem, but obviously the anisynth script doesn't work as it should. Please copy here the content of the __ENCODE_3D_MOVIE.avs file. With that info, I hope I'll be able to help...
confessor
18th November 2019, 14:41
Thanks in advance.
# to convert "I:\BDMV\PLAYLIST\00000.mpls"
# (referencing the M2TS/SSIF files 00000)
# to 3D Side-by-Side.
# Movie title: m
#
# Source MPLS information: Blu-ray 3D.
# MPLS file: 00000.mpls
# Video : Und AVC, 1080p, 23.976 fps, left-eye
# Video : Und MVC, 1080p, 23.976 fps, right-eye (32 3D-Planes)
# Audio : Rus DTS, Multi-channel, 48 Khz
# Subtitle: PGS, 3D-plane: undefined
#LoadPlugin("H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit\FRIMSource.dll")
LoadPlugin("H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit\DGMVCDecode.dll")
##LoadPlugin(H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit\VSFilter.dll")
#LoadPlugin("H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit\SupTitle.dll")
# Load the two video streams (203743 frames per stream)
#interleaved = FRIMSource("mvc", "00000.track_4113.264", "00000.track_4114.mvc", layout = "alt", num_frames = 203743, cache = 2, platform = "")
interleaved = DGMVCSource("00000.track_4113.264", "00000.track_4114.mvc", view = 0, frames = 203743, mode = "auto")
# Current base view: left eye.
# The views are in the common order: AVC stream = left view, MVC stream = right view.
left = SelectEven(interleaved)
right = SelectOdd(interleaved)
# Hardcode subtitles
##left = VobSub(left, "subtitle_to_hardcode_left.sub")
##right = VobSub(right, "subtitle_to_hardcode_right.sub")
#left = SupTitle(left, "subtitle_to_hardcode_left.sup")
#right = SupTitle(right, "subtitle_to_hardcode_right.sup")
# Build Side-by-Side stream
StackHorizontal(Left, Right)
AssumeFPS("ntsc_film")
# Return the 3D clip.
Return(last)#.Info()
r0lZ
19th November 2019, 10:47
Hum, it seems that the script is correct.
Anyway, try to remove the last line, with Return(last)#.Info(). In this case, it is useless. Then relaunch the encoding. I doubt that that will resolve the problem, but who know ?
Also, please verify that Avisynth is installed correctly. Use Help -> Avisynth version. You should see a dialog offering to visit the download pages the the two avisynth supported by BD3D2MK3D. Click on that dialog to be sure that it is active, and press Control-C on your keyboard, to copy its content to the clipboard. Paste it here.
Perhaps you could also try to re-install Avisynth+ anyway. Honestly, other than that, I don't see any reason for the error you have reported.
von Suppé
19th November 2019, 12:09
Also, please verify that Avisynth is installed correctly.
Hi r0lZ,
I recently installed AviSynth+. Can it be that there are (backward) compatibility issues as to the older Avisynth versions being used by other programs?
For example, after launching BDRebuilder, I got a "warning" that Avisynth was not installed and had to reinstall Avisynth 2.60 before being able to continue.
BTW by doing that, I would not know if I maybe have scr*wed up the + version?
Sharc
19th November 2019, 12:39
Just a sidenote:
I am using Groucho's Avisynth Installer (https://forum.doom9.org/showthread.php?p=1720988#post1720988) to switch between avisynth versions easily, e.g. switch back and forth between avisynth 2.6.0 (for BD RB) and avisynth+ for other purpose. You may want to try it.
r0lZ
19th November 2019, 13:49
Yes, that might be a good idea. Personally, I have never noticed problems with the new Avisynth+, and all 32-bit plugins I use are compatible (at least all plugins used by BD3D2MK3D). But I cannot be sure that a problem cannot occur with other plugins.
Also, note that it is possible to install only the 64-bit version of Avisynth+ (just untick the 32-bit version in the GUI of the official installer), and your original installation of Avisynth 2.6 will not be modified. BD3D2MK3D uses preferably Avisynth+ 64-bit when it is available, and old 32-bit only programs will continue to use the classic Avisynth 32-bit.
(If you have installed both versions of Avisynth+ with its official installer, and you kept the option to keep the old "classic" files and plugins, you can just uninstall + to restore the classic version, and then install + again, but this time, be sure to untick the 32-bit option. Not sure if that works with Groucho's installer.)
r0lZ
19th November 2019, 13:58
Hello. What could be the problem?
I have just updated the x264 exes to the latest version, and for whatever reason, my antivirus software (Bitdefender free) has quarantined several files from the toolset folder. I have added a new check when BD3D2MK3D starts to ensure that all required files are present in the toolset, but the new version will be available only in a week or so. I don't think the problem you are facing can be caused by false positive virus detections, but it's possible. So, verify the quarantine of your antivirus software, and restore any exe pertaining to BD3D2MK3D if necessary (or re-install BD3D2MK3D completely), then relaunch the __ENCODE_3D_LAUNCHER.cmd file of your project. Please let me know if it's sufficient to solve the problem.
von Suppé
20th November 2019, 10:29
I am using Groucho's Avisynth Installer (https://forum.doom9.org/showthread.php?p=1720988#post1720988)...
You may want to try it.
I just tried. Installing the 64bit + version next to the 32 bit v2.60 seemed to go fine. However after firing up BD3D2MK3D, I got a warning that Avisynth + wasn't installed correctly.
...note that it is possible to install only the 64-bit version of Avisynth+ (just untick the 32-bit version in the GUI of the official installer)...
This did the trick. Things are fine again.
Thanks guys.
Groucho2004
20th November 2019, 12:21
Not sure if that works with Groucho's installer.You can install any combination of 32 bit / 64 bit Avisynth.
r0lZ
20th November 2019, 12:33
I know. But I'm was not sure it can restore the original classic version after having installed another 32-bit version, if you decide to uninstall it. The official installer can, but I have not used your installer, so I can't confirm that it backs the original installation up when it overwrites it. Is it the case ?
Groucho2004
20th November 2019, 12:43
I know. But I'm was not sure it can restore the original classic version after having installed another 32-bit version, if you decide to uninstall it. The official installer can, but I have not used your installer, so I can't confirm that it backs the original installation up when it overwrites it. Is it the case ?The Universal Installer has no backup function. It just installs the available versions from its repository. You can however customise the various versions in the repo since each has its own plugin directory and you can specify custom plugin directories (this only works with AVS+).
Mix and match is not recommended - either use the official installer or the Universal Installer.
confessor
20th November 2019, 15:24
Hi r0lZ.
No, this does not solve the problem. I also have Bitdefender and I noticed that it worked the first time you started your program. After that, I added the entire BD3D2MK3D folder to the antivirus exclusions. All program tools are in place.
P.S.
_ENCODE_2D_LAUNCHER.cmd starts and does its job, unlike __ENCODE_3D_LAUNCHER.cmd. Maybe this will lead you to some thoughts. :)
r0lZ
21st November 2019, 12:41
P.S.
_ENCODE_2D_LAUNCHER.cmd starts and does its job, unlike __ENCODE_3D_LAUNCHER.cmd. Maybe this will lead you to some thoughts. :)
Well, the 2D encoding doesn't require avisynth. It re-encodes directly the main view with x264. So, your finding confirms only that it's the avisynth script used to convert the two views to SBS that doesn't work well.
Have you tried to install or re-install Avisynth+ 64-bit ? Maybe there is something wrong with your installation.
confessor
21st November 2019, 17:32
Have you tried to install or re-install Avisynth+ 64-bit ?
Yes, I tried. It does not help.
tebasuna51
21st November 2019, 20:27
confessor I recommend the Groucho tool:
AVSMeter (https://forum.doom9.org/showthread.php?p=1814761#post1814761) avsinfo
to check problems in AviSynth installation.
Groucho2004
21st November 2019, 20:34
confessor I recommend the Groucho tool:
AVSMeter (https://forum.doom9.org/showthread.php?p=1814761#post1814761) avsinfo
to check problems in AviSynth installation.Alternatively, for people who prefer GUIs - Avisynth Info Tool (https://forum.doom9.org/showthread.php?t=176079)
von Suppé
21st November 2019, 21:50
Alternatively, for people who prefer GUIs - Avisynth Info Tool (https://forum.doom9.org/showthread.php?t=176079)
Thanks for this link, Groucho :)
r0lZ
22nd November 2019, 11:25
Yes, I tried. It does not help.
Damn! I'm puzzled.
Please try this. Download AVSmeter and copy AVSMeter64.exe from the archive to your project folder (in the directory containing all files generated by BD3D2MK3D).
Then, use Notepad or any text editor to modify the __ENCODE_3D.cmd file, and add the blue lines below:
@echo off
set path=path\to\BD3D2MK3D\toolset\plugins64bit;%path%
echo Encoding movie in 3D
echo Movie: movie title
echo %path%
D:\Desktop2\AVSMeter\AVSMeter64.exe __ENCODE_3D_MOVIE.avs
pause
exit
echo Encoding started %date% %time%
@echo on
[...]
Save and double-click it to launch the encoding. You should see rapidly the "Press any key to continue . . ." prompt. Do NOT press a key. Just copy whatever you see in the command prompt window and paste it here. I hope that will give me sufficient information to locate the problem.
(BTW, to copy something from the command prompt window, you may have to right-click it and select "Mark" from the popup menu, then press Control-A to select everything and press enter to copy it to the clipboard.)
r0lZ
22nd November 2019, 11:37
Also, if you have an Intel CPU, please try this:
Edit __ENCODE_3D_MOVIE.avs and change the mode parameter of the DGMVCSource command from "auto" to "sw", like this:
interleaved = DGMVCSource("00000.track_4113.264", "00000.track_4114.mvc", view = 0, frames = 203743, mode = "sw")
Relaunch the encoding (of course, after having removed the blue lines from the __ENCODE_3D.cmd file).
Does it work ?
If it works, that means that the libmfxhw32.dll file installed with your Intel drivers doesn't work. Try to update the intel drivers to the latest version. Or you can just change Settings -> MVC Decoder -> Hardware Acceleration from Auto to Disabled. The encoding will be slightly slower, but anyway, the speed gain is minimal.
confessor
22nd November 2019, 16:28
echo %path%
D:\Desktop2\AVSMeter\AVSMeter64.exe __ENCODE_3D_MOVIE.avs
pause
Here I need to specify my path to the AVSMeter64.exe file?
r0lZ, tebasuna51, Groucho2004
thanks for trying to help. :)
r0lZ
23rd November 2019, 11:05
Oops, no sorry. Since AVSMeter64.exe is in the project directory, you don't need to specify any path. I have copied the script I've used here, and I forgot to remove the path (in yellow in your post). So, just add this, and it should work:
echo %path%
AVSMeter64.exe __ENCODE_3D_MOVIE.avs
pause
exit
confessor
23rd November 2019, 11:34
So, just add this, and it should work
AVSMeter 2.9.7 (x64), 2012-2019, Groucho2004
AviSynth+ 0.1 (r2772, MT, x86_64) (0.1.0.0)
Script did not return a video clip:
H:\mkv\temp\m\00000\__ENCODE_3D_MOVIE.avs
Для продолжения нажмите любую клавишу . . .
Or you can just change Settings -> MVC Decoder -> Hardware Acceleration from Auto to Disabled.
Before writing here, I tried to find the answer myself and found this message http://forum.doom9.net/showthread.php?p=1879725#post1879725
I tried these recommendations, but this did not lead to a positive result.
Groucho2004
23rd November 2019, 20:10
AVSMeter 2.9.7 (x64), 2012-2019, Groucho2004
AviSynth+ 0.1 (r2772, MT, x86_64) (0.1.0.0)
Script did not return a video clip:
H:\mkv\temp\m\00000\__ENCODE_3D_MOVIE.avs
Для продолжения нажмите любую клавишу . . .
Before writing here, I tried to find the answer myself and found this message http://forum.doom9.net/showthread.php?p=1879725#post1879725
I tried these recommendations, but this did not lead to a positive result.
Post the complete script ("__ENCODE_3D_MOVIE.avs").
confessor
23rd November 2019, 22:07
Sorry. I thought that you need to make sure that the Avisynth+ is installed correctly and polled by the program. Here is the full report.
Encoding movie in 3D
Movie: m
H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\confessor\AppData\Local\Microsoft\WindowsApps;
AVSMeter 2.9.7 (x64), 2012-2019, Groucho2004
AviSynth+ 0.1 (r2772, MT, x86_64) (0.1.0.0)
Script did not return a video clip:
H:\mkv\temp\m\00000\__ENCODE_3D_MOVIE.avs
Для продолжения нажмите любую клавишу . . .
r0lZ
24th November 2019, 00:51
Post the complete script ("__ENCODE_3D_MOVIE.avs").
Confessor has posted it here (https://forum.doom9.org/showthread.php?p=1890669#post1890669). It's exactly the usual script generated by BD3D2MK3D. Nothing abnormal. So, it must be an installation problem, but what ?
r0lZ
24th November 2019, 10:13
Sorry. I thought that you need to make sure that the Avisynth+ is installed correctly and polled by the program. Here is the full report.
Yes, it's what I am trying to do, but I want to verify also if the necessary avisynth plugins are available.
Have you tried to replace "auto" with "sw", as explained here (https://forum.doom9.org/showpost.php?p=1891049&postcount=1771) ? Since you have Intel directories in your PATH variable, I guess you have an Intel CPU that supports theoretically the hardware acceleration. But the library provided with the Intel drivers may fail. It's why I would like to know if the software mode works.
Also, after having changed auto to sw, please try this. Edit __ENCODE_3D.cmd and add the toolset folder to the %PATH% environment variable in the second line, like this:
set path=H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset;H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit;%path%
Does that work ?
confessor
24th November 2019, 12:02
Have you tried to replace "auto" with "sw", as explained here (https://forum.doom9.org/showpost.php?p=1891049&postcount=1771) ?
Edit __ENCODE_3D.cmd and add the toolset folder to the %PATH% environment variable in the second line, like this:
set path=H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset;H:\Downloads\BD3D2MK3D\BD3D2MK3D\toolset\plugins64bit;%path%
Does that work ?
No, no change - the same error (The type of file '00000_3D.264' could not be recognized). :(
r0lZ
25th November 2019, 07:27
And what about the software mode explained here (https://forum.doom9.org/showpost.php?p=1891049&postcount=1771) ?
confessor
25th November 2019, 14:39
And what about the software mode explained here (https://forum.doom9.org/showpost.php?p=1891049&postcount=1771) ?
Without results.
thxoptimizer
6th December 2019, 17:53
Hello r0lZ,
I have a serious problem with my Angry Birds ISO (which worked perfectly fine when I played it as a disc !!!!EDIT!!! I just checked in 2D to read on my computer and in fact there is a glitch at this time).
1st conversion 12/08 (so I don't remember with which version of BD3D2MK3D but the version at this moment).
Everything is fine at the beginning...after a while I notice something strange when there is some motion (when I look with VLC, it seems that the right frame is coming before the left frame)
And around 52'01 ==> doesn't work at all
https://nsa40.casimages.com/img/2019/12/06/mini_191206055528799947.jpg (https://www.casimages.com/i/191206055528799947.jpg.html)
2nd conversion today = 06/12 (v1.17 +AviSynthPlus-r1576).
Same symptoms and also not usable after 52'01 (even if after the image is completely black istead of pixelised)
https://nsa40.casimages.com/img/2019/12/06/mini_191206055528529445.jpg (https://www.casimages.com/i/191206055528529445.jpg.html)
Of course I had some errors in the b1st step (before launching __ENCODE_3D_LAUNCHER.cmd) :
https://nsa40.casimages.com/img/2019/12/06/mini_191206055527600238.jpg (https://www.casimages.com/i/191206055527600238.jpg.html)
I can provide you logs if it helps.
Thanks.
PS : it's the 1st time I watch a complete movie since I discovered your software but I tried to convert another one successfully
EDIT : after writing all this, in fact maybe you can't do anything...except if you find a way that a simple glitch in the original movie does not impact all the end of the conversion?
r0lZ
7th December 2019, 10:52
EDIT : after writing all this, in fact maybe you can't do anything...except if you find a way that a simple glitch in the original movie does not impact all the end of the conversion?
Correct. Unfortunately, there is nothing that can be used to guess how many frames are missing, and therefore, the missing frames are simply skipped. Since during the glitch, there is a big chance that more frames are damaged for the left edge than for the right eye, or the opposite, the synchronisation of the two views (and probably also of the audio streams) cannot be maintained.
Sorry, but you need a good source to process it with BD3D2MK3D.
BTW, perhaps you could try to decrypt the BD with MakeMKV. Perhaps it will be smart enough to remove an equal number of frames in the two video streams, but honestly, I don't think so.
seplant
17th December 2019, 03:31
A little help please. I am able to run BD3D2MK3D and create the required TEMP files. I have AviSynthPlus 3.4.0 installed on my 64-bit laptop, and I have run AVSInfoTool to verify the installation, but I get the following when I try to run the _ENCODE_3D.cmd file:
----------------------------------------------
Encoding movie in 3D
Movie: Justice League 3D
Encoding started Mon 12/16/2019 21:22:34.69
N:\Blu-ray\3D\Temp\Justice League 3D\MKV3D>"C:\Users\Scott\Downloads\BD3D2MK3D\toolset\x264_x64.exe" --output-depth 8 --crf 23 --preset medium --sar 1:1 --range tv --colormatrix bt709 --frame-packing 3 --qpfile chapters_3D.qpfile --frames 172690 --fps 24000/1001 --output "MKV3D_3D.264" "__ENCODE_3D_MOVIE.avs"
Return on error: error code -1, pipeline_decode.cpp 91
Return on error: error code -1, pipeline_decode.cpp 531
avs [error]: DGMVCSource: cannot open the source file or Intel Media SDK init failed
(__ENCODE_3D_MOVIE.avs, line 22)
x264 [error]: could not open input file `__ENCODE_3D_MOVIE.avs'
Encoding finished Mon 12/16/2019 21:22:40.41
N:\Blu-ray\3D\Temp\Justice League 3D\MKV3D>"C:\Users\Scott\Downloads\BD3D2MK3D\toolset\mkvmerge.exe" @__MUX_3D_OPTIONS.json | "C:\Users\Scott\Downloads\BD3D2MK3D\toolset\tee.exe" "MKV3D_3D.mkvmerge.log"
mkvmerge v38.0.0 ('The Silent Type') 32-bit
Error: The type of file 'MKV3D_3D.264' could not be recognized.
Press any key to continue . . .
----------------------------------------------
Any recommendations would be much appreciated.
r0lZ
17th December 2019, 20:59
Any recommendations would be much appreciated.
Try to change the MVC decoder with Settings -> MVC Decoder -> Use FRIMSource and disable the hardware acceleration with Settings -> MVC Decoder -> Hardware Acceleration -> Disabled.
seplant
19th December 2019, 12:27
Try to change the MVC decoder with Settings -> MVC Decoder -> Use FRIMSource and disable the hardware acceleration with Settings -> MVC Decoder -> Hardware Acceleration -> Disabled.
This worked! Thanks!!!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.