Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Problem: Web hangs, because of medianfo hangs
#1
When listening to my playlist with ~100 radio stations web ui refuses to load, got just gray screen with stuck buttons, no playlist, and nothing.
Dug it out thats mediainfo hanging. After stopping and clearing queue still process running:
Code:
htop pids:
mediainfo --Inform=Audio;file:///var/www/util/mediainfo.tpl http://my.radio.station:8000/acid
sh -c mediainfo <...>
sudo mediainfo <...>
What can i do? Do i have bad playlist or what? Cleaned playlist removed everything except links. Still same.
But Standard playlist works just fine, can't understand.

Thought thats because i had bad update, today manually applied new update, all seems to work fine. Except my radio playlist
#2
This URL doesn't work for me.


Code:
http://my.radio.station:8000/acid

Some info: 

In the 9.2.6 release UPnP files are analyzed by mediainfo to get some metadata. These files start with http but are not radio stations. The way thats determined is to check for the "duration" and "Name" tags. Radio stations will have a "Name" tag but no "duration" tag. UPnP files will have a "duration" tag but no "Name" tag.

Post the playlist so I can try it on my end. Post it in a code box so the URL's and paths show as-is and not as clickable links.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#3
(03-14-2025, 10:02 AM)Tim Curtis Wrote: This URL doesn't work for me.


Code:
http://my.radio.station:8000/acid

Some info: 

In the 9.2.6 release UPnP files are analyzed by mediainfo to get some metadata. These files start with http but are not radio stations. The way thats determined is to check for the "duration" and "Name" tags. Radio stations will have a "Name" tag but no "duration" tag. UPnP files will have a "duration" tag but no "Name" tag.

Post the playlist so I can try it on my end. Post it in a code box so the URL's and paths show as-is and not as clickable links.


Duration is required by M3U spec, so it is -1. You cant create m3u track with name tag without duration tag

Code:
#EXTM3U
#EXTINF:-1,ACID HOUSE / TRANCE / TECHNO
http://79.111.119.111:8000/acid
#EXTINF:-1,ETHNIC ELECTRONICA / ETHNOTRONICA
http://79.120.39.202:8000/ethnotronica
...
#4
So I am opening any other playlist, works fine.
Opening my playlist and playback starts, but web hangs.
Userside UI loads but no real data from moode goes, its just waiting for some second answer with data.

Do i need to add all my 120 stations to Radio database manually?
#5
Is it too much?
   
#6
See the console session below. When MPD creates a playlist for example by saving the Queue there are no duration or other tags, just the URI's.

Code:
pi@moode9:~ $ telnet localhost 6600
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.24.0

# List the contents of the Queue
playlist
0:file: http://79.111.119.111:8000/acid
1:file: http://79.120.39.202:8000/ethnotronica
OK

# Save the Queue to a playlist .m3u file
save tim
OK

# Show the contents of the stored playlist
listplaylist tim
file: http://79.111.119.111:8000/acid
file: http://79.120.39.202:8000/ethnotronica
OK
^C
Connection closed by foreign host.

# Same but via cat
pi@moode9:~ $ cat /var/lib/mpd/playlists/tim.m3u
http://79.111.119.111:8000/acid
http://79.120.39.202:8000/ethnotronica
pi@moode9:~ $

moOde's playlist feature also just saves the URI's but it adds two header tags to define the Genre and Cover image path

Code:
pi@moode9:~ $ cat "/var/lib/mpd/playlists/Test playlist.m3u"
#EXTGENRE:Various
#EXTIMG:default
http://79.111.119.111:8000/acid
http://79.120.39.202:8000/ethnotronica

Your best bet would be to configure whatever playlist software you are using to create moOde/MPD compatible playlist files.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#7
Tried removing all tags leaving only URL, same thing happen.
Will try adding #extgenre #extimg

Update: tried, no, did not work.
Playlist just with clean urls not work, gives multiple hanging mediainfo. Some of them runs like minute and more, taking too much memory: VIRT 104M.
Playlist with "#EXTGENRE:Various #EXTIMG:default" same behavior
#8
(03-14-2025, 11:38 AM)Tim Curtis Wrote: See the console session below. When MPD creates a playlist for example by saving the Queue there are no duration or other tags, just the URI's.

Code:
pi@moode9:~ $ telnet localhost 6600
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.24.0

# List the contents of the Queue
playlist
0:file: http://79.111.119.111:8000/acid
1:file: http://79.120.39.202:8000/ethnotronica
OK

# Save the Queue to a playlist .m3u file
save tim
OK

# Show the contents of the stored playlist
listplaylist tim
file: http://79.111.119.111:8000/acid
file: http://79.120.39.202:8000/ethnotronica
OK
^C
Connection closed by foreign host.

# Same but via cat
pi@moode9:~ $ cat /var/lib/mpd/playlists/tim.m3u
http://79.111.119.111:8000/acid
http://79.120.39.202:8000/ethnotronica
pi@moode9:~ $

moOde's playlist feature also just saves the URI's but it adds two header tags to define the Genre and Cover image path

Code:
pi@moode9:~ $ cat "/var/lib/mpd/playlists/Test playlist.m3u"
#EXTGENRE:Various
#EXTIMG:default
http://79.111.119.111:8000/acid
http://79.120.39.202:8000/ethnotronica

Your best bet would be to configure whatever playlist software you are using to create moOde/MPD compatible playlist files.


Please just tell me where to comment out this upnp feature and i will go away Smile
#9
(03-14-2025, 12:30 PM)datside Wrote:
(03-14-2025, 11:38 AM)Tim Curtis Wrote: See the console session below. When MPD creates a playlist for example by saving the Queue there are no duration or other tags, just the URI's.

Code:
pi@moode9:~ $ telnet localhost 6600
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.24.0

# List the contents of the Queue
playlist
0:file: http://79.111.119.111:8000/acid
1:file: http://79.120.39.202:8000/ethnotronica
OK

# Save the Queue to a playlist .m3u file
save tim
OK

# Show the contents of the stored playlist
listplaylist tim
file: http://79.111.119.111:8000/acid
file: http://79.120.39.202:8000/ethnotronica
OK
^C
Connection closed by foreign host.

# Same but via cat
pi@moode9:~ $ cat /var/lib/mpd/playlists/tim.m3u
http://79.111.119.111:8000/acid
http://79.120.39.202:8000/ethnotronica
pi@moode9:~ $

moOde's playlist feature also just saves the URI's but it adds two header tags to define the Genre and Cover image path

Code:
pi@moode9:~ $ cat "/var/lib/mpd/playlists/Test playlist.m3u"
#EXTGENRE:Various
#EXTIMG:default
http://79.111.119.111:8000/acid
http://79.120.39.202:8000/ethnotronica

Your best bet would be to configure whatever playlist software you are using to create moOde/MPD compatible playlist files.


Please just tell me where to comment out this upnp feature and i will go away Smile

Found myself,
Code:
moode/www/inc/mpd.php line 785


Forum Jump: