Page 1 of 1

rvlc and stdin

Posted: 30 Apr 2011 19:19
by albert60
I believe that rvlc reads commands from stdin. I create a file which name is input and contains the command : help.
And I wrote the following command :

Code: Select all

rvlc < /home/assia/Téléchargements/input.txt
I thought that's way I can open the menu of help and "wait" for another command. Instead I get this :

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") [0x855e52c] [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. > +----[ Remote control commands ] | add XYZ . . . . . . . . . . . . . . . . . . . . add XYZ to playlist | enqueue XYZ . . . . . . . . . . . . . . . . . queue XYZ to playlist | playlist . . . . . . . . . . . . . .show items currently in playlist | search [string] . . search for items in playlist (or reset search) | sort key . . . . . . . . . . . . . . . . . . . . . sort the playlist | sd [sd] . . . . . . . . . . . . . show services discovery or toggle | play . . . . . . . . . . . . . . . . . . . . . . . . . . play stream | stop . . . . . . . . . . . . . . . . . . . . . . . . . . stop stream | next . . . . . . . . . . . . . . . . . . . . . . next playlist item | prev . . . . . . . . . . . . . . . . . . . . previous playlist item | goto . . . . . . . . . . . . . . . . . . . . . . goto item at index | repeat [on|off] . . . . . . . . . . . . . . toggle playlist repeat | loop [on|off] . . . . . . . . . . . . . . . . toggle playlist loop | random [on|off] . . . . . . . . . . . . . . toggle playlist random | clear . . . . . . . . . . . . . . . . . . . . . .clear the playlist | status . . . . . . . . . . . . . . . . . . . current playlist status | title [X] . . . . . . . . . . . . . . set/get title in current item | title_n . . . . . . . . . . . . . . . . next title in current item | title_p . . . . . . . . . . . . . . previous title in current item | chapter [X] . . . . . . . . . . . . set/get chapter in current item | chapter_n . . . . . . . . . . . . . . next chapter in current item | chapter_p . . . . . . . . . . . . previous chapter in current item | | seek X . . . . . . . . . . . seek in seconds, for instance `seek 12' | pause . . . . . . . . . . . . . . . . . . . . . . . . toggle pause | fastforward . . . . . . . . . . . . . . . . . . set to maximum rate | rewind . . . . . . . . . . . . . . . . . . . . . set to minimum rate | faster . . . . . . . . . . . . . . . . . . faster playing of stream | slower . . . . . . . . . . . . . . . . . . slower playing of stream | normal . . . . . . . . . . . . . . . . . . normal playing of stream | rate [playback rate] . . . . . . . . . . set playback rate to value | frame . . . . . . . . . . . . . . . . . . . . . play frame by frame | fullscreen, f, F [on|off] . . . . . . . . . . . . toggle fullscreen | info . . . . . . . . . . . . . .information about the current stream | stats . . . . . . . . . . . . . . . . show statistical information | get_time . . . . . . . . . .seconds elapsed since stream's beginning | is_playing . . . . . . . . . . . . 1 if a stream plays, 0 otherwise | get_title . . . . . . . . . . . . . the title of the current stream | get_length . . . . . . . . . . . . the length of the current stream | | volume [X] . . . . . . . . . . . . . . . . . . set/get audio volume | volup [X] . . . . . . . . . . . . . . . .raise audio volume X steps | voldown [X] . . . . . . . . . . . . . . lower audio volume X steps | adev [X] . . . . . . . . . . . . . . . . . . . .set/get audio device | achan [X] . . . . . . . . . . . . . . . . . .set/get audio channels | atrack [X] . . . . . . . . . . . . . . . . . . . set/get audio track | vtrack [X] . . . . . . . . . . . . . . . . . . . set/get video track | vratio [X] . . . . . . . . . . . . . . . .set/get video aspect ratio | vcrop, crop [X] . . . . . . . . . . . . . . . . set/get video crop | vzoom, zoom [X] . . . . . . . . . . . . . . . . set/get video zoom | snapshot . . . . . . . . . . . . . . . . . . . . take video snapshot | strack [X] . . . . . . . . . . . . . . . . . set/get subtitles track | | description . . . . . . . . . . . . . . . . . .describe this module | help, ? [pattern] . . . . . . . . . . . . . . . . . .a help message | longhelp [pattern] . . . . . . . . . . . . . . a longer help message | logout . . . . . . . . . . . . . . exit (if in a socket connection) | quit . . . . . . . . quit VLC (or logout if in a socket connection) | shutdown . . . . . . . . . . . . . . . . . . . . . . . .shutdown VLC +----[ end of help ] > Shutting down.[0x855e52c] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x855e52c] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x855e52c] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x855e52c] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x855e52c] [rc] lua interface: Requested shutdown. Bye-bye! > Shutting down.[0x855e52c] [rc] lua interface: Requested shutdown. Bye-bye!
It's like I wrote also the command shut down.
Can anyone explain to me please why this is hapening ??
Thanks for your help

Re: rvlc and stdin

Posted: 30 Apr 2011 19:51
by Rémi Denis-Courmont
EOF triggers shutdown.

Re: rvlc and stdin

Posted: 30 Apr 2011 20:29
by albert60
Ok
The problem is that I want to create a loop to write the command info in rvlc periodically.
Is that possible ??