Vlc trouble


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Vlc trouble
# 1  
Old 09-25-2011
Vlc trouble

Heya everyone I'm having trouble trying to work this out use to work but now it come up with a error. If anyone could help please Smilie
Code:
#!/bin/bash

Movies='/home/yoda/Videos' 

cd $Movies
 
cvlc ls | sed -n "$((RANDOM%$(ls | wc -l)+1))p"

Error
Code:
yoda@ubuntu:~$ ./Movieback 
02 Mine.m4v

yoda@ubuntu:~$ ./Movieback 
VLC media player 1.1.9 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x879c914] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Warning: call to srand(1317472962)
Warning: call to rand()
Blocked: call to setlocale(6, "")

(process:3945): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Can't stat /home/yoda/Videos/ls
No such file or directory
[0x8af3bcc] filesystem access error: cannot open file /home/yoda/Videos/ls (No such file or directory)
[0x8852174] main input error: open of `file:///home/yoda/Videos/ls
' failed: (null)

Smilie

Thanks in advance Smilie

Last edited by Scott; 09-25-2011 at 05:23 AM.. Reason: Code tags
# 2  
Old 09-25-2011
Hi jtsmith90,

Does this command fix your error? It works in my system.
Code:
$ cvlc $(ls | sed -n "$((RANDOM%$(ls | wc -l)+1))p")

Regards,
Birei
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

vlc log linux

I was reading these 2 links about vlc log files. Where is the VLC Log file? - Ubuntu Forums logging - how to get vlc logs? - Stack Overflow Is there a reason why this doesn't work? VLC -> Tools -> Preferences -> Select "ALL" -> Advanced -> Logging I created the log file location and... (0 Replies)
Discussion started by: cokedude
0 Replies

2. UNIX and Linux Applications

VLC 2.0.1 rpmfusion

Does anyone know why VLC 2.0.1 is not in rpmfusion yet? VLC 2.0.1 was released over 2 months ago. VideoLAN - News (0 Replies)
Discussion started by: cokedude
0 Replies

3. Ubuntu

Vlc transparent

I'm I able to make vlc or mplayer transparent. If so how can i do it please. thanks in advance josh (0 Replies)
Discussion started by: jtsmith90
0 Replies

4. Shell Programming and Scripting

Looking for help with a script to automate VLC

Hi, New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate. I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies

5. Linux

VLC for red hat 9

Hai, can you please give me the link to download "vlc player" for red hat 9. I found it for Fedora but there is some problem in installation. Can you please give me the link for red hat. I shalll then download it from there !!! (3 Replies)
Discussion started by: nsharath
3 Replies

6. UNIX for Dummies Questions & Answers

Cant add skins to Vlc player.

can some one please help me here i seem to be having trouble changing Vlc's skin to WMP11 i have VLC media player 0.7.2 i downloaded the WMP11 skin from a download site i looked for vlc skin instructions and they said i should use vlc -i and put WMP11 in roots home directly well there are... (1 Reply)
Discussion started by: Meomix
1 Replies
Login or Register to Ask a Question