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

Local HTTP output stream - no sound #15

Closed
krzemin opened this issue Jun 27, 2024 · 2 comments · Fixed by #26 or #34
Closed

Local HTTP output stream - no sound #15

krzemin opened this issue Jun 27, 2024 · 2 comments · Fixed by #26 or #34

Comments

@krzemin
Copy link

krzemin commented Jun 27, 2024

Hi! Thank you for keeping this awesome piece of software alive!

I was trying to play output http stream, but unfortunately it doesn't work as intended - there is no sound being played.
I tried both FLAC and OPUS stream. While the playback is active, it periodically prints HttpStream updateStatus 1 1 output.

MacOS ➤ ./Cantata -d http-stream
2024-06-27 10:18:44 - The style key 'macintosh' is deprecated. Please use 'macos' instead.
2024-06-27 10:18:48 - HttpStream streamUrl "http://my-mpd-host/mpd.flac"
2024-06-27 10:18:48 - HttpStream setVolume 100
2024-06-27 10:18:48 - HttpStream volume 100
2024-06-27 10:18:48 - HttpStream updateStatus 1 65535
2024-06-27 10:18:48 - HttpStream volume 100
2024-06-27 10:18:48 - AVStream duration -9223372036854775808 is invalid. Taking it from the metadata
2024-06-27 10:18:49 - HttpStream updateStatus 1 1
2024-06-27 10:18:49 - HttpStream updateStatus 1 1
2024-06-27 10:18:54 - HttpStream updateStatus 1 1
2024-06-27 10:18:54 - HttpStream updateStatus 1 1
2024-06-27 10:18:59 - HttpStream updateStatus 1 1
2024-06-27 10:18:59 - HttpStream updateStatus 1 1
2024-06-27 10:19:04 - HttpStream updateStatus 1 1
2024-06-27 10:19:04 - HttpStream updateStatus 1 1
2024-06-27 10:19:09 - HttpStream updateStatus 1 1
2024-06-27 10:19:09 - HttpStream updateStatus 1 1
2024-06-27 10:19:14 - HttpStream updateStatus 1 1
2024-06-27 10:19:14 - HttpStream updateStatus 1 1
2024-06-27 10:19:58 - HttpStream streamUrl "http://my-mpd-host/mpd.opus"
2024-06-27 10:19:58 - HttpStream setVolume 100
2024-06-27 10:19:58 - HttpStream volume 100
2024-06-27 10:19:58 - HttpStream updateStatus 1 65535
2024-06-27 10:19:58 - HttpStream volume 100
2024-06-27 10:19:59 - AVStream duration -9223372036854775808 is invalid. Taking it from the metadata
2024-06-27 10:19:59 - HttpStream updateStatus 1 1
2024-06-27 10:19:59 - HttpStream updateStatus 1 1
[opus @ 0x10d304080] Could not update timestamps for skipped samples.
2024-06-27 10:20:04 - HttpStream updateStatus 1 1
2024-06-27 10:20:04 - HttpStream updateStatus 1 1
2024-06-27 10:20:09 - HttpStream updateStatus 1 1
2024-06-27 10:20:09 - HttpStream updateStatus 1 1
2024-06-27 10:20:14 - HttpStream updateStatus 1 1
2024-06-27 10:20:14 - HttpStream updateStatus 1 1
2024-06-27 10:20:19 - HttpStream updateStatus 1 1
2024-06-27 10:20:19 - HttpStream updateStatus 1 1

I use MacOS 14.5, but on my second Linux machine similar issue appears (I can provide logs from the other machine as well if needed).

Both http output streams are directly produced by MPD flac/opus encoders, reverse-proxied by nginx. They play fine in other players (mpv, vlc).

@nullobsi
Copy link
Owner

There were a lot of changes to QtMultimedia API in Qt6 and I wasn't able to fully check if it still works. This is probably a result of the migration and I will need to take a look as to what exactly changed.

@nullobsi
Copy link
Owner

The linked PR should fix the audio output. There might still be edge cases, but I will merge it as soon as the tests pass.

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

Successfully merging a pull request may close this issue.

2 participants