You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to stream USB Webcam video as LL-HLS and using hardware h264 encoding on Raspberry Pi 4 (Raspbian arm64) with h264_v4l2m2m. However rtsp-simple-server crashes in 1-2 seconds after ffmpeg start.
However I'm not sure if it is ffmpeg issue or rtsp-simple-server issue because everything looks fine if I run the following commands
a FFmpeg-side bug: when using h264_v4l2m2m, the SPS and PPS are not sent to the server. This has been fixed in FFmpeg 5 as reported by @roger- . FFmpeg 5 can be downloaded here
a server-side bug: when SPS and PPS are not present, two empty NALUs are prepended to any IDR NALU, resulting in the crash
in H264 and H264, parameters (VPS, SPS and PPS) are automatically
prepended to random access units. When parameters were nil, they were
prepended anyway, leading to a crash. Parameters are not prepended only
if they are valid.
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
Which version are you using?
v0.20.0
Which operating system are you using?
Describe the issue
I'm trying to stream USB Webcam video as LL-HLS and using hardware h264 encoding on Raspberry Pi 4 (Raspbian arm64) with
h264_v4l2m2m
. However rtsp-simple-server crashes in 1-2 seconds after ffmpeg start.However I'm not sure if it is ffmpeg issue or rtsp-simple-server issue because everything looks fine if I run the following commands
Describe how to replicate the issue
ffmpeg -f v4l2 -video_size 640x480 -framerate 24 -i /dev/video0 -c:v h264_v4l2m2m -an -f rtsp rtsp://localhost:8554/cam
Did you attach the server logs?
yes
crash.log
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered: