-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
transcoding with rpi produces missing h264 headers #10746
Comments
Which build of frigate are you using? |
docker
|
this build uses a specific build targeted at the rpi that ensures hwaccel works, the standard ffmpeg build has broken hwacel for the rpi numerous times I don't foresee the build changing as that has led to a lot of work on our side in the past and this is working well for decoding. Frigate supports using a custom build of ffmpeg so that's likely the route that you'll want to take. https://docs.frigate.video/configuration/advanced#custom-ffmpeg-build |
thanks for the answer I see another possible route: exec gstreamer pipeline instead of ffmpeg |
@arkanoid87 I made a patch to ffmpeg similar to the one you linked, this fixes the missing headers. Confirmed working on my Raspberry Pi 4B. |
Describe what you are trying to accomplish and why in non technical terms
transcode from mjpeg to h264 using hardware acceleration (v4l2m2m) on rpi4 via go2rtc
Describe the solution you'd like
generated h264 stream is created but cannot be decoded due to missing h264 headers
encoder params are not properly set in ffmpeg v4l2m2m https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/v4l2_m2m_enc.c
Describe alternatives you've considered
patching ffmpeg
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2020-December/051067.html
The text was updated successfully, but these errors were encountered: