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.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th October 2019, 06:38   #1  |  Link
ai4spam
Programmer
 
ai4spam's Avatar
 
Join Date: Sep 2003
Posts: 382
Convert .mk3d to SBS

How can I convert a mk3d file into a SBS file? BD3D2MK3D does the opposite.
ai4spam is offline   Reply With Quote
Old 13th October 2019, 09:33   #2  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,402
A MK3D file is already a 3D movie (more precisely, a MKV file with 3D content). Why do you want to convert it again ?

However, if your MKV file is a file containing the original AVC and MVC video streams, copied without re-encoding by MakeMKV, then you can use BD3D2MK3D (in MKV input mode) to create a SBS. But normally, that kind of 3D MKV has the regular .mkv file extension, not .mk3d.

If you need more help, tell me exactly what is inside your mk3d file.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 22nd October 2019, 10:45   #3  |  Link
ai4spam
Programmer
 
ai4spam's Avatar
 
Join Date: Sep 2003
Posts: 382
Thank you for your reply. I need to convert it because I don't know how else to play it on my older LG 3D TV. I tried BD3D2MK3D, it tells me that my file does not contain the streams it wants (no MVC). Here is what MediaInfo says:

Quote:
General
Format : Matroska
Format version : Version 4
File size : 36.9 GiB
Duration : 2 h 1 min
Overall bit rate mode : Variable
Overall bit rate : 43.3 Mb/s
Encoded date : UTC 2019-07-22 16:52:12
Writing application : mkvmerge v35.0.0 ('All The Love In The World') 64-bit
Writing library : libebml v1.3.9 + libmatroska v1.5.2

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Stereo High@L4.1 / High@L4.1
MultiView_Count : 2
MultiView_Layout : Both Eyes laced in one block (left eye first)
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 1 min
Bit rate mode : Variable
Bit rate : 37.1 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.746
Stream size : 31.6 GiB (86%)
Title : MPEG-4 AVC Video / 13145 - 23933 kbps / 1080p / 23.976 fps / 16:9 / High Profile 4.1
Language : English
Default : Yes
Forced : No
So, how can I make a SBS out of this?

Last edited by ai4spam; 23rd October 2019 at 16:18.
ai4spam is offline   Reply With Quote
Old 22nd October 2019, 23:43   #4  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,402
I see in the MediaInfo log: MultiView_Layout : Both Eyes laced in one block (left eye first). It's probably the frame sequential 3D format (FS for short). Unfortunately, it's a format that can be created by BD3D2MK3D, but not opened. There is little sense in converting a 3D movie to FS, then again from FS to SBS. It's two time a lossy conversion.

Your FS version is big: 36.9 GB ! That means that the quality of the video is probably high, but it is difficult to convert it again, as FS is a final 3D format to be played with some specific players (mainly projectors), not a format intended to be converted.

Anyway, BD3D2MK3D cannot help. I suggest to convert your movie from the original BD directly to SBS with BD3D2MK3D. You can use MakeMKV to create a AVC+MVC 3D MKV that you will probably be unable to play, but that can be opened by BD3D2MK3D.

It is theoretically also possible to convert your MKV to SBS, but that require a good knowledge of the Avisynth scripting, and you will need also a few other programs. Honestly, I can't explain how to do it without your MKV file.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 23rd October 2019, 09:10   #5  |  Link
ai4spam
Programmer
 
ai4spam's Avatar
 
Join Date: Sep 2003
Posts: 382
VideoHelp to the rescue: https://forum.videohelp.com/threads/...ide-by-side-3D
Except AviSynth thinks the video has half the frames, so the approach suggested there does not work, it just picks every other frame instead of the left/right frames.

Last edited by ai4spam; 23rd October 2019 at 16:15.
ai4spam is offline   Reply With Quote
Old 24th October 2019, 08:28   #6  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,402
I don't understand. IMO, the script in the second post is correct (assuming your movie is really encoded in FS format). Here it is, with some comments:
Code:
WhateverSource()  # I would use: FFMpegSource2("movie.mkv")
left=SelectEven().BilinearResize(width/2,height)  # This select only half the frames, normally the frames for the left eye, and resize them
right=SelectOdd().BilinearResize(width/2,height)  # This select only half the frames, normally the frames for the right eye, and resize them
StackHorizontal(left,right)  # Creates the SBS by concatenating the left and right frames, and returns the resulting movie
Of course, it is normal that the number of frames in the input file is divided by two in the output, since the left and right frames are now concatenated. You can verify that with the avisynth command info() and a player that can play an avisynth file. Or better, I suggest to use AVSPMod to edit and verify your script (64-bit version here).
And to create the x264 stream from it, you can use Simple x264 Launcher. And use mkvtoolnix for the MKV.
__________________
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; 24th October 2019 at 08:49.
r0lZ is offline   Reply With Quote
Old 26th October 2019, 07:14   #7  |  Link
ai4spam
Programmer
 
