-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Could not open Mobotix Stream when a timeout is set #165
Comments
I don't know, that would something to ask the developers of FFmpeg I guess. |
Wich version of FFmpeg are your project using for version 0.10 and 0.11? |
So could try to build from the latest source? It will build with the latest version of FFmpeg. |
OK. Do you have some instructions to build the ffmpeg.jar and ffmpeg-windows-x86.jar. |
Hi saudet, sorry for insisting, I never compiled something so complex (at least for me) If I follow this instructions I manage to build the ffmpeg.jar and ffmpeg-windows-x86.jar ? |
Try to follow the instructions here:
https://github.com/bytedeco/javacpp-presets/blob/master/README.md#build-instructions
|
OK, I will try to compile. |
Use the av_strerror() to get a description. |
I try that |
It looks like you're trying to use a 32-bit compiler with a 64-bit JDK: This won't work. Please read the README.md file. |
I finally manage to compile a new FFMPEG.jar and the ffmpeg-windows-x86.jar With the function avformat_version returning 3679332 I'm still getting the same behaviour, with the timeout parameter the stream does not open an return error -138 ( av_strerror() returns Error number -138 occurred) If I use the FFMPEG.jar and the ffmpeg-windows-x86.jar in Javacv 0.8 release the stream opens. What can I do to debug? |
What happens when you use ffplay on the same URL?
|
OK, I find out my problem. With your ffplay tip ;) I was setting the timeout in seconds, but this parameter is to be set in microseconds. |
Ok, good, so I'm assuming everything works fine then? Thanks for the feedback! |
Hello,
I having a strange behavior when testing to get the video Stream of a Mobotix camera, I'm using javaCV 0.11.
When I set a timeout I can't open the stream, the stream only open if I don't set the timeout parameter.
I verified this behavior with javaCV 0.11 and Java CV 0.11 in version 0.9 and 0.8 it works with the timeout.
My code is the following:
grabber = new FFmpegFrameGrabber("http://IP//control/faststream.jpg?stream=mxg&fps=10");
grabber.setFormat("mxg");
grabber.setVideoOption("timeout", "5000000");
grab.start()
When the stream is open it timeout at 0, the following dump format appears:
nput #0, mxg, from 'http://IP/control/faststream.jpg?str
eam=mxg&fps=10':
Duration: N/A, start: 1435231794.877011, bitrate: 64 kb/s
Stream #0:0: Video: mxpeg, yuvj420p(pc, bt470bg), 1024x768, 50.08 tbr, 1000k
tbn, 1000k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
the function av_strerror retruns the following error:
Error number -138 occurred
What can I do to set a timeout to this stream?
The text was updated successfully, but these errors were encountered: