[Gambas-user] gb.media - audio recording file is emptied when ending the program
Claus Dietrich
claus.dietrich at freenet.de
Tue Jan 16 15:09:57 CET 2024
Am 16.01.24 um 12:22 schrieb vuott--- via User:
>
> The reason remained a mystery to me as well.
>
> I solved this problem, which occurs when recording audio or even when
> converting from one audio format to another, through the use of a
> temporary support file, as can easily be seen on these two pages of
> the Italian wiki that I wrote.
>
> https://www.gambas-it.org/wiki/index.php/Riproduzione_e_contemporanea_registrazione_dell%27audio_di_radio_WEB_mediante_il_Componente_gb.media
>
> https://www.gambas-it.org/wiki/index.php/Convertire_i_formati_audio_mediante_il_Componente_gb.media
When I use an according GStreamer CLI-command and end the process with
Ctrl-C the mp3 file is not emptied:
gst-launch-1.0 uridecodebin
uri="http://icecast.ndr.de/ndr/ndrinfo/schleswigholstein/mp3/128/stream.mp3"
! audioconvert ! tee name=radio ! queue ! autoaudiosink radio. ! queue !
lamemp3enc target=bitrate bitrate=128 cbr=true ! filesink
location="/home/claus/output.mp3
Before using workarounds I wanted to ask, whether there are standard
means to accomplish the same in Gambas.
Best regards
Claus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240116/7a282285/attachment.htm>
More information about the User
mailing list