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 converting an mjpeg stream to h264 (h264_v4l2m2m encoder) as a Raspberry Pi 4 using ffmpeg (ffmpeg version 4.3.4-0+deb11u1+rpt3) and publishing to rtsp-simple-server using the command:
It seems to run for a few seconds but then rtsp-simple-server crashes with the log below.
Describe how to replicate the issue
Run command above
Did you attach the server logs?
yes
panic: runtime error: index out of range [0] with length 0
goroutine 89 [running]:
github.com/aler9/rtsp-simple-server/internal/hls.(*muxerVariantMPEGTSSegmenter).writeH264(0x400046f698?, {0x99510?, 0xc79c39bbfb7?, 0xcb8260?}, 0x116a9bed0068dc80?, {0x40004e2d70?, 0x400046f6a8?, 0x5bd15c?})
/s/internal/hls/muxer_variant_mpegts_segmenter.go:64 +0x47c
github.com/aler9/rtsp-simple-server/internal/hls.(*muxerVariantMPEGTS).writeH264(0x4000122b00?, {0x0?, 0x0?, 0xcb8260?}, 0x0?, {0x40004e2d70?, 0x0?, 0x0?})
/s/internal/hls/muxer_variant_mpegts.go:43 +0x2c
github.com/aler9/rtsp-simple-server/internal/hls.(*Muxer).WriteH264(...)
/s/internal/hls/muxer.go:81
github.com/aler9/rtsp-simple-server/internal/core.(*hlsMuxer).runWriter(0x40003f9680, 0x4000248780, 0x0, 0x0, 0xffffffffffffffff)
/s/internal/core/hls_muxer.go:419 +0x180
github.com/aler9/rtsp-simple-server/internal/core.(*hlsMuxer).runInner.func2()
/s/internal/core/hls_muxer.go:356 +0x3c
created by github.com/aler9/rtsp-simple-server/internal/core.(*hlsMuxer).runInner
/s/internal/core/hls_muxer.go:355 +0x5dc
Did you attach a network dump?
no
EDIT: this issue actually only happens with the stock ffmpeg 4.3.4, using a new build of ffmpeg 5 from here (e.g. ffmpeg version N-60837-ge81242bb13-static), things seems to be fine.
The text was updated successfully, but these errors were encountered:
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.2
Which operating system are you using?
Raspberry Pi OS
Linux raspberrypi4 5.15.61-v8+
Describe the issue
I'm converting an mjpeg stream to h264 (h264_v4l2m2m encoder) as a Raspberry Pi 4 using ffmpeg (
ffmpeg version 4.3.4-0+deb11u1+rpt3
) and publishing to rtsp-simple-server using the command:It seems to run for a few seconds but then rtsp-simple-server crashes with the log below.
Describe how to replicate the issue
Run command above
Did you attach the server logs?
yes
Did you attach a network dump?
no
EDIT: this issue actually only happens with the stock ffmpeg 4.3.4, using a new build of ffmpeg 5 from here (e.g.
ffmpeg version N-60837-ge81242bb13-static
), things seems to be fine.The text was updated successfully, but these errors were encountered: