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 Emby render video in mkv format to play on web browser #3854

Closed
292210278 opened this issue Sep 4, 2024 · 9 comments
Closed

How does Emby render video in mkv format to play on web browser #3854

292210278 opened this issue Sep 4, 2024 · 9 comments

Comments

@292210278
Copy link

I use FFmpeg to convert a video from MKV to MP4, but it's too slow.

@LukePulverenti
Copy link
Member

Hi, Chrome and other Chromium based browsers can direct play some mkv's, depending on supported audio/video codecs. Other browser will require mkv to be repackaged on the fly to a compatible container.

@292210278
Copy link
Author

Hi, Chrome and other Chromium based browsers can direct play some mkv's, depending on supported audio/video codecs. Other browser will require mkv to be repackaged on the fly to a compatible container.

OK,thanks.Do you know whitch compatible container I can use

@LukePulverenti
Copy link
Member

mp4 is the most universally compatible container if you want to maximize direct play and minimize server transcoding.

@292210278
Copy link
Author

mp4 is the most universally compatible container if you want to maximize direct play and minimize server transcoding.

Yesterday, I checked the network tab while Emby was playing, and I noticed that Emby seems to convert H.265-encoded videos into H.264 videos and segment them into .ts file format. This improves Emby’s transcoding efficiency and ensures a smooth viewing experience for users. Is my understanding correct?

@LukePulverenti
Copy link
Member

mp4 is the most universally compatible container if you want to maximize direct play and minimize server transcoding.

Yesterday, I checked the network tab while Emby was playing, and I noticed that Emby seems to convert H.265-encoded videos into H.264 videos and segment them into .ts file format. This improves Emby’s transcoding efficiency and ensures a smooth viewing experience for users. Is my understanding correct?

Hi, yes this is done to either make the format compatible with the device playing, or to reduce the bitrate to ensure smoother playback.

@292210278
Copy link
Author

mp4 is the most universally compatible container if you want to maximize direct play and minimize server transcoding.

Yesterday, I checked the network tab while Emby was playing, and I noticed that Emby seems to convert H.265-encoded videos into H.264 videos and segment them into .ts file format. This improves Emby’s transcoding efficiency and ensures a smooth viewing experience for users. Is my understanding correct?

Hi, yes this is done to either make the format compatible with the device playing, or to reduce the bitrate to ensure smoother playback.

Ok,I know.As for video slicing, the back end completes the video slicing in advance and then sends it to the front end, or slicing the video when the video is playing. If it is the first, won't this increase the user's computer memory?

@LukePulverenti
Copy link
Member

the back end completes the video slicing in advance

Yes, but not very far in advance. More like just in time. And yes, it will require temporary storage but this is cleaned up when playback stops.

@LukePulverenti
Copy link
Member

Please let us know if you need anything else. Thanks.

@292210278
Copy link
Author

Please let us know if you need anything else. Thanks.

Sorry for not replying in time, I have no more questions now, and I sincerely thank you for your answers

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