Skip to content
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

Is it possible to suppress call to avformat.avformat_find_stream_info ? #1376

Closed
Antoniossss opened this issue Jan 31, 2020 · 6 comments
Closed

Comments

@Antoniossss
Copy link

Antoniossss commented Jan 31, 2020

So in my case in FFmpehframeGrabber#720 which is

  if ((ret = avformat.avformat_find_stream_info(this.oc, (PointerPointer)null)) < 0) {

block for several seconds. Is there any way to suppress that call on native level (as in java code shows there is none) by eg providing some stream info before starting capturing? I will be using only single format stream so I can provide as much information beforehand as API allows me.

@Antoniossss
Copy link
Author

I have copied code for FFmpegFrameGrabber, removed mentioned line and everything works fine without "warmup delay" - however I don't like that and I think there should be an API to allow skip that phase.

@saudet
Copy link
Member

saudet commented Jan 31, 2020

We could add a parameter to let users skip that if it works fine without it in some cases.

@saudet
Copy link
Member

saudet commented Feb 6, 2020

Could you please send a pull request with an updated API to allow this? Thanks!

saudet added a commit that referenced this issue Apr 1, 2020
@saudet saudet removed the help wanted label Apr 1, 2020
@saudet
Copy link
Member

saudet commented Apr 15, 2020

FFmpegFrameGrabber.start() from JavaCV 1.5.3 now has a parameter for this. Thanks for reporting!

@banmajio
Copy link

hello:
Thank you very much for your help! Therefore, setting the interrupt callback function does not work on avformat_ open_ Is the input function? If so,with the flow of information I know,I can skip avformat_open_input().I mentioned that before.But I don't know what configuration should be made for the flow information grabber.start () normal execution.Can you give me some help? I checked almost all the issues and found no specific code implementation.This problem has been bothering me for a long time. I'm depressed!

@saudet
Copy link
Member

saudet commented Jun 12, 2020

I don't know more than you do. Please try to ask upstream: https://ffmpeg.org/mailing-list-faq.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants