[Gambas-user] gb.media - audio recording file is emptied when ending the program
Benoît Minisini
benoit.minisini at gambas-basic.org
Tue Jan 16 16:26:15 CET 2024
Le 16/01/2024 à 15:09, Claus Dietrich a écrit :
> 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
>
No idea either.
Can you try the last commit and tell me if it changes anything?
I started to update my pipeline management routine to mimic what
'gst-launch' does, but it is not finished yet.
Regards,
--
Benoît Minisini.
More information about the User
mailing list