-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
[Bug]: WriteGear: -input_framerate
less than 5 does not get used ?
#306
Comments
Thanks for opening this issue, a maintainer will get back to you shortly! In the meantime:
|
@freol35241 nice catch. This piece of code ia not supposed to be there at all. This should've removed long ago as I did in Streamgear API. Could you send PR for the same to our ⚠ Make sure you push all commits against testing branch only. |
The threshold seems to be identical in the StreamGear API? |
@freol35241 wow, I thought I removed it. Could you change that too?, would be really helpful. |
@freol35241 Thank you again. But you've changed
|
… [PR by @freol35241] - 🔧 Removed 5 second threshold in WriteGear and StreamGear APIs. - 👷 Xfailed RSTP CamGear CI test.
@freol35241 Thank you and apologies for the delay. I've merged the fix successfully and will prepare the next release soon. Stay tuned. |
Brief Description
I am trying to to use WriteGear to output a (semi) live stream to an rtsp server (as already detailed in #228)(yes, I have an rtsp server running). The input (using Camgear) is also an rtsp live stream and I am doing quite som heavy processing in between. This means:
My attempt was this:
But WriteGear does not use the
"-input_framerate": 1
and the resulting rtsp stream becomes unusable it seems.Acknowledgment
Environment
Expected Behavior
WriteGear honors
"-input_framerate": 1
so that the output stream behaves as expected.Actual Behavior
WriteGear disregards
"-input_framerate": 1
making the rtsp stream unusable by other rtsp clientsPossible Fix
Change https://github.com/abhiTronix/vidgear/blob/master/vidgear/gears/writegear.py#L414
to:
This seems to fix the issue as far as I can tell. What is the reason for this threshold anyway?
Steps to reproduce
(Write your steps here:)
docker run --rm -it -e RTSP_PROTOCOLS=tcp -p 8554:8554 aler9/rtsp-simple-server
The text was updated successfully, but these errors were encountered: