Execute command line works but not with script

*nix specific usage questions
maxke
New Cone
New Cone
Posts: 1
Joined: 02 Nov 2019 00:27

Execute command line works but not with script

Postby maxke » 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

wizball
New Cone
New Cone
Posts: 7
Joined: 24 Oct 2019 20:38
Contact:

Re: Execute command line works but not with script

Postby wizball » 05 Nov 2019 16:15

Unsure about your sout=file/mp3:filename.mp3 however.

Tested Script Examples:

#!/bin/bash
vlc http://streamlocation --sout=file://filename.mp3 --run-time=20 --stop-time=20 vlc://quit

vlc http://streamlocation --sout=file:///home/$USER/Downloads/filename.mp3 --run-time=20 --stop-time=20 vlc://quit

vlc http://streamlocation --sout=file://$HOME/Desktop/filename.mp3 --run-time=20 --stop-time=20 vlc://quit

vlc terminal output:
[00007f5e44003240] dummy mux: Open
[00007f5e44002430] idummy demux: command `quit'

Works as expected for me;-
UBUNTU 18.04 LTS
VLC v3.0.8


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 33 guests