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

Transcoding OGG/WAV/AIFF + other codecs #97

Open
KMonster5123 opened this issue Aug 22, 2022 · 7 comments
Open

Transcoding OGG/WAV/AIFF + other codecs #97

KMonster5123 opened this issue Aug 22, 2022 · 7 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@KMonster5123
Copy link

I have a few songs in the Ogg format and its a hassle to convert them to FLAC and transfer the metadata
They technically do work but they worked in the sense that FLAC files did as they don't show the correct track length (It only shows as much as it loads and although it still plays is stuck on 0:00) and the next song is paused and doesn't play automatically when the previous song finishes
This is the case on ios and on android it just refuses to play

@leinelissen
Copy link
Owner

Hey, thanks for the feedback! The problem with OGG is that it's not supported natively on iOS, and thus the Jellyfin server must convert the stream in real-time to a format that iOS can actually playback. While this process works mostly smoothly in the background, this does mean that iOS displays it as an actual stream (including the track length updating as the stream is pulled in). We can admittedly do a better job of showing this in the UX, but it's quite tied to the OS, so not necessarily straightforward to solve.
However, Android does support OGG and it should be played back natively. I'll do a check to see what's going wrong here.

@leinelissen leinelissen added bug Something isn't working enhancement New feature or request labels Oct 2, 2022
@Behem07h
Copy link

Behem07h commented Mar 3, 2023

would it be possible to simply request the jellyfin server to remux the files into a .caf container? ios native player supports playing opus via .caf

@leinelissen
Copy link
Owner

I'm unsure whether Jellyfin even supports the CAF container. I can't find anything in the documentation at least.

@Behem07h
Copy link

Behem07h commented Mar 6, 2023

i'm not sure what jellyfin's api is like but i can confirm that ffmpeg supports remuxing to caf containers

@leinelissen
Copy link
Owner

Yeah there's a thin layer between ffmpeg and the Jellyfin API that I've fought with before, I can check if they explicitly define caf as a container format.

@jmshrv
Copy link

jmshrv commented Mar 14, 2023

I'm investigating remuxing/transcoding stuff to OPUS/CAF myself, it's technically possible via Jellyfin but the resulting audio file doesn't play because of how Jellyfin returns the transcoded file (see my rambling here - jmshrv/finamp#215)

At some point I plan to fix this in Jellyfin, probably by adding a parameter to UniversalAudio to "wait" for a transcode to finish before serving the file.

@leinelissen
Copy link
Owner

Hey @jmshrv, thanks for looping me in and thanks for the awesome work. I'd love to see the toggle to wait for the transcode to finish because the iOS background player isn't too keen on playing back streams of audio and of course fixing OPUS playback. Big win for the ecosystem. I'll track your work and integrate it as soon as it's available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants