seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
624 stars 92 forks source link

FFmpeg prebuffer process exited with error! (null) - Unrecognized option 'rtsp_transport'. - Error splitting the argument list: Option not found - #671

Closed GAMESSITE closed 1 year ago

GAMESSITE commented 1 year ago

When i attempt to add my wyze cam v3 i get the error message:

[11/8/2022, 9:38:06 PM] [CameraUI] ERROR Side Deck: FFmpeg prebuffer process exited with error! (null) - Unrecognized option 'rtsp_transport'. - Error splitting the argument list: Option not found - [11/8/2022, 9:38:06 PM] [CameraUI] Side Deck: Prebuffering process closed [11/8/2022, 9:38:06 PM] [CameraUI] Side Deck: Restart prebuffer session.. [11/8/2022, 9:38:12 PM] [CameraUI] Side Deck: Can not start videoanalysis, prebuffer process not yet started, retrying in 10s.. [11/8/2022, 9:38:16 PM] [CameraUI] Side Deck: Incoming ping request for: rtsp://admin:xxxxxxxxx@xxxxxxxxxxx/live - Timeout: 1s [11/8/2022, 9:38:16 PM] [CameraUI] Side Deck: Pinging xxxxxxxxxxxxx [11/8/2022, 9:38:16 PM] [CameraUI] Side Deck: Pinging xxxxxxxxxxxxx - successful [11/8/2022, 9:38:16 PM] [CameraUI] Side Deck: Start prebuffering... [11/8/2022, 9:38:16 PM] [CameraUI] Side Deck: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -rtsp_transport tcp -i rtsp://admin:xxxxxxxx@xxxxxxxxxxx/live -vcodec copy -an -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://xxxxxxxxxxx|[f=mpegts]tcp://xxxxxxxxxxx

I am using homebridge version 1.5.1

here is my JSON config: { "name": "CameraUI", "port": 8081, "atHomeSwitch": false, "logLevel": "debug", "mqtt": { "active": false, "tls": false, "port": 1883 }, "http": { "active": false, "port": 7272, "localhttp": false }, "smtp": { "active": false, "port": 2727, "space_replace": "+" }, "ftp": { "active": false, "useFile": false, "port": 5050 }, "ssl": { "active": false }, "options": { "videoProcessor": "ffmpeg" }, "cameras": [ { "name": "Side Deck", "manufacturer": "Wyze", "model": "V3", "serialNumber": "12324", "motion": true, "motionTimeout": 15, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "hksvConfig": { "source": "-rtsp_transport tcp -i rtsp://admin:xxxxxxxxx@xxxxxxxxxx:554/live", "audio": true }, "videoConfig": { "source": "-rtsp_transport tcp -i rtsp://admin:xxxxxxxxx@xxxxxxxxxx:554/live", "subSource": "-rtsp_transport tcp -i rtsp://admin:xxxxxxxxx@xxxxxxxxxx:554/live", "stillImageSource": "-rtsp_transport tcp -i rtsp://admin:xxxxxxxxx@xxxxxxxxxx:554/live", "maxStreams": 4, "vcodec": "copy", "acodec": "libfdk_aac", "audio": true, "debug": true }, "smtp": { "email": "Side Deck" }, "videoanalysis": { "active": true }, "mqtt": {} } ], "platform": "CameraUI" }

Bike-ops04 commented 1 year ago

I'm getting the same error with my reolink camera. Do I need to install another plugin or change a setting? My RTSP url does work in VLC.

Thank you, Biker_ops04

TiotBenjy commented 1 year ago

hello, your source is not properly made :)

actually you have :: "source": "-rtsp_transport tcp -i rtsp://admin:xxxxxxxxx@xxxxxxxxxx:554/live", but you must have :: "source": "-i rtsp://admin:xxxxxxxxx@xxxxxxxxxx:554/live",

Bike-ops04 commented 1 year ago

Hi, Thank you for replying. I have it working now. It was ffmeg package was not installed.

Thank you

On Dec 10, 2022, at 2:01 PM, Benjamin G. @.***> wrote:

hello, your source is not properly made :)

actually you have :: "source": "-rtsp_transport tcp -i @.:554/live", but you must have :: "source": "-i @.:554/live",

— Reply to this email directly, view it on GitHub https://github.com/seydx/homebridge-camera-ui/issues/671#issuecomment-1345362845, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4KIYHF6YOG5JUXTH7RDJIDWMTHO7ANCNFSM6AAAAAAR27WURQ. You are receiving this because you commented.

stale[bot] commented 1 year ago

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.

zmulk commented 1 year ago

Hi, Thank you for replying. I have it working now. It was ffmeg package was not installed. Thank you

How did you install the package?

Bike-ops04 commented 1 year ago

zmulk you have to search ffmpeg in the package center on your synology. You need admin privileges to install it. Hope this helps.

stale[bot] commented 1 year ago

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.

tpitale commented 11 months ago

Hi, Thank you for replying. I have it working now. It was ffmeg package was not installed. Thank you

@Bike-ops04

Which version of ffmpeg did you install? Did you use the synocommunity package or something else?

KovpakSA commented 11 months ago

I have exactly the same problem.

I tried to install ffmpeg 4,5,6 from synocommunity, but the result is exactly the same.

Now gives an error - Gate: FFmpeg videoanalysis process exited with error! (Нул) - Unrecognized option 'rtsp_transport'. - Error splitting the argument list: Option not found

Homebridge restarted after installation.

But the mistake remained.

tpitale commented 11 months ago

I ended up getting it to work by explicitly setting the command. I had a /bin/ffmpeg that kept taking priority and I was able to set ffmpeg6 as the command to use what was installed in /usr/local/bin/ffmpeg6.

NambaAsuka commented 10 months ago

I got the same issue. Here is how I solve it:

Just adding a letter "6"! It's that simple!

KovpakSA commented 10 months ago

Hi. Thank you very much. I'll check.

Пт, 25 авг. 2023 г. в 08:12, NambaAsuka @.***>:

I got the same issue. Here is how I solve it:

-

Install ffmpeg 6 in the package center on your synology NAS.

Open Homebridge Config Editor.

Located "videoProcessor" in the editor

Change the "videoProcessor": "ffmpeg" to "videoProcessor": "ffmpeg6"

Just adding a letter "6"! It's that simple!

— Reply to this email directly, view it on GitHub https://github.com/seydx/homebridge-camera-ui/issues/671#issuecomment-1692768958, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBUJ4B5W7SWCBV6SMWPUTB3XXAX4LANCNFSM6AAAAAAR27WURQ . You are receiving this because you commented.Message ID: @.***>

Miiou83 commented 6 months ago

NambaAsuka

un grand merci j'ai tellement cherché pour trouver la solution