Go to advanced search

by brianhj
Sun Mar 10, 2013 7:43 pm
Forum: Troubleshooting
Topic: omxplayer in loop problem
Replies: 5
Views: 4394

Re: omxplayer in loop problem

How about this: #!/bin/bash count=0 IFS=' ' while true do for f in $(ls ${FILES} | sort -R) do printf "%3d> %s\n" "$count" "$f" count=$((count+1)) done done Because I'd like it to loop endlessly, but also create a new random playlist each iteration in the while loop. Thanks again :)
by brianhj
Sun Mar 10, 2013 7:40 pm
Forum: Troubleshooting
Topic: omxplayer in loop problem
Replies: 5
Views: 4394

Re: omxplayer in loop problem

Ok, my apologies, you did put that script in your first reply, I will try that when I get home. Thank you :)
by brianhj
Sun Mar 10, 2013 5:51 pm
Forum: Troubleshooting
Topic: omxplayer in loop problem
Replies: 5
Views: 4394

Re: omxplayer in loop problem

That's not what the problem is... :cry: I can loop through the file names fine. The problem is omxplayer doesn't like it... from it's output I can I am sending the correct file path, but I get a segmentation fault. In the first loop I showed it plays fine. Again, why does it work in the first loop b...
by brianhj
Thu Mar 07, 2013 2:35 am
Forum: Troubleshooting
Topic: omxplayer in loop problem
Replies: 5
Views: 4394

omxplayer in loop problem

I have a bunch of videos here: /media/blah/ I'm trying to loop through them randomly in bash. Right now I have it choosing a random video each time one finishes: while true do files=(/media/blah/*.mkv) omxplayer -o hdmi "${files[RANDOM % ${#files[@]}]}" done And that works.. but What I'd rather have...

Go to advanced search