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

how to use listen_timeout for demuxer #70

Open
heleon19 opened this issue Apr 15, 2021 · 2 comments
Open

how to use listen_timeout for demuxer #70

heleon19 opened this issue Apr 15, 2021 · 2 comments

Comments

@heleon19
Copy link

heleon19 commented Apr 15, 2021

Hi
Is it possible to use the demuxer with an listen_timeout?

I tryed await beamcoder.demuxer({ "url": "rtsp://admin:admin@192.168.2.242/1", "options": { "listen_timeout": 10 } }); but get an error.

[Error: In file c:\daten\nodejs\beamcode\node_modules\beamcoder\src\demux.cc on line 76, found error: Problem opening input format: Unable to create
AV error string.] {
code: '5000'
}

@hbTecAG
Copy link

hbTecAG commented Apr 21, 2021

Is it possible?

@scriptorian
Copy link
Contributor

Hi,
FFmpeg command line offers a protocol layer that has a 'rw_timeout' option that appears to provide what you are looking for. The API doesn't have this option directly but does provide the opportunity to implement a simple 'interrupt_callback' parameter in the AVFormatContext struct passed to the demuxer open call that would allow a timeout or abort call to be implemented. There is a pull request from November that appears to provide a solution - could you please review it and give some feedback on whether it meets you needs?

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

No branches or pull requests

3 participants