popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.01k stars 334 forks source link

Get stream metadata via DBus interface #787

Open kdubowik opened 3 years ago

kdubowik commented 3 years ago

omxplayer can read stream metadata when launched with -i option:

$ omxplayer -i --live https://rs7-krk2.rmfstream.pl/RMFFM48 Input #0, aac, from 'https://rs7-krk2.rmfstream.pl/RMFFM48': Metadata: icy-br : 48 icy-pub : 0 icy-description : Unspecified description icy-url : http://www.rmf.fm icy-genre : POP icy-name : RMF FM StreamTitle : Lady Pank - Znowu Pada Deszcz StreamUrl : Duration: N/A, bitrate: 46 kb/s Stream #0:0: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp, 46 kb/s

But there's no way access this data via DBus interface. Can this be added? My goal is to avoid periodically calling the stream url. Instead I want to the StreamTitle of the currently played stream directly from omxplayer.

popcornmix commented 3 years ago

omxplayer is being deprecated in favour of vlc. So new features are unlikely to be added.

kdubowik commented 3 years ago

That's a shame. VLC is trying to pull in 260MB of dependencies, including X11. OMXPlayer is better suited for a headless audio player.