Alexey Ustinnikov Alexey Ustinnikov - 3 months ago 10
Python Question

What are valid gstreamer song names?

I'm trying to understand what song names can I use in my gstreamer python based audioplayer. Can't find any docs about it. For example song with name

test%.mp3
produce the error:

Error: [<GError at 0x7f8a8c001620>, 'gstgiosrc.c(324): gst_gio_src_get_stream (): /GstPlayBin:playbin0/GstGioSrc:source:\nCould not open location file:///home/austinnikov/work/daemon_player/program_root/test%.mp3 for reading: Operation not supported'],


Songs without
%
are played. And of cause I have
test%.mp3
on the hard drive in that directory.

Answer

See the following SO answer:[Solved]gstreamer uri format on windows
specifically the 'file:' + urllib.pathname2url(filepath) part.
While this does not answer your more general question, it does permit you to play files which include certain characters like %