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

Allow HLS preview #252

Open
lkiesow opened this issue Aug 26, 2020 · 0 comments
Open

Allow HLS preview #252

lkiesow opened this issue Aug 26, 2020 · 0 comments

Comments

@lkiesow
Copy link
Member

lkiesow commented Aug 26, 2020

Instead of just allowing to show preview images, we could also allow for providing a “real” live stream since tools like FFmpeg support generating streams and we include a web server to deliver them anyway.

Generating a stream could look like this:

ffmpeg -re \
        {{ INPUTOPTS }} \
        -c:a aac -ac 1 \
        -c:v libx264 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p \
        -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 \
        preview/preview.m3u8

We could even reduce system load by using this for the recording, ingesting a concatenated transport stream at the end. But that needs some more investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant