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 create demuxer from url instead of local file? #83

Open
snowway opened this issue Jul 30, 2024 · 0 comments
Open

how to create demuxer from url instead of local file? #83

snowway opened this issue Jul 30, 2024 · 0 comments

Comments

@snowway
Copy link

snowway commented Jul 30, 2024

 // I want to create stream from rtmp:// rtsp:// http:// protocol
 let stream = File::open("./sample.mp4").unwrap();
 let io = IO::from_read_stream(stream);
 let mut demuxer = Demuxer::builder()
      .build(io).unwrap()
      .find_stream_info(None)
      .map_err(|(_, err)| err).unwrap();
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

1 participant