maximedrop
Posts: 3
Joined: Tue Jul 17, 2018 8:13 pm

RANDOM VIDEO PLAYER FOR ART INSTALATION

Tue Jul 17, 2018 8:21 pm

I am working on a art installation that will play video randomly .
i will like to be seamless ans full screen. maybe it will be 4 k video.

what i will like is put all video in one folder and the player will chose randomly any video inside of it depending on the number. so i can add or remove.
is something like this is possible on raspberry pi
I have try some multimedia software like kodi but it have a gab between video.

ltdrum
Posts: 4
Joined: Thu Jul 12, 2018 11:21 pm

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Wed Jul 18, 2018 12:07 pm

Check out my project, it might give you a starting point. It pays all videos in a folder, the random part should be easy to add. You would have to enumerate them first that random pick a number.

viewtopic.php?f=38&t=218028&sid=6ed4b19 ... e9179c24a9

maximedrop
Posts: 3
Joined: Tue Jul 17, 2018 8:13 pm

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Wed Jul 18, 2018 12:53 pm

thanks ltdrum
do the video have a gap (black screen ) between each video or it seamless

ltdrum
Posts: 4
Joined: Thu Jul 12, 2018 11:21 pm

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Thu Jul 19, 2018 3:30 pm

With omxplayer three will always be a small gap, that's just the load time of the video. True seamless will be hard to do with a rpi just based on the processing power. But if you find the process that will work, hopefully the script will get you the rest of the way

tvjon
Posts: 625
Joined: Mon Jan 07, 2013 9:11 am

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Thu Jul 19, 2018 4:35 pm

maximedrop wrote:
Tue Jul 17, 2018 8:21 pm
I am working on a art installation that will play video randomly .
i will like to be seamless ans full screen...
Is it just video or do you also need accompanying (lip-sync) audio?

maximedrop
Posts: 3
Joined: Tue Jul 17, 2018 8:13 pm

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Thu Jul 19, 2018 8:20 pm

tvjon wrote:
maximedrop wrote:
Tue Jul 17, 2018 8:21 pm
I am working on a art installation that will play video randomly .
i will like to be seamless ans full screen...
Is it just video or do you also need accompanying (lip-sync) audio?
it just the video no sound video

tvjon
Posts: 625
Joined: Mon Jan 07, 2013 9:11 am

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Tue Jul 24, 2018 1:39 pm

In that case, a simpler application will do the job without gaps, providing your source videos are in .h264 form, or if mpeg4 you can quickly convert them on your RPi via something like

gpac.

The app's source code is on your Raspbian µSD card in:

/opt/vc/src/hello_pi/hello_video/

You'll need to build it, so view the README.

Having done that, copy hello_video.bin to an executable path, eg., into:

/home/pi/bin


Attached is a small script I use to play a folder's video content, which also can be copied to:

/home/pi/bin

You can modify it to shuffle the videos for playback.

Finally, cd to your folder of videos, & in a terminal window, type the name of the script & all the videos will play.
Attachments
hvloop.sh.zip
(273 Bytes) Downloaded 5 times

User avatar
dividuum
Posts: 108
Joined: Sun Jun 16, 2013 1:18 pm
Location: Germany
Contact: Website

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

Wed Jul 25, 2018 1:12 pm

ltdrum wrote:
Thu Jul 19, 2018 3:30 pm
True seamless will be hard to do with a rpi just based on the processing power.
That's not correct. My info-beamer pi software is capable of that. It works by preloading and pausing the next video before the current video ends. Once it ends, it unpauses the next video. It works pretty well. Here's some minimal example code: https://github.com/dividuum/info-beamer ... r/seamless. It's also possible to use this ability to create video walls that play videos synced across multiple screens.
info-beamer hosted - A user and programmer friendly digital signage platform for the Pi: https://info-beamer.com/hosted


Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 5 guests