Execute command line works but not with script
Posted: 02 Nov 2019 00:33
Hi,
when I run this command :
vlc http://streamlocation --sout=file/mp3:filename.mp3 --run-time=20 --stop-time=20 vlc://quit
it works fine.
But when I put this line in a script like record.sh, I receive an error regarding the quit option :
> [00007fb5d0003998] http access: Raw-audio server found, mp3 demuxer selected
'00007fb5dc000f48] idummy demux error: unknown command `quit
' failed5d8005cb8] core input error: open of `vlc://quit
[00007fb5d8005cb8] core input error: Your input can't be opened
'. Check the log for details. error: VLC is unable to open the MRL 'vlc://quit
I checked everything but I can't find the reason why it doesn't work.
Can anybody help me ?
Thx
when I run this command :
vlc http://streamlocation --sout=file/mp3:filename.mp3 --run-time=20 --stop-time=20 vlc://quit
it works fine.
But when I put this line in a script like record.sh, I receive an error regarding the quit option :
> [00007fb5d0003998] http access: Raw-audio server found, mp3 demuxer selected
'00007fb5dc000f48] idummy demux error: unknown command `quit
' failed5d8005cb8] core input error: open of `vlc://quit
[00007fb5d8005cb8] core input error: Your input can't be opened
'. Check the log for details. error: VLC is unable to open the MRL 'vlc://quit
I checked everything but I can't find the reason why it doesn't work.
Can anybody help me ?
Thx