Posts: 29
Joined: Jun 2015
Reputation:
0
Hi Guys
I found vendor platforms need using different omx decoder component for VC1 & WMV3 video format.
Can kodi change it in DVDVideoCodecAndroidMediaCodec.cpp?
Thanks!
XBMC-lover & trouble-maker
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Mediacodec works with a mime-type as input.
Do you mean amlogic needs different mime-types for VC1 and WMV3? Which ones?
Posts: 29
Joined: Jun 2015
Reputation:
0
not only amlogic, decoder usally needs to add different header for decooding wvc1 &wmv3, as not all es send by demuxer contains necessary headers for decoding .
XBMC-lover & trouble-maker
Posts: 29
Joined: Jun 2015
Reputation:
0
2015-07-14, 10:36
(This post was last modified: 2015-07-14, 10:47 by yvonne.chen.)
Maybe like this should be better^_^
case AV_CODEC_ID_VC1:
m_mime = "video/wvc1";
//m_mime = "video/wmv9";
m_formatname = "amc-vc1";
break;
case AV_CODEC_ID_WMV3:
m_mime = "video/wmv3";
m_formatname = "amc-vc1";
break;
XBMC-lover & trouble-maker
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Question still remains: Which mime types to use?
Posts: 29
Joined: Jun 2015
Reputation:
0
As long as they are different
XBMC-lover & trouble-maker
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Sorry, but that's nonsense. Mediacodec instantiate the proper OMX component based on the mimetype.
Posts: 29
Joined: Jun 2015
Reputation:
0
Please have a look with media_codecs.xml, as long as they are different, vendor can add/change/ their mimtype juge condition base on the type kodi named. All others can be edited and compiled . mix wvc1&wmv3 the same mimetype, vendors can do nothing except using kodi software decoding.
XBMC-lover & trouble-maker
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Ah, ok, that way.
I'll see to only use VC1 for advanced profile and keep WMV3 for simple and main.