Giter VIP home page Giter VIP logo

Comments (3)

tgurr avatar tgurr commented on July 19, 2024

I maybe found a way to reproduce the error outside of homeassistant:

Python 3.6.1 (default, Mar 28 2017, 16:46:16) 
[GCC 6.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from gsp import GstreamerPlayer
>>> player = GstreamerPlayer(None)
>>> player.queue("http://x.x.x.x:8123/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_de-de_-_picotts.wav")
>>> gst-resource-error-quark: Could not open resource for reading. (5)

I can play the same URL successfully with e.g.

gst-launch-1.0 -v uridecodebin uri=http://x.x.x.x:8123/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_de-de_-_picotts.wav ! audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo

from gstreamer-player.

tgurr avatar tgurr commented on July 19, 2024

As a further short test I've put some files on a webserver and tried to play them with gstreamer-player:

>>> player.queue("http://domain.local/1e0bc0a9623dd93bb05ca2e0d4b3862b6859e406_de-de_-_picotts.wav")
>>> gst-resource-error-quark: Could not open resource for reading. (5)
>>> player.queue("http://domain.local/mpthreetest.mp3")
>>> gst-resource-error-quark: Could not open resource for reading. (5)
>>> player.queue("http://domain.local/testmovie.mp4")
>>> 

The interesting part is, I get the >>> gst-resource-error-quark: Could not open resource for reading. (5) for both the wav and the mp3, but the mp4 movie plays without any problem.

And again playing them via gstreamer directly:

gst-launch-1.0 playbin uri=http://domain.local/1e0bc0a9623dd93bb05ca2e0d4b3862b6859e406_de-de_-_picotts.wav
gst-launch-1.0 playbin uri=http://domain.local/mpthreetest.mp3
gst-launch-1.0 playbin uri=http://domain.local/testmovie.mp4

works for all three files.

Playing the files locally with gstreamer-player also works for all three files:

>>> player.queue("/home/user/testfiles/1e0bc0a9623dd93bb05ca2e0d4b3862b6859e406_de-de_-_picotts.wav")
>>> player.queue("/home/user/testfiles/mpthreetest.mp3")
>>> player.queue("/home/user/testfiles/testmovie.mp4")

So I've no idea what's the difference between playing them locally and playing them via http, especially when playing an mp4 over http works..

from gstreamer-player.

tgurr avatar tgurr commented on July 19, 2024

Is there anything I can do to help to debug the issue or provide any additional information?

from gstreamer-player.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.