** Before You Submit**
- [ x ] I checked that my issue isn't already filed: Search open issues.
- [ x ] I checked the relevant camera/device and/or plugin
Log in the Management Console for errors or warnings that may help identify and resolve the issue myself.
Describe the bug
homekit ffmpeg is exiting immediately
I have updated scrypted to the latest version.
Testing ffmpeg its self at
root@zebulon-prx-scrypted:~# /root/.scrypted/node_modules/@scrypted/ffmpeg-static/artifacts/ffmpeg-linux-x64 -version
Segmentation fault
To Reproduce
Run from cli
root@zebulon-prx-scrypted:~# /root/.scrypted/node_modules/@scrypted/ffmpeg-static/artifacts/ffmpeg-linux-x64 -version
Segmentation fault
Installing the non static ffmpeg from the repo - then ffmpeg works on the system.
Logs
Include a Log from the device/camera in the management console (and if applicable, the affacted plugin, like HomeKit).
[HomeKit]: ssrc: 369608832,
[HomeKit]: max_bit_rate: 299,
[HomeKit]: rtcp_interval: 0.5,
[HomeKit]: mtu: 1378
[HomeKit]: },
[HomeKit]: audio: {
[HomeKit]: codec: 'OPUS',
[HomeKit]: channel: 1,
[HomeKit]: bit_rate: 0,
[HomeKit]: sample_rate: 24,
[HomeKit]: packet_time: 20,
[HomeKit]: pt: 110,
[HomeKit]: ssrc: 557170678,
[HomeKit]: max_bit_rate: 24,
[HomeKit]: rtcp_interval: 5,
[HomeKit]: comfort_pt: 13,
[HomeKit]: comfortNoiseEnabled: false
[HomeKit]: }
[HomeKit]: }
[HomeKit]: Will wait for initial RTCP packet. { isHomeHub: false, isLowBandwidth: false, hasHomeHub: false }
[HomeKit]: { isLowBandwidth: false, isWatch: false, destination: 'local' }
[HomeKit]: { tool: undefined, rtpSender: 'Default' }
[HomeKit]: Scrypted RTP Sender can not be used since transcoding is enabled or the stream container is not RTSP.
[HomeKit]: Waiting for video RTCP packet before sending video.
[HomeKit]: packet loss 1
[HomeKit]: Received first video RTCP packet.
[HomeKit]: video codec/container not matched, transcoding: transcode {"url":"rtsp://127.0.0.1:34235/cbc15510ed1853d5/45","urls":["rtsp://192.168.11.14:34235/cbc15510ed1853d5/45"],"container":"rtsp","inputArguments":["-analyzeduration","0","-probesize","500000","-reorder_queue_size","0","-rtsp_transport","tcp","-f","rtsp","-i","rtsp://127.0.0.1:34235/cbc15510ed1853d5/45"],"mediaStreamOptions":{"id":"Profile_1","metadata":{"videoId":"VideoEncoderToken_1","audioId":"MainAudioEncoderToken"},"name":"mainStream","container":"rtsp","url":"rtsp://192.168.105.39/Streaming/Channels/101?transportmode=unicast&profile=Profile_1","video":{"fps":20,"bitrate":6144000,"width":1920,"height":1080,"codec":"h264","keyframeInterval":20,"bitrateControl":"variable"},"audio":null,"sdp":"v=0\r\no=- 1787356512914536 1787356512914536 IN IP4 192.168.105.39\r\ns=Media Presentation\r\ne=NONE\r\nb=AS:5050\r\nt=0 0\r\na=control:rtsp://192.168.105.39/Streaming/Channels/101/?transportmode=unicast&profile=Profile_1\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:5000\r\na=recvonly\r\na=x-dimensions:1920,1080\r\na=control:rtsp://192.168.105.39/Streaming/Channels/101/trackID=1?transportmode=unicast&profile=Profile_1\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z0IAM4qKUDwBEvL/4AAgAC2QAAA+gAAJxABA,aM48gA==\r\na=Media_header:MEDIAINFO=494D4B48010300000400000100000000000000000000000000000000000000000000000000000000;\r\na=appversion:1.0","prebuffer":962,"prebufferBytes":140764}}
[HomeKit]: -hide_banner -analyzeduration 0 -probesize 500000 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -c:v libx264 -pix_fmt yuvj420p -preset ultrafast -bf 0 -filter_complex scale=w='min(1280,iw)':h=-2 -b:v 299000 -bufsize 598000 -maxrate 299000 -g 120 -r 30 -payload_type 99 -ssrc 2182078 -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params YI8skIY+D3hOqhih9KwPOHjfImtXA/v9o1wtpJfe -dn -sn -an -f rtp srtp://192.168.11.73:49450?rtcpport=49450&pkt_size=1200 -sdp_file pipe:4
[HomeKit]: ffmpeg exited
[HomeKit]: streaming session killed, duration: 1s
Server (please complete the following information):
- OS: Proxmox LXC from koush
Hardware Model (please complete the following information):
- Device: intel j5005, 4 cores, 16gb ram assigned to LXC
Add any other context about the problem here.
** Before You Submit**
Login theManagement Consolefor errors or warnings that may help identify and resolve the issue myself.Describe the bug
homekit ffmpeg is exiting immediately
I have updated scrypted to the latest version.
Testing ffmpeg its self at
root@zebulon-prx-scrypted:~# /root/.scrypted/node_modules/@scrypted/ffmpeg-static/artifacts/ffmpeg-linux-x64 -version
Segmentation fault
To Reproduce
Run from cli
root@zebulon-prx-scrypted:~# /root/.scrypted/node_modules/@scrypted/ffmpeg-static/artifacts/ffmpeg-linux-x64 -version
Segmentation fault
Installing the non static ffmpeg from the repo - then ffmpeg works on the system.
Logs
Include a
Logfrom the device/camera in the management console (and if applicable, the affacted plugin, like HomeKit).[HomeKit]: ssrc: 369608832,
[HomeKit]: max_bit_rate: 299,
[HomeKit]: rtcp_interval: 0.5,
[HomeKit]: mtu: 1378
[HomeKit]: },
[HomeKit]: audio: {
[HomeKit]: codec: 'OPUS',
[HomeKit]: channel: 1,
[HomeKit]: bit_rate: 0,
[HomeKit]: sample_rate: 24,
[HomeKit]: packet_time: 20,
[HomeKit]: pt: 110,
[HomeKit]: ssrc: 557170678,
[HomeKit]: max_bit_rate: 24,
[HomeKit]: rtcp_interval: 5,
[HomeKit]: comfort_pt: 13,
[HomeKit]: comfortNoiseEnabled: false
[HomeKit]: }
[HomeKit]: }
[HomeKit]: Will wait for initial RTCP packet. { isHomeHub: false, isLowBandwidth: false, hasHomeHub: false }
[HomeKit]: { isLowBandwidth: false, isWatch: false, destination: 'local' }
[HomeKit]: { tool: undefined, rtpSender: 'Default' }
[HomeKit]: Scrypted RTP Sender can not be used since transcoding is enabled or the stream container is not RTSP.
[HomeKit]: Waiting for video RTCP packet before sending video.
[HomeKit]: packet loss 1
[HomeKit]: Received first video RTCP packet.
[HomeKit]: video codec/container not matched, transcoding: transcode {"url":"rtsp://127.0.0.1:34235/cbc15510ed1853d5/45","urls":["rtsp://192.168.11.14:34235/cbc15510ed1853d5/45"],"container":"rtsp","inputArguments":["-analyzeduration","0","-probesize","500000","-reorder_queue_size","0","-rtsp_transport","tcp","-f","rtsp","-i","rtsp://127.0.0.1:34235/cbc15510ed1853d5/45"],"mediaStreamOptions":{"id":"Profile_1","metadata":{"videoId":"VideoEncoderToken_1","audioId":"MainAudioEncoderToken"},"name":"mainStream","container":"rtsp","url":"rtsp://192.168.105.39/Streaming/Channels/101?transportmode=unicast&profile=Profile_1","video":{"fps":20,"bitrate":6144000,"width":1920,"height":1080,"codec":"h264","keyframeInterval":20,"bitrateControl":"variable"},"audio":null,"sdp":"v=0\r\no=- 1787356512914536 1787356512914536 IN IP4 192.168.105.39\r\ns=Media Presentation\r\ne=NONE\r\nb=AS:5050\r\nt=0 0\r\na=control:rtsp://192.168.105.39/Streaming/Channels/101/?transportmode=unicast&profile=Profile_1\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:5000\r\na=recvonly\r\na=x-dimensions:1920,1080\r\na=control:rtsp://192.168.105.39/Streaming/Channels/101/trackID=1?transportmode=unicast&profile=Profile_1\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z0IAM4qKUDwBEvL/4AAgAC2QAAA+gAAJxABA,aM48gA==\r\na=Media_header:MEDIAINFO=494D4B48010300000400000100000000000000000000000000000000000000000000000000000000;\r\na=appversion:1.0","prebuffer":962,"prebufferBytes":140764}}
[HomeKit]: -hide_banner -analyzeduration 0 -probesize 500000 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -c:v libx264 -pix_fmt yuvj420p -preset ultrafast -bf 0 -filter_complex scale=w='min(1280,iw)':h=-2 -b:v 299000 -bufsize 598000 -maxrate 299000 -g 120 -r 30 -payload_type 99 -ssrc 2182078 -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params YI8skIY+D3hOqhih9KwPOHjfImtXA/v9o1wtpJfe -dn -sn -an -f rtp srtp://192.168.11.73:49450?rtcpport=49450&pkt_size=1200 -sdp_file pipe:4
[HomeKit]: ffmpeg exited
[HomeKit]: streaming session killed, duration: 1s
Server (please complete the following information):
Hardware Model (please complete the following information):
Add any other context about the problem here.