You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Octoprint settings, under "Webcam & Timelapse", if you set stream url to: http://myrpi:8080/?action=stream which is a valid RFC2396 URL, the
n ffmpeg will fail to recognize the URL and returns: http://myrpi:8080?action=stream: Server returned 400 Bad Request
Obico doesn't detect this bug and merrily launches ffmpeg with the faulty URL.
ffmpeg fails (silently) and then Obico defaults to 0.1fps snapshots.
Suggested fix is either:
Warn users if 'malformed' URL (and document to prevent users like me from wasting hours of time and having to debug the code to figure out what is going on)
Or add a manual fix to stream_url in webcam_stream.py to insert a slash if missing before '?'
Of course, until ffmpeg or Obico code is adjusted, users can avoid the problem by making sure there is a "/" before the '?'.
i.e., change http://myrpi:8080?action=stream to http://myrpi:8080/?action=stream
The text was updated successfully, but these errors were encountered:
puterboy
changed the title
[BUG] FFMPEG bug causes Obico not to respect RFC2396 for stream URLs causing compatible mode to run at 0.1fps[BUG] Brief bug description here
[BUG] FFMPEG bug causes Obico not to respect RFC2396 for stream URLs causing compatible mode to run at 0.1 fps
Jun 24, 2022
In Octoprint settings, under "Webcam & Timelapse", if you set stream url to:
http://myrpi:8080/?action=stream
which is a valid RFC2396 URL, then ffmpeg will fail to recognize the URL and returns:
http://myrpi:8080?action=stream: Server returned 400 Bad Request
This is actually an ffmpeg bug
See the bug report: https://trac.ffmpeg.org/ticket/8466
Obico doesn't detect this bug and merrily launches ffmpeg with the faulty URL.
ffmpeg fails (silently) and then Obico defaults to 0.1fps snapshots.
Suggested fix is either:
Of course, until ffmpeg or Obico code is adjusted, users can avoid the problem by making sure there is a "/" before the '?'.
i.e., change
http://myrpi:8080?action=stream
tohttp://myrpi:8080/?action=stream
The text was updated successfully, but these errors were encountered: