Page 1 of 1

some things to fix in my loop video player bash script

Posted: 30 Dec 2018 23:41
by ksge
hi to all,
i am working on linux (ubuntu 18.04) on a bash script that should simply loop while playing some videoclips using vlc ; those videoclips are choosed by the bash script based on some events, so I cannot use the vlc playlist features.
Everything works but I have two things to fix and for now my searches wasn't useful:

1- each time a videoclip finishes vlc window closes for 1 or 2 seconds; it isn't a good thing to see
2- if during the reproduction of a clip i customize the window size, the setting will be lost after the next clip is played, this thing happens only if I launch vlc via bash script, using gui window position/size is keeped

my batch script simply loop issuing this command:

vlc myclipname --quiet -I dummy --no-osd --play-and-exit

all clips are done with same resolution and codec.

ps: i use --play-and-exit because my bash needs to wait for the clip to end, maybe another command exist to ask the player if the clip is ended?

thank you in advice