[Gambas-user] Problem with MediaPipeline
Benoit Minisini
benoit.minisini at gambas-basic.org
Fri Apr 14 23:31:14 CEST 2023
Le 14/04/2023 à 21:59, Claus Dietrich a écrit :
> Hi
>
> I am trying to record audio from the pulse monitor device. The GStreamer
> pipe
>
> $ gst-launch-1.0 -v pulsesrc
> device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" !
> audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate
> bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3"
>
> works, but I failed to setup an equivalent as Gambas MediaPipeline. The
> following code is causing an error in line enc["target"] = bitrate and
> when I uncomment the line I get an error "Cannot set status" at pl.play.
>
> ' Gambas class file
> Private pl As MediaPipeline
> Private src As MediaControl
> ...
Please provide a full gambas project.
Regards,
--
Benoît Minisini.
More information about the User
mailing list