MediaPlayer does not receive stream metadata.
-
-
Hi and welcome to devnet,
You should also add the exact version of Qt 6. As Qt 6.5 switched the multimedia backend to ffmpeg.
The OS version would also be useful.
-
Hi and welcome to devnet,
You should also add the exact version of Qt 6. As Qt 6.5 switched the multimedia backend to ffmpeg.
The OS version would also be useful.
-
@SGaist Qt6.5, Linux Distribution (Manjaro KDE). ffmpeg can display meta (ICY metadata from command ffmpeg -i %stream%), but MediaPlayer can't display it...
@Driglu4it, sorry for Qt6.5 Linux Neon Developer Edition*
-
J JoeCFD referenced this topic on
-
@Driglu4it, sorry for Qt6.5 Linux Neon Developer Edition*
Which release of 6.5 is it ?
-
Hi,
I can confirm this regression is still present in Qt 6.9.3 on Linux.
I am streaming Internet Radio (ICY/Shoutcast). The underlying FFmpeg backend clearly logs the metadata (StreamTitle), so the data is definitely arriving. However, neither QML (MediaPlayer.metaData) nor C++ (QMediaPlayer::metaData()) exposes this data.I have tried iterating through all available metadata keys (0-20) and requesting the raw "StreamTitle" key explicitly in C++, but it returns empty strings.
FFmpeg Log (Success):
Input #0, aac, from 'https://mp3.ffh.de/ffhchannels/hqeurodance.aac': Metadata: StreamTitle : Jam & Spoon - Angel StreamUrl : 90004532Qt/QML Debug Log (Failure):
qml: --- DEBUGGING METADATA MAPPING --- qml: Direct 'StreamTitle': "" qml: Direct 'icy-name': "" qml: Found data at ID [10]: 00:00:00 (Duration) qml: Found data at ID [12]: AAC (Codec)It seems the FFmpeg backend in Qt Multimedia is parsing the ICY headers but failing to populate the
QMediaMetaDatadictionary for live streams.Has anyone found a workaround using standard Qt APIs, or is the only solution to implement a parallel TCP socket to sniff the headers manually?
-
Hi,
I can confirm this regression is still present in Qt 6.9.3 on Linux.
I am streaming Internet Radio (ICY/Shoutcast). The underlying FFmpeg backend clearly logs the metadata (StreamTitle), so the data is definitely arriving. However, neither QML (MediaPlayer.metaData) nor C++ (QMediaPlayer::metaData()) exposes this data.I have tried iterating through all available metadata keys (0-20) and requesting the raw "StreamTitle" key explicitly in C++, but it returns empty strings.
FFmpeg Log (Success):
Input #0, aac, from 'https://mp3.ffh.de/ffhchannels/hqeurodance.aac': Metadata: StreamTitle : Jam & Spoon - Angel StreamUrl : 90004532Qt/QML Debug Log (Failure):
qml: --- DEBUGGING METADATA MAPPING --- qml: Direct 'StreamTitle': "" qml: Direct 'icy-name': "" qml: Found data at ID [10]: 00:00:00 (Duration) qml: Found data at ID [12]: AAC (Codec)It seems the FFmpeg backend in Qt Multimedia is parsing the ICY headers but failing to populate the
QMediaMetaDatadictionary for live streams.Has anyone found a workaround using standard Qt APIs, or is the only solution to implement a parallel TCP socket to sniff the headers manually?
@Niclas-Eisenhut hi and welcome to devnet,
Can you also confirme this with the latest 6.10 release ?