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

Playback API to serve recorded segments #2452

Closed
itsparth opened this issue Oct 3, 2023 · 7 comments
Closed

Playback API to serve recorded segments #2452

itsparth opened this issue Oct 3, 2023 · 7 comments
Labels
enhancement New feature or request general

Comments

@itsparth
Copy link

itsparth commented Oct 3, 2023

Describe the feature

Is there any way for playback of recorded fmp4's, maybe we can expose an stream url which converts an fmp4 file to mpeg dash or hls on demand

@mateothegreat
Copy link

Just transcode it, it's supported out of the box and is in the README.md file.
As far as serving fmp4 in your scenario how does dash play in to this (rather than HLS)?

@aler9
Copy link
Member

aler9 commented Oct 5, 2023

An API for serving recording segments is planned and that's one of the reasons why fMP4 was chosen as format, since it can be played by browsers.

@aler9 aler9 added enhancement New feature or request general labels Oct 5, 2023
@saket424
Copy link

@aler9
I have this situation where the HLS h265 feed only plays on Apple Mac Safari and Chrome but not on Linux Chrome
Would this new fMP4 feature allow us to support H265 read in all browsers if it is closer to dash
Thanks
Anand

@saket424
Copy link

@aler9
Is this table accurate?
https://github.com/AlexxIT/go2rtc#codecs-madness
So far I am unsuccessful in getting hls working on Linux chrome for example

@aler9
Copy link
Member

aler9 commented Oct 14, 2023

@saket424 H265 is unsupported by Chrome on Linux, independently from MediaMTX. There's a section in the README that provides a tool that allows to find out which codecs are supported by your browser:

https://github.com/bluenviron/mediamtx#hls

DASH doesn't have particular advantages over Low-Latency HLS, they support the same codecs (that are imposed by browsers anyway), so there's no reason to add support for it yet.

Anyway, this feature request is related to a playback API, so HLS is off topic.

@itsparth itsparth changed the title Playback of recorded fmp4's using mpeg-dash Playback of recorded fmp4's Oct 15, 2023
@aler9 aler9 changed the title Playback of recorded fmp4's Playback API to serve recorded segments Dec 2, 2023
@aler9
Copy link
Member

aler9 commented Jan 15, 2024

Fixed by #2906

aler9 added a commit that referenced this issue Jan 23, 2024
* add playback server

* add playback switch

* update readme
Copy link
Contributor

This issue is mentioned in release v1.5.0 🚀
Check out the entire changelog by clicking here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request general
Projects
None yet
Development

No branches or pull requests

4 participants