Closed jandreaucodes closed 2 years ago
[3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [error] rtsp://XX:YYYY!!@192.168.7.44:88:554/videoMain: Invalid data found when processing input
Looks like the video location might be bad? Can you view the stream in VLC or similar?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe The Problem: I just moved my Homebridge install to a new Mac Studio with an M1 Ultra chip. The streams that worked on my previous machine don't work now.
It seems M1 chips install ffmpeg in a different location, so I updated the plugin, but am still seeing errors.
To Reproduce: Run a stream from a camera on an M1 Mac with ffmpeg installed in a different location than default.
Logs: PorchDoor 97FE] Snapshot request handler provided empty image buffer! [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] Video stream requested: 1280 x 720, 30 fps, 299 kbps [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] Starting video stream: native x native, native fps, ??? kbps [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] Stream command: /opt/homebrew/bin/ffmpeg -i rtsp://!!@192.168.7.44:88:554/videoMain -an -sn -dn -codec:v copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 6807798 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params VfMDRbKBeDMlrI08E9CTqyg/nAw/jAmpkpB2/ov5 srtp://192.168.6.153:54758?rtcpport=54758&pkt_size=1316 -loglevel level+verbose -progress pipe:1 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] built with Apple clang version 13.0.0 (clang-1300.0.29.30) [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libavutil 57. 17.100 / 57. 17.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libavcodec 59. 18.100 / 59. 18.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libavformat 59. 16.100 / 59. 16.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libavdevice 59. 4.100 / 59. 4.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libavfilter 8. 24.100 / 8. 24.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libswscale 6. 4.100 / 6. 4.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libswresample 4. 3.100 / 4. 3.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [info] libpostproc 56. 3.100 / 56. 3.100 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [tcp @ 0x12cf05290] [verbose] Starting connection attempt to 192.168.7.44 port 88 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [tcp @ 0x12cf05290] [verbose] Successfully connected to 192.168.7.44 port 88 [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] [error] rtsp://XX:YYYY!!@192.168.7.44:88:554/videoMain: Invalid data found when processing input [3/21/2022, 4:26:09 PM] [Camera FFmpeg] [DrivewayCam] FFmpeg exited with code: 1 and signal: null (Error)
Homebridge Config:
Screenshots:
Environment: