Comments (6)
Hi @muhanad40
Please note v4l2:// urls are for H264 encoded stream, then it needs -o argument and H264 support from the v4l2 device. When enabled it should be discovered by /api/getMedialist.
videocap url used the iteration of video device detected with GetDeviceName see https://github.com/mpromonet/webrtc-streamer/blob/master/inc/CapturerFactory.h#L90 and openned in https://github.com/mpromonet/webrtc-streamer/blob/master/inc/VcmCapturer.h#L81, it is not the number in /dev/videoXX.
Best Regards,
Michel.
from webrtc-streamer.
Hi @mpromonet, thank you for your quick reply. I don't think the streams are H264 encoded. I just plug the devices in and they show up in the /dev
directory. How can I connect to a device's webrtc stream using its device path? Is this even possible?
The reason why I ask is because I need a way that's predictable to connect to the webrtc stream. I have a web application that knows a device's /dev path so it can only use that to connect to its stream.
How can I do this?
from webrtc-streamer.
FYI, I can connect to a device using opencv using the device's /dev path videocap://dev/video2
and able to grab a screenshot. So I know that videocap://dev/video*
pattern works. Not sure how I can do this with this.
from webrtc-streamer.
Another reason why I want to rely on the real /dev path is that it's predictable. Currently the devices are enumerated so I can't predict which device will be which index number. I plan to connect many more devices and it's very important that I use something fixed and not dynamic.
from webrtc-streamer.
Hi,
You may use device by path. In order to do this, you need to modify the code. Feel free to submit a PR.
Best Regards
Michel
from webrtc-streamer.
Hi, I wish I can submit a PR, but I'm not a C++ developer. Thanks anyways :)
from webrtc-streamer.
Related Issues (20)
- When playing rtsp, it will freeze for about 3 seconds. Do you know why?
- Why does it lag at frame i? Is there a solution,thank you HOT 6
- 500 Internal Server Error
- error while loading shared libraries: libXcomposite.so.1: HOT 5
- There is no audio when webrtc-streamer plays rtsp video stream. Hope to add more HOT 3
- use screen can show mouse?? HOT 2
- Can I set the interval time for i-frames during encoding? HOT 7
- Failed to DESCRIBE: 401 Unauthorized
- Vulnerabilities scan result by BDBA(Black Duck Binary Analysis) HOT 1
- Docker container is unable to enumerate local v4l2 devices
- Failed to DESCRIBE: liveMedia0 HOT 4
- Webrtc integrated play RTSP HOT 4
- How to multicast the screen?
- build failing: 'libboringssl.a', needed by 'webrtc-streamer` HOT 1
- 在windows环境下(win10,win11)后台运行webrtc-streamer.exe HOT 10
- Run on Raspberry Pi 4 with Raspberry Pi OS Bookworm HOT 4
- Unknown problem with arm version HOT 8
- why i have to restart the mediamtx docker after a while
- can't fetch webrtc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webrtc-streamer.