Run several videos

Asked

Viewed 33 times

0

I have about 8 sequences of videos that need to run as the user chooses the option (1 = Video_1, 2 = Video_2)

Example:

"Enter the desired option"

"1 - Start Engine Machine 01"

"2 - Reestablish connection to Y-axis"

Ai when he chooses the option "1" the script will open the videos referring to option 1 (located inside the folder '/home/pi/desktop/v1/vx.mp4')

But when I use

for x in range(1,8):
   file = 'Video_' + str(x)
   os.system('omxplayer --aspect-mode fill -o local /home/pi/video_{}.mp4'.format(file))

Either he just spins the first video or he spins nothing

Has anyone been there? Can you give me a hand?

  • And at what point does the user choose the option? How do you check which video to run as per his option?

  • Type will appear in the rasp terminal a "menu" with the options, then to find the sequence of videos (I said wrong question) he will find in the folder "01" the videos that must be run

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.