Search found 4 matches

by IfThenERROR
Fri Jun 02, 2017 10:43 am
Forum: Feedback
Topic: Raspberry Pi mpeg2_mmal (hardware) decode
Replies: 11
Views: 13418

Re: Raspberry Pi mpeg2_mmal (hardware) decode

mmal is the only one I think Actually mmal is the VPU hardware on the RPi, but it supports 4 decoders: mpeg2, mpeg4, h.264 and vc1. All are supported in ffmpeg. As I wrote in the OSMC forum they are all pretty easy to enable for the ffmpeg command line interface, but obviously not so easy to correc...
by IfThenERROR
Fri Jun 02, 2017 12:32 am
Forum: Feedback
Topic: Raspberry Pi mpeg2_mmal (hardware) decode
Replies: 11
Views: 13418

Re: Raspberry Pi mpeg2_mmal (hardware) decode

Generally agree. It should be obvious that you can't hardware decode on a device that has a locked decoder. The issue with not enough memory on the other hand should tested. I've read from people in the RPi forums who claim to run the hw decoder on just 64 MB video memory. That may or may not be tru...
by IfThenERROR
Wed May 31, 2017 11:35 am
Forum: Feedback
Topic: Raspberry Pi mpeg2_mmal (hardware) decode
Replies: 11
Views: 13418

Re: Raspberry Pi mpeg2_mmal (hardware) decode

That might be a possible way. I'll give it a try and send you a pull request if it works.
by IfThenERROR
Tue May 30, 2017 10:21 am
Forum: Feedback
Topic: Raspberry Pi mpeg2_mmal (hardware) decode
Replies: 11
Views: 13418

Re: Raspberry Pi mpeg2_mmal (hardware) decode

May I suggest the addition as follows? if (codecCtx->codec_id == AV_CODEC_ID_MPEG2VIDEO) { codec = avcodec_find_decoder_by_name("mpeg2_mmal"); } else if (codecCtx->codec_id == AV_CODEC_ID_H264) { codec = avcodec_find_decoder_by_name("h264_mmal"); } else { codec = avcodec_find_dec...