Alexey Ustinnikov Alexey Ustinnikov - 1 year ago 84
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

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
on the hard drive in that directory.

Answer Source

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 %

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download