-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no HW decoding anymore for MPEG4 and H263 on RPI4 through mmal only for H264 and i think HEVC #625
Comments
Instead of going crazy and since using mmal I took the advise of @joyrider3774 and re encoding my mp4 with libx264 Example if anyone interested (of course you can use your paths etc) |
@2play best to provide also also just to confirm when playing through ffplay on rpi4 you get same mmal errors
|
tx and noted @joyrider3774 Ill run and test your above once my conversion completes Would you care sharing your revert to software pr that your mentioned above? |
check the code in the pr (pull request) 98bf92f also in windows i created batch files to convert all video's in one commnand using ffmpeg, i can chat them if needed |
I did a quick test on what you mentioned: Orig file
Encoded File
|
@joyrider3774 I use this on Pi4.
|
your second command is wrong in testing the video you need to use h264_mmal decoder like so when trying to play h264 with mmal in ffplay (if the encoded video is h264)
also it's possible to just copy the audio stream and only converting video but not sure you want that, it's ok to recompress audio as well i just would set -f MP4 exlicitly also
|
yes confirm above ffplay -codec:v h264_mmal |
@2play my latest pr will detect the errors when playing with mmal and revert to software decoding if an error occurred, when doing so it will write entries to the log saying the hardware decoding is not supported / working. no PLATFORM_RPI flag is needed anymore and should work on any system supporting mmal where USE_MMAL=1 is provided see code here 60008f0 |
Tx I'll update! |
it's not in master yet though only submitted a pr |
source from rpi engineer https://www.raspberrypi.org/forums/viewtopic.php?t=268356#p1628856
I don't know if it ever will get such support again.
Relevant part:
Pi0-3 have hardware accelerated decode for H264, MPEG4, H263, and through optional codec licences for MPEG2 and VC1.
Pi4 has the same hardware accelerated decode for H264, but not the other codecs. It also has a separate block for HEVC.
trying to play MPEG4 video through mmal produces following errors in attract
Maybe attract should not try to use mmal for MPEG4 anymore on a RPI4 but use software decoder ? Videos using H264 do still play fine using mmal.
Perhaps should try adding support for HEVC but not sure if libavcodec (ffmpeg) supports it for mmal or if needs some other implementation, i think it's still being worked on rpi side itselve
The text was updated successfully, but these errors were encountered: