WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

error setting path to bin file

Open aguiarfpmr opened this issue 10 months ago • 5 comments

First, I would like to thank you for developing this integration.

I'm trying to set the path to the bin file, however, the following error appears:

MSE: streams: fork/exec /homeassistant/cam/ffmpeg: no such file or directory

my configuration file:

streams:
  CameraCajueiro:
    #- rtsp://192.168.68.191:554/user=admin_password=Alw1YI3t_channel=0_stream=0&onvif=0.sdp?real_stream
    - rtsp://192.168.68.191:554/user=admin_password=Alw1YI3t_channel=0_stream=1&onvif=0.sdp?real_stream
    #- onvif://user:[email protected]:8899?subtype=PROFILE_001
  CameraR1:
    #- rtsp://ttpx:[email protected]:554/cam/realmonitor?channel=1&subtype=1
    #- rtsp://192.168.68.190:554/user=ttpx_password=kR3vMMqi_channel=0_stream=0&onvif=0.sdp?real_stream
    - ffmpeg:rtsp://192.168.68.190:554/user=ttpx_password=kR3vMMqi_channel=0_stream=1&onvif=0.sdp?real_stream#video=h264
    #- onvif://user:[email protected]:8899?subtype=001
  GaragemCam:
    - rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
    #- rtsp://admin:[email protected]/cam/realmonitor
    #- rtsp://admin:[email protected]:554/cam/realmonitor?channel=0&subtype=00
  teste:
  - rtsp://192.168.68.190:554/user=ttpx_password=kR3vMMqi_channel=0_stream=0&onvif=0.sdp?real_stream
log:
  level: trace # default level
ffmpeg:
    #bin: /home/swex/bin/ffmpeg-6.1-amd64-static/ffmpeg
    bin: /homeassistant/cam/ffmpeg

image image

aguiarfpmr avatar Jan 12 '25 10:01 aguiarfpmr

Theoretically, it could be /config/cam/ffmpeg. You should also has exec rights for this file.

AlexxIT avatar Jan 12 '25 10:01 AlexxIT

Sorry for my lack of knowledge, but which user do I need to provide read and write permission to?

Do I need to create a file inside the ffmpeg folder or just enter the path /cam/ffmpeg in the go2rtc.yaml file?

aguiarfpmr avatar Jan 12 '25 23:01 aguiarfpmr

Oh. FFmpeg should be the file, not a folder. The same user from which Home Assistant is launched.

AlexxIT avatar Jan 13 '25 07:01 AlexxIT

Ok, I made the changes, but the error still remains.

I named the file "ffmpeg" and also tried "ffmpeg.bin"

image

I also ran "chmod 777" for the file.

image

What am I still doing wrong?

aguiarfpmr avatar Jan 13 '25 13:01 aguiarfpmr

ffmpeg size 0KB

AlexxIT avatar Jan 13 '25 15:01 AlexxIT