MVC support in Libav / FFmpeg for stereoscopic Blu-ray 3D and MKV MVC-3D support?
#1
Replies to (read-only) discussion thread http://forum.kodi.tv/showthread.php?tid=226440

Hi Koying, popcornmix, and da-anda,

I read in your thread about Blu-ray 3D and MKV MVC-3D that you are working on adding MVC parsers to FFmpeg to achieve hardware decoding support of such files/streams and that you already found Jochen Britz's previous attempts for code reference here

https://github.com/Britz/FFmpeg/tree/mvc...264Context
https://github.com/Britz/FFmpeg/tree/mvc

Not really interested in this myself but did some research last year and for reference here is a link to the masters thesis by Jochen Britz on optimized implementation of an MVC decoder

http://www.nt.uni-saarland.de/fileadmin/...ecoder.pdf

Maybe most interestingly for you to remember is that FFmpeg (which is upstream for Kodi) is now actually classed as a downstream project to Libav today, so it can be a good idea to search after MVC attempts for Libav too instead of only looking after work done on adding MVC to FFmpeg. And in reference to that I would just like to tip you with this information and links that I found last year:

Libav, a fork of FFmpeg, currently have had a couple developers (Luca Barbato & Vittorio Giovara) working on a major refactoring and cleanup of the H.264 code in Libav/FFmpeg to accommodate achitectual changed need for MVC support

Libav developer Luca Barbato have posted a nice little summary about this huge task on his blog and the Libav wiki
http://blogs.gentoo.org/lu_zero/2014/04/...ad-to-mvc/
https://wiki.libav.org/Blueprint/MVC
https://wiki.libav.org/Blueprint/MultiAVFrame
https://wiki.libav.org/Sprint/201403

More discussion about that refactoring effort and work on MVC in their libav-devel mailing list
https://lists.libav.org/mailman/listinfo/libav-devel/

There is at least a chance if and when Libav finish their refactoring and cleanup that FFmpeg developers might perhaps port those changes to FFmpeg


Also, you probably knew but FYI, the methodology for this used in H.264 Multiview Video Coding for Blu-ray 3D movies is known as the "2D plus Delta" (a.k.a. 2D+Delta), and the MVC specification itself of 2D plus Delta is part of the H.264 standard as an amendment in H.264 "Annex H" of the specification.

http://www.itu.int/rec/T-REC-H.264

Good luck with adding MVC support and thanks for all your contributions to Kodi!
Reply
#2
Koying Wrote:
popcornmix Wrote:
da-anda Wrote:with all this tech talk here, is there a way for us to detect MVC in MKVs so that the .3D.SBS. filename workaround is not needed?
I suspect this can be made use of to trigger 3D in the file properties.
That's a sure indication that it's MVC, indeed.

Normally, there is a specific h264 profile for 3D stereo (118) but if I set the value there, it seems to be overwritten further down the line...

The 264 profile for 3D stereoscopic video streams is called "Stereo [email protected] / [email protected]" (*19), and checkout these MakeMKV guides which also describe how to determine if it is a left and right 3D version via "MultiView_Count" (*19), is also referred to as a "Mpeg4-MVC-3D" or "and Codec: Mpeg4 MVC 3D Extension" (*11) stream in in Blu-ray 3D images.

http://www.mede8erforum.com/index.php/topic,9624.0.html
http://movie-tips-review.blogspot.se/201...ll-hd.html
http://www.makemkv.com/forum2/viewtopic.php?f=1&t=4781

Image

Image

Image
Reply
#3
Bumping this now as da-anda bumped the replied read-only linked thread:

http://forum.kodi.tv/showthread.php?tid=238554

Can MVC "Multiview" parser detection be added for MKV and Blu-ray 3D files?

And if yes, can it be used to to pass tagged as correct 3D type to HW decode?
Reply
#4
(2015-09-17, 12:24)RockerC Wrote: Bumping this now as da-anda bumped the replied read-only linked thread:

http://forum.kodi.tv/showthread.php?tid=238554

Can MVC "Multiview" parser detection be added for MKV and Blu-ray 3D files?

And if yes, can it be used to to pass tagged as correct 3D type to HW decode?

I am dying for this to be implemented. I never cared about 3D until I used it on my tv. Now adicted.
Reply
#5
Cool to read that it sounds as if afedchin to have begun working on this:

https://github.com/afedchin/FFmpeg/tree/mvc
https://github.com/afedchin/FFmpeg/commits/mvc

Would love to hear/read more, looks like DXVA (Windows) will be first?

https://github.com/afedchin/xbmc/tree/msdk_mvc
https://github.com/afedchin/xbmc/commits/msdk_mvc

One update with screenshot posted here in the read-only forum:

http://forum.kodi.tv/showthread.php?tid=226440
Reply
#6
(2016-01-26, 10:07)RockerC Wrote: Would love to hear/read more, looks like DXVA (Windows) will be first?
Using DXVA to decode MVC requires a supporting MVC decoder in the FFmpeg library. Currently only Intel Media SDK allow decoding MVC on Windows (and perhaps linux). Intel MSDK uses hw or sw decoding depends on hardware. As an example on my HD4600 (win10) it uses harware accelerated mvc decoding, but on HD3000 (Win7) it uses only software.
Reply
#7
I just came across this looking for proper uncompressed 3D players, I used Kodi daily so was excited to see it may support it. Has MVC been implemented into any subsequent released of Kodi? sorry for the old thread bump.
Reply
#8
See here http://forum.kodi.tv/showthread.php?tid=221407 and here http://forum.kodi.tv/showthread.php?tid=266316 for all 3d info.
Sony KDL-46HX853 and Sony STR-DN1050
MONITOR AUDIO BRONZE BX5 5.0 speaker package
SVS SB2000 Subwoofer
Nvidia shield TV running SPMC
Pi3 running LibreELEC
harmony touch remote control
26GB unRAID server
Reply

Logout Mark Read Team Forum Stats Members Help
MVC support in Libav / FFmpeg for stereoscopic Blu-ray 3D and MKV MVC-3D support?0