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

mp3+cdg Not working with 303-proxy_http_ffmpeg #307

Open
redmeneses opened this issue Dec 30, 2023 · 8 comments
Open

mp3+cdg Not working with 303-proxy_http_ffmpeg #307

redmeneses opened this issue Dec 30, 2023 · 8 comments

Comments

@redmeneses
Copy link

The execution of mp3+cdg on the Master Branch works perfectly, but on the 303-proxy_http_ffmpeg_streams Branch, returns the attached errors.
log: https://1drv.ms/t/s!AhNPU2w9-qUyhPIs5rCKsjd_sbUzlw?e=x9XU77
music: https://1drv.ms/u/s!AhNPU2w9-qUyhPIr0D4xvHrAql7iSA?e=xp8t19

@vicwomg
Copy link
Owner

vicwomg commented Dec 30, 2023

Thank you for the log, it's helpful. Oddly, I cannot reproduce the issue with the same file on my OSX setup. Can you tell me more about your hardware/os configuration?

"InvalidChunkLength" could indicate that the proxied response is badly formatted somehow. I can do some digging on that

@vicwomg vicwomg changed the title @redmeneses mp3+cdg seems to work fine for me. Both zipped archives and separate files. have you tried other example files? Wondering if there's an issue with this particular one mp3+cdg Not working with 303-proxy_http_ffmpeg Dec 30, 2023
@redmeneses
Copy link
Author

I tested on various VMs, LXC Dockers, and now on a RPi4. Unfortunately, it doesn’t work for me…
log RPi4: https://1drv.ms/t/s!AhNPU2w9-qUyhPIu_dj-0jOjDNYdsQ?e=Fizk2Q

@vicwomg
Copy link
Owner

vicwomg commented Dec 30, 2023

This download directory you're using, is it mounted externally? Have you tried with the default ~/pikaraoke directory?

Obviously both should work, but that should help me narrow it down.

@redmeneses
Copy link
Author

Including with the file saved locally, the error occurs: https://1drv.ms/t/s!AhNPU2w9-qUyhPIvk9i_RyYvwDcUpg?e=n1TFh4

@redmeneses
Copy link
Author

In this solution from nathanpalmer nathanpalmer:proxy-url everything works correctly, including with cloudflare/zerotrust.

@vicwomg
Copy link
Owner

vicwomg commented Dec 31, 2023

well the "good" news is I can reproduce this issue now, but only if I access an internet-deployed instance of pikaraoke. Running locally there doesn't seem to be an issue.

The issue occurs with all transcoded files (mp3 + cdg are transcoded on the fly by ffmpeg, but so are other formats like avi and mkv). Something about ffmpeg transcoding might be mangling the headers. Have not yet found a workaround, but there must be a way to do this right.

When you say you're using nathanpalmer:proxy-url, that means your setting up a separate URL for ffmpeg streams? Can you walk me through how you have that configured

The goal is to not have to do this, ideally pikaraoke handles all the proxying for you.

@frankchau93
Copy link

So does this still happen? The proxied FFMPEG creates issues through internet deployed URLs?

@vicwomg
Copy link
Owner

vicwomg commented Mar 6, 2024

So does this still happen? The proxied FFMPEG creates issues through internet deployed URLs?

Yes, as far as I know. Have not had time to investigate why the proxy isn't working properly. Probably involves some advanced networking concepts I don't have a grasp on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants