INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MakeMKV 3D support?  (Read 12148 times)

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
MakeMKV 3D support?
« on: August 19, 2014, 05:56:13 am »

While we wait, (maybe a very long time) for native 3D support, would it be possible for MC20 to detect the multiview flag in a 3D MKV and launch an external player?
Alternatively, on import, scan for the multiview flag and put it into a 3D field in the database? So I can set a rule up for that field to play in an external player.
It would get around having to mount ISOs and messy scripts to detect 3D ISO.

The example below from mediainfo shows the multiview_count = 2 which means its a MVC 3D MKV that I ripped with MakeMKV.

Code: [Select]
Complete name                            : X:\Pompeii.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 21.4 GiB
Duration                                 : 1h 44mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 29.2 Mbps
Movie name                               : Pompeii
Encoded date                             : UTC 2014-08-19 10:30:25
Writing application                      : MakeMKV v1.8.12 win(x64-release)
Writing library                          : libmakemkv v1.8.12 (1.3.0/1.4.1) win(x64-release)
Attachment                               : Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Stereo High@L4.1 / High@L4.1
MultiView_Count                          : 2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=3, N=24
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 44mn
Bit rate mode                            : Variable
Maximum bit rate                         : 25.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Language                                 : English
Default                                  : No
Forced                                   : No
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 1h 44mn
Bit rate mode                            : Variable
Bit rate                                 : Unknown / 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy
Title                                    : Surround 5.1
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 1h 44mn
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 1.11 GiB (5%)
Title                                    : Surround 5.1
Language                                 : English
Default                                  : No
Forced                                   : No

Text
ID                                       : 4
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:Chapter 01
00:00:30.030                             : en:Chapter 02
00:09:24.605                             : en:Chapter 03
00:17:03.480                             : en:Chapter 04
00:26:02.352                             : en:Chapter 05
00:34:18.056                             : en:Chapter 06
00:44:28.832                             : en:Chapter 07
00:50:54.634                             : en:Chapter 08
01:00:18.281                             : en:Chapter 09
01:09:01.512                             : en:Chapter 10
01:15:41.578                             : en:Chapter 11
01:23:40.181                             : en:Chapter 12
01:34:32.708                             : en:Chapter 13
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #1 on: August 19, 2014, 06:49:29 pm »

I found a work-around to this that's just one extra step that works for me for now.

Rip main movie from BD to 3D MVC MKV with MakeMKV (this interleaves the 2 left+right m2ts files into a single MKV container with subs and audio streams)
Use tsremuxer to remux back to a m2ts file (this recreates a single interleaved m2ts file)
Since I don't use m2ts for anything else, I set m2ts file type in MC20 to open in stereoscopic player and stereoscopic automatically detects the 3D and outputs framepacked 3D (using Nvidia 3DTV play)

The other advantage of this is that some TV's and media streamers will also automatically detect the 3D and activate full 3D framepacking too.
MVC MKV isn't a universal standard yet but apparently 3D m2ts is. (AVCHD)

Downside.
No chapter support in stereoscopic player, but I rarely use chapters unless watching TV series.
Its stereoscopic player....
I've tried a couple other players, PowerDVD, TMT6.7 but they wont detect the 3D stream. I'll keep looking for other solutions. I'll crack this problem one way or another!

