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

How does this work?! #6

Closed
theraw opened this issue Dec 23, 2019 · 2 comments
Closed

How does this work?! #6

theraw opened this issue Dec 23, 2019 · 2 comments

Comments

@theraw
Copy link

theraw commented Dec 23, 2019

Hi,

I have some question about how does this script work?

#2 you say "Please ensure that your MP4 files have H.264/H.265 video codecs and AAC audio codecs.",

This makes me think that this script doesn't come with any kind of "encoding" like convert mkv/mp4 or change video/audio codec but all it does is "convert" mp4 videos to hls format which shouldn't take much resources to do i mean based on what way you do i'm talking about smth like

ffmpeg -i video.mp4 -codec copy -start_number 0 -hls_playlist_type vod -hls_time 3 -hls_list_size 0 -f hls play.m3u8

is this right?!

if that is what it does what happens if some user watches one video and after you generated .m3u8 for that video? do you save the hls files/m3u8 which was generated from first view and provide them to some other user or do you generate a new m3u8/hls i mean converting video everytime a new user tries to open and watch the same video?!

@gkozlenko
Copy link
Owner

Hi,

You are right, this media server doesn't do any encoding, it just generates .ts and .m3u8 files for viewers. It does it on the fly - without caching for new viewers. It only caches some metadata to parse MP4 files faster.

The media server doesn't use the ffmpeg binaries - everything is written in JavaScript.

Thank you.

@theraw
Copy link
Author

theraw commented Dec 24, 2019

@gkozlenko thanks for info adding cache will be better ofcourse for production usage

i'm closing this since i have no issue just asking

@theraw theraw closed this as completed Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants