I am trying to do something like this in a loop inside a bash script:
/usr/bin/timeout ${vidtimes[$name]} /usr/bin/omxplayer -b -o hdmi $mediaa
where ${vidtimes[$name]} represents the length of the video with up to one whole second added to get to an integer
and where $mediaa is the mp4 file to be played.
I get black screens instead of the videos.
if I just do:
/usr/bin/omxplayer -b -o hdmi $mediaa
things work fine as long as omxplayer "likes" the file. If not, it can sometimes hang "forever"...
The timeout is an attempt to stop the forever hanging.
Any thoughts on fixing this? Is there something why it will not work and I just need to give this approach with timeout up? If so, can you think of another way?
all the best,
drew