Still need to find a player that will support chapters.
Still need to use hotkey scripts but they are more reliable now than when I was working with the 3D ISO detection scripts.
Still need to find a way to use JRiver DSP for audio output. (didn't try loopback but will give that a try next)





Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: MakeMKV 3D support?
« Reply #2 on: August 19, 2014, 06:57:37 pm »

Thanks for the workaround. I do use 2D mt2s as well, so this won't work for me, but it gives me some ideas.
Can Stereoscopic player play DTS-HD MA and TrueHD?
I was holding out *some* hope for MC before buying Stereoscopic Player.
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #3 on: August 19, 2014, 07:00:16 pm »

I didn't check whether it plays the core DTS or the full DTS-HD MA but it certainly detects the full DTS-HD MA audio. (I think it does decode too)
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #4 on: August 19, 2014, 10:14:45 pm »

Another option I've seen that I'll try tonight is converting the 3D m2ts back to a simple bluray ISO. Apparently any 3D compatible BD player will then play it in 3D. (TMT, PowerDVD etc)
If I understand correctly, this way there's no menu just an ISO with whatever audio and video you packed in the M2TS which reduces the size significantly and speeds up startup and playback.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: MakeMKV 3D support?
« Reply #5 on: August 20, 2014, 02:10:08 am »

You may find this of use if you go the BD route
http://yabb.jriver.com/interact/index.php?topic=81259.0
Logged
JRiver CEO Elect

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10944
Re: MakeMKV 3D support?
« Reply #6 on: August 20, 2014, 02:20:09 am »

If you name those MKV files .mk3d, you would have something to go by automatically.
Otherwise MC won't really be able to tell them apart.
Logged
~ nevcairiel
~ Author of LAV Filters

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #7 on: August 20, 2014, 02:29:53 am »

You may find this of use if you go the BD route
http://yabb.JRiver.com/interact/index.php?topic=81259.0


Yep I've already contributed to that thread.. thanks for the script which I've made quite a few mods too. This is the script that I'll be further modding for the M2TS, mini ISO or MK3D playback once I work out the best path forward.

If you name those MKV files .mk3d, you would have something to go by automatically.
Otherwise MC won't really be able to tell them apart.

Thanks I had actually already tried that file extension with a few players as it was mentioned some of them should play in 3D with this file type, but I think that only applies to SBS/OAU and I couldn't get them to even play in TMT.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: MakeMKV 3D support?
« Reply #8 on: August 20, 2014, 02:52:23 am »

If you name those MKV files .mk3d, you would have something to go by automatically.
Otherwise MC won't really be able to tell them apart.

Likewise, can JR:
1) add a new File Type called "3D-Blu Ray".  The default "Playback Method" would be "Automatic" (and RO would play it as a 2D Disk thanks to LAV) but if a user selected "External Program (Custom)" we could then put in "C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe"  MC would need to add the drive identifier as the "Argument"
2) On inserting a BD (or mounting it) Identification that it is a 3D BD disk is easy as it has a folder called "\BDMV\STREAM\SSIF" which is not on 2D disks

http://yabb.JRiver.com/interact/index.php?topic=77211.0


...then no 3rd party script is required for 3D Detection!
Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #9 on: August 20, 2014, 03:09:09 am »

Yes but as you noticed in your other thread there's still the need to turn 3DPlay on and off with a script or you don't get the proper timings and 3D will always activate with 24p material if you leave it turned on.
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #10 on: August 20, 2014, 03:47:22 am »

Another option I've seen that I'll try tonight is converting the 3D m2ts back to a simple bluray ISO. Apparently any 3D compatible BD player will then play it in 3D. (TMT, PowerDVD etc)
If I understand correctly, this way there's no menu just an ISO with whatever audio and video you packed in the M2TS which reduces the size significantly and speeds up startup and playback.

So far so good..
Converted 3D M2TS back to bluray ISO with tsMuxer in 8 mins and it all plays properly in 2D in MC20 with just the main movie, the 2 audio streams and forced subs.

Time to try 3D and also a bluray folder instead of ISO with TMT................ no cigar!

No Luck with the mini ISO playing back in 3D with TMT or PowerDVD, however PowerDVD detected the MVC encoding, so it may be a limitation of the trial with PowerDVD.

There maybe a flag that needs to be set somewhere that TMT isn't picking up. The SSIF file is there on the ISO from the remux and stereoscopic player will playback the ISO properly in framepacked 3D using the SSIF file. But Stereoscopic player already plays back MVC MKV in framepacked 3D so its a waste of time reconverting back to ISO at this stage.
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #11 on: August 20, 2014, 08:56:44 am »

Ok so I take it back..

The BD ISO I made with tsmuxer DOES work in both TMT and PowerDVD as a full framepacked 3D video.

With all the software installation and changes my Nvidia drivers had gone a bit screwy.

A reinstall fixed it and now the process of mounting the mini ISO with just the main movie with DTS and DTSHD-MA audio and forced subs works perfectly.

Just to recap:

