VC1&WMV3 need different mimetype
#1
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
Reply
#2
Mediacodec works with a mime-type as input.
Do you mean amlogic needs different mime-types for VC1 and WMV3? Which ones?
Reply
#3
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
Reply
#4
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
Reply
#5
Question still remains: Which mime types to use?
Reply
#6
As long as they are different
XBMC-lover & trouble-maker
Reply
#7
Sorry, but that's nonsense. Mediacodec instantiate the proper OMX component based on the mimetype.
Reply
#8
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
Reply
#9
Ah, ok, that way.
I'll see to only use VC1 for advanced profile and keep WMV3 for simple and main.
Reply
#10
Thanks very much
XBMC-lover & trouble-maker
Reply

Logout Mark Read Team Forum Stats Members Help
VC1&WMV3 need different mimetype1