View Full Version : Guide to convert BD 3D to 3D Left+Right Stereoscopic and Anaglyph
frencher
8th June 2012, 07:14
Update 3DBD's Free Demo Test version
Download
rar => Look in my signature
v0.0.0.0003
Added: Preview with change audio and video tracks
Added: Indicator of Update, updated
Removed: Bad progress bar (beug)
Some fixes...
All comments are welcome
http://i45.tinypic.com/2lcy91g.png
Does any body know, who is author of H264StereoSource.dll? Or where can i found source code of it? I develop an a stereoscopic player, but can`t found any MVC decoder (even not free).
frencher
8th June 2012, 23:21
I really do not know who the author is but I think we can find it on doom9 or doom10
Website: MVC to AVI Converter (http://3dtv.at/Products/MvcConverter/Index_en.aspx)
Mail: office@3dtv.at
I really do not know who the author is but I think we can find it on doom9 or doom10
Website: MVC to AVI Converter (http://3dtv.at/Products/MvcConverter/Index_en.aspx)
Mail: office@3dtv.at
Author of MVC to AVI Converter is Peter Wimmer. But unfortunately, he do not want give any solution to open siff`s to his "competitor". :mad:
But what relation of H264StereoSource.dll and MVC to AVI Converter? I can`t see it there...
frencher
9th June 2012, 01:12
There at the source in ldecod link below to add it suffirai function multithreaded version x86 and x64.
Source code of ldecod 18.3 (http://iphome.hhi.de/suehring/tml/download)
Tutorial for multithreading with C++ (in french) (http://apais.developpez.com/tutoriels/c++/multithread/)
LUCi5R
16th June 2012, 00:08
I'm sort of looking for the opposite of what this thread is talking about; but I can't seem to find much info.
I need to take a sequence of Left Eye & Right Eye images (Tiff Format) and create a Blu-ray 3D out of it. The images are created in Autodesk Maya are basically a 1 minute simple animation. They were created using the Stereoscopic Camera rig available in Maya to create Stereoscopic animation.
It's easy to create 3D Video out of it in packages like Sony Vegas or Adobe Premiere, however, I'm looking to create true "blu-ray" 3D which is basically encoding w/ MVC.
The only solutions I've seen so far are extremely expensive and mass-consumer oriented like Blu-print, DoStudio, with encoders like Cinema Craft's MVC, Sony's blu-code.
Is there anything else cheaper / free?
Thanks.
RodrigollicA
19th June 2012, 05:55
@frencher
Do I need another file besides the "3DBD's Free - v0.0.0.0003.exe" file to run the software?
Thanks ;)
frencher
19th June 2012, 15:14
@RodrigollicA
No ! why ? "3DBD's Free - v0.0.0.0003.exe" is portable version, no other files needed.
r0lZ
21st June 2012, 07:34
V0.2 of my GUI is available. Download it here (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2AVS.7z).
Note that now, the toolset is included with the main program archive. You don't need to download the toolset archive any more.
# v0.2 (June 21, 2012)
# - Now, demux the streams of the M2TS file referenced by the MPLS instead of directly from the MPLS,
# as eac3to has often big problemw when demuxing the subtitles from a MPLS or SSIF.
# (The MPLS is still used if there are more than 1 M2TS in the playlist.)
# - Added a tab to define an intro still clip with the movie name, resolution and various info,
# over an optional 2D or 3D picture.
# - Added settings to automatically select some audio and subtitle streams when a new MPLS is selected
# - Added option to move cinemascope movies up in the 16:9 frame by a certain amount of pixels to enlarge
# the bottom black bar and make some additional room for subtitles.
# - Added button "ALL MPLS" to get the Streams info of all MPLS displayed in the top window of tab 1 at once.
# - Added Drag & Drop support to open a BD disc or an intro preset file in BD3D2AVS,
# or open a SUP/SUB/IDX file in BDSup2Sub's GUI.
# - Added menu Tools with an option to open any SUB or SUP file in DBSup2Sub's GUI.
# - Added Tools -> Find right-eye M2TS file(s) to list the right-eye M2TS file(s) of the current playlist.
# - Added several menu items in the Help menu.
# - Added the batch file _MUX_2D.cmd to mux the 2D version of the movie with mkvmerge.
# (Only if the MPLS file references a single M2TS or if the option to demux the video stream is enabled.)
# - Added doc and menu Help -> Documentation
# - Added "Explore BD folder" and "Explore output folder" in File menu.
# - Mkvmerge (without the GUI) is now included in the toolset.
# - Minor cosmetic changes, such as the themed scrollbars.
# - Fixed: The batch files did not work when the movie name includes foreign (accented) characters.
# - Fixed: Impossible to handle a small BD with only very short 3D titles (due to eac3to not recognizing the
# BD structure as valid).
# - Some little bugs fixes, such as config not saved when quitting with menu File -> Exit.
This version works fine on my system, and requires to install only Avisynth (and optionally Avisynth x64). No additional avisynth plugins are necessary.
A good player that can play M2TS, MPLS and Avisynth files is also required for the preview. (See the help menu for some suggestions.)
As always, suggestions and bug reports are welcome.
r0lZ
23rd June 2012, 09:19
Sorry, the demux phase was broken in v0.2 in certain circumstances. It's fixed in 0.3.
# v0.3 (June 23, 2012)
# - Fixed: The demux operation was broken in v0.2 when there are subtitles in the MPLS but not in the M2TS.
# - Added the possibility to encode a single SSIF from a playlist containing several M2TS files.
# (Since that possibilitry exists, the demuxing of the M2TS instead of the MPLS is not automatic any more.)
# - The batch file to mux the 2D version of the movie is now created anyway, even for playlists containing
# several M2TS files.
# - Some minor cosmetic changes and fixes.
Download (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2AVS.7z)
k-c-ksum
23rd June 2012, 19:58
I'm sort of looking for the opposite of what this thread is talking about; but I can't seem to find much info.
I need to take a sequence of Left Eye & Right Eye images (Tiff Format) and create a Blu-ray 3D out of it. The images are created in Autodesk Maya are basically a 1 minute simple animation. They were created using the Stereoscopic Camera rig available in Maya to create Stereoscopic animation.
It's easy to create 3D Video out of it in packages like Sony Vegas or Adobe Premiere, however, I'm looking to create true "blu-ray" 3D which is basically encoding w/ MVC.
The only solutions I've seen so far are extremely expensive and mass-consumer oriented like Blu-print, DoStudio, with encoders like Cinema Craft's MVC, Sony's blu-code.
Is there anything else cheaper / free?
Thanks.
http://www.fixstars.com/en/
accelcoder
Eseninzhiv
26th June 2012, 20:53
Thanks, good programs
You can embed into your software to feature splitter 3D,
to truncate a file .ssif
MaistroX
4th July 2012, 13:41
Hi R0lZ!
Great app. love it, have to ask, since none has done it before what I know anyway...
Could you add so one can keep several subtitles at once, say English, Ducth and so on save in SBS format and 3D, and better if they be added like idx/sub?
But first of all, NOT hardcoded, and multi, possible ? :)
Regards MaistroX
You can already select any number of subtitle streams (but hardcode only one on video, of course). They are converted in IDX/SUB format, but they are not converted to 3D subtitles. It's the responsibility of your TV or software player to do the 3D conversion on the fly. I agree that not all TVs can do it, and it's why I have added the option to hardcode a subtitle stream on the video.
Anyway, my GUI is only, well, a GUI. It uses existing programs to do the conversions, and as far as I know, there is no program that can generate 3D subtitles from a BD SUP stream (always in 2D). (There is a 3D Subtitle Editor reported by frencher here (http://forum.doom9.org/showthread.php?p=1574724#post1574724), but it accepts only text SRT files as input, and there is no CLI support, so I can't use it.)
So, sorry, but currently, converting the BD SUPs to 3D SUB/IDX files is not possible.
But perhaps there will be a solution soon. BDSup2Sub (http://forum.doom9.org/showthread.php?t=145277) is currently ported to C++ by SassBot, and he is very open to suggestions. When the current beta will be released as v1.0, I'll ask him if he can add a --3d option to the program, to convert the SUP to 3D SUB automatically. Not sure it's feasible, but that would be great!
[EDIT]
I've already asked SassBot to do it. See here (http://forum.doom9.org/showthread.php?p=1581216#post1581216). I hope he will accept!
MaistroX
4th July 2012, 19:11
Thx for yor answer! :)
You can already select any number of subtitle streams (but hardcode only one on video, of course). They are converted in IDX/SUB format, but they are not converted to 3D subtitles. It's the responsibility of your TV or software player to do the 3D conversion on the fly. I agree that not all TVs can do it, and it's why I have added the option to hardcode a subtitle stream on the video.
Anyway, my GUI is only, well, a GUI. It uses existing programs to do the conversions, and as far as I know, there is no program that can generate 3D subtitles from a BD SUP stream (always in 2D). (There is a 3D Subtitle Editor reported by frencher here (http://forum.doom9.org/showthread.php?p=1574724#post1574724), but it accepts only text SRT files as input, and there is no CLI support, so I can't use it.)
So, sorry, but currently, converting the BD SUPs to 3D SUB/IDX files is not possible.
But perhaps there will be a solution soon. BDSup2Sub (http://forum.doom9.org/showthread.php?t=145277) is currently ported to C++ by SassBot, and he is very open to suggestions. When the current beta will be released as v1.0, I'll ask him if he can add a --3d option to the program, to convert the SUP to 3D SUB automatically. Not sure it's feasible, but that would be great!
[EDIT]
I've already asked SassBot to do it. See here (http://forum.doom9.org/showthread.php?p=1581216#post1581216). I hope he will accept!
mini-moose
7th July 2012, 13:51
@RodrigollicA
No ! why ? "3DBD's Free - v0.0.0.0003.exe" is portable version, no other files needed.
your exe immidietly triggers my AV though it doesn't seem to kill it and also I get an eac3to error about not being able to find libflac.dll. It goes into an endless eac3to loop with that error even if I kill the process.
the program also has 3 separate processes and what seems like some promotional banner on (not sure for what).
it appears to be : C:\Users\admin\AppData\Local\Temp\MMBPlayer\G_ComboBox-WFS-3D-Language.dll identified as a trojan win32\bumat!rts
mini-moose
7th July 2012, 14:10
Sorry, the demux phase was broken in v0.2 in certain circumstances. It's fixed in 0.3.
[code]
Download (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2AVS.7z)
trying your tool. I'm getting an error running the cmd file:
avs [error]: ssifSource: Error while launching E:\Projects\xxx\BD3D2AVS\toolset\ldecod.exe
(_ENCODE_3D_MOVIE.avs, line 26)
x264 [error]: could not open input file `_ENCODE_3D_MOVIE.avs'
I have not changed anything in the files created.
Have you already encoded something with success?
Does the _ENCODE_3D_MOVIE.avs file exist in the directory?
Do you use the 64-bit version of x264.exe?
Note also that, if you launch the cmd file from a command prompt, you must CD to the directory first. (Double-clicking the cmd file should work.)
mini-moose
7th July 2012, 15:21
Have you already encoded something with success?
this was the first try
Does the _ENCODE_3D_MOVIE.avs file exist in the directory?
all the created files are in E:\Projects\xx\BD3D2AVS\Thor\00799_mpls\
which includes _ENCODE.cmd, _ENCODE_3D_MOVIE.avs, _MUX_2D.cmd, and so on.
[/QUOTE]
Do you use the 64-bit version of x264.exe?
no, x86. I've added the x264.exe to same directory all files were created at.
Note also that, if you launch the cmd file from a command prompt, you must CD to the directory first. (Double-clicking the cmd file should work.)
it's launched from the directory it was created at. The only thing that might be irregular is that the Source Blu-Ray is on a mounted drive, but as such it's just like having it on HDD in file mode, Unless the process needs to write something into the drive itself which is obviously read only.
I've added the x264.exe to same directory all files were created at.
That's probably why it doesn't work (although I'm not sure). A copy of x264.exe is provided with my GUI, and should be in the toolset folder.
Can you verify if you have extracted the files from the archive with the paths? Together with BD3D2AVS.exe, you should have the folders "toolset", "intro_presets" and "doc".
Also, be sure to use the cmd file to encode the movie, as it modifies the DOS path (temporarily) to include the toolset folder.
Could you confirm that the path to the BD ISO or to the installation folder doesn't contain foreign or accented characters? (I've already had problems with Tcl/Tk and DOS, as they doesn't use the same character encoding.)
The only thing that might be irregular is that the Source Blu-Ray is on a mounted drive, but as such it's just like having it on HDD in file mode, Unless the process needs to write something into the drive itself which is obviously read only.
No, everything is written in the directory containing the cmd file (except the preferences of the program). I did all my tests with mounted ISOs too, and they worked fine.
mini-moose
7th July 2012, 15:47
That's probably why it doesn't work (although I'm not sure). A copy of x264.exe is provided with my GUI, and should be in the toolset folder.
Can you verify if you have extracted the files from the archive with the paths? Together with BD3D2AVS.exe, you should have the folders "toolset", "intro_presets" and "doc".
Also, be sure to use the cmd file to encode the movie, as it modifies the DOS path (temporarily) to include the toolset folder.
all those subdirs are present and there are 2 versions of x264.exe in the toolset one. removing the x264.exe I added myself and running the .cmd from it's location returns "'x264.exe' is not recognized as an internal or external command,". looking at the cmd it doesn't specify a path to x264 from what I can tell so that's not surprising. That's the reason I placed a copy next to all the files to begin with.
Could you confirm that the path to the BD ISO or to the installation folder doesn't contain foreign or accented characters? (I've already had problems with Tcl/Tk and DOS, as they doesn't use the same character encoding.)
.
no obscurities as far as I can see. I keep the folder names spaces free as well.
The path to the toolset is not included in the commands, but the cmd file should contain a command such as:
set path=path\to\toolset;%path%
That line ensures DOS searches first in the toolset path when executing an external command.
If you want to copy x264.exe in the movie folder, you should also copy the other exe and dll files (except the x64 versions, normally not used in your case). The encoding process needs most of them.
Can you post here the content of the cmd file?
mini-moose
7th July 2012, 16:05
The path to the toolset is not included in the commands, but the cmd file should contain a command such as:
set path=<path to toolset>;%path%
That line ensures that DOS searches first in the toolset path when executing an external command.
Can you post here the content of the cmd file?
@echo off
set path=E:\Projects\xx\BD3D2AVS;%path%
echo Encoding _ENCODE_3D_MOVIE.avs (165210 frames)
echo Encoding started %date% %time%
@echo on
x264.exe --preset medium --tune film --profile high --crf 23 ^
-o "00799_mpls.h264" ^
"_ENCODE_3D_MOVIE.avs" 2>"00799_mpls_x264.log"
@echo off
echo Encoding finished %date% %time%
REM Optionnaly mux the video and demuxed streams to MKV.
REM Note: The mux is disabled if no streams are demuxed.
if exist "_MUX_3D.cmd" cmd /c "_MUX_3D.cmd"
REM Everything done: do the post-processing (Shutdown computer...)
if exist "_POSTPROCESS.cmd" cmd /c "_POSTPROCESS.cmd"
error seems to be with launching ldecod.exe. I don't think the paths are the issue but I'm not an expert.
As far as I can tell, there is nothing wrong in your cmd file. Anyway, x264.exe should start without having to copy it in the directory.
Can you test with another ISO? Maybe ldecod crashes with that particular BD.
Also, please verify the LoadPlugin path in the avs file. It should point to the toolset too.
If you want, send me the work files (without the audio or subpic files) be email. See my address here (http://download.videohelp.com/r0lZ/pgcedit/#contact). I'll have a look.
mini-moose
7th July 2012, 16:25
As far as I can tell, there is nothing wrong in your cmd file.
Can you test with another ISO? Maybe ldecod crashes with that particular BD.
If you want, send me the work files (without the audio or subpic files) be email. See my address here (http://download.videohelp.com/r0lZ/pgcedit/#contact).
I only have one 3D iso. I'll send you the workfiles sure. I also tested avisyth with your test avs and it seems fine.
Correct me if I'm wrong - this method removes the need to encode the right eye into a playable video file? the method using H264StereoSource.dll didn't work for me at all. avisynth refused to load that plugin either...maybe I'm missing c++ (I think that was mentioned as a possible cause). I did manage to get that dll working on a different pc but it was so slow just to do the right eye I shelved the idea altogether.
Yes, the latest ssifSource can decode both eyes at the same time, and it's what my GUI uses. It is still very slow, but at least, it decodes and encodes everything in the same shot.
Maybe you need the C++ re-distributable package. Honestly, I'm not sure.
mini-moose
7th July 2012, 16:37
Yes, the latest ssifSource can decode both eyes at the same time, and it's what my GUI uses. It is still very slow, but at least, it decodes and encodes everything in the same shot.
Maybe you need the C++ re-distributable package. Honestly, I'm not sure.
that's what I thought which is a big advantage seeing just doing the right eye can take 1/2 a day (from user comments).
I can try installing c++. tbh I'm not sure I don't have it already :) have to check. in the meantime I've emailed you the work files. Maybe you can figure out something from those.
Wait! I've managed to reproduce the problem here (just by removing the ";%path%" part of the "set path=..." command). It seems that indeed, even with the path correctly set, DOS cannot find x264.exe if it is not already included somewhere else in the default path.
I'll try to find a workaround for this issue. In the meantime, try to copy all exe and dll files from the toolset folder to the output directory. That should work.
mini-moose
7th July 2012, 16:52
Wait! I've managed to reproduce the problem here (just by removing the ";%path%" part of the "set path=..." command). It seems that indeed, even with the path correctly set, DOS cannot find x264.exe if it is not already included somewhere else in the default path.
I'll try to find a workaround for this issue. In the meantime, try to copy all exe and dll files from the toolset folder to the output directory. That should work.
ok, I tried that. the issue is still with ldecod.exe. the path issue is easily resolved by adding x264.exe to the work dir. The avs already includes a full path to ssifSource.dll so moving it into the work dir without making a new avs will fail even for those who do not have issues with ldecod.
side note - is it necessary to resize the output? the source is already 1080 so it seems pointless. What is maybe missing though is crop options. no point keeping black bars if you're encoding the original streams.
OK, got it! It's a bug. :(
The "set path" command is wrong! The final "\toolset" part of the directory path is missing. (I haven't paid enough attention to your cmd file, and here, I've set a permanent path to the toolset to debug.)
Anyway, the command should be, in your case:
set path=E:\Projects\xx\BD3D2AVS\toolset;%path%
You can fix it manually and retry.
I'll release a fix soon...
mini-moose
7th July 2012, 17:01
OK, got it! It's a bug. :(
The "set path" command is wrong! The final "\toolset" part of the directory path is missing. (I haven't paid enough attention to your cmd file, and here, I've set a permanent path to the toolset to debug.)
Anyway, the command should be, in your case:
set path=E:\Projects\xx\BD3D2AVS\toolset;%path%
You can fix it manually and retry.
I'll release a fix soon...
that works to launch x264.exe but the problem in my case remains ldecod.exe not working with avisynth.
side note - is it necessary to resize the output? the source is already 1080 so it seems pointless.
No, the new ssifSource creates a big image with the two eyes stacked vertically (so the input is in fact 1920*2160). The avs script must cut them and stack them horizontally (for SBS) or vertically (for TB). Also, if you are hardcoding a subpic stream, the two images must be handled separately, so it is necessary to cut them also. (However, if you are encoding in TB format without hardcoded subs, the cut is not necessary, and not done.) Finally, the resize is needed to shrink the output to half-SBS or half-TB (1920x1080)
What is maybe missing though is crop options. no point keeping black bars if you're encoding the original streams.
I agree, but since I use only external exes, I can't display the video to let the user define the cropping parameters. Anyway, most 3D-TVs requires an input format in true 16:9, so I haven't tried much to implement cropping.
If you really want to crop it, you can edit the avs file with AvsPmod. It has a good interactive crop editor. But remember that you will need to edit also the option file for mkvmerge, as the display dimension will have to be changed too.
that works to launch x264.exe but the problem in my case remains ldecod.exe not working with avisynth.
Maybe then you really need something missing in your system.
Sorr, I have to go now. (BBQ!) I'll try to help you tomorrow...
@everybody: Someone can confirm that ldecod or something it uses needs a specific DLL or package?
mini-moose
7th July 2012, 17:22
No, the new ssifSource creates a big image with the two eyes stacked vertically (so the input is in fact 1920*2160). The avs script must cut them and stack them horizontally (for SBS) or vertically (for TB). Also, if you are hardcoding a subpic stream, the two images must be handled separately, so it is necessary to cut them also. (However, if you are encoding in TB format without hardcoded subs, the cut is not necessary, and not done.) Finally, the resize is needed to shrink the output to half-SBS or half-TB (1920x1080)
I thought the reason might lay in something like that :)
I agree, but since I use only external exes, I can't display the video to let the user define the cropping parameters. Anyway, most 3D-TVs requires an input format in true 16:9, so I haven't tried much to implement cropping.
If you really want to crop it, you can edit the avs file with AvsPmod. It has a good interactive crop editor. But remember that you will need to edit also the option file for mkvmerge, as the display dimension will have to be changed too.
I was mostly looking for the method of doing the actual video encode in one go and less in the automation part. I know my way around avs scripts a bit so that shouldn't be an issue. Obviously if I crop the resize in the avs would need to be altered as well. e.g for 1:2.35 movie I would think the resize would then turn to something like 1920x816.
Obviously if I crop the resize in the avs would need to be altered as well. e.g for 1:2.35 movie I would think the resize would then turn to something like 1920x816.
Yes, of course! :rolleyes:
frencher
8th July 2012, 01:58
your exe immidietly triggers my AV though it doesn't seem to kill it and also I get an eac3to error about not being able to find libflac.dll. It goes into an endless eac3to loop with that error even if I kill the process.
the program also has 3 separate processes and what seems like some promotional banner on (not sure for what).
it appears to be : C:\Users\admin\AppData\Local\Temp\MMBPlayer\G_ComboBox-WFS-3D-Language.dll identified as a trojan win32\bumat!rts
THX for reply mini-moose
1° What's your Anti-Virus software ? You can scan with your antivirus original G_ComboBox.dll (http://ul.to/hy239rtc)
Here seems to me a false positive (http://home.mcafee.com/virusinfo/virusprofile.aspx?key=520681#none).
%TEMP%\MMBPlayer\ = Embedded folder
HKEY_CURRENT_USER\SOFTWARE\MEDIACHANCE\MULTIMEDIA PLAYER 4.9.8\ = Program management via register which is used by my compiler
Other problems are not of this "G_ComboBox-WFS-3D-Language.dll"
2° What procedure have you made for this error exists with "libflac.dll", Fixed with v0.0.0.0004 See my signature ;)
mini-moose
8th July 2012, 07:26
THX for reply mini-moose
1° What's your Anti-Virus software ? You can scan with your antivirus original G_ComboBox.dll (http://ul.to/hy239rtc)
Here seems to me a false positive (http://home.mcafee.com/virusinfo/virusprofile.aspx?key=520681#none).
%TEMP%\MMBPlayer\ = Embedded folder
HKEY_CURRENT_USER\SOFTWARE\MEDIACHANCE\MULTIMEDIA PLAYER 4.9.8\ = Program management via register which is used by my compiler
Other problems are not of this "G_ComboBox-WFS-3D-Language.dll"
2° What procedure have you made for this error exists with "libflac.dll", Fixed with v0.0.0.0004 See my signature ;)
I use microsoft security essentials. I'm sure it's not a virus but a false positive and still it would be good to look into fixing it. r0lZ made the same comment on an early version:
1. My behaviour based antivirus (Emsisoft Mamutu) issues a lot of warnings: program tries to manipulate other process and program tries to download invisibly from internet. Not to worry IMO, so I've allowed all. But some people may think your program is a virus.
the endless loop error for libflac.dll comes from eac3to. It happens as soon as I add the index.bdmv. I pretty much had to reboot to stop the loop. maybe there are better ways to make it go away but I couldn't find one with my limited knowledge. Killing process in task manager usually does the trick but in this case it kept relaunching everytime I killed it.
mini-moose
8th July 2012, 07:55
Maybe then you really need something missing in your system.
@everybody: Someone can confirm that ldecod or something it uses needs a specific DLL or package?
yes. perheps. no idea what...I installed c++ re 2010 x86, that didn't seem to make any difference.
btw, you only offer a crf option on the encode part, is there a reason only crf was implemented into the gui or can I also use 2-pass or 1-pass (ofc I would need to modify the cmd but that's not an issue)? I think the older method had difficulties with x264 throwing errors at the end thus crf was a better option..
another thought I had. You might want to consider having some settings of the tool auto kept on exit. Mainly crf parms,resize method and output folder. Right now those need to be reconfiged for every project unless people prefer to use defaults. I think many people (maybe more advanced ones) prefer certain settings.
output dir always defaults back to C:\Users\user\Documents\BD3D2AVS, crf settings always default back to medium/film/high/23 and resize to Bicubic.
personally I've just edited the BD3D2AVS.cfg and that seems to keep the settings I prefer but I think auto save might be better.
btw, you only offer a crf option on the encode part, is there a reason only crf was implemented into the gui or can I also use 2-pass or 1-pass (ofc I would need to modify the cmd but that's not an issue)?
I've implemented CRF only because IMO it's the best one pass method. (IMO, if doesn't make much sense to encode in CQ or ABR when CRF is available, and largely better.) And, although not impossible, encoding in two passes would require to decode two times the same BD, and as you know, ldecod is so slow that it's not really a good solution. Anyway, you can easily modify the cmd if you wish.
I think the older method had difficulties with x264 throwing errors at the end thus crf was a better option.
That bug has been fixed, so, no, it's not the reason.
You might want to consider having some settings of the tool auto kept on exit.
Use "Settings -> Save Settings Now" or enable "Settings -> Save Settings on Exit". When the settings are saved either manually or on exit, all settings are saved, including the window position and size, but excluding some BD specific settings, such as the movie name, and some dangerous ones, like the option to Shutdown when finished.
Also, when you change a specific setting in the Settings menu, such as the player for the preview, that setting is saved immediately, but the other settings are not saved.
I haven't enabled the option to save on exit by default, because IMO it is easier to configure the program the way you want it once, save the settings manually, and after that, when a specific BD needs another setting, change it for that BD only, without saving. But if you prefer, you can configure the program to save the settings on exit anyway.
mini-moose
8th July 2012, 11:30
I've implemented CRF only because IMO it's the best one pass method. (IMO, if doesn't make much sense to encode in CQ or ABR when CRF is available, and largely better.) And, although not impossible, encoding in two passes would require to decode two times the same BD, and as you know, ldecod is so slow that it's not really a good solution. Anyway, you can easily modify the cmd if you wish.
That bug has been fixed, so, no, it's not the reason.
ok, just making sure. Indeed the only reason to use 2/1-pass is to restrain the final size to a specific one. Some people prefer it like that sometimes
Use "Settings -> Save Settings Now" or enable "Settings -> Save Settings on Exit". When the settings are saved either manually or on exit, all settings are saved, except some BD specific settings, such as the movie name, and some dangerous ones, like the option to Shutdown when finished.
Also, when you change a specific setting in the Settings menu, such as the player for the preview, that setting is saved immediately, but the other settings are not saved.
I don't want to save all settings automatically anyway, as IMO it is easier to configure the program the way you want it once, save the settings manually, and after that, when a specific BD needs another setting, change it for that BD only, without saving. But if you prefer, you can configure the program to save the settings on exit anyway.
silly me. I didn't even notice the Settings options on toolbar ;)
one more question. the encode cmd is set to produce .h264. Any reason it's set to raw output instead of say .mkv?
I have tested the tool on two other pcs and it seems to work there. I'm still at loss as to what I'm missing to make it work on my main desktop.
one more question. the encode cmd is set to produce .h264. Any reason it's set to raw output instead of say .mkv?
The encode batch, well, encodes. But it calls automatically the batch to mux to MKV. That second batch mux to mkv with mkvmerge, unless you have disabled the option to mux to mkv in the GUI. In the latter case, you can edit the second batch, even during the encoding process, to remove the REM before the mkvmerge command. It's why there are several batches: you can change your mind during the encoding process, and edit the batch. (BTW, a third batch is also called, that shuts down your computer, or does whatever you have configured in the GUI. Again, you can edit that batch during the encoding process if you wish.)
I have tested the tool on two other pcs and it seems to work there. I'm still at loss as to what I'm missing to make it work on my main desktop.I will try it on a virtual machine running Win7. Perhaps I'll be able to determine what's missing, but I hope it is not already installed on my virtual Win7!
mini-moose
8th July 2012, 11:55
The encode batch, well, encodes. But it calls automatically the batch to mux to MKV. That second batch mux to mkv with mkvmerge, unless you have disabled the option to mux to mkv in the GUI. In the latter case, you can edit the second batch, even during the encoding process, to remove the REM before the mkvmerge command. It's why there are several batches: you can change your mind during the encoding process, and edit the batch. (BTW, a third batch is also called, that shuts down your computer, or does whatever you have configured in the GUI. Again, you can edit that batch during the encoding process if you wish.)
so there's no reason I can't have it encode straight to an mkv container to begin with, it's just that your routine uses h264. My original intention was to do a short clip (using trim) out of the test movie so I can just see it comes out right rather than of waiting 8-14h for the final result. For that I need to figure out where to change the number of frames. To test such a clip an mkv would have been better suited as it can be played back.
As I said I'm more interested in how to do the encode than in automating it.
I will try it on a virtual machine running Win7. Perhaps I'll be able to determine what's missing, but I hope it is not already installed on my virtual Win7!
one of the other pcs I'm trying on is also win7 like mine and it works fine there. my other one is sort of win7 (server 2k8 r2) and it works on it fine too. if you figure out what I'm missing that would be awesome.
You can change the number of frames in the avs script. If the option to encode to MKV has been enabled, you can then encode the test video easily to MKV, just by executing the encode batch. Note however that you must begin the encoding at the first frame, as ssifSource doesn't support seeks to specific frames. All frames must be decoded sequentially.
BTW, I have written that GUI mainly because it is not easy to retrieve the total number of frames, and it's necessary for ldecod. You can use xport or eac3to to get it, but xport has the advantage that it doesn't require to demux at least one stream. (It is used by my GUI if there is on need to demux. Otherwise, eac3to is used.)
Indeed, according to frencher, ldecod requires the Microsoft Visual C++ 2008 Redistributable Package (vcredist_x86.exe). You can download it here (http://www.microsoft.com/en-us/download/details.aspx?id=29). (I suppose that, ldecod being a 32-bit app, it is not necessary to install the x64 version of the package under an x64 system.)
Please let me know if it's sufficient to solve the problem. I will add a link in my GUI to download it easily. (Perhaps I'll be able to check also if it is already installed, but I'm not sure.)
mini-moose
8th July 2012, 12:38
You can change the number of frames in the avs script. If the option to encode to MKV has been enabled, you can then encode the test video easily to MKV, just by executing the encode batch. Note however that you must begin the encoding at the first frame, as ssifSource doesn't support seeks to specific frames. All frames must be decoded sequentially.
ok, that's easy. I thought it needed changing elsewhere too. thanks for the first frame needed note. I didn't know that.
BTW, I have written that GUI mainly because it is not easy to retrieve the total number of frames, and it's necessary for ldecod. You can use xport or eac3to to get it, but xport has the advantage that it doesn't require to demux at least one stream. (It is used by my GUI if there is on need to demux. Otherwise, eac3to is used.)
I'm not familiar with xport. It's not easy to find on a websearch right away but I see you have included the exe in toolset.
an alternative method to get the frames is server the main m2ts via avs on something like vdub and go to the end. that will show you the number of frames. but then again since most of the time you want to demux anyway your method is better, def for gui purposes.
mini-moose
8th July 2012, 12:40
Indeed, according to frencher, ldecod requires the Microsoft Visual C++ 2008 Redistributable Package (vcredist_x86.exe). You can download it here (http://www.microsoft.com/en-us/download/details.aspx?id=29). (I suppose that, ldecod being a 32-bit app, it is not necessary to install the x64 version of the package under an x64 system.)
Please let me know if it's sufficient to solve the problem. I will add a link in my GUI to download it easily. (Perhaps I'll be able to check also if it is already installed, but I'm not sure.)
aha! I installed the 2010 which didn't help. now installed 2008 and all seems well :) thank you very much!
Great! Thanks for the confirmation.
frencher
8th July 2012, 12:52
ldecod is compiled c ++ 2008 :)
ok, that's easy. I thought it needed changing elsewhere too.Well, perhaps there are other things to change too, mainly in the stream names my GUI adds automatically in the mkvmerge options file. (I don't remember right now, but I think the length of the movie is included.)
Also, I think that mkvmerge includes the full audio/subpic streams, even if the video is truncated. So, you may end up with a much larger file than really needed, but that should not be a problem for testing purposes.
I'm not familiar with xport. It's not easy to find on a websearch right away but I see you have included the exe in toolset.
The command the GUI uses is:
xport.exe -phs file.m2ts 1 1 1
Note that xport doesn't work well with ssif or mpls files, so you have to use it on the m2ts file. If there are several m2ts files included in the mpls, you have to launch the ldecod command several times, and compute the total number of frames.
an alternative method to get the frames is server the main m2ts via avs on something like vdub and go to the end. that will show you the number of frames. but then again since most of the time you want to demux anyway your method is better, def for gui purposes.
Of course, I can't use a GUI from my GUI. And passing by an avs script just to retrieve the total number of frames seems overkill. But, indeed, if you do the job manually, that method should be fine (although I would prefer adding the Info() avisynth command in the script, then open it with any player supporting avs input to read the info.)
mini-moose
8th July 2012, 14:29
Well, perhaps there are other things to change too, mainly in the stream names my GUI adds automatically in the mkvmerge options file. (I don't remember right now, but I think the length of the movie is included.)
Also, I think that mkvmerge includes the full audio/subpic streams, even if the video is truncated. So, you may end up with a much larger file than really needed, but that should not be a problem for testing purposes.
well I'm aiming to get just a small video file. not going to mux it.
right now it's not really working as I expected. maybe my avs is wrong. I don't have prior experience dealing with 3d encodes.
can you tell me if you see something off here:
LoadPlugin("C:\__projects\BD3D2AVS\toolset\ssifSource.dll")
ssifSource("I:\BDMV\PLAYLIST\00799.mpls", 1920, 1080, 500, 2, 3)
AssumeFPS(24/1.001)
trim(0,499)
left =Crop(0,132,0,-132)
right=Crop(0,132,0,-132)
StackHorizontal(left, right)
BicubicResize(1920, 816)
the frame count I get is 572 not 500 and the video seems to be split into 4 with a large black bar in the middle:
http://i.imgur.com/fxs5S.jpg
I also get this msg:
Completed Decoding frame 01003.
Error writing to pipe! | 0x0000006d: The pipe has been ended.
Error writing to pipe! | 0x0000006d: The pipe has been ended.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.