Jump to content

directstream in browser


Deihmos
Go to solution Solved by pwhodges,

Recommended Posts

Deihmos

I have been testing another app and I realize when I play a video in the web browser there is no hit to the cpu but when played in emby the cpu jumps to nearly 100% because the video is being transcoded. The other app is just transcoding the audio without touching the video and the bitrate is just 3 mbps on a local network. How can I get the same behavior in emby if possible?

Link to comment
Share on other sites

Deihmos

I did a new clean install and experienced the same results. I also notice the same behavior with the roku and I almost remember it direct streaming the video with the audio being transcoded. Now it does a full transcode.

Link to comment
Share on other sites

in the above logs the input audio is ac3, not aac. Only MS edge can play ac-3, and even that requires mp4.

Link to comment
Share on other sites

Deihmos

I understand the audio will sometimes need transcoding but why is the video also being transcoded? transcoding audio will barely use the cpu. I actually have another log with an mkv video in h264 and aac audio. 

 

This better explains what i am talking about. I am just wondering if emby can do the same.

 

Direct Stream

You may have some media that is compatible with your device regarding resolution and media type (H.264, AC3, etc.), but is in an incompatible file container (.mkv, .avi, .wmv, etc.). In this case, the file can be Direct Streamed to your device. This means:

  • The video and audio tracks are extracted from the original file;
  • The streams are saved back into a compatible file container; and
  • The Media Server repackages the content on-the-fly before streaming it.

Direct Streaming a file uses very little processing power without any loss in video quality.

 

You might have a file that has a stream-compatible video track, but an audio track that needs transcoding. For example, your playback device cannot handle DTS tracks, but works with AC3. In this case:

  • The Audio track will be transcoded from DTS to AC3;
  • The original Video track will not be touched; and
  • The transcoded audio track is sent with the unaltered video track to your device.
Edited by Deihmos
Link to comment
Share on other sites

  • 1 month later...
Deihmos

Here are the logs. Thought it was a setting I was missing.

No answer? If you look at the logs the video is h264 and audio aac but container is mkv. Emby does a full encoding instead of a simple container swap. If I use the following fmpeg command it creates the mp4 file taking about 1 second.  Is there a reason emby does a full encoding when it could simply do a container swap? Even if the audio is in another format why can't the video be untouched and just the audio be encoded?

 

ffmpeg -i show.mkv -c copy show.mp4

Edited by Deihmos
Link to comment
Share on other sites

  • 4 years later...
studio-jurdan

I realy can't understand WHY in borowser the stream is NOT 100% DIRECT STREAM

Vlc can read all stream without re encode. so why the Emby player can't?

I must just use emby to find a film and after VLC to play iT?  very strange stuff

Link to comment
Share on other sites

  • Solution
pwhodges

I realy can't understand WHY in borowser the stream is NOT 100% DIRECT STREAM

Vlc can read all stream without re encode. so why the Emby player can't?

Because a browser is not VLC, nor MPV. nor MPC-HC, nor MX Player Pro, nor etc - browsers have less capabilities, and it shows! 

 

But you don't have to go outside Emby - install Emby Theatre on your desktop and get the capabilities you expect, within the Emby system.

 

Paul

Edited by pwhodges
  • Like 2
Link to comment
Share on other sites

Happy2Play

I realy can't understand WHY in borowser the stream is NOT 100% DIRECT STREAM

Vlc can read all stream without re encode. so why the Emby player can't?

I must just use emby to find a film and after VLC to play iT?  very strange stuff

 

Please provide specific examples.

 

Every browser has different playback capabilities and really has nothing to do with Emby.  You can go to html5test.com to see your browser capabilities.

Link to comment
Share on other sites

Because a browser is not VLC, nor MPV. nor MPC-HC, nor MX Player Pro, nor etc - browsers have less capabilities, and it shows! 

 

But you don't have to go outside Emby - install Emby Theatre on your desktop and get the capabilities you expect, within the Emby system.

 

Paul

 

Yup, exactly.

Link to comment
Share on other sites

studio-jurdan

OK, and there is no "GOOD" player pluggin for firefox or Chrome?

If No i mut re encode all my files in h264-AAC to plays these witnout "on the fly encoding

Link to comment
Share on other sites

pwhodges

No, you cannot change the basic capabilities of the browser  with a plugin.

 

No, you do not have to have on-the-fly transcoding unless you insist on continuing to use the browser instead of the program which is available and will play the way you want.  OK, it requires premium - but paying a little to get more facilities is not an unusual concept really.

 

Paul

Link to comment
Share on other sites

studio-jurdan

No, you cannot change the basic capabilities of the browser  with a plugin.

 

No, you do not have to have on-the-fly transcoding unless you insist on continuing to use the browser instead of the program which is available and will play the way you want.  OK, it requires premium - but paying a little to get more facilities is not an unusual concept really.

 

Paul

OK, i understantd but a "litle" for you is a lot for me. for the same price i've got amazon prime with sennding free, prime video and prime music !  

Paid syst is ok, but the price is 10X to much... i'll see and test "JELLYFIN"   to keep open source and the most important FREE  (encoding in hard and no soft, and playing free) THE BASIC FUNCTIONS !!!  thanks a lot. i'm going away.

Link to comment
Share on other sites

rechigo

OK, i understantd but a "litle" for you is a lot for me. for the same price i've got amazon prime with sennding free, prime video and prime music !  

Paid syst is ok, but the price is 10X to much... i'll see and test "JELLYFIN"   to keep open source and the most important FREE  (encoding in hard and no soft, and playing free) THE BASIC FUNCTIONS !!!  thanks a lot. i'm going away.

 

See you back in a bit, haha.

 

You don't want to pay for premiere to get Emby Theater for a wider range of codec support? Guess what! Jellyfin doesn't even have a usable desktop client, so you'll be back where you were with Emby.

Link to comment
Share on other sites

studio-jurdan

BUT...Jellyfin transcode with the PI4  GPU for free ;-) And old version off Emby Theater  are working it! 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...