[Gambas-user] ffmpeg locking up Shell

Bruce Steers bsteers4 at gmail.com
Tue Sep 21 15:14:36 CEST 2021


bonus:~$ ffmpeg -i '/media/bonus/Elements/Developer/My
Albums/JustSaying/Good for us/Goddess Woman.wav' 2>&1|grep Duration
  Duration: 00:02:55.18, bitrate: 2116 kb/s
bonus:~$

I'm back to command prompt so in terminal it's exited okay.

V puzzling
BruceS



On Tue, 21 Sept 2021 at 13:10, Bruce Steers <bsteers4 at gmail.com> wrote:

> Terminal yes, Gambas no.
>
>
> On Tue, 21 Sep 2021, 11:00 Fabien Bodard, <gambas.fr at gmail.com> wrote:
>
>> Is there any output in the terminal ?
>>
>> Le mar. 21 sept. 2021 à 10:47, Bruce Steers <bsteers4 at gmail.com> a écrit
>> :
>> >
>> >
>> > I'm trying to use ffmpeg to get the time length of a music file.
>> >
>> > I'm doing it like this..
>> >
>> >   Shell "ffmpeg -i '" & sSoundFile & "' 2>&1|grep Duration|awk '{print
>> $2}'" Wait To sVar
>> >
>> > the command works fine in a terminal but my gambas app freezes on
>> trying to run it?
>> > I know the command outputs to error not stdout so have to use the 2>&1
>> divert
>> >
>> > Anyone know what the problem is?
>> > It's like the ffmpeg command never exits
>> >
>> > Cheers all
>> > BruceS
>> >
>> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>>
>>
>> --
>> Fabien Bodard
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210921/137e6f2d/attachment.htm>


More information about the User mailing list