Open rpgomes opened 8 years ago
The format is rtsp, not h264.
hummm ok, So if I want to speed up the avformat_open_input, giving some information about the stream (video/audio codec,frame rate, pixel format) which functions of javaCV I need to call or implement?
We might be able to set some options with setOptions()...
Let us know if you figure out anything! Thanks
Any updates? Have you figured out anything for this issue?
What the format need use to RTSP ?
I am not expert with this library. What is the exact purpose of calling setFormat() explicitly when it works even with out calling it? Will it really speeds up opening stream with considerable differene? I was facing issues when I called setFormat() before calling start(). I tried different format values. I read some queries in JavaCV and looks like there are some changes required tcp_transport or some thing in FFmpegFrameGrabber which we will not have control outside. As suggested by them on JavaCV queries , I just removed setFormat() and every thing worked fine. Even if I change source format from h264 to MJPEG on my IP camera its working fine without calling setFormat() on grabber.
@harischandraprasad setFormat()
is useful only when there is no way to guess the format based on the filename extension or the URL. That's about it. I don't think it helps us override the content of the stream.
Hi,
I have e rtsp stream, that works fine when I don't set the format. for instance:
but when I try to set the format to try to seed up the stream opening javaCV returns an error:
Any idea?