View Full Version : Guide to convert BD 3D to 3D Left+Right Stereoscopic and Anaglyph
r0lZ
17th February 2013, 22:27
Personally, I prefer SBS, at least when played on my Samsung TV, as with T&B, I have noticed sometimes flickering sharp horizontal lines. (I have never seen flickering vertical or horizontal lines in SBS mode.) However, that may be a problem with my TV.
Theoretically, since the parallax works on the horizontal axis, it should be better to use T&B, as there is a greater X resolution, and therefore a more precise parallax. But IMO, that doesn't matter much. Most of the 3D effect is due to the brain, and if the parallax is sufficient, the effect is correct in the two modes. I have even seen 3D-DVDs (yes, they exist!) and the 3D effect was good, despite the 720x240 resolution. The picture was not very good, but it's another problem.
Sharc
17th February 2013, 23:55
....I have noticed sometimes flickering sharp horizontal lines.....However, that may be a problem with my TV.
Could the flickering be due to the '--fake interlaced' setting for progressive encodes, triggering the deinterlacer in your TV? Just speculating......
tyee
18th February 2013, 02:12
@r0lZ
So when we use your app and get our sbs or o/u, what is the frame rate per eye? Is the projector/TV giving us 24Hz per eye??
Another thing I'm noticing is a 1 frame out of sync when encoding which of course throws the 3D out of sync. It is random meaning it may happen when I start an encode or it may not. It happens for both sbs or o/u. I usually start the encode then playback the first 30 seconds and see if it has this problem. If yes, I start over.
I haven't tried DirectShowMVCSource yet only ssifsource2. I get 100% cpu and 48fps using x264 crf 20 veryfast preset.
BTW, for years I, not being a programmer was looking for a gui creator that was easy. I finally found it! This is the most awesome app I've ever used, well, close! It allows anyone to make a gui for a command line app by copy/paste then changing the items for your specific solution. Check it out here. I made my own x264 gui by not controlling only x264.exe but controlling a batch file with everything inside it including noise reducers, sharpeners, etc. Works awesome. Free of course. I should probably start a new thread on it but mention it here because of tcl you mentioned.
http://tinytools.objective-view.de/Tools/FroG
r0lZ
18th February 2013, 10:11
Could the flickering be due to the '--fake interlaced' setting for progressive encodes, triggering the deinterlacer in your TV? Just speculating......Perhaps, but anyway, the problem is not visible in SBS, due to the higher vertical resolution.
r0lZ
18th February 2013, 10:32
@r0lZ
So when we use your app and get our sbs or o/u, what is the frame rate per eye? Is the projector/TV giving us 24Hz per eye??I suppose it depends of the hardware. When I was trying to get the 3D working on my friend's computer, I had to change the screen refresh rate from 60Hz to 100Hz, as otherwise, it was too slow and I had choppy/flickering playback. With 100Hz, I suppose each eye can receive 50 images per second (excellent for PAL).
My TV is supposed to run at 300Hz and the 3D glasses are certified up to 300 Hz. 150Hz per eye is of course better to avoid any flickering effect, but honestly, I'm not sure my TV works really at 300Hz.
Of course, it's different if you use passive 3D glasses based on polarised light (with LG TVs for example), as in that case, all images are received by the two eyes (but the resolution has to be divided by 2 once again).
Another thing I'm noticing is a 1 frame out of sync when encoding which of course throws the 3D out of sync. It is random meaning it may happen when I start an encode or it may not. It happens for both sbs or o/u. I usually start the encode then playback the first 30 seconds and see if it has this problem. If yes, I start over.
Well, I have had that problem only once, with a MPLS containing several M2TS. The problem started at the joint between 2 M2TS. I don't remember if I was using ssifsource2 or DSMVCsource. I've started over with the other method, and it worked fine. Anyway, it's a problem with the disc or ISO, or with the filter, but not with the GUI, so I can't do much.
I haven't tried DirectShowMVCSource yet only ssifsource2. I get 100% cpu and 48fps using x264 crf 20 veryfast preset.
If you want to do other things when encoding, you can add "--threads 3" in the additional options, to restrict x264 to a specific number of cores. Of course, it takes more time to encode, but at least, your PC is still responding correctly. (I may add a GUI to select the number of threads in the next version...)
http://tinytools.objective-view.de/Tools/FroGThanks for the link. I'll have a look. That can be handy do do simple GUIs. (For GUIs like BD3D2MK3D, it's probably not sufficient, because I have to launch several commands and analyse their outputs.)
[EDIT] I had a look at their homepage. Seems easy and clean. I remember the good old Amiga days, when I wrote also a similar tool to build simple GUIs by describing the elements in a text file. That was handy, but somewhat limited. Maybe this one is more powerful. Thanks anyway!
tyee
18th February 2013, 16:53
I tried the sbs and o/u comparison again and there is no contest on my projector (Benq W1070). The o/u is noticeably better with the higher horizontal resolution. I guess my projector has okay horizontal scaling for the sbs but very good vertical scaling for the o/u. In some of the skiing scenes (Art Of Flight 3D) I could nearly walk through my screen into that scene it was so clear and transparent. I'll have to run the original BR tonight and compare how close it is to the o/u.
I have only converted one disk so far with only one ssif file. For multi ssif files will eac3to combine them or will your app do it or I thought I read earlier in this thread there is another app that can do it?? Sometimes I want to do this manually.
r0lZ
18th February 2013, 18:41
I use eac3to to extract the audio and subpic streams from the MPLS, except when the MPLS is made of a single M2TS/SSIF file (because subtitle timings are sometimes damaged when there is a cut between two M2TS). In that case, the streams are extracted from the M2TS.
The video is encoded from the single or multiple M2TS/SSIF pair(s) anyway. (Look at the AVS script to see how I do it.)
Sharc
23rd February 2013, 00:33
@r0lZ:
A very minor issue:
When one checks 'Resize 1080p to 720p' the Intro Clip still keeps '1080p' in the text.
Nico8583
25th February 2013, 21:05
I'm allways searching a software to encode BD50 3D to BD25 3D but I would like to test also BD3D2MK3D so I have many questions please :D
- What softwares do I need in addition of BD3D2MK3D ? FFDShow, Haali Media Splitter,... ?
- Is it better for you to use SBS or TB ? I have an active 3D TV Samsung, I have read TB is better for LG
- Is it better to use ssifSource2 or DirectShowMVCSource ?
- If I choose 3D subtitles, what is the best resize filter ? Time is not a problem for me :)
- Is it necessary to convert subtitles to 3D for SBS/TB ? Is it an option for subtitles 2D also ?
- How can I determine if left is first ?
- What is the best resize filter between x264 and AviSynth ? Again time is not a problem for me, I search the best time / quality report but + for quality
- BD compatible add --blu-ray option of x264 ?
- What is the bitrate minimum to get a very good quality for Half ? Same question for Full ?
I'm sorry for all these questions but thanks to help me :)
r0lZ
25th February 2013, 22:07
- What softwares do I need in addition of BD3D2MK3D ? FFDShow, Haali Media Splitter,... ?Honestly, I don't know I have both. It's a question for the authors of the filters.
- Is it better for you to use SBS or TB ?I have also a Samsung, and personally, I prefer SBS, as it tends to be less problematic with thin sharp horizontal lines.
- Is it better to use ssifSource2 or DirectShowMVCSource ?DirectShowMVCSource is more "powerful", as it can encode in a large variety of 3D formats, including anaglyph. But when there are many SSIF files referenced by the MPLS you want to encode, it may be slow to start and cause DirectShow timeout problems. In that case, I recommend using ssifSource2. Otherwise, they should be equivalent. (There is still an open question about a problem with missing frames in some cases, but I have not been able to reproduce it, so I can't say if a specific filter is the culprit.)
- If I choose 3D subtitles, what is the best resize filter ?I use the bilinear filter. It is fast and well suited to shrink the bitmap. Note also that usually, the subtitle width or height is divided exactly by 2 (and the other dimension is not resized). It's a very simple case to handle, and most, if not all resize methods should give an equivalent result. But I haven't tested all filters.
- Is it necessary to convert subtitles to 3D for SBS/TB ? Is it an option for subtitles 2D also ?2D subtitles can be used only with 3D aware programs or hardware, as they must be duplicated at display time. Unfortunately, the Samsung TVs cannot display the IDX/SUB subtitles. They can only display (badly) the text-based subtitles, like SRT. (It's why there is an option to hardcode the subtitles in the video.)
If you use an external player or multimedia hard disc to send the video to the TV, it must use 3D subtitles in bitmap format, as otherwise they will be placed on the whole screen, covering both images (in SBS mode) or only the bottom image (in TB mode).
So, the 2D bitmap subs can be useful only with software or hardware players running on the 3D display. Furthermore, they must be able to change the "depth" of the subtitles, as otherwise, the subs are displayed on the surface of the screen, often "inside" objects. That's really unpleasant.
BD2D2MK3D doesn't have an option to mux the 2D subs, but you can do it manually with MkvMerge if you wish. (The 2D subs are in the temp folder anyway.)
- How can I determine if left is first ?I have never seen a BD with right first, but they may exist. Currently, I trust eac3to. It displays the "left/right eye" string in the corresponding video stream.
If you're not sure, you can use a software player that can display 3D video in anaglyph and test with cheap anaglyph glasses. (I use The KMPlayer for that purpose.)
- What is the best resize filter between x264 and AviSynth ?I don't know. Usually, I use bilinear (for the same reason than for the subtitles), or lanczos (for its quality). I don't know if the x264 or AVS filters are better or more rapid, but usually, I prefer to use the AVS filters, to leave more CPU power for x264.
- BD compatible add --blu-ray option of x264 ?It adds several otions, but I'm not sure they are correct. See here (http://forum.doom9.org/showthread.php?p=1614375#post1614375), here (http://forum.doom9.org/showthread.php?p=1614207#post1614207) and here (http://www.x264bluray.com/). (I still need to study the different cases, and adapt the parameters accordingly.) Anyway, IMO, that option doesn't make much sense. I've added it at the request of a user, but who want to convert a BD to SBS or TB to burn another BD? IMO, it is better to copy the original.
- What is the bitrate minimum to get a very good quality for Half ? Same question for Full ?I use the bitrate modes (and mainly the 2-pass mode) ONLY when the size of the output file matters (for example, to put the encoded movie on a DVD). IMO, it doesn't make sense to use the bitrate modes if you are interested in quality only. A very complex movie may require a high bitrate, and a simple and clean cartoon can be encoded with very high quality at a relatively low bitrate. IMO, the CRF mode is the best one to ensure that the quality will be good, regardless of the complexity of the movie and of the half/full 3D mode. It is made for that purpose, and I recommend to use it. (Note that when you change the preset, say from medium to slower, the quality doesn't change much in CRF mode. It's the output size that changes. In the other hand, changing the preset in 2-pass or ABR mode doesn't change the size, but affects the quality.)
Nico8583
25th February 2013, 22:24
Thanks a lot to spend your time to respond me :)
- For ssifSource2 or DirectShowMVCSource, I think I'll use ssifSource2 :)
- For 3D subtitles, Samsung can display them correctly or badly like 2D ? What depth do you use in general ?
- I'll search more informations about resize filters :)
- I'll search also more informations about x264 options :)
- What is the "best" CRF value to ensure quality without obtain a very big file ? Is there a big difference between CRF medium and CRF slower for example ?
Thanks again !!
r0lZ
25th February 2013, 23:06
Samsung cannot display 3D subs, as it cannot handle the bitmap subs. It needs text subs, that cannot be in 3D. (Furthermore the SRT subs must be in an external file, and cannot be embedded in the MKV container!) It display the SRT subs in 3D, but badly, because there is no way to specify the depth, and because long lines are wrapped too early, giving sometimes 4 lines of subs, or even more! That's way too much. I prefer to hardcode the subs and control myself their depth and position. Or I use 3D soft subs with my Lacie multimedia HDD (but I don't like that solution either, as using the OSD of an external device displayed on a 3D TV is a pain!)
The choice of the depth is a difficult problem. Since I have no good way to preview the 3D video with the subs on my PC, I need to estimate the depth. I try to determine if many objects are "popping out of the screen" when subs are displayed, and if it's the case, I try to estimate the depth. It's not easy. Usually, a good starting point is around 20, but that depends of the movie. (Note that if the format of the movie is Cinemascope, you can move the image near the top of the screen, and place the subs in the large black bar at the bottom. Of course, in that case, the depth of the subs doesn't matter much.)
The default CRF is 23, and imo, it has been very well chosen. It gives a good quality for a small size (but again, the size depends of the preset). But when I encode a movie with a very sharp picture, or when the quality of the picture matters much, I tend to lower it, around 20, or even 15 in some cases. When the source is bad or blurred (such as a VHS rip), you can safely use a CRF of 25 or even 30.
I have read somewhere that decreasing the CRF by 3 doubles the size of the video stream. Of course, it's an estimation, and imo, it is exaggerated. (Using CQ 0 produces a lossless output, but the bitrate is extremely high!)
Is there a big difference between CRF medium and CRF slower for example ?
I did only simple tests, but yes, the difference in bitrate is noticeable, especially if you are crazy enough to use the Placebo preset!
Nico8583
25th February 2013, 23:39
Thanks one more time :-)
Last question tonight :-D have you tried to play Full SBS on Samsung TV ? If you have tried, what solution do you use ?
r0lZ
26th February 2013, 08:53
Full SBS (or TB) in 1080p is rejected. However, I remember having played successfully a full-3D movie in a lower resolution. IIRC, it was 720p TB, but I'm not sure.
Another problem with the Samsung TVs and 3D: They require 16:9 video. So, if you crop the black bars of a 3D movie shot in Cinemascope, it will be played full-screen anyway, and the picture will be stretched vertically. AFAIK, LG has the same problem. It's why there is no Crop tool in BD3D2MK3D. (Cropped 2D videos can be played with the correct aspect ratio.)
Nico8583
26th February 2013, 21:29
Full SBS (or TB) in 1080p is rejected. However, I remember having played successfully a full-3D movie in a lower resolution. IIRC, it was 720p TB, but I'm not sure.
Another problem with the Samsung TVs and 3D: They require 16:9 video. So, if you crop the black bars of a 3D movie shot in Cinemascope, it will be played full-screen anyway, and the picture will be stretched vertically. AFAIK, LG has the same problem. It's why there is no Crop tool in BD3D2MK3D. (Cropped 2D videos can be played with the correct aspect ratio.)
Thanks :)
But if I play a Full SBS with a PC and a software, does it work ? The PC output could be in a correct format 1920 x 1080 ?
r0lZ
26th February 2013, 22:30
I don't know. If your external player can add the black borders itself and send pure 16:9 via HDMI, that should be OK. But imo, most players send what they receive, and it's the responsibility of the TV to adapt the image to the correct aspect ratio. Also, take in mind that using an external player for 3D playback on your TV is really not handy. You cannot see the OSD of the external player, as it is not designed to be seen in 3D. IMO, it is better to keep the black borders anyway, to be compatible with all hardware players and TVs, and they doesn't consume much disc space anyway.
Nico8583
27th February 2013, 13:28
I'm talking about a Full SBS 3840 x 1080 so black borders would be include ?
I believe Stereoscopic Player (for example) can play Full SBS, so output on HDMI would be 1920 x 1080 like a Blu ray player ?
Other question : have you tried to make a Blu ray structure with a Half SBS ? Do you know a way to convert 2D subtitle to 2D subtitles SBS ?
Thanks !
r0lZ
27th February 2013, 13:47
I believe Stereoscopic Player (for example) can play Full SBS, so output on HDMI would be 1920 x 1080 like a Blu ray player ?
I don't know. My PC is not connected to my TV via HDMI, and I don't use Stereoscopic Player. Sorry.
have you tried to make a Blu ray structure with a Half SBS ?
No. I'm not interested in burning BDs. IMO, they are already on decline, and I prefer to keep my 3D movies on HDD (as half-SBS). IMO, HDDs are so cheap today that burning BDs is not the best way to back your collection up.
Do you know a way to convert 2D subtitle to 2D subtitles SBS ?
What are "2D subtitles SBS"? If you want then in 2D, there is nothing to convert (except from SUP to IDX/SUB). If you need to convert text-based subtitles to 3D, there is a program called 3DSubtitler, referenced earlier in this thread.
Nico8583
27th February 2013, 19:11
Thanks :)
I don't have the same opinion about BD but it is not the subject :D
"2D subtitles SBS" are classic subtitles divided by 2 on horizontal, one for left side and one for right side but without 3D effect. But is it necessary ? I don't know, I'll make tests...
Perhaps is it possible to convert 1920 x 1080 subtitles to 2 same 960 x 1080, or convert 1920 x 1080 to 1 960 x 1080 is suffisant.
r0lZ
27th February 2013, 19:22
They are 3D subs, made for 3D videos, but without depth effect, and therefore appearing on the "surface" of the screen.
You can create such subs with BD2D2MK3D. Just set the depth to 0. They are converted anyway when you process a BD movie, but you can also do it on external subtitle files with Tools -> Convert Subtitles to 3D. It's just a GUI for the command line program Suppe3D.exe, included in the toolkit.
Nico8583
28th February 2013, 22:51
Thanks, Suppe3D is exactly what I'm searching :)
Now, I'm looking to choose the best resize filter, Lanzcos(4) or Spline(16,36,64)...
r0lZ
28th February 2013, 23:04
You should thank Neisklar. He is the author of Suppe3D. IIRC, the first post concerning that tool is here (http://forum.doom9.org/showthread.php?p=1594978#post1594978) in this thread (although the Suppe3D name is not used in that post).
Please let us know the result of your resize filters comparison.
jdobbs
5th March 2013, 06:40
Someone (I don't remember who) told me to use these settings:
--bluray-compat --profile high --level 4.1 --vbv-maxrate 40000 --vbv-bufsize 30000 --keyint 24 --slices 4
--open-gop --colorprim bt709 --transfer bt709 --colormatrix bt709 --b-pyramid strict --fake-interlaced --aud
But I don't understand why --bluray-compat is not sufficient alone. If it does what its name suggests, that option should force all necessary flags. Anyway, BD3D2MK3D forces all options above when you tick the "BD compatible" checkbox.
Because there is lots of variability in the blu-ray standard. The "--bluray-compat" set's the things that are required -- but there are lots of things that are really up to you. For example, you don't have to use level 4.1, you could just as easily choose level 4.0. You don't have to set the maxrate to 40000 -- that's just the highest you could set it.
r0lZ
5th March 2013, 07:48
Thanks for the precision. Does that mean that --bluray-compat is sufficient to ensure BD compatibility, and that I should not force any other parameters (except perhaps verify that the level is not too high)? For example, can I safely remove the --fake-interlaced flag, and assume that x264 is smart enough to set it when it is required?
jdobbs
5th March 2013, 15:18
Fake interlaced is just a way to make a progressive source look like interlaced so it is compliant. Example: A 720x480 29.97fps stream is expected to be interlaced -- because 480p is not a part of the standard for a primary video track (only for secondaries). So by using the --fake-interlaced setting you can tell the playback system it is interlaced, while keeping it progressive. In 99% of all encodes you wouldn't use it.
r0lZ
5th March 2013, 15:42
Yes, but for that 1% where it must be set, should I set it manually, or is the --bluray-compat flag sufficient to inform x264 to set it automatically when necessary? (I must admit that I would prefer the second solution, as B3D2MKV has no way to know if it must be set or not.)
Sharc
5th March 2013, 21:28
You would have to set it manually when really needed.
But what if --fake-interlaced is always set (or never set)? Would the playback device complain, or is there another disadvantage?
IIRC my SONY standalone seems to be forgiving when I forgot to set --fake interlaced where it actually should have been set. Maybe other players are more picky?
jdobbs
5th March 2013, 23:45
You would have to set it manually when really needed.
But what if --fake-interlaced is always set (or never set)? Would the playback device complain, or is there another disadvantage?
IIRC my SONY standalone seems to be forgiving when I forgot to set --fake interlaced where it actually should have been set. Maybe other players are more picky? Every player I have ever seen will play back 480p. In fact, I've never seen one that also wouldn't play 480p back at 23.987fps as well -- even though that is only legal as a secondary to a 23.976 progressive primary (1080p or 720p).
frencher
7th March 2013, 01:04
Sourcecode for mkv (AVC/MVC) remuxing (http://www.makemkv.com/forum2/download/file.php?id=464&sid=40e4cc06ee773e06b6830556440a76a3)
tyee
7th March 2013, 05:45
Your sourcecode link does not exist.
tfboy
8th March 2013, 10:39
I've been playing around with converting 3D BDs to 3D DCPs for cinema usage and I have a workflow that's OK and have written up the process on my blog.
But I'd like to optimise it a bit, and wondered if there were any tweaks I could bring in, particularly around the usage of ldecod.
Right now, I'm using ldecod to regenerate the full right-eye of the SSIF information demuxed using eac3to.
But the decoding is quite slow and I was wondering if there's anyway of speeding it up. For example, with alexpk's mod, can you opt to only decode one stream at a time?
I've played around with compiling the more recent versions of ldecod, but I've realised alexpk has done something extra to permit the two input files to work.
Any ideas?
:thanks:
frencher
9th March 2013, 00:27
Hi tfboy,
Look in my signature "MVC Player Free" no need to rip just select the .ssif file or files, you need and you have option "encode".
You have the options left eye, right eye, side by side, upper under.
Ldecod forgotten thing of the past ;)
I am currently working the "Playlist" (.mpls)
BD3D2MK3D works fine ;)
tfboy
9th March 2013, 11:29
Thanks, but no real luck with it. I've loaded the SSIF, it has generated the following AVS script:
LoadPlugin ("D:\tools\StereoPlayer.exe\DirectShowMVCSource.dll")
File = "G:\BDMV\STREAM\SSIF\00201.ssif"
Left = DirectShowMVCSource(File, decodeleft=TRUE)
Right = DirectShowMVCSource(File)
Video = StackHorizontal(Left,Right)
Video = Video.ConvertToYV12()
LoadPlugin ("D:\tools\StereoPlayer.exe\DirectShowSource.dll")
Audio = DirectShowSource("G:\BDMV\STREAM\00201.m2ts", video=FALSE)
Video = AudioDub(Video, Audio)
Return Video
But it takes a long time opening the media then I get a timeout waiting for graph to start, Preview line 4...
What I need is to have the "full" right (and left) eye h264 video demuxed into individual files. Currently, the Demux option in tools is greyed out.
r0lZ
9th March 2013, 11:41
Timout problems are common with DirectShowMVCSource. Usually, relaunching the same AVS script several times solves the problem. You can also specify a different timeout (in ms) in the DirectShowMVCSource command:
DirectShowMVCSource(..., timeout=200000)
tfboy
9th March 2013, 11:54
Thanks r0lZ. I guess I should be able to demux the h264 streams with the app? I won't persevere if I can't :) Thanks to frenchy for his work too!
edit:
Ahh, looks like I'm getting further.
When I click play, I get a "Cannot play back the file. The format is not supported" with line 8. Now line 8 refers to the audio. However, if I disabled that or remove the line from the Preview.avs script, then when I click the play button, I get an "opening media..." and after a few seconds, goes back to Ready with nothing appearing.
frencher
9th March 2013, 12:22
You can choose the output mode see screenshot (SBS, OR, LEFT or RIGHT).
Problem for line 8 (audio) some DTS track have difficulty therefore in the "Audio" Disable audio here should go for if you want the right to take you "Right View MVC"
Then you go to "Tools" and encode ;)
http://i48.tinypic.com/34rzsd5.png
http://i47.tinypic.com/qp0139.png
r0lZ
9th March 2013, 12:24
I'm not the author of MVC Player Free, and I can't comment on it.
Try with BD3D2MK3D (http://download.videohelp.com/r0lZ/BD3D2AVS/BD3D2MK3D.7z). It can use DirectShowMVCSource or ssifSource2. With ssifSource2, you can encode the right view only if you wish. The drawback is that ssifSource2 cannot handle the MPLS files directly, and when there are several M2TS files referenced by the MPLS, it is necessary to encode all parts separately. BD3D2MK3D handles that problem automatically, but in some rare cases, that can cause some problems too (for example when there is a frame missing from the left or right view).
[EDIT] Frencher has replied before me.
frencher
9th March 2013, 12:31
[EDIT] Frencher has replied before me.
No problem :D
MVC Grrrrrrr.
tfboy
9th March 2013, 12:56
Thanks for the help, but I'm still being a bit thick.
I don't need to view the video, just to demux it so I end up with left h264 video file and right h264 video file. I had a quick look at BD3D2MK3D but can't seem to demux the right eye video.
Would you mind posting a correct avs script for that so I can confirm I'm not missing something on my PC.
Thanks / merci :)
r0lZ
9th March 2013, 13:20
IIRC, you can demux the right view with eac3to, but that doesn't make much sense IMO, as without the BD structure and the left view, the AVC stream cannot be decoded.
tfboy
9th March 2013, 13:26
IIRC, you can demux the right view with eac3to, but that doesn't make much sense IMO, as without the BD structure and the left view, the AVC stream cannot be decoded.
You can, and I've been using eac3to to do just that. And then, I was using ldecod to recreate the full video for the right eye.
I need a full, readable h264 video of left and right eyes, something ldecod gives me, although it's slow and you end up with huge files being uncompressed YUV.
I guess maybe some "processing" or "compression" is required for the right eye, but I want minimal loss of quality because it's to be transformed to a DCP, viewed on a cinema screen.
edit: here's my workflow: http://www.xavierwalker.co.uk/blog/3d-blu-ray-to-3d-dcp/
r0lZ
9th March 2013, 13:38
I need a full, readable h264 video of left and right eyes
So, if I understand correctly, you need a decoded right view. It's why I have proposed to use BD3D2MK3D with ssifSource2, and the option to encode only the right view. You can do a lossless encode if you want.
You can't just demux the right view and hope it will be "a full, readable h264 video", as the MVC stream contains only the differences in the left and right views. So, you must re-encode anyway. It is true that ldecod can output the raw decoded stream, and you don't need an AVS script. It is indeed very slow. Unfortunately, with the DirectShowSource and ssifSource2 plugins, you need the AVS script, and therefore, you need also to re-encode, even if it's with CQ 0 (lossless mode). That method is much more rapid.
frencher
9th March 2013, 20:22
So, if I understand correctly, you need a decoded right view. It's why I have proposed to use BD3D2MK3D with ssifSource2, and the option to encode only the right view. You can do a lossless encode if you want.
You can't just demux the right view and hope it will be "a full, readable h264 video", as the MVC stream contains only the differences in the left and right views. So, you must re-encode anyway. It is true that ldecod can output the raw decoded stream, and you don't need an AVS script. It is indeed very slow. Unfortunately, with the DirectShowSource and ssifSource2 plugins, you need the AVS script, and therefore, you need also to re-encode, even if it's with CQ 0 (lossless mode). That method is much more rapid.
Yes left.yuv and Right.yuv
tfboy
10th March 2013, 14:11
OK, I'm getting somewhere now. :)
However, it has me thinking of using the avisynth script as an input to ffmpeg. Then I don't have to create the intermediary yuv files, I can effectively pipe the resulting yuv from avs directly into ffmpeg.
tfboy
10th March 2013, 15:41
Using ssif2 / avs script as a plugin to ffmpeg doesn't appear to work. I initially had an issue that was combining 32bit avisynth with 64bit ffmpeg. So now I'm using the 32bit version off ffmpeg.
Using: ffmpeg32.exe -i d:\tools\test.avs -pix_fmt rgb24 -f image2 i:\tiff\r-%06d.tiff
where my avs script is:
LoadPlugin("ssifSource2.dll")
ssifSource2("G:\BDMV\STREAM\SSIF\00000.ssif", left_view = false, right_view = true)
I get the "can't create the graph" referring to line2 as the resulting images from the video...
I've tried various things including avs2yuv, but my guess is a problem within avisynth so I need to fix that before playing around with piping it into ffmpeg.
I suppose the issue could be that the avs script is expected to be used in conjunction with the x264 encoder. Maybe I have to to go via that too, but I was hoping to avoid having to create the actual file and pipe the output directly into ffmpeg.
So what I'm trying to achieve is: ssif file => avs script with ssif2 => piped into ffmpeg.
I might need to do: ssif file => avs script with ssif => x264 encoded video => piped into ffmpeg.
Thoughts?
Thanks
vanden
11th March 2013, 14:55
MakeM2TS = CombineMVC.exe + tsMuxeR Link Here (http://forum.doom9.org/showthread.php?p=1600201#post1600201)
No !
The combined AVC/MVC raw stream of makemvc.exe is not exactly identical to that of combinemvc.exe ...
-- With a sample (CombineMVC.exe + tsMuxeR) Cars2.m2ts (http://uploaded.net/file/zcwh5oau) :
- It is not readable with StereoscopicPlayer (StereoscopicPlayer recognizes well the format: "separate stream, Left to Right" but no video).
- Remux Cars2.m2ts with mkvtoolnix to mkv (Cars2Mkvtoolnix.mkv (http://infonetservices02.chez.com/Cars2Mkvtoolnix.mkv)) : same effect with StereoscopicPlayer ...
- By cons with MVC Player v0.0.1.0 Free Car2.m2ts is playable but the remux mkv with mkvtoolnix is not playable.
-- With a sample created by MakeMKV SamyMakeMKV.mkv (http://infonetservices02.chez.com/SamyMakeMKV.mkv) :
- It is readable with StereoscopicPlayer.
- Remux SamyMakeMKV.mkv with tsMuxeR in m2ts (SamyTSMuxer.m2ts (http://infonetservices02.chez.com/SamyTSMuxer.m2ts)): The m2ts is not recognized as "separate stream, Left to Right" by StereoscopicPlayer, so that only the left stream is readable (=2D) ...
- By cons with MVC Player Free v0.0.1.0 no files are readable.
-- Anything strange, open Cars2Mkvtoolnix.mkv file with MakeMKV :it is recognized correctly !
Record with MakeMKV in Cars2MakeMKV.mkv (http://infonetservices02.chez.com/Cars2MakeMKV.mkv) : it become playable with StereoscopicPlayer !
-- Last note :
Combined MKV (AVC/MVC created by MakeMKV) play with Microsoft DTV/DVD Video Decoder = audio is out of sync.
Tested with MPC-HC.1.6.5.6366.x86 (with Haali Media Splitter, LAV Splitter AND MPC splitter).
MPC-HC report 30fps (with Microsoft DTV/DVD Video Decoder) and audio is out of sync.
It's OK with Haali Media Splitter + MPC video decoder (DXVA or FFmpeg).
It's OK with Haali Media Splitter + CoreAVC 3.01 (DXVA or NOT).
And it is also OK with MPC splitter + MPC video decoder OR CoreAVC 3.01 (DXVA or NOT).
And it is also OK with LAV splitter + MPC video decoder OR CoreAVC OR 3.01 (DXVA or NOT).
By cons, if you remux the MKV with tsMuxer in M2TS, audio is sync ! (with Microsoft DTV/DVD Video Decoder and any splitter).
M2TS files combined AVC/MVC (created by CombineMVC.exe + tsMuxeR) audio is synchronized with the Microsoft DTV decoder / DVD Video Decoder (with any splitter).
if you remux the M2TS with mkvtoolnix in MKV, sound is synchronized with the Microsoft DTV decoder / DVD Video Decoder (with any splitter) !
Is there a way to decombine a file AVC/MVC combined ?
non !
la piste brute combinée AVC/MVC de makemvc.exe n'est pas exactement identique a celle de combinemvc.exe ...
-- Avec un sample (CombineMVC.exe + tsMuxeR) par exemple Cars2.m2ts (http://uploaded.net/file/zcwh5oau) :
- il n'est pas lisible avec stereoscopic player (stereoscopic player reconnait bien le format : "separate stream, Left to Right" mais pas de video).
- Remuxer ce m2ts avec mkvtoolnix en mkv (Cars2Mkvtoolnix.mkv (http://infonetservices02.chez.com/Cars2Mkvtoolnix.mkv)) : même effet avec stereoscopic player ...
- Par contre avec MVC Player Free v0.0.1.0 cars2.m2ts est bien lisible mais le remux avec mkvtoolnix en mkv ne l'est pas.
-- Avec un sample créé par MakeMKV SamyMakeMKV.mkv (http://infonetservices02.chez.com/SamyMakeMKV.mkv) :
- Il est lisible avec steroscopic player.
- Remuxer ce mkv avec TSMuxer en m2ts (SamyTSMuxer.m2ts (http://infonetservices02.chez.com/SamyTSMuxer.m2ts)) : Le m2ts n'est pas reconu comme "separate stream, Left to Right" par stereoscopic player donc que coté gauche de lisible (2D) ...
- Par contre avec MVC Player Free v0.0.1.0 ni le mkv ni le m2ts ne sont lisibles.
Autre chose etrange, MakeMKV ouvre corectement le fichier cars2Mkvtoolnix.mkv, en l'enregistrent avec MakeMKV en Cars2MakeMKV.mkv (http://infonetservices02.chez.com/Cars2MakeMKV.mkv) il deviens lisible par stereoscopic player !
Derniere remarque :
Les fichiers MKV combinés AVC/MVC (créés par MakeMKV) lu avec le decoder Microsoft DTV/DVD Video Decoder = audio désynchronisé
Testé avec MPC-HC.1.6.5.6366.x86 (avec Haali Media Splitter, LAV Splitter ET MPC splitter).
MPC-HC report 30fps (avec Microsoft DTV/DVD Video Decoder) et le son est désynchronisé.
C'est bon avec haali Media Splitter + MPC video decoder (DXVA ou FFmpeg).
C'est bon avec Haali Media Splitter + CoreAVC 3.01 (DXVA ou NON).
Et c'est aussi bon avec MPC splitter + MPC video decoder OU CoreAVC 3.01 (DXVA ou NON).
Et c'est aussi bon avec LAV splitter + MPC video decoder OU CoreAVC 3.01 (DXVA ou NON).
Par contre si on les remux en m2ts avec TSMuxer alors il n'y a plus de désynchronisation avec le decodeur microsoft (quelque soit le splitter) !
Les fichiers M2TS combinés AVC/MVC (créés par CombineMVC.exe + tsMuxeR) le son est bien synchronisé avec le decodeur Microsoft DTV/DVD Video Decoder (quelques soit le splitter).
si on les remux en MKV avec mkvtoolnix le son est bien synchronisé avec le decodeur Microsoft DTV/DVD Video Decoder (quelques soit le splitter) !
Y at-il un moyen de decombine un fichier AVC/MVC combinés ?
frencher
11th March 2013, 15:40
Is there a way to decombine a file AVC/MVC combined ?
I've asked this question but I did not get an answer until now.
J'ai déjà posé la question mais je n'ai pas eu de réponse jusqu'à maintenant.
tfboy
11th March 2013, 19:01
Not sure why vanden's quoting a post from another thread?
Je ne sais pas pourquoi vanden reprend un post d'un autre sujet?
Any ideas about this one?
Est-ce que quelqu'un a des idées sur mon sujet précis?
vanden
11th March 2013, 19:19
This is the same thread !?
http://forum.doom9.org/showthread.php?p=1615145#post1615145
tfboy
11th March 2013, 21:57
Sorry, blonde moment seeing different thread numbers...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.