(discussion) I nailed why gapless playback is broken with transcoding#1611
(discussion) I nailed why gapless playback is broken with transcoding#1611HeroBrine1st wants to merge 2 commits intoUnicornsOnLSD:redesignfrom
Conversation
|
output.mp3 - with opus+ogg profile (new). It sounds like "kzzkt-bam-bam-bam-bam" and it is the same as if I use opus transcoding with offline mode kzzkt in both cases is an artifact of mismatch between different transcodes of consecutive tracks and that's a gap between 2 quants in different files (yes that's less than 0.02ms) which is very obvious due to speaker moving rapidly1 and doing a good air distortion which resonates with something idk. And this has a very good use in finding when tracks change. Of course original files don't have that gap but I did some manual changes to remove it, so this kzzkt could be problem on my end. This might be placebo :P the difference is very subtle, also it's recorded on android debug build Footnotes
|
Changes
Other profiles still use Audio/{id}/main.m3u8 API which is different to downloads service and that's, I think, is the cause of difference.
It still has some gap but it is the same as in offline mode - most likely a mismatch of signal between tracks which is pretty normal and means transcoding should go through whole playback, not individual tracks, but this requires server change.
Also, the "gapped playback" in my case is outright skipping some frames and even MPV itself (standalone, on desktop) is confused with those .m3u8 files (opus+mp4) sooo I think the issue is related to that. If I transcode them to flac with ffmpeg, everything's okay and the "some gap" is present in concatenation, too.
Todo before merging
Related Issues
Fixes #861
Discussion
I'll of course try to fix seeking right now - I guess there's some code that uses the fact transcoding is enabled to seek inside fragments and now there's only onethere's none, idk why it broke - but is this fix even appropriate given it drastically changes behaviour and, I guess, will do some breaks on iOS?I'll also try to upload some audio files from github web