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)
- How to add a tip?
- rtsp video stream cannot be played HOT 4
- Cannot be played in local area network HOT 1
- [windows] build failing: 'libboringssl.lib', needed by 'webrtc-streamer` HOT 1
- UDP H264 stream compatibility HOT 1
- How to get audio HOT 2
- logs
- http://127.0.0.1:8000/api/getMediaList unicode display in json
- May I ask if modifying SDL to support H265 encoding and decoding is done in webrtcstreamer.js? I would like to see H265 negotiation in SDP HOT 3
- Sending ctrl-C will spawn a new pause process HOT 3
- Sometimes the interface reports an error
- I decided to use datachannel to transmit h265 and then decode it locally. Can you teach me how to use datachannel? HOT 4
- Does webrtc-streamer support -H host:port/location?(eg. -H 0.0.0.0:8080/streamer,then the apis is on /streamer/api/...)
- After a period of time, frames are dropped and reconnection is impossible HOT 3
- rtsp video can not played HOT 1
- Frame ancestors HOT 2
- Call DesktopCapturer::Stop, The program will crash HOT 1
- When parse h264 sps, its width and height was never right
- Which version of webrtc source code match with webrtc-streamer? HOT 3
- DESCRIBE auth fail on TP-LINK IP-Camera HOT 1
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.