[vlc-devel] [PATCH 2/5] mediacodec: add hevc mimetype

John Stebbins stebbins at jetheaddev.com
Tue Oct 7 02:56:44 CEST 2014


So, it doesn't work on rk3288 out of the box.  And even after some ugly hacks, I'm getting video with green lines
through it and the image repeated 5 times and squished horizontally.  Not sure what that's all about.

Attaching diff to show ugly hacks and logs just in case you have some ideas what the distorted video might be.

To summarize the hacks, I had to remove the USE_IOMX define because my box does not have libiomx.so.  Then, my box does
have libOMX_Core.so. but all the symbols are prefixed with "RK".  So I had to modify the dlsym calls.  The rest is just
debug messages so I can see what's happening.

On 10/03/2014 10:39 AM, Thomas Guillem wrote:
> Ah yes, I'm curious to know if my patches work on rk32.
>
> On Fri, Oct 3, 2014 at 7:29 PM, John Stebbins <stebbins at jetheaddev.com> wrote:
>> Ok.  I'll test to see if your OMX changes work on my box.  I think they should since I was able to make stagefright
>> playback in xbmc work.  The Measy is built on the rk3288 SoC.  There are a lot of very cheap (< $100) android players
>> based on this SoC becoming available now.
>>
>> On 10/03/2014 10:05 AM, Thomas Guillem wrote:
>>> I tested it only on a Nvidia Shield tablet (Tegra K1). It run fine
>>> (with the others patches).
>>>
>>> VLC use the MediaCodec API from JAVA, it's the public API from
>>> android-sdk that don't change for one manufacturer.
>>> But all manufacturers can modify the private native API
>>> (MediaCodec.cpp and co), so that where they add support for extra
>>> codecs..
>>>
>>>
>>>
>>> On Fri, Oct 3, 2014 at 6:47 PM, John Stebbins <stebbins at jetheaddev.com> wrote:
>>>> Hi,
>>>>
>>>> Do you have an android box that this works on?  I tested such a patch on my Measy B4S and mediacodec fails during
>>>> configure.  I did some further research, downloaded android SDK sources for another similar box and looked for
>>>> problems.  Turns out mediacodec is missing support in other places for hevc.  Specifically, there is a hard coded list
>>>> of "roles" in one of the functions that doesn't include an hevc decoder role. I see that you have fixed a similar issue
>>>> in VLCs OMX implementation.
>>>>
>>>> I've seen reports that some manufacturers have made hevc mediacodec decode working, so I think some are distributing
>>>> with modified SDK. Do you have one of these, if so which?
>>>>
>>>> --
>>>> John      GnuPG fingerprint: D0EC B3DB C372 D1F1 0B01  83F0 49F1 D7B2 60D4 D0F7
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> vlc-devel mailing list
>>>> To unsubscribe or modify your subscription options:
>>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>>
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
>> --
>> John      GnuPG fingerprint: D0EC B3DB C372 D1F1 0B01  83F0 49F1 D7B2 60D4 D0F7
>>
>>
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
John      GnuPG fingerprint: D0EC B3DB C372 D1F1 0B01  83F0 49F1 D7B2 60D4 D0F7

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc.rk3288-omx.diff
Type: text/x-patch
Size: 4756 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141006/41ba7b0b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc-debug.log
Type: text/x-log
Size: 209033 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141006/41ba7b0b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc_logcat_20141007_003115.log
Type: text/x-log
Size: 281650 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141006/41ba7b0b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141006/41ba7b0b/attachment.sig>


More information about the vlc-devel mailing list