gmrender-resurrect icon indicating copy to clipboard operation
gmrender-resurrect copied to clipboard

playback error upnp_set_error: Playing failed

Open brano1990 opened this issue 3 years ago • 5 comments

hi i have a problem with orange at zero 2

Orangepizero2_2.1.6_ubuntu_focal_server_linux4.9.170

all libraries installed

** (gmediarender:9572): WARNING **: 11:42:52.056: cannot set NULL uri ERROR [2021-12-29 11:42:52.057274 | gstreamer] setting play state failed (2) ERROR [2021-12-29 11:42:52.057459 | upnp] upnp_set_error: Playing failed (704)

on a desktop PC it goes but on orange at zero 2 no

where to look for a bug?

even this error

/usr/local/bin/gmediarender                                                                                                           
gmediarender 0.0.9 started [ gmediarender 0.0.9_git2021-03-14_4ac7d89 (libupnp-1.8.4; glib-2.58.3; gstreamer-1.14.4) ].
Logging switched off. Enable with --logfile=<filename> (or --logfile=stdout for console)
Ready for rendering.
ERROR [2021-12-29 15:16:01.299373 | gstreamer] alsasink1: Error: Could not get/set settings from/on resource. (Debug: gstalsasink.c(617): set_hwparams (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink1:
Unable to set hw params for playback: Invalid argument)
ERROR [2021-12-29 15:16:01.299744 | gstreamer] alsasink1: Error: Could not get/set settings from/on resource. (Debug: gstalsasink.c(936): gst_alsasink_prepare (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink1:
Setting of hwparams failed: Invalid argument)
ERROR [2021-12-29 15:16:01.301550 | gstreamer] alsasink1: Error: The stream is in the wrong format. (Debug: gstaudiobasesink.c(1193): gst_audio_base_sink_preroll (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink1:
sink not negotiated.)
ERROR [2021-12-29 15:16:01.304687 | gstreamer] source: Error: Internal data stream error. (Debug: gstbasesrc.c(3055): gst_base_src_loop (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
streaming stopped, reason not-negotiated (-4))


brano1990 avatar Dec 29 '21 11:12 brano1990

Which error is from your OrangePi and which error is from your desktop?

What control point are you using?

Can you enable log output with the --logfile=stdout option?

mill1000 avatar Dec 29 '21 16:12 mill1000

operating system Orangepizero2_2.1.6_ubuntu_focal_desktop_linux4.9.170 works well it is OK "desktop" it works

operating system Orangepizero2_2.1.6_ubuntu_focal_server_linux4.9.170 "server" does not work errors

--logfile=stdout

https://www.toptal.com/developers/hastebin/ojinopibuv.xml -log

ERROR [2021-12-30 07:50:12.893069 | gstreamer] alsasink1: Error: Could not get/set settings from/on resource. (Debug: gstalsasink.c(616): set_hwparams (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink1:
Unable to set hw params for playback: Invalid argument)
ERROR [2021-12-30 07:50:12.893217 | gstreamer] alsasink1: Error: Could not get/set settings from/on resource. (Debug: gstalsasink.c(935): gst_alsasink_prepare (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink1:
Setting of hwparams failed: Invalid argument)
ERROR [2021-12-30 07:50:12.897909 | gstreamer] alsasink1: Error: The stream is in the wrong format. (Debug: gstaudiobasesink.c(1191): gst_audio_base_sink_preroll (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink1:
sink not negotiated.)
ERROR [2021-12-30 07:50:14.769780 | gstreamer] aqueue: Error: Internal data stream error. (Debug: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPlayBin:play/GstPlaySink:playsink/GstBin:abin/GstQueue:aqueue:
streaming stopped, reason not-negotiated (-4))
ERROR [2021-12-30 07:50:24.514092 | upnp] upnp_set_error: Pause failed (704)

brano1990 avatar Dec 30 '21 08:12 brano1990

It looks like there are issues with the ALSA backend. Do you have the gstreamer1.0-alsa package installed? Can you successfully play a file using gst-play-1.0? What about with aplay?

mill1000 avatar Dec 31 '21 17:12 mill1000

yes i used - sudo aptitude install gstreamer1.0-alsa

speaker-test -twav -c2 - works I hear sound

test sudo apt install alsa-utils aplay test.mp3 - does not work

do i need to install any packages? what?

brano1990 avatar Dec 31 '21 19:12 brano1990

I don't think aplay can handle an MP3 file directly. Decompress it to WAV or use ffmpeg instead.

At this point if aplay isn't working it's not a gstreamer issues but an ALSA issue.

mill1000 avatar Jan 02 '22 15:01 mill1000