problem with commands in rvlc

*nix specific usage questions
albert60
Blank Cone
Blank Cone
Posts: 42
Joined: 29 Mar 2011 12:52

problem with commands in rvlc

Postby albert60 » 01 May 2011 16:36

Hi
I've got a problem using rvlc when I want to get the input from a file which contains more than 2 commands.
My input file contains:
add /home/assia/Téléchargements/Going.flv
info
when I write this :

Code: Select all

rvlc < /home/assia/Téléchargements/Going.flv
I get this message

Code: Select all

VLC media player 1.1.4 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x9178994] [rc] lua interface: Listening on host "*console". VLC media player 1.1.4 The Luggage Interface de commande à distance initialisée, tapez « help » pour obtenir de l'aide. > > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! libdvdnav: Using dvdnav version 4.1.3 > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > libdvdread: Encrypted DVD support unavailable. ************************************************ ** ** ** No css library available. See ** ** /usr/share/doc/libdvdread4/README.Debian ** ** for more information. ** ** ** ************************************************ libdvdread: Can't stat /home/assia/Téléchargements/Going.flv info Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Aucun fichier ou dossier de ce type libdvdnav: vm: failed to open/read the DVD Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > [0x919e1d4] filesystem access error: cannot open file /home/assia/Téléchargements/Going.flv info (No such file or directory) [0x919e1d4] main access error: La lecture du fichier a échoué [0x919e1d4] main access error: VLC n'a pas pu ouvrir le fichier « /home/assia/Téléchargements/Going.flv info ». Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x9178994] [rc] lua interface: Requested shutdown. Bye-bye!
I'm sorry if it's too long but the problem is that he read the input as one command.
How can I put 2 commands (add /file and info) on the input ??
Thanks for your help

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: problem with commands in rvlc

Postby Rémi Denis-Courmont » 01 May 2011 16:43

One command per line.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

albert60
Blank Cone
Blank Cone
Posts: 42
Joined: 29 Mar 2011 12:52

Re: problem with commands in rvlc

Postby albert60 » 01 May 2011 16:53

That's what I did in the input :(

albert60
Blank Cone
Blank Cone
Posts: 42
Joined: 29 Mar 2011 12:52

Re: problem with commands in rvlc

Postby albert60 » 01 May 2011 19:34

help please :(

picsou.888
New Cone
New Cone
Posts: 1
Joined: 03 May 2011 15:29

Re: problem with commands in rvlc

Postby picsou.888 » 03 May 2011 15:35

hey rémi! a usual redirection with '<' will considerate the input in the file as one command...
is there any other syntax that make each line being considered as a command? :roll:

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: problem with commands in rvlc

Postby Rémi Denis-Courmont » 03 May 2011 16:18

Of course not, < will read each line as a separate command.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

albert60
Blank Cone
Blank Cone
Posts: 42
Joined: 29 Mar 2011 12:52

Re: problem with commands in rvlc

Postby albert60 » 04 May 2011 01:00

Hi
I checked the number of lines of my file input

Code: Select all

wc -l </home/assia/Téléchargements/input 2
The file contains the following
add /home/assia/Téléchargements/Going.flv
info

When I write

Code: Select all

rvlc < /home/assia/Téléchargements/input
I have the same mistake

Code: Select all

libdvdread: Can't stat /home/assia/Téléchargements/Going.flv info Aucun fichier ou dossier de ce type libdvdnav: vm: failed to open/read the DVD [0x828afc4] filesystem access error: cannot open file /home/assia/Téléchargements/Going.flv info (No such file or directory) [0x828afc4] main access error: La lecture du fichier a échoué [0x828afc4] main access error: VLC n'a pas pu ouvrir le fichier « /home/assia/Téléchargements/Going.flv info ».
Can you please help me ??

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: problem with commands in rvlc

Postby Rémi Denis-Courmont » 04 May 2011 10:02

Two commands, one per line, works fine here.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

albert60
Blank Cone
Blank Cone
Posts: 42
Joined: 29 Mar 2011 12:52

Re: problem with commands in rvlc

Postby albert60 » 04 May 2011 16:27

Hi
What I want to get is the following :
I write rvlc and I get

Code: Select all

VLC media player 1.1.4 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x853cfc4] [rc] lua interface: Listening on host "*console". VLC media player 1.1.4 The Luggage Remote control interface initialized. Type `help' for help.
After that I write

Code: Select all

> add /home/tdf2/Going.flv
And I get

Code: Select all

[flv @ 0xb7218320]Estimating duration from bitrate, this may be inaccurate [flv @ 0x8575a80]Estimating duration from bitrate, this may be inaccurate
After that I write

Code: Select all

info
and I get

Code: Select all

+----[ Stream 0 ] | | Codec: H264 - MPEG-4 AVC (part 10) (avc1) | Type: Video | Frame rate: 25 | Resolution: 640x480 | +----[ Stream 1 ] | | Sample rate: 44100 Hz | Type: Audio | Codec: MPEG AAC Audio (mp4a) | Channels: Stereo | +----[ end of stream info ]
This is what I want to obtain when I'm writing the two commands and/... and info in the input
But it doesn't work. Can you please help me ??

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: problem with commands in rvlc

Postby Rémi Denis-Courmont » 04 May 2011 17:24

You need to wait for the stream to be parsed before you send the info command. Thus you cannot use a file as input.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

albert60
Blank Cone
Blank Cone
Posts: 42
Joined: 29 Mar 2011 12:52

Re: problem with commands in rvlc

Postby albert60 » 04 May 2011 22:01

I believe you're talking about the video stream. Unfortunately I have the same problem when I write in my file input :
help
help

I get this message :

Code: Select all

Error in `help help' libvlc's "help help" is not a command Unknown command `help help'. Type `help' for help.
All I want is to do this operations : 1-open rvlc 2-open a stream 3-get the info
Periodically. If there is a way to do it without use a file as an input it will be very helpfull.
Thanks for your help


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

Who is online

Users browsing this forum: eddsor and 22 guests