Jump to content

Unnecessary transcoding of FLAC in FireFox.


Go to solution Solved by rechigo,

Recommended Posts

Posted

When trying to play back media containing a FLAC audio track in the latest version of FireFox (143.0.3) , Emby transcodes the FLAC to AAC despite Firefox's website stating all platforms can handle FLAC, and I am able to play the audio track of the media in question in the browser just fine.

Is there some sort of limitation that is forcing this conversion to take place? 

Posted

Hi, there is no limitation. It is all based on what the browser reports as being supported.

Posted

I recall a post earlier this year that FLACs over a certain bitrate were being transcoded. Was an ffmpeg transcode log generated? It may have that detail in it.

  • Solution
Posted
2 hours ago, Luke said:

Hi, there is no limitation. It is all based on what the browser reports as being supported.

So since the video is being direct streamed due to unsupported container (MKV), it is delivered to the client in the form of MPEGTS segments. MPEGTS does not support FLAC, hence the transcoding to AAC.

 

The good news here is that FINALLY firefox has implemented MKV support for H264/HEVC* after almost a decade.... MKV Support hasn't made its way to stable quite yet, but in nightly I am able to direct play FLAC audio in firefox nightly.

  • Like 1
Posted
4 minutes ago, rechigo said:

So since the video is being direct streamed due to unsupported container (MKV), it is delivered to the client in the form of MPEGTS segments. MPEGTS does not support FLAC, hence the transcoding to AAC.

 

The good news here is that FINALLY firefox has implemented MKV support for H264/HEVC* after almost a decade.... MKV Support hasn't made its way to stable quite yet, but in nightly I am able to direct play FLAC audio in firefox nightly.

OK if you can remind me once that hits firefox beta, I will test it out and see if we can enable it. Normally supported formats are auto-detected, but Chrome added mkv support many years ago without providing a way to detect support, so we had to just hardcode it.

Posted (edited)
1 hour ago, Luke said:

OK if you can remind me once that hits firefox beta, I will test it out and see if we can enable it. Normally supported formats are auto-detected, but Chrome added mkv support many years ago without providing a way to detect support, so we had to just hardcode it.

Well that's the thing.... I was playing a FLAC+HEVC MKV through emby web in firefox nightly and it was direct playing... So Emby must be doing some sort of auto detection?

 

As of FF Beta 143 MKV support is not present... Will keep tabs on it periodically... According to FF release schedule, version 145 (currently nightly) becomes Beta on October 13th.

Edited by rechigo
Posted

actually now that i recall, i did add some detection for mkv a long time ago even though there was no browser that was known to respond to it. 

so if what you're saying is true, then i guess we got lucky and the way they implemented it matches how we're checking for it.

  • Like 1

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...