ai4spam's Avatar
 
Join Date: Sep 2003
Posts: 382
Well, the problem with that script is that AviSynth (and VirtualDub2, for example) don't actually show double the number of frames, so that choosing the even and odd frames would be getting the left and right views. Instead, it only gets the left view frames, and has no idea how to get the right view frames.
There seems to be talk about ssifSource2 and h264stereosource as AviSynth plugins, but no reputable sources to get them or instructions how to use them.
ai4spam is offline   Reply With Quote
Old 26th October 2019, 08:48   #8  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,570
Quote:
Originally Posted by r0lZ View Post
I see in the MediaInfo log: MultiView_Layout : Both Eyes laced in one block (left eye first). It's probably the frame sequential 3D format (FS for short). Unfortunately, it's a format that can be created by BD3D2MK3D, but not opened.
Are you sure? Sounds to me like it is MVC as created by MakeMKV from a standard 3D Blu-Ray. (Which BD3D2MK3D can convert to SBS, right?)

The important part seems to be:
Code:
Format profile                           : Stereo High@L4.1 / High@L4.1
MultiView_Count                          : 2
This just means the track has the 3D flag (13) in MKV container:
Code:
MultiView_Layout                         : Both Eyes laced in one block (left eye first)

Last edited by sneaker_ger; 26th October 2019 at 08:52.
sneaker_ger is offline   Reply With Quote
Old 27th October 2019, 10:39   #9  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,402
Quote:
Originally Posted by sneaker_ger View Post
Are you sure? Sounds to me like it is MVC as created by MakeMKV from a standard 3D Blu-Ray. (Which BD3D2MK3D can convert to SBS, right?)
Yes, and BD3D2MK3D rejects the file. Therefore, it's not AVC+MVC 3D.

Quote:
Originally Posted by sneaker_ger View Post
The important part seems to be:
Code:
Format profile                           : Stereo High@L4.1 / High@L4.1
MultiView_Count                          : 2
Yes, and the problem is "High@L4.1 / High@L4.1". For AVC+MVC it should be "High@L4.1 / MVC", as the dependent view is NOT encoded in h264.
The count of 2 views is obviously always 2 for stereo and doesn't inform of the packing format.
So, this tells us only that the two views have been encoded separately. That can be AVC+MVC or Frame Sequential.

Quote:
Originally Posted by sneaker_ger View Post
This just means the track has the 3D flag (13) in MKV container:
Code:
MultiView_Layout                         : Both Eyes laced in one block (left eye first)
Yes, and it's the flag that BD3D2MK3D sets when it encodes in FS. So, it's not an evidence that the file is encoded in AVC+MVC. Unfortunately, there is no specific flag for the stereo-mode in the MKV container, or for the frame-packing in the video stream, so unfortunately, the flags are useless to distinguish AVC+MVC from FS.

I can only trust ai4spam:
Quote:
Originally Posted by ai4spam View Post
I tried BD3D2MK3D, it tells me that my file does not contain the streams it wants (no MVC).
So, it must be FS, no ?
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 27th October 2019, 10:58   #10  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,402
Quote:
Originally Posted by ai4spam View Post
Well, the problem with that script is that AviSynth (and VirtualDub2, for example) don't actually show double the number of frames, so that choosing the even and odd frames would be getting the left and right views. Instead, it only gets the left view frames, and has no idea how to get the right view frames.
Strange. AFAIK, all frames are visible in a FS video. I will do a test here...
Quote:
Originally Posted by ai4spam View Post
There seems to be talk about ssifSource2 and h264stereosource as AviSynth plugins, but no reputable sources to get them or instructions how to use them.
SSIFSource, is obsolete, and given its name, it can only open a BD SSIF file, not a MKV.
I don;t know (or remember) how h264stereosource works.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 27th October 2019, 11:33   #11  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,570
Quote:
Originally Posted by r0lZ View Post
Yes, and the problem is "High@L4.1 / High@L4.1"
It say "Stereo High".

Wikipedia:
Quote:
Stereo High Profile (128)
This profile targets two-view stereoscopic 3D video and combines the tools of the High profile with the inter-view prediction capabilities of the MVC extension.
https://en.wikipedia.org/wiki/Advanc...oding#Profiles


Either way MediaInfo notation does not always follow exact wording from the specs so discussion about that is moot.
sneaker_ger is offline   Reply With Quote
Old 28th October 2019, 12:04   #12  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,402
The problem is that, as far as I know, the stereoscopic MKV files with AVC+MVC can only be produced by MakeMKV. And that files can easily be opened bu BD3D2MK3D. Therefore, it MUST be something else. I don't know what, but I suspect some kind of frame sequential (aka frame-alternate) packing. And for that packing, the Avisynth script above should work. So, I don't understand why the two methods fail.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 28th October 2019, 13:18   #13  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,570
@ai4spam
Please cut a short sample from the file using mkvtoolnix and upload it somewhere.
sneaker_ger is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:05.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.