geminixdev
geminixdev
> > * Top shows 49% for the player and < 20 % for mediacodec. > > With software decoding activated the player CPU is higher, much higher, and mediacodec...
> > So on the HK1 box software decoding is much much much better than the stop and go of the decoding with mediacodec. Very clearly the problem is there...
``` av_opt_set_int(d->avctx, "threads", 2, 0); ``` and ``` d->avctx->flags = AV_CODEC_FLAG_LOW_DELAY | AV_CODEC_FLAG2_FAST; ``` did not produce a noticable change, unfortunately.
- Why the frames are received in NV12 and YUV420P, and not in AV_PIX_FMT_MEDIACODEC, and - what to add to get the frames in AV_PIX_FMT_MEDIACODEC, or better said how to...
> Interesting that it might mean that decoding itself is quite "slow", since there is no any rendering but it already consumes some time? Based on my last post here...
> * Why the frames are received in NV12 and YUV420P, and not in AV_PIX_FMT_MEDIACODEC, and > * what to add to get the frames in AV_PIX_FMT_MEDIACODEC, or better said...
> Super, could you please share how you integrated this to QAVPlayer? It would be needed to be placed inside https://github.com/valbok/QtAVPlayer/blob/master/src/QtAVPlayer/qavhwdevice_mediacodec.cpp Yes, I will. To be sure it realy works...
Update: I have spent days to try to get the rendering part to work. All code examples are however about displaying pictures stored in regular RAM to screen, using OpenGL....