Jump to content


Photo

showiframe for more files


  • Please log in to reply
3 replies to this topic

#1 mrvica

  • Senior Member
  • 1,227 posts

+82
Good

Posted 27 April 2023 - 14:58

as you know showiframe can just show just one .mvi file at a time, with a wildcard tool you can show more files one by one, what is this good for? you can i.e. show more bootlogo splashs or when you convert .jpgs into .mvi you can use it as a picture viewer, you don´t need enigma2 for that, to avoid "video device busy error" while starting the tool just kill enigma2 with init 4 or switch to radio mode

root@h7:/tmp# showiframe
usage: showiframe <iframe>
root@h7:/tmp# showiframe /media/hdd/mvi/*.mvi
usage: showiframe <iframe>

root@h7:/tmp# ./wildcard
Segmentation fault
root@h7:/tmp# ./wildcard -?

Wildcard execution of a command

Usage: wildcard delay progname arguments...

e.g. wildcard 7 showiframe /media/hdd/mvi/*.mvi

The arguments are wildcard expanded. Progname is executed once for each argument. Arguments preceded
by a - are passed through to progname and do not influence the number of times progname is executed.

root@h7:/tmp# wildcard 1 showiframe /media/hdd/mvi/*.mvi
showiframe /media/hdd/mvi/11_04_2020-13_01_06.mvi
showiframe /media/hdd/mvi/11_04_2020-13_01_49.mvi
showiframe /media/hdd/mvi/11_04_2020-13_02_34.mvi
showiframe /media/hdd/mvi/11_04_2020-13_02_48.mvi
showiframe /media/hdd/mvi/11_04_2020-14_05_11.mvi
showiframe /media/hdd/mvi/11_04_2020-14_07_52.mvi
showiframe /media/hdd/mvi/11_04_2020-14_07_56.mvi
root@h7:/tmp#

what I am missing is a shuffle option, if a C specialist can add it would be nice, C source code and armhf binary are included

 

Attached Files



Re: showiframe for more files #2 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 27 April 2023 - 22:04

what I am missing is a shuffle option, if a C specialist can add it would be nice, C source code and armhf binary are included


Here ya go (fixes the no-argument segfault, too). It will shuffle when "shuffle" is in the program name, so you can ln -s wildcard wildcard-shuffle and then invoke ./wildcard-shuffle instead of ./wildcard

Attached Files


Sorry to inform you this member, my brother, passed away.

Re: showiframe for more files #3 mrvica

  • Senior Member
  • 1,227 posts

+82
Good

Posted 28 April 2023 - 14:37

works fine, attached armhf binaries, I included both wildcard and wildcard-shuffle, for people that don´t know how to make soft links or didn´t read this, I tried looping as well, with a help of a script, I put both wildcard and wildcard-shuffle in /usr/bin

looping forever

while [ 1 ]; do wildcard-shuffle 2 showiframe /media/hdd/mvi/*.mvi; done

could be stopped with Ctrl-C

propably could be done in C too, loop x times or forever

 

Attached Files



Re: showiframe for more files #4 mrvica

  • Senior Member
  • 1,227 posts

+82
Good

Posted 30 April 2023 - 06:59

interesting about wildcard.c we were using here (well, parts of it). It was on my hard disk and I wanted to know where did I get it from, I was doing ftp serach, it can be still downloaded here

http://ftp3.us.freeb...RD.ZIP-contents

it is public domain since long time ago, the wildcard.com still works on my win 8.1 and you won't believe it who the author is

Walter Bright - Wikipedia

 

 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users