Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error setting path to bin file #790

Open
aguiarfpmr opened this issue Jan 12, 2025 · 5 comments
Open

error setting path to bin file #790

aguiarfpmr opened this issue Jan 12, 2025 · 5 comments
Labels
question Further information is requested

Comments

@aguiarfpmr
Copy link

aguiarfpmr commented Jan 12, 2025

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

@AlexxIT AlexxIT added the question Further information is requested label Jan 12, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 12, 2025

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

@aguiarfpmr
Copy link
Author

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?

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 13, 2025

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

@aguiarfpmr
Copy link
Author

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?

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 13, 2025

ffmpeg size 0KB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants