WebRTC stream support
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Please consider adding WebRTC support for mpv.
One use case here, possibly there are others:
WebRTC is used for streaming from local cameras on 3d printer related software
(OctoPrint, Klipper). Usually using camera-streamer (https://github.com/ayufan/camera-streamer).
KlipperScreen (https://klipperscreen.readthedocs.io/en/latest/) utilises mpv (via python-mpv) and shows such streams on LCD screen. Unfortunately that currently doesn't work for WebRTC streams due to lack of support in mpv.
How to get example stream, assuming having working /dev/video0 camera:
camera-streamer --http-port=9090 --http-listen=0.0.0.0 # (--http-listen if not on local machine)
(additional options may be needed; like --camera-type=libcamera if using libcamera stack on raspberry pi with bookworm based OS etc)
go to that port with web browser and click "webrtc" there.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the missing support with camera-streamer on /dev/video0, then open its WebRTC stream in a browser and compare that behavior with mpv. The issue names no mpv source files, tests, or implementation entry point, so the work is not scoped to a specific code location. Done would mean mpv can play the example WebRTC stream, including the KlipperScreen use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100