Rip and decode just the main movie with the audio tracks and subs that you want to a 3D MVC MKV with MakeMKV.
Remux back to a BD ISO with tsmuxer(Gui)
Mount with whatever your fav ISO mount tool is (I use the free DVDFab virtual drive)
Turn on whatever your 3D framepacking driver is (mine is Nvidia 3Dplay)
Run TMT or PowerDVD and you go straight to the movie in 3D with no menus, ads or FBI copyright stuff.

I use the same custom 3D BD hotkey script to automate all this based on JMones work for the 3D ISO mount script he put together.

The result is the 3D ISO is 23GB (half the original 45GB) and still plays at full original 3D and DTS-HD MA quality.
It also loads faster and as mentioned goes straight to the main movie because there's no java menus.
I can also still select either the DTS or DTS-HD MA audio streams and subs from the players menu.
And importantly Chapters still work!



 
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: MakeMKV 3D support?
« Reply #12 on: August 20, 2014, 10:09:43 am »

Likewise, can JR:
1) add a new File Type called "3D-Blu Ray".  The default "Playback Method" would be "Automatic" (and RO would play it as a 2D Disk thanks to LAV) but if a user selected "External Program (Custom)" we could then put in "C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe"  MC would need to add the drive identifier as the "Argument"
2) On inserting a BD (or mounting it) Identification that it is a 3D BD disk is easy as it has a folder called "\BDMV\STREAM\SSIF" which is not on 2D disks

http://yabb.JRiver.com/interact/index.php?topic=77211.0


...then no 3rd party script is required for 3D Detection!

Next build:
Changed: 3d blu-rays are categorized differently (use Update Library (from tags)) so that it's possible to configure external playback on the type bdmv3d.
Logged
Matt Ashland, JRiver Media Center

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: MakeMKV 3D support?
« Reply #13 on: August 20, 2014, 04:02:48 pm »

 ;D thanks Matt.  Will test on the weekend when Im back and update the thread and wiki on this
Logged
JRiver CEO Elect

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: MakeMKV 3D support?
« Reply #14 on: August 20, 2014, 06:10:54 pm »

I shall test this tonight. I did and update library from tags on all my iso files, some of which are 3D. I also did the file association for BDMV3d, and will configure TMT6 as the external app to launch them.

Is that about right?
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #15 on: August 21, 2014, 05:20:50 am »

Brilliant stuff works as advertised! :)

Changed file type tag to bdmv3d for the ISO in the library
Changed playback method for 3D Blu-ray to custom external player in Options>file types>Video>3D Blu-ray
Set the external program as "C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe"
No argument needed

It starts instantly!

Now just have to work out how to automate the Nvidia 3D mode switch so that not all 24P content tries to play as 3D framepacked video.

Done!
Created this batch file and then converted it to run as a hidden exe with this site > http://www.f2ko.de/programs.php?lang=en&pid=ob2e

I then set 3dbluray.exe as a custom external program to enable 3D, then launch TMT, and disable 3D when TMT is closed.

Code: [Select]
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable


"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe"


"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

exit

 
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #16 on: August 21, 2014, 07:28:04 am »

Just realised I was loading an already mounted ISO when testing.
I need to pass an argument somewhere and I cant get it to work.
If there's nothing mounted I just get TMT6 with no ISO mounted?


I tried changing default ISO in MC to default external program
I tried parsing a custom field with the default ISO mount drive letter
Ive been through all the ISO threads and wiki with no luck?
Any tips?
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: MakeMKV 3D support?
« Reply #17 on: August 21, 2014, 10:22:04 am »

Thanks for the info so far, Hiltonk. You had much more success than I did. I will follow your steps. At one point, as you must have observed, every 24p video was playing back as if 3d, and changing the light output of my projector, (and also playing as audio only).

I'll try the nvidia batch file - thanks for that too.
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #18 on: August 22, 2014, 10:20:21 am »

Ok so I've finally got it sorted.

It's a little unconventional but it works 100% of the time. :)



3Dmount.bat as the custom external program edit: oh and set argument as [Filename]

Code: [Select]
@echo off
SET INPUT1=%1
SET ISOFileNamePath=%INPUT1%

SET ISOmount="C:\Program Files\DVDFab Virtual Drive\vdrive.exe"

