[Gambas-user] gstreamer and aac format

System64 Development 64xcode at gmail.com
Thu Jan 11 23:09:10 CET 2024


El 11/1/24 a las 19:52, vuott--- via User escribió:
> cnv = New MediaControl(pl, "audioconvert")
> faac = New MediaControl(pl, "faac")
> flt = New MediaFilter(pl, "audio/mpeg,stream-format=adts")
> snk = New MediaControl(pl, "filesink")

Yes, this is the solution. I change a little because I use this to 
record microphone input:

       pl = New MediaPipeline
       src = New MediaControl(pl, "pulsesrc")
       src["device"] = $Device
       cnv = New MediaControl(pl, "audioconvert")
       faac = New MediaControl(pl, "faac")
       flt = New MediaFilter(pl, "audio/mpeg,stream-format=adts")
       snk = New MediaControl(pl, "filesink")
       snk["location"] = $TempFilePath
       src.LinkTo(cnv)
       cnv.LinkTo(faac)
       faac.LinkTo(flt)
       flt.LinkTo(snk)

Thanks Vuott.




More information about the User mailing list