Bash script to play images and videos in loop

Hi, I just want to make a media loop opening the pi3d app

[login to view URL]

[login to view URL]

and launching this code "python3 [login to view URL]"

that is part of the demos of 3dpi:

[login to view URL]

This code "python3 [login to view URL]" is an image viewer that show a blending/cross-fading transition between the slides.

The slides are not moving forward automatically, the slides are going forward only clicking the RIGHT ARROW key.


and click on the RIGHT ARROW every N seconds to show the next picture, and the next and the next, then sometimes pause the images and launch the OMXPLAYER

[login to view URL]

over these images/slide-show, and at the end of the mp4playng, go back again to run this code "python3 [login to view URL]" and restart to use the RIGHT ARROW to show the next pictures, and the next and the next, etc..

So now you can imagine that this new MEDIA PLAYER (images with pi3d plus videos with omxplayer) could work with all the png/jpeg and mp4 saved on the same folder (that we call NOWPLAYING) and then playing in this way:

SLIDE1 (of N seconds defined from the user area) + cross-fading to black of 0.5 seconds or less to a black image

+ black-image of 0.01 seconds (immediately click on arrow to the right)

+ cross-fading of 0.5 seconds or less from the black image to the next slide

+ SLIDE 2 (of N seconds defined from the user area) +

+ black-image of 0.01 seconds (immediately click on arrow to the right)

+ cross-fading of 0.5 seconds or less from the black image to the next slide

+ SLIDE 3 (of N seconds defined from the user area) +

+ black-image of 0.01 seconds (immediately click on arrow to the right)

+ cross-fading of 0.5 seconds or less from the black image to the next slide

+ SLIDE 4 (of N seconds defined from the user area) +


Then if/when a mp4 is coming in the loop, we don't close pi3d "python3 [login to view URL]" and we launch omxplayer over it, so then no one see the lag of 0.1 seconds that omxplayer needs to open. When omxplayer is closing because the mp4 is ended, then we restart to count the seconds to restart the slide-show managed from python3 [login to view URL] .

For now I just need a static demo doing it.

Then The project will go quickly forward (with other next extra payments) adding these features:

1) change the slides from a CSV file downloaded from a URL, example [login to view URL] and each URL will match with a different play list

2) update the folder that we call NOWPLAYING deleting the media(mp4 and png/jpeg) files that are are not to play now and add the new that must be downloaded, closing and reopening pi3d to update the playlist

3) store also the schedule of the future playing, saving the future png/jpeg and mp4 files in a folder named FUTURE-PLAYING so then if this media players goes offline for a while it can works well for more time, waiting that the internet line will be back again.

For these extra features, also the start date and time and end date and time will be written into the filename or in the playlist.


About the RIGHT ARROW, actually I do it by hand, the pythin code doesn't do it automatically and the bash script has to do it.


The operating system is raspbian, debian for raspberry. do you have a raspberry?

Then in future maybe I will use this script on ubuntu core too.

I think that the best is if you have a raspberry too, to can test all quickly, because for example pi3d don't show the images on anydesk. My raspberry is reayd with anydesk and dataplicity, and I repeat is a lot better to test it directly on your raspberry..

If you don't have a raspberry, you can install raspbian on your pc: [login to view URL]

My raspberry is raspberry pi3 model b+

for the sample any image of 1920x1080 and 1080 x 1920 are ok, the sample for videos

Квалификация: Bash Scripting, Raspberry Pi, Shell Script

Показать больше omxplayer multiple videos, omxplayer playlist seamless, raspberry pi video player loop, omxplayer loop, best bash script, unix ftp bash script, mutt bash script, script selling images, common bash script admin task, script resize images folder, bash script set proxy, script php manager videos, sendmail bash script, unit testing bash script, bash script website clicks, script imagevenue images, ffmpeg bash script automatically convert videos, youtube videos loop play view count individually, ajax script play multiple videos, linux bash script loop

О работодателе:
( 48 отзыв(-а, -ов) ) Forli, Italy

ID проекта: #19783812



Hi there! I have 3 Raspberry Pi boards that I can test and develop this on. In addition to the Pi boards I have other ARM boards as well. I estimate it will take about 7 days to get the prototype software running Больше

$250 USD за 2 дней(-я)
(5 отзывов(-а))

5 фрилансеров(-а) в среднем готовы выполнить эту работу за $255


Hi, Raspberry Pi pro, have done many projects on RFID, GPU, GPIO and Video. I am a multimedia expert with Audio Video encoding/decoding experience in Linux/Android Domain. Delivered several projects on RPI, Digital Si Больше

$277 USD за 2 дней(-я)
(9 отзывов(-а))

Hi. thanks for your posting. I'm very happy to have a chance of bidding your project. I have experience in development of the projects like yours If you hire me, I'll do my best for your project and finish greatly in a Больше

$300 USD за 7 дней(-я)
(0 отзывов(-а))

Hello, I have read the details provided and i am positive i can provide quality work,please contact me to discuss more on the project deadline and some other few things

$250 USD за 5 дней(-я)
(1 отзыв)

Ciao, anche io sviluppo con raspberry :) direi che se fattibile non ci sono problemi! No problem with any Linux and Windows Server, Desktop administration, mail server, vpn, dns, networking, firewall configuration, do Больше

$200 USD за 2 дней(-я)
(0 отзывов(-а))