Skip to content

Do not use hardcoded scheme in GstAudioFile #34

@sjappig

Description

@sjappig

GStreamer supports e.g. http-audiostreams, but the current implementation in gstdec.py prefixes everything with file://; if that prefix would be added only when there isn't any scheme already provided, GstAudioFile could be used for example with Internet radio streams (which was my original goal when I came across this library, since this nicely abstracts the gory details of GStreamer):

radio_stream = 'http://mp3channels.webradio.antenne.de/chillout'
with audioread.gstdec.GstAudioFile(radio_stream) as f:
  process_stream(f)

Obviously, it would be even nicer if the user of this library wouldn't even need to know what backend is used in the above case, and could just pass the URL in audioread.audio_open (unless this library is wanted to kept file-only for some reason).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions