Jump to content

Question about 3d detection


corwin7

Recommended Posts

corwin7

mkvinfo example (2015) 1080P 3D/example.mkv

...

  + Stereo mode: 1 (side by side (left first))

...

 

With an nfs share Kodi recognizes this file as 3d, shows the 3d tag, and switches to 3d on playback. Emby does not grasp that this file is 3D and it then shows up in Kodi with the Emby plugin as not 3D.

 

╰─➤  pkg info | grep emby                                                                                                                                                                                                                                                                        64 ↵
emby-server-3.0.5972           Home media server built using mono and other open source technologies
 
 
Link to comment
Share on other sites

corwin7

First off, thank you for responding Luke (in less than 5 minutes too. :) ).

 

If Kodi by itself sees them as 3D, but Kodi with Emby does not, does that not suggest that Emby is inferior to just Kodi? Why is Emby taking away functionality that Kodi normally has? Am I misunderstanding something? I have no interest is renaming the 3d files with a jacked up naming convention when the info is already a property of the .mkv file, and Kodi sees (without Emby) this just fine.

Link to comment
Share on other sites

corwin7

That's awesome, thank you!

This lists the mkv parameters for the different types of 3D formats in the StereoMode preperty:  https://www.matroska.org/technical/specs/index.html#StereoMode

 

I used ffmpeg to create a 10 second clip

 

╰─➤  ls -lh 20_century_fox_3D.mkv

-rw-r--r-- 1 gander gander 1.2M Aug  8 19:59 20_century_fox_3D.mkv
 
╰─➤  mkvinfo 20_century_fox_3D.mkv | grep -i stereo
|   + Stereo mode: 1 (side by side (left first))
 
1.2 Megs.. Let me know where to send it.
 
Edited by corwin7
Link to comment
Share on other sites

put it on something like dropbox or google drive and post or PM me the link. thanks.

Link to comment
Share on other sites

thanks. all we really get from ffprobe is the stereo_mode tag. when the value is left_right we will assume 3d. I'm sure there are other values for different 3d types but since we don't know what those are yet, we'll add more on an as needed basis.

Link to comment
Share on other sites

corwin7

>  I'm sure there are other values for different 3d types but since we don't know what those are yet

 

We have that. :) From https://www.matroska...html#StereoMode  ahh I see the problem.  matroska.org/technical/specs/index.html

 

Stereo-3D video mode (0: mono, 1: side by side (left eye is first), 2: top-bottom (right eye is first), 3: top-bottom (left eye is first), 4: checkboard (right is first), 5: checkboard (left is first), 6: row interleaved (right is first), 7: row interleaved (left is first), 8: column interleaved (right is first), 9: column interleaved (left is first), 10: anaglyph (cyan/red), 11: side by side (right eye is first), 12: anaglyph (green/magenta), 13 both eyes laced in one Block (left eye is first), 14 both eyes laced in one Block (right eye is first)) .

 

 

Thanks for working on this so quickly! 

Link to comment
Share on other sites

Thanks. and yea I understand, but we are going off of what ffprobe tells us, we're not reading the mkv headers directly, so that means we need to understand how ffprobe presents the data to us. Thanks for the sample file.

Link to comment
Share on other sites

corwin7

 ╰─➤  for I in `seq 1 14`; do

echo -n "Mkv stereo-mode=${I} : "
mkvpropedit --edit track:1 -s stereo-mode=$I test.mkv > /dev/null
ffprobe test.mkv 2>&1 | grep "stereo_mode" | awk '{print $3}'
done
 
Mkv stereo-mode=1 : left_right
Mkv stereo-mode=2 : bottom_top
Mkv stereo-mode=3 : top_bottom
Mkv stereo-mode=4 : checkerboard_rl
Mkv stereo-mode=5 : checkerboard_lr
Mkv stereo-mode=6 : row_interleaved_rl
Mkv stereo-mode=7 : row_interleaved_lr
Mkv stereo-mode=8 : col_interleaved_rl
Mkv stereo-mode=9 : col_interleaved_lr
Mkv stereo-mode=10 : anaglyph_cyan_red
Mkv stereo-mode=11 : right_left
Mkv stereo-mode=12 : anaglyph_green_magenta
Mkv stereo-mode=13 : block_lr
Mkv stereo-mode=14 : block_rl
 
It appears that if ffprobe reports a property of "stereo_mode" then the file is 3D. FFprobe does not report the "stereo_mode" property on normal non-3D files (mkvpropedit --edit track:1 -s stereo-mode=0 test.mkv).
Edited by corwin7
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...