%ISOmount% /M:0 %ISOFileNamePath%

call C:\TMTstart.bat

"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

%ISOmount% /U:0

TMTstart.bat
Code: [Select]
:start

cls

"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe"
cls

Echo Press a key to return to Media Center
pause

Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #19 on: August 23, 2014, 09:17:38 am »

Some more changes and now the batch file runs invisible with wscript.

I can now play my whole 40 3D titles without a hitch.
I added some timeouts to the batch file which might need to be tweaked depending on your system and ISO mount tool.

Here's the new visual basic script that kicks it all off and makes it invisible.
Copy this text into notepad and save it as invisible.vbs
Set JRiver to run this as a custom external program for bdmv3d with the argument [filename]
I renamed all my ISO's to remove spaces in the filenames as scripts sometimes don't like being passed the quotes you need around filenames with spaces in them.

You may need to adjust the path for the 3Dmount.bat and of course your ISO mount program and 3D switch for your video driver if you need it.

invisible.vbs
Code: [Select]
Set WshShell = CreateObject("WScript.Shell")
For Each a In WScript.Arguments
  arg = arg & " " & a
Next 'a
WshShell.Run "C:\3Dmount.bat" & arg, 0
Set WshShell = Nothing


And some tweaks to the 3Dmount.bat that the wscript calls

3Dmount.bat
Code: [Select]
SET INPUT1=%1
SET ISOFileNamePath=%INPUT1%

SET ISOmount="C:\Program Files\DVDFab Virtual Drive\vdrive.exe"

%ISOmount% /M:0 %ISOFileNamePath%

timeout 1

mc20.exe /stop

timeout 1

REM mc20.exe /stop

REM timeout 1

call C:\TMTstart.bat

"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable

%ISOmount% /U:0

And finally some tweaks to the TMTstart.bat which starts TMT (from the call in 3Dmount.bat), to make sure MC doesn't start playing the ISO.
TMTstart.bat
Code: [Select]
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable

timeout 1

mc20.exe /stop

timeout 1

start /w "" "C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe"

Someone else with better programming skills than me could probably do this all in vbscript but I cant be bothered. :)

Now I can run all my 3D blurays from theatre view with just a remote and with minimal screen flickering between the app switch to TMT and back.

I just have to reauthor all my discs now down to just movie and subs only to speed the movie start up a bit by bypassing the menus etc.

PS. for testing purposed just load the 3Dmount.bat from MC instead of invisible.vbs .
If everything is working, just change MC to load the invisible.vbs and your all set!
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: MakeMKV 3D support?
« Reply #20 on: August 23, 2014, 11:16:33 pm »

Just tested and the New File Association for 3D file association works for items in the library that have been tagged  ;D but not for physical Discs (or untagged ISO) that are "played".  These still play in MC instead of using the details from the File Setting. 

As a suggestion, you may need to also add under Tools --> Options --> File Types --> Other a "3D Blu-ray" option as well as the existing "Blu-ray" as well?

Thanks
Nathan
Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #21 on: August 24, 2014, 01:15:23 am »

Just tested and the New File Association for 3D file association works for items in the library that have been tagged  ;D but not for physical Discs (or untagged ISO) that are "played".  These still play in MC instead of using the details from the File Setting. 

As a suggestion, you may need to also add under Tools --> Options --> File Types --> Other a "3D Blu-ray" option as well as the existing "Blu-ray" as well?

Thanks
Nathan

Yeah, 3D ISO discs don't get detected so I changed all my 3D ISO filetype tags to bdmv3d to get around it.

Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: MakeMKV 3D support?
« Reply #22 on: August 24, 2014, 01:24:20 am »

Sure, but if you just put in a BD 3D disk it is treated as a "normal" BD.  The new option just needs to be extended to the Disk part of the options then both ISO and Physical media will be checked and treated correctly as well as files.
Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: MakeMKV 3D support?
« Reply #23 on: December 30, 2014, 06:33:57 am »

Hi Can this be moved to MC20 public thread pls! ;)
Merry Christmas and Happy New Year to all!!
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: MakeMKV 3D support?
« Reply #24 on: December 30, 2014, 07:27:35 am »

Done.  Happy New Year!
Logged
Pages: [1]   Go Up