Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1141 | Link |
Registered User
Join Date: Jul 2016
Posts: 4
|
Can this software be used to output losslessly to ISO?
The problem with makemkv is it doesn't properly support 3D planes for 3D subtitle depth. And I use the Mede8er external player, and it also doesn't seem to properly respect plane settings in mkv files - according to their forums it must be a 3D ISO for the Mede8er player to properly display the 3D subtitles according to the plane data. TSMuxer also seems to not properly read/handle the plane setting. So this software seems to be the only answer for handling the 3D subtitle depth settings properly. But by default it encodes to half-sbs. I'd like to be able to output to frame-packed ISO in order to keep the quality lossless as well as being compliant. If this is not possible, is there a way to use this software to at least help with the 3D plane issues with TSMuxer? Can I use this software to get the correct plane info, and then use that plane info in TSMuxer? Will TSMuxer handle the plane properly as long as I put the proper plane setting in? Last edited by macrea; 11th January 2017 at 21:46. |
![]() |
![]() |
#1142 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Welcome to the Doom9 forums, macrea !
I'm not sure I understand exactly what you want to do. It seems that you want "to output losslessly to ISO". That is easy to do and there are several free or commercial programs able to extract the video, audio and subtitle streams (including the MVC stream with the 3D-Planes) from an original 3DBD and write them unchanged to a new ISO, It's just a copy, and the 3D-Planes should not be lost. You have just to verify thet they are correctly assigned to your subtitle streams during the remux. I think that TsMuxeR can do that perfectly, and you can easily see the original 3D-Planes assignments and assign them to your subtitle streams with its GUI. Is it what you want? If it's the case, you don't need BD3D2MK3D at all, and the copy is really lossless. You wrote also "I'd like to be able to output to frame-packed ISO in order to keep the quality lossless as well as being compliant." The question is, what frame-packed format do you want? AVC+MVC like in the original BD3D? That's exactly what I have explained in the first paragraph. Or do you want to re-encode to AVC+MVC with the possibility to hardcode the subtitles? In that case, I don't think that there is a complete solution. Or do you just want to output as a single interleaved AVC stream (aka "Frame Sequential") and hardcode the subtitles? In that case, you can use BD3D2NK3D to generate the right frame sequential video stream, and use TsMuxeR to build the ISO. The 3D-Planes cannot be used with that kind of output, but since the subtitles are hardcoded, you don't need them any more. Anyway, only the first case is really lossless. BD3D2MK3D is not designed to re-encode in MVC, or to output to an ISO. It can only re-encode to SBS, T&B or Frame Sequential, and that 3 formats require only AVC encoding. That means that BD3D2MK3D doesn't have the MVC encoder to encode the right video streams for a 3DBD. So, if you want to re-create a real 3DBD with the AVC and MVC video streams, you need another encoder. And currently, the only free MVC encoder is the Intel encoder, used for example by FRIM. I can't help much more without knowing exactly what you want to do.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV Last edited by r0lZ; 12th January 2017 at 12:20. |
![]() |
![]() |
#1143 | Link | |
Registered User
Join Date: Jul 2016
Posts: 4
|
Quote:
As was described in your first paragraph, I want to remux to ISO without any re-encoding, keeping only the titles and subtitles I need, while keeping it compliant for burning if I want to. I have read in a couple places that TSMuxer has bugs/issues with handling planes correctly. From my understanding, TSMuxer won't show you the original planes. It just lets you select the plane you want to use. Is that incorrect? If you use the wrong plane for the subtltle (a different plane than originally on the disc), then the results will not work correctly. This is why I was wondering if BD3D2MK3D would be useful for finding which plane to use in TSMuxer. I did try using TSMuxer a while back, and it was a foreign animated 3D blu-ray with English subtitles. They must have messed up the planes on the disc because the subs are flat on the screen (plane zero?), cutting through lots of 3D objects and ruing the experience. After using TSMuxer, the subtitles still had the same problem. I'm new to this 3D planes thing, but am I right that the higher the number in TSMuxer, the farther out of the screen the subtitles are? I'd like to place them far enough out that they won't cut through objects. Any advice would be appreciated. I also read that some 3D films can have dynamic planes, which place the subs in different planes based on individual dialog, so one line might be on a different plane than another line, depending on the action on-screen. Can anybody suggest a better software solution than TSMuxer for this, or is TSMuxer recommended? |
|
![]() |
![]() |
#1144 | Link | |||||
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Quote:
So, yes, it is a good idea to use BD3D2MK3D to verify the 3D-Planes assignments shown by TSMuseR, even if most of the times there are no differences. Quote:
Quote:
Of course TSMuxeR cannot create new 3D-Planes automatically for that bad BDs. If the original subtitles are flat, it cannot fix the problem. (It should be possible to give a constant depth to unstick all subtitles from the surface of the stream, but afaik it's not possible currently.) Anyway, in your case, since you don't want to re-encode the video, the MVC stream will stay untouched, and if you use the correct 3D-Plane number, you should obtain exactly the same depths than in the original BD. Quote:
However, the depth values stored in the 3D-Plane itself represent the position along the Z axis of the subtitles. 0 means "on the surface of the screen", < 0 means beneath the screen, and of course, positive values mean toward the spectator. There is normally one depth value per frame in each 3D-Plane, but some depths may be undefined (hex 0x80) if there is no subtitle at that frame. Usually, the depths values range is around -10 to 25. The full range is -127 to 127. (Note also that in BD3D2MK3D, all depth values are multiplied by 2, for technical reasons and because that permits a better precision.) Unfortunately for you, you cannot create your own 3D-Planes easily, or modify an existing one. They must be attached to the MVC stream before the mux, and afaik there is no tool able to do that. You will therefore have to use a plane present in the original MVC stream, even if it is not perfect. BD3D2MK3D has some tools to analyse the content of a 3D-Plane and display some statistics (like the min, max and average depths or the number of undefined depths), but unfortunately for you, it can only analyse the 3D-Planes files extracted from the MVC stream, itself demuxed from the SSIF, so using that tools directly on the BD is impossible. Quote:
As you should have understood now, TSMuxeR is not responsible of the quality of the 3D-Planes. It has just to insert the correct 3D-Planes number(s) in the MPLS so that they correspond to the physical subtitle streams. Dot. Therefore, TSMuxeR can perfectly be used to assign the 3D planes (but as explained above, not to be sure of the 3D-Plane number to use). The rest depends of the 3D-Planes present in the MPLS stream. And authoring them yourself is another story, currently impossible or very difficult with free tools and without authoring the 3DBD yourself. (I hope that TSMuxeR doesn't have the same bug when it muxes than when it analyses a MPLS, but I can't be sure because I don't use it for that job. Anyway, since you remux just to regain some space, I suppose that you will not keep the useless phantom streams, and the 3D-Planes assignments should be straightforward.) Final note: I have adopted the terminology of TSMuxeR when I began to write BD3D2MK3D, but "3D-Plane" is not the official name. It is probably better to use "Offset Sequence" (hence the ".ofs" extension of the 3D-Plane files.)
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
|||||
![]() |
![]() |
#1145 | Link |
Registered User
Join Date: Jul 2016
Posts: 4
|
Thanks very much for all of this information. Very helpful indeed, though a bit confusing. I guess the bottom line is for my current situation, if the subtitles are flat on the screen already (cutting through objects), there's no current way of getting them off the screen and in front of the action, correct? That's unfortunate, but at least I know not to spend hours randomly trying different planes hoping it will work. I guess I'm stuck watching it without subtitles. At least I can enjoy the visuals. The subtitles wreck the enjoyment completely when they are flat on the screen.
|
![]() |
![]() |
#1146 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Yep, it's a good conclusion. Me too, my brain can't support the flat subtitles, and I would like to find a way to replace the bad 3D-Planes in the MVC, but as far as I know, currently it's impossible without re-encoding completely the video streams, and using professional or semi-pro authoring software. But note that I wrote "as far as I know". Personally, I'm not interested in keeping the original streams, and I wrote BD3D2MK3D to do just the opposite: to re-encode the oringnal 3DBD in a totally different and lighter 3D format. For that reason, I don't know exactly the possibilities of the tools used to re-create a BD from M2TS files or elementary streams. Perhaps it is already possible to attach the new or modified 3D-Planes to the MVC stream before re-muxing it, or during the remux process. Perhaps with Scenarist? Honestly, I don't think so, but I'm not sure. If you find a way to do it, please let us know.
Good luck anyway!
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
![]() |
![]() |
#1147 | Link |
Registered User
Join Date: Feb 2014
Posts: 61
|
If remuxing 3DBDs with Scenarist you could at least set a constant depth to the subtitles. Using a value of -7 worked for me so far, because the subtitles are then displayed way in front of the Screen and I've never seen a movie in which the subtitles cut through objects in this case.
Note that this does only work with original stream files. Reencoding with FRIM or MVCEnc corrupts the sei message inside the mvc stream and therefore makes it impossible to set any depth values... |
![]() |
![]() |
#1148 | Link | |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Thanks for the precisions.
Quote:
I remember I've read somewhere that Scenarist can accept .ofs files (with dynamic depths) as well. It's why I've changed the old BD3D2MK3D 3D-Planes file format from .3dp to .ofs (with just an additional header). I've never tried, but the new .ofs files should be compatible with Scenarist and/or other authoring programs or muxers. BTW, I wonder if it is possible to write a little exe that replaces the original values of one or all 3D-Plane(s) in an original MVC stream with modified values. Finding the right SEI messages and replacing the values is certainly possible, but I suppose that some checksums must be modified as well, and that's probably much more difficult. And that doesn't solve the problem of the missing SEI messages in re-encoded streams.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
|
![]() |
![]() |
#1149 | Link | |||
Registered User
Join Date: Feb 2014
Posts: 61
|
Quote:
The value of -7 is just my personal experience. I did quite a few remuxes of 3D Blurays with their according subtitles and a value of -7 was never distracting when watching the movies. Also I noticed that higher values result in more Ghosting effects on some TVs, because of the higher discrepancy between left and right... Ghosting appears often if White objects are on black Background, and this is exactly how subtitles are often displayed. So, I think you could start testing a bit using -7. I wouldn't take less, but of Course a bit more couldn't be that bad either ![]() Quote:
Quote:
Of Course, if some checksums are applied it wouldn't work that easily, but it certainly would be worth investigating I assume. Perhaps if we knew how the SEI message Needs to be inserted inside the stream, we could also just add it to FRIM-encoded streams after encoding?!? |
|||
![]() |
![]() |
#1150 | Link | |||
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Quote:
For the 7 (or -7) value, I fully agree that it's a good starting point. At least if the values in Scenarist are equal to the values in the .ofs files (except the sign). Usually, for a constant depth, I try with something between 6 and 10 depending of the movie, but there are usually at least 10 or 20 subtitles that need manual adjustments. A constant depth of 20, for example, will certainly require less adjustments, but the subtitles are so far from the screen that it's certainly not a value to recommend. Note also that BD3D2MK3D offers also another way to be sure that the subtitles do not enter in the objects. When a movie is shot in Cinemascope format, it has large horizontal black borders. In the last tab, you can move the picture up in the screen, and if the bottom border is large enough, the subtitles will appear in that border, beneath the picture. That's not perfect, but it's less unpleasant than subtitles entering the objects. Anyway, it's not a solution when the video is not re-encoded. Quote:
Quote:
As I wrote, it might be difficult to do it due to checksums or other difficulties. My knowledge of the structure of the MVC stream is not sufficient to be sure that it's possible, but I can do some little tests. But is it really interesting? What will be the benefit of replacing a 3D-Plane in an original MVC stream (supposed to contain already good 3D-Planes) with a constant depth? Without a full 3D-Subtitles editor, that doesn't make much sense. Adding totally new SEI messages in the MVC stream is also a big challenge. I don't even know if it's the job of the MVC encoder, of the muxer or even of a dedicated application. Finally, I'm not sure I'm the right person to develop a program to generate or replace 3D-Planes. BD3D2MK3D is not at all dedicated to do that. It does exactly the opposite and uses the original 3D-Planes only to create "3D Subtitle" streams for SBS or T&B format. I have no intention to write something to modify the existing 3DBD and recreate an ISO. However, I have some free time right now, and I will try to modify manually the 3D-Planes of an original MVC, and see if it is still accepted by the muxer and the players. If it's the case, it might be interesting to investigate further...
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV Last edited by r0lZ; 17th January 2017 at 12:17. |
|||
![]() |
![]() |
#1151 | Link | |||
Registered User
Join Date: Feb 2014
Posts: 61
|
Quote:
Quote:
Quote:
![]() And then we could also look into inserting the SEI Messages to FRIM Encodes, which could be very useful, because every re-encode now has the Problem of missing depth for the subtitles... So I think we could learn a bit from this. |
|||
![]() |
![]() |
#1152 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
I agree, and I did the test.
I've just replaced all depth values in a short clip with constant values. The original BD has 32-planes, all of them being undefined (containing the value 0x80, meaning "not defined" for all frames of all 3D-Planes). I've replaced plane #0 with constant depth 1, plane #1 with depth 2, and so on up to depth 32. Then I've remuxed the BD with TsMuxeR and assigned planes #5 and #31 to the two subtitle streams. The final ISO can be read without problem with any software player, but that's not surprising, since they don't use the MVC stream. So, I burned the ISO, and my Samsung 3D BD player has played the movie in 3D without problem, and the two subtitle streams are at the right depth. :-) So, it seems that it is at least possible to replace the existing depth values with other ones without problem. Adding new 3D-Planes to a remuxed MVC is another problem, and I can't and don't want to do that. Perhaps Videofan3D for FRIM? Or Roman if he decides to continue to develop TsMuxeR? Anyway, it's not something to integrate in BD3D2MK3D, that does just the opposite.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
![]() |
![]() |
#1153 | Link | |
Registered User
Join Date: Feb 2014
Posts: 61
|
Quote:
Awesome that you got it working! So how did you do it?? Was it enough to just replace the depth values?? Or was there any checksums etc. which you needed to modify as well?? So, we can definitely add depth to original mvc encoded files, if they have plain subtitles but the correct sei Header, that's something! Regarding frim encodes: Is the SEI message always stored at the same Offset inside the mvc stream?? Perhaps we could just copy the Header and SEI info from another original mvc file and inject it into a frim-encoded mvc file?? Anyways, I understand that you don't want to look into that issue. Perhaps @videofan3D could take a look into it as we now know that modifying sei message values is definitely possible?? It should be possible to let FRIM insert them correctly as well (or Keep the original depth values intact)! This would be awesome, because it's really the last Thing we cannot do with free Tools regarding 3D Encoding or backups. Thanks r0lZ for your tests!! |
|
![]() |
![]() |
#1154 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
I've just replaced the depth values, without touching anything else. I have no idea of what should be changed to add new 3D-Planes instead of simply overwriting existing planes, but I know that there must be one SEI message with the 3D-Planes per GOP (hence the different number of frames in many message). IMO, the difficulty is not the SEI message itself or its header (and the content of the 3D-Plane header within the SEI message is more or less known). It is certainly possible to build new messages from scratch, but IMO it is more difficult to know where they have to be inserted in the original MVC stream, and how the MVC stream must be modified if necessary. And that's beyond my knowledge.
Unfortunately, it is impossible to keep the original depth values intact, as you suggest, because the MVC stream is re-encoded by the Intel encoder, and it doesn't have an option to add or copy the 3D-Planes, If it's possible, FRIM will have to analyse the bitstream it receives from the Intel encoder, and add the messages when appropriate. Or just do a second pass to add them afterwards. I really don't know. Anyway, I did that test just out of curiosity, and in the hope that someone else will be interested in developing something really usable, but as I wrote above, it's not useful for BD3D2MK3D, so that will not be me. BTW, normally, Scenarist should be able to build a BD with the 3D-Planes. I don't know if it does it correctly, and you wrote that the OFS files saved by BD3D2MK3D are not taken into account, but Scenarist may perhaps be used to add the 3D-Planes to the MVC stream only, and tsMuxeR may still be used for the mux and to build the ISO. That should work. Anyway, currently, it's probably the only solution available to add the 3D-Planes to a re-encoded MVC.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV Last edited by r0lZ; 22nd January 2017 at 16:14. |
![]() |
![]() |
#1155 | Link |
Guest
Posts: n/a
|
Hi,
i have not used your program for a while and now i have used it again but the image is too narrow or squeezed. The movie has not the full height, no matter what player i use (Infuse, MrMC or Plex on my AppleTV 4). I don't know what it is or where the problem is. I tried the Fullsize-Option instead of Halfsize-Option but then the image/video is even narrower. Last edited by Triple-M; 22nd February 2017 at 07:52. |
![]() |
#1156 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Hum, I really don't know what could be the cause of the problem, but for Full-SBS or T&B, you should try to play with Settings -> Full-SBS/T&B aspect ratio. However, that options only affect the aspect ratio in "full" mode and should have no impact when using half-SBS or half-T&B. But try it anyway, as it is well known that the correct aspect ratio settings to use are not clearly defined for SBS or T&B and the selected aspect ratio may not be correctly supported by your player or hardware.
For Half-SBS/T&B, the aspect ratio cannot be changed via the GUI because, until now, the settings used by BD3D2MK3D have always worked perfectly with all players and hardware. But you can try to change them manually in the project files before launching the encoding. The following settings may have an impact on the final aspect ratio: In __ENCODE_3D.cmd: Code:
--sar 1:1 (This setting affects the h264 elementary video stream. That means that you have to re-encode the whole movie if you want to test another value. I suggest to do your tests with a short clip.) In __MUX_3D_OPTIONS.txt: Code:
--aspect-ratio 0:16/9 (This setting is only stored in the MKV header, and therefore you can simply launch __MUX_3D.cmd after having modified it to regenerate the final MKV without having to re-encode the movie. It is also possible to modify that value directly in the MKV with mkvtoolnix.) If you can find a setting that works fine for you, please let me know and I'll add an option to control the required settings in the GUI. What is the option you have selected for the 3D format? Half-SBS or half-T&B? And can you confirm that the image is squashed by a factor of two (in other words, can you confirm that the image is twice as high or large than it should be? If it's the case, that may mean that indeed, one of the settings above must be changed, although IMO it is the responsibility of the player to handle correctly the aspect ratio of the 3D movies. (It's also why a 3D movie MUST ALWAYS be encoded in full 16:9, without cropping the black borders, as many TVs assume that a 3D movie must always be played full-screen, regardless of the aspect ratios stored in the file. It seems that it's not the case of your AppleTV.)
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV Last edited by r0lZ; 22nd February 2017 at 12:10. |
![]() |
![]() |
#1157 | Link |
Guest
Posts: n/a
|
I tried to watch the 3D Movie (the mkv, not the Bluray) on my Panasonic 4K UHD Player and there the Movie looks normal. Under the Player MrMC in my Apple TV i can change the Pixel Ratio in the options from 1.00 to 0.50 and then the Movie Looks normal. Sorry i'm no Profi and i don't know what to do.
Last edited by Triple-M; 22nd February 2017 at 20:17. |
![]() |
#1158 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
So, you have a solution for your Apple TV if you use the MrMC player, and you don't need a modification of BD3D2MK3D. Right?
The problem is that there is no established standard for the aspect ratios of the SBS and T&B frame packings. It is possible to consider that the specified aspect ratio gives the display aspect ratio (DAR) of the original image or the DAR of the target image, and it's very different. In Full-SBS, for example, the original DAR is 32:9, because there are 2 images side by side (3840x1080 pixels), but when the movie is played, the original image is split in two 16:9 views (1920x1080 pixels each). In Full-SBS, the sample aspect ratio (SAR) is 1:1 for the original and target images. In the other hand, for the Half-SBS mode, the DAR of the original and target images are 16:9, but it's different for the SAR, since the image must be stretched horizontally. Unfortunately, due to the lack of a well established standard, the player is free to consider that the DAR and/or SAR are specified for the original or target image, and there is no good solution for BD3D2MK3D. It's why there is an option in BD3D2MK3D, but currently only for the two Full modes because I have never needed to specify different aspect ratios in Half-SBS or Half-T&B. Since your MrMC player allows you to overwrite the SAR manually with a pixel aspect ratio (PAR), it is open to the two solutions, but you should encode the best SAR and DAR anyway. But take care! As you know now, it's not because a specific combination of SAR and DAR values works fine with a specific player that it will work correctly with all players. BTW, I forgot to explain that you can also remove completely the "--sar 1:1" option in __ENCODE_3D.cmd. If I remember correctly, old versions of BD3D2MK3D did not specify that parameter at all, and that may be what you need to let the player deduce the SAR from the specified PAR in the MKV header. If the problem of the wrong aspect ratio has appeared recently and is not due to a change in your hardware or software, that may be the best solution. Try it! But I don't know if the SAR is forced by x264 or x265 to 1:1 anyway when it is not specified explicitly, and therefore I don't know if removing that argument will have a real effect. Note also that most players will take only one of the two specified aspect ratios into account. If, say, the 1:1 SAR works fine with a specific player, you may have to check the different possibilities of the DAR with the other players. You have to experiment to find the best solution for your player(s). And remember that I can modify BD3D2MK3D if you need different parameters for the SAR and/or DAR in Half-SBS or Half-T&B modes.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV Last edited by r0lZ; 23rd February 2017 at 13:34. |
![]() |
![]() |
#1160 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,468
|
Perhaps, indeed. I don't know if the Panasonic TVs handle the aspect ratios of the 3D movies differently than the vast majority of the players, but that may be the case. Or is it a setting to change that behaviour in the Panasonic TV?
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|