Indeed, when I enter the fullpath the commands are working, as I pointed when replying to @Sam_Pluta suggestion.
This works fine:
“ffmpeg -i /Users/myusername/someaudiofile.wav -vn -ar 44100 -ac 2 -b:a 192k /Users/myusername/someaudiofile.mp3”.unixCmd
The inconsistent behavior that I find now is that the SC Post Window is not displaying the same text info outputs as the Terminal. Moreover, every time I call one program on Terminal it generally display the current version, the license, the authors and a minimal help, this tends not to happen on SC Post Window.
For instance, comparing the output of this
"flac".unixCmd;
"ffmpeg".unixCmd;
"cython".unixCmd;
"lame".unixCmd;
with the output of this:
"flac".runInTerminal;
"ffmpeg".runInTerminal;
"cython".runInTerminal;
"lame".runInTerminal;
Only flac
is displaying the identical text output at both Terminal and SC Postwindow. What could be causing this ? When running "which nameoftheprogram"
all of them are located at /anaconda3/bin
.
Moreover, when I run
"ffmpeg -i /Users/myusername/someaudiofile.wav -vn -ar 44100 -ac 2 -b:a 192k /Users/myusername/someaudiofile.mp3".unixCmd;
"ffmpeg -i /Users/myusername/someaudiofile.wav -vn -ar 44100 -ac 2 -b:a 192k /Users/myusername/someaudiofile.mp3".runInTerminal;
In the first one I receive no text info at SC Post Window, but in the second one I get something like :
ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
built with clang version 4.0.1 (tags/RELEASE_401/final)
configuration: --prefix=/anaconda3 --cc=x86_64-apple-darwin13.4.0-clang --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from ‘/Users/myusername/someaudiofile.wav’:
Duration: 00:00:20.00, bitrate: 705 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
Stream mapping:
Stream #0:0 → #0:0 (pcm_s16le (native) → mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to ‘/Users/myusername/someaudiofile.mp3’:
Metadata:
TSSE : Lavf58.29.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 192 kb/s
Metadata:
encoder : Lavc58.54.100 libmp3lame
size= 470kB time=00:00:20.01 bitrate= 192.5kbits/s speed=86.6x
video:0kB audio:470kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.139541%
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
Could this be related to some verbosity settings ?
(My macOS is using BASH as default)