quit after MP3 conversion of previously recorded sound

Nirbheek Chauhan nirbheek.chauhan at gmail.com
Tue Apr 12 19:31:17 UTC 2022


On Wed, Apr 13, 2022 at 12:45 AM Pablo Rodríguez via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
[...]
>         self.player = Gst.parse_launch("autoaudiosrc !
>         audio/x-raw,format=F32LE,rate=48000,channels=1 ! wavenc !
>         filesink location=\"" + self.audiofilename + "\"")
>
>         bus = self.player.get_bus()
>
>         bus.add_signal_watch()
>         bus.connect('message', self.on_message)
>
>         self.mp3_converter = Gst.parse_launch("filesrc location=\"" +
>         self.audiofilename + "\" ! decodebin ! audioconvert !
>         audioresample ! lamemp3enc mono=true target=bitrate bitrate=32
>         ! id3v2mux ! filesink location=\"" + self.mp3_audio + "\"")
>
>         mp3_bus = self.mp3_converter.get_bus()
>         mp3_bus.connect('message', self.on_mp3_message)
>

I think you're just missing mp3_bus.add_signal_watch() here.

Cheers,
Nirbheek


More information about the gstreamer-devel mailing list