-
Notifications
You must be signed in to change notification settings - Fork 130
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
Audio stuttering when transcode playing ogg vorbis on iOS #600
Comments
Hi, could you take a look at the transcoding logs of your Jellyfin server? I know that transcoding to Vorbis on iOS is problematic, and maybe the server isn't transcoding at all... I noticed the bitrate of the file is 192 kbps, what do you have your transcoding bitrate set to? There was an issue (#269) where lower-bitrate tracks weren't being transcoded, but that should be fixed already... |
@Chaphasilor I'm not transcoding to Vorbis. I'm transcoding from Vorbis as Vorbis won't direct play. I have transcoding bitrate set to 320kbps. Here is a sample ffmpeg log
|
I also noticed a few extra things:
|
I know what you're trying to achieve, I just mentioned the issues in case the transcoding wasn't taking place at all. That doesn't seem to be the case though. It might be a bug in ffmpeg, that wouldn't be unheard of with regards to HLS transcoding. I'm not surprised VLC can handle it, but sadly that can't be used for playback in our case. Since I don't have any Apple devices, I'm not able to reproduce the issue myself, and I don't have much experience with transcoding to begin with. Maybe @jmshrv can help out here. Are there any more details you could share about the media? A demo file would probably help a lot! |
@Chaphasilor just grab some random music file and convert it to ogg Vorbis with ffmpeg will recreate the issue. More details:
|
dropping by to add more info. trim.9651AA2C-9BAB-4EFD-80AF-1D469F6C06F9.MOVtrim.7C714CC4-C6CA-43BC-87D6-7B1D7692066A.MOV |
Okay, another question. What happens when you use the beta and download a transcoded version of that track. Transcoded downloads on iOS are limited to mp3 on 10.8, with support for AAC coming with 10.9. Since regular transcoding always uses AAC afaik, maybe Vorbis->mp3 works better? 🤔 (Also, it's Finamp, not "FinAmp" ^^ Just like it's not "JellyFin" :P) |
How do I only download one song and not the entire album? |
Jellyfin-web was able to solve this by using fmp4 container for streaming instead of TS jellyfin/jellyfin-web#5378 |
any update on this? |
Seems like it should be fixable by adding a parameter here: finamp/lib/services/music_player_background_task.dart Lines 738 to 746 in 2b08643
|
@felix920506 sorry, issue fell behind the desk 😅 You can download individual tracks on the beta version of Finamp. You should try with that, since it has many improvements. It's available through TestFlight. I haven't looked into fmp4 yet, but if our audio library ( |
Can you add that as a toggleable setting so we can try it out on testflight builds?
It should also happens with MP3, I tried it with jellyfin web |
I just tried with that and it doesn't happen. It seems like the transcoded download is asking for a complete file rather than segments which doesn't cause the issue. |
Okay, I just saw that I missed your code example earlier. Many thanks for that, I'll add an option to use fmp4 instead of TS. Sadly I can't give you a version to try out, so you'll have to wait for the next release! |
- this should hopefully fix #600, and maybe some other issues too
@Chaphasilor thanks Do note that "ts" and "mp4" are what you want to pass in for TS and fMP4 respectively |
@felix920506 update is released on Testflight, go give it a try! |
@Chaphasilor tried it on ios17 iPhone 13 mini, fixed the issue indeed |
Description
When turning on the "Transcode" option in settings and playing Ogg Vorbis audio, the audio stutters.
When transcoding from other source formats this doesn't happen
Media Information
The text was updated successfully, but these errors were encountered: