[Gambas-bugtracker] Bug #1482: unable to link gstreamer "xxx-bin" components using gb.media

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Dec 21 17:41:56 CET 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1482&from=L21haW4-

Comment #2 by Federico ALLEGRETTI:

Shell command is quite tollerant in "auto generate" the pipeline.

I tested (successfully):
gst-launch-1.0 uridecodebin uri=http://radiogalileo.it:8000//low_latency  ! audioconvert ! jackaudiosink
gst-launch-1.0 uridecodebin uri=http://radiogalileo.it:8000//low_latency  ! audioconvert ! level ! jackaudiosink
gst-launch-1.0 uridecodebin uri=http://radiogalileo.it:8000//low_latency  !  decodebin ! audioconvert ! level ! jackaudiosink

But on code, everything stops trying to connect first two (2) objects. Init was ok:

Public Sub InitSource()
  
  'creo la pipeline
  pl = New MediaPipeline As "PipeLine"
  
  source = New MediaControl(pl, "uridecodebin")
  
  source["uri"] = "file:/home/v1p3r/Musica/PRS_Recorder_v1_2018-11-01_14-00-00.ogg"
  
  decoder = New MediaControl(pl, "decodebin")
  
  converter = New MediaControl(pl, "audioconvert")
  
  lev = New MediaControl(pl, "level")
  lev["message"] = True
  lev["interval"] = 1000000
  
End

than i setup the sink:

Public Sub InitSink()
  
  sink = New MediaControl(pl, "jackaudiosink")
  
  sink["connect"] = Settings["JackAutoConnect", 0]  'se si connette in automatico alla prima uscita disponibile o meno
  
  sink["client-name"] = "Pi2FM"
  
End

and than i try to connect everything:

Public Sub LinkElements()
  
  source.LinkTo(decoder)
  decoder.LinkTo(converter)
  converter.LinkTo(lev)
  lev.LinkTo(sink)  

End

I also tested bypassing the decodebin:
  source.LinkTo(converter)
  converter.LinkTo(lev)
  lev.LinkTo(sink)

And removing the filter to capture audio levels getting the data from source, converting and putting in the sink ...
  source.LinkTo(converter)
  converter.LinkTo(sink)


always first step (link source to something else) gives and error:

"unable to link controls"




More information about the Bugtracker mailing list