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
Hello! Hope you're doing well. I'm having some issues with FFMPEGFrameGrabber.
Most of the time, when calling the start() method, the grabber does not grab any frames from the RTMP server I have set up using NGINX on Windows, and the thread the grabbing is running in stays blocked on the line where start() is called, so it doesn't run its course, nor checks if it's interrupted or not when the JavaFX window is closed, so the app stays running indefinitely. I have FFMPEGFrameRecorder set up as in the WebcamAndMicrophoneCapture.java sample (but using VideoCapture instead of OpenCVFrameGrabber because implementing the latter consumed a lot of ram, and skipping the audio lines since I don't need the microphone audio being captured and sent), and I have the grabber set up like so:
Also, setting the 10s timeout makes the grabber quit trying to find a stream somewhere between 1-5 seconds.
How can I make the grabber give up after 10s and not block the entire thread, so that the application quits successfully when closing the main window?
Thank you!
The text was updated successfully, but these errors were encountered:
Hey! I have already tried that in the 6th line, that's commented out, which is how I found out that the 10s timeout isn't reached, and that FFMPEGFrameGrabber quits loading after 1-5s since start() was called. Maybe there's a calculation error I've made there?
But even if that was a problem, there's still one that remains: the one where the stream isn't found or loaded every time I try, even if FFMPEGFrameRecorder doesn't throw an error about sending the stream to the server with the same address I'm trying to grab from.
Hello! Hope you're doing well. I'm having some issues with FFMPEGFrameGrabber.
Most of the time, when calling the
start()
method, the grabber does not grab any frames from the RTMP server I have set up using NGINX on Windows, and the thread the grabbing is running in stays blocked on the line wherestart()
is called, so it doesn't run its course, nor checks if it's interrupted or not when the JavaFX window is closed, so the app stays running indefinitely. I have FFMPEGFrameRecorder set up as in the WebcamAndMicrophoneCapture.java sample (but usingVideoCapture
instead ofOpenCVFrameGrabber
because implementing the latter consumed a lot of ram, and skipping the audio lines since I don't need the microphone audio being captured and sent), and I have the grabber set up like so:Also, setting the 10s timeout makes the grabber quit trying to find a stream somewhere between 1-5 seconds.
How can I make the grabber give up after 10s and not block the entire thread, so that the application quits successfully when closing the main window?
Thank you!
The text was updated successfully, but these errors were encountered: