View Full Version : Guide to convert BD 3D to 3D Left+Right Stereoscopic and Anaglyph
crl2007
26th November 2010, 00:08
Yeah, it's kinda creepy. :D
glen8
28th November 2010, 17:01
Hi all,
I don't know if anyone can help me but I have been encoding my 2D blurays to .mp4 720p (4.5GB) using ripbot264.
Now I'd like to do the same with 3D Blu-Rays if possible increasing the filesize to 8.5GB. Would this be possible somehow?
Thanks, Glen.
glen8
29th November 2010, 10:43
Forget the above, I've managed to do it :-)
If anyone is interested in a single MP4 3D file which works on PS3 let me know and I'll do a guide.
crl2007
29th November 2010, 13:44
I think everybody from this forum knows how to save mp4 instead of mkv. But mkv also works on PS3, or Blu-Ray etc.
UPDATE*
Now it's possible to convert srt for Stereoscopic files ( Over/Under, SBS ) with 3D Subtitler (http://84.27.10.123/3DSubtitler/). The subtitles can only be saved as SUB/IDX with this software, but you can modify them even further with BDSup2Sub. I'll add it to the guide as soon as I have more time, maybe tomorrow.
glen8
29th November 2010, 16:04
I didn't know the PS3 supported MKV? I thought you had to transcode on the fly from a PC media server
crl2007
29th November 2010, 17:41
Yeah, with PS3 Media Server. But you can save it anyway you want with multiavchd, including bd or avchd.
glen8
29th November 2010, 22:21
ah I see, thanks for that....and thanks for this guide. Helped me out quite a bit :cool:
crl2007
30th November 2010, 12:28
I've updated the guide with 3D Subtitler. Feel free to add some replies with your tests.
glen8
1st December 2010, 12:53
stupid question incoming.....
is the left eye an identical copy of the 2D movie?
Just wondering if I ever wanted just the 2D movie all I have to do is encode the left eye
Thanks!
crl2007
1st December 2010, 13:14
Yes, the left eye is in fact the 2D movie.
glen8
7th December 2010, 09:35
VideoLeft = directshowsource("C:\x264\left.mkv", audio=false)
VideoRight = directshowsource("C:\x264\right.mkv", audio=false)
VideoStacked = StackHorizontal(VideoRight,VideoLeft)lanczosresize(1920,1080)
ConvertToYV12(VideoStacked)
are the left and rights supposed to be the other way around?
crl2007
7th December 2010, 09:51
No. It should be VideoLeft,VideoRight.
yao847zi
10th December 2010, 04:05
DVD Blu-ray 3D Ripper (http://wannasoft.com/DVDFab-Blu-ray-3D-Ripper/) is now able to directly rip and convert Blu-ray 3d to 3d mkv, avi or wmv side-by-side.
Salehi
10th December 2010, 09:39
Hi
Crl2007, I want to convert a 3D to Anaglyph. Your guide seems to be brief(At least for me). Please let me know my step is correct.
1.Copy entire BD structre(BDMV, Certificate) to "Original" folder.(Can I Ignore SSIF folder and only copy M2TS file?)
2.Drag and drop BDMV folder to multiAVCHD.(After multiAVCHD analyze playlist there will be a lot of playlist, one of them marked with 3D, should I go to this playlist and choosing transcode or just find the playlist with the main M2TS file?)
3.In transcode settings, Please tell why should I change the resize and uncrop to 1280*720? with this setting result will be better than 1920*1080? How about change bitrate to 6000?
4. At the end, with this steps, can I still keep original menu?(I suppose to after I click on play 2D in menu, Anaglyph will play instead of 2D movie).
crl2007
10th December 2010, 09:59
You have to drag only the movie mpls in multiavchd and follow my guide for settings. It is not required to resize to 1280x720 ( my movie was from the demo 3d disc and was at 1280x720 by default ). You can't keep the menu, you'll have a mkv file.
yao847zi This guide is done with free software. There are a number of programs on the market, but we concentrate on free ones.
A great free software for Stereoscopic conversion is SSIFsucka! (http://tech.groups.yahoo.com/group/ssifsucka/). It allows you the option to maintain original quality and can output both as a O/U, SBS ( full or half ) mkv or as two separate files ( L + R ) that can be used in Stereoscopic Player or nVidia player. DVDFab doesn't give you the option for original quality. It is faster ( 15 fps vs 4 fps for free mvc decoder, but lacks options ).
BigPines
10th December 2010, 19:51
I have a 3D Blu-ray rip that I need to edit. I started with this guide but can't get the x264 encode to work to save my life (step 5). I want to use lossless encoding because I am going to be editing the video before converting it back to Blu-ray. However, I'm not even sure Adobe Premier can use a file produced by lossless encoding. x264 --qp 0 -o right2.h264 right.h264 gave me the following errors:
ffms [error]: could not find video track
lavf [error]: could not find video stream
avs [error]: failed to load avisynth
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `right.h264' via any method!
I poked around but couldn't figure out how to solve these problems. Obviously I need the highest quality possible because of the multiple generations of encodings I will be going through in this process. Can anyone offer any advice?
Mike
BigPines
10th December 2010, 19:56
I encode the right eye lossless (x264 -q0 -m1 -A i4x4 --no-cabac), using the MVC sample script, to create a right eye that has the same quality as the left eye.
MVC sample script:
LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",135266)
This doesn't work for me. I tried x264 -q0 -m1 -A i4x4 --no-cabac right2.h264 right.h264 but I get x264 [error]: No output file. Run x264 --help for a list of options.
UPDATE: x264 -q0 -m1 -A i4x4 --no-cabac --output right2.h264 right.h264 produces:
ffms [error]: could not find video track
lavf [error]: could not find video stream
avs [error]: failed to load avisynth
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `right.h264' via any method!
My sample.avs looks like this:
LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",232607)
crl2007
11th December 2010, 01:21
Your input file must be the avs script, not the h264 file.
BigPines
11th December 2010, 02:07
Your input file must be the avs script, not the h264 file.
Thanks. Past another roadblock but still having problems.
so x264 -q0 -m1 -A i4x4 --no-cabac --output right2.h264 sample.avs now returns
avs [error]: failed to load avisynth
x264 [error]: could not open input file `sample.avs'
I do have AviSynth 2.5 installed. Not sure what the problem is.
Mike
crl2007
11th December 2010, 02:13
You can open the avs script with something else ? Like MeGUI for example. If you can't, you must be doing something wrong. Do you have the h264stereosource.dll and decoder.cfg in the same folder as the avs script ?
BigPines
11th December 2010, 02:33
You can open the avs script with something else ? Like MeGUI for example. If you can't, you must be doing something wrong. Do you have the h264stereosource.dll and decoder.cfg in the same folder as the avs script ?
I just downloaded MeGUI and it opens there and I can preview it.
Yes, I have the following in the same folder with the video demuxed files:
decoder.cfg
H264StereoSource.dll
sample.avs
x264
Still digging around here. I really do appreciate your help.
crl2007
11th December 2010, 02:42
Try another x264 build. If MeGUI opens it, then it's something wrong with the x264 build and you should use the one that comes with megui.
BigPines
11th December 2010, 03:22
Try another x264 build. If MeGUI opens it, then it's something wrong with the x264 build and you should use the one that comes with megui.
Thanks, that appears to have been the problem. I was originally trying the 64 bit version for 8 bit encoding but I switched over to the 32 bit version for 10 bit encoding and that one seems happy. It looks like it is cranking away albeit *VERY* slowly. Thanks again. I couldn't have got it going without you. I just hope the quality is good after all of this. :)
BigPines
11th December 2010, 04:53
I have a few more questions.
Warning: no active SPS, timing SEI cannot be parsed
Should I be concerned about this?
avs [info]: 1920x1080p 0:0 @ 25/1 fps (cfr)
The material I am decoding is 1080p24. What is this reference to 25/1 fps?
x264 [info]: profile High 4:4:4 Predictive, level 4.0, bit depth 10
Is this saying the source material is 4:4:4 10 bit? I thought that was only user for professional applications. Is it saying the lossless encoding is in 4:4:4 10 bit? I didn't realize this encoder could do that.
Average encoding rate is approximately 4 fps. Fun stuff. :)
Mike
crl2007
11th December 2010, 13:11
1. No, it is normal.
2. When you mux the *.264 stream with mkvmerge you are bound to specify a FPS. So you put there the correct fps.
3. http://indieranch.com/Overview/RGB_4_4_4_overview.html
BigPines
11th December 2010, 16:43
I hope the fps thing works out one way or another because this is taking forever to export. I plan to edit this video prior to muxing and it needs to be in the correct format before I can do that. Hmmm...I may have to mux it first just to get the fps correct and then demux it again for editing.
Thanks for the definition of 4:4:4. Again, I am surprise to see it used here.
Mike
crl2007
11th December 2010, 16:51
You can't use it as h264 so you have to put it in a container.
BigPines
11th December 2010, 21:17
Understood.
I have decided I can't use lossless. It is just too big! The file is already 247GB and it is only 67% done. I want the highest quality possible because I am going to edit it and re-encode it again. Any advice on a good compromise between file size and quality?
UPDATE: I just found these settings for blu-ray disc encoding: http://sites.google.com/site/x264bluray/home/1080i-p Is this the way to go?
Mike
rica
11th December 2010, 21:27
OK i left the thread and came here:
http://forum.doom9.org/showpost.php?p=1463224&postcount=1
Now i'm trying to re-encode right video.
As BigPines i'm living some issues.
Here is my folder:
http://img143.imageshack.us/img143/7732/enough01.png (http://img143.imageshack.us/i/enough01.png/)
Here is my avs:
LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",64174)
I didn't put x264 encoder in the folder and opened "out.avs" on MeGui.
Selected BluRay preset and mkv container.
I can open the avs and play it but when i try to encode it, i get this:
http://img818.imageshack.us/img818/5381/enough02.png (http://img818.imageshack.us/i/enough02.png/)
And what preset i should set and how that file size will reach the left video's size? (if i can re-encode)
Thanks.
BigPines
11th December 2010, 22:29
rica, this thread is really regarding the command line interface of x264. Have you tried that yet?
Mike
crl2007
11th December 2010, 22:49
rica Via MeGUI it crashes. Try x264 CLI.
BigPines x264.exe --level 4.1 --crf 17 --preset placebo --tune film -I 24 --weightp 0 --b-pyramid none --sar 1:1 --aud --rc-lookahead 24 --output right_final.264 right.avs Try this command line and see what you get. I think that CRF 17 is more than enough.
rica
11th December 2010, 22:56
Thanks for your help. I will give it a go with your code.
rica
12th December 2010, 00:10
And here i am with an unsuccess:
http://img10.imageshack.us/img10/4927/cliz.png (http://img10.imageshack.us/i/cliz.png/)
What the hell ***?
crl2007
12th December 2010, 00:19
What's that "out.avs" ? Remove it from the command line.
rica
12th December 2010, 00:41
You are right but see what i get:
C:\Son>x264 --level 4.1 --crf 17 --preset placebo --tune film - I 24 - --weightp
0 --b-pyramid none --sar 1:1 --aud --rc-lookahead 24 --output right_final.264 r
ight.avs
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `-'
crl2007
12th December 2010, 00:50
Copy and paste the command line here like a single line of text. Try like that. If this does not work, then it's something with your codec/decoders configuration.
rica
12th December 2010, 01:19
Sorry,
Here?
What do you mean by "here"?
crl2007
12th December 2010, 01:29
The one that I wrote for BigPines.
rica
12th December 2010, 01:34
That is what i gave it a go :mad:
C:\Son>x264 --level 4.1 --crf 17 --preset placebo --tune film - I 24 - --weightp 0 --b-pyramid none --sar 1:1 --aud --rc-lookahead 24 --output right_final.264 right.avs
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `-'
rica
12th December 2010, 02:01
Totally confused :confused:
Please check out item 4 and item 5 in your first post.
You create a script like this:
[4. Edit the avs script and put in there the duration, in frames, of the movie. You must include the ms. You can find out the frame number from eac3to.
You can also do it manually. That's done like this:
Example: For a 00:02:27.106 movie the ecuation is 147,106*(24000/1001) and you'll have 3527 frames.
My script looks like this:
LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",3527)
Save it.
And you open what avs?
5. Open a command prompt for x264 and use the avs to encode the right eye stream (tutorials for x264 can be found on doom9 too). When x264 reaches the end, you will get an error. This has no impact on the movie. Keep in mind that this decoder is really, really slow. On a q9550 and 4 GB RAM it didn't go higher than 3 fps.
If you check out my previous posts, i have those avisynth scripts:
out.avs:
LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",64174)
right.avs:
DirectShowSource("C:\son\right.h264", fps=23.976, audio=false)
Which one is gonna be the input file?
None of them?
Or above script (out.avs) should be used since it automatically recognizes right.h264 without adressing "here is the right file"?
Or? :confused:
I suppose that is the problem. (It's my understanding problem, sorry.)
crl2007
12th December 2010, 10:52
The "out.avs" is the input avs. That's the only avs that you are working with, it's included in the archive, you just have to modify the frame number. I thought I was clear. That is the script you work with to obtain the right eye encode.
Salehi
12th December 2010, 19:53
I try many time to convert 3D to Anaglyph using multiavchd as mentioned in guide but every time x264.exe crash in the beginning of the process. what can I do?
I try to reinstall ffdshow, haali, avisynth and even multiAVCH but nothing happened.
rica
12th December 2010, 21:35
The "out.avs" is the input avs. That's the only avs that you are working with, it's included in the archive, you just have to modify the frame number. I thought I was clear. That is the script you work with to obtain the right eye encode.
Thanks for the clarification.
I had to be sure "out.avs" would automatically select right_eye.video.
And another confusion i had was on "the size" term.
Size means not the file size but the dimention; if the left is 1920*1080 then the right should be 1920*1080. (thanks Adam btw.)
Anyway, i demuxed again and made lots of trials with several permutations on CML.
But what is weird is i always got 25 fps outputs.
Here is your line: (__weightp 0 is missing since x264 doesn't accept it.)
C:\H264StereoSource_a2>x264 --level 4.1 --crf 20 --tune film -I 24 --b-pyramid none --sar 1:1 --aud --rc-lookahead 24 -o right_son out.avs
avs [info]: 1920x1080p 1:1 @ 25/1 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 4.1
An unintentional loss of pictures occurs! Exitb/s, eta 0:00:12
A gap in frame number is found, try to fill it.
RefPicList0[ 2 ] is equal to 'no reference picture'
RefPicList0[ 2 ] is equal to 'no reference picture'
RefPicList0[ 2 ] is equal to 'no reference picture'
RefPicList0[ 2 ] is equal to 'no reference picture'
RefPicList0[ 2 ] is equal to 'no reference picture'
RefPicList0[ 2 ] is equal to 'no reference picture'
Always i get 25p... (original is 23,976)
crl2007
12th December 2010, 22:10
x264 encodes all fps. You have a software problem or what you try to encode is not a mvc stream and the decoder rejects it. Or you do something wrong. Try and use multiavchd or ssifsucka, cause it will be more easier for you.
rica
12th December 2010, 22:23
http://img375.imageshack.us/img375/9852/mvcleft.png (http://img375.imageshack.us/i/mvcleft.png/)
http://img834.imageshack.us/img834/8512/mvcright.png (http://img834.imageshack.us/i/mvcright.png/)
MVC...
And i don't think i've missed anything else even it was not easier for me.
BigPines
13th December 2010, 03:04
rica,
Use the following switch to fix your frame rate: --fps 23.976
Mike
BigPines
13th December 2010, 05:28
crl2007,
Your settings work but Adobe Premiere (my editing app) chokes on the resulting files. I tested a few seconds of video and tested it out. Premiere doesn't like something about the files but I can't figure out what it is. VLC plays the video but it looks really crappy. MPlayer Extended has the same problems. See attached screenshots.
I'll keep tweaking the settings trying to find something Premiere is happy with. Once I find the magic settings, This will be a workable solution even if it is slow.
UPDATE: I just figured out it was the 10 bit encoding that was messing me up. Once I switched to the 8 bit version, it looks fantastic. I figured this may help someone else having a similar issue.
Thanks again crl2007!
Mike
invincible
13th December 2010, 09:06
When x264 reaches the end, you will get an error.
Hi! Can you tell me what's error message? I have an error same as rica: "A gap in frame number is found, try to fill it." and it lose some frames (weren't encoded since that error ocurr)
crl2007
13th December 2010, 09:50
rica,
Use the following switch to fix your frame rate: --fps 23.976
Mike
I think his movie actually has 25 fps. I'm glad you succeeded.
The error is at the end, not at the beginning. And in most cases x264 crashes at the end when there are a couple of frames to encode. This error is not important, but at the beginning it means you are doing something wrong.
Salehi
13th December 2010, 13:28
I try many time to convert 3D to Anaglyph using multiavchd as mentioned in guide but every time x264.exe crash in the beginning of the process. what can I do?
I try to reinstall ffdshow, haali, avisynth and even multiAVCH but nothing happened.
Help!!!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.