LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Play Video on Raspberry Pi (https://www.linuxquestions.org/questions/linux-newbie-8/play-video-on-raspberry-pi-4175601538/)

halek37 03-11-2017 11:32 AM

Play Video on Raspberry Pi
 
I am relative newbie as far as linux goes and I have undertaken a problem that is probably more complex than I should have undertaken. That is why I requesting help here.

I was planning to do this on a Raspberry Pi using the Debian Linux with HDMI output to a TV. I had experimented and found that using the omxplayer with the terminal that the videos could be shown just fine. My project involves playing 4 different mp4 videos each day for 30 minutes with output to a TV. During the intervening periods the TV would be showing a website . I will try to describe this further below;
Code:

        8:30 am Play Video 1 until 9 am when will view Web.
        12:30 pm Play Video 2 until 1pm when will view Web
        4pm Play Video 3 until 4:30 pm when will view Web
        7 pm Play Video 4 until 7:30 pm then off
        Repeat next day for 6 days

Because the videos are a repetition of a one minute segment I had experimented with using the loop option on omxplayer or using a script with a "while" loop. The crontab command looked like the way to be able to schedule the 4 daily events. However the fact that crontab does not have a connection to the terminal led me to this forum trying to understand why scripts that would run on the terminal did not produce the desired output to the HDMI. That problem, & others, were explained by a thread "Can't get Crontab To Function" in the Linux-Distributions-Debian forum.

The experience lead me to attempt this thread to seek help to develop a better way to perform my project.

fatmac 03-11-2017 02:23 PM

There has been quite a bit of talk about using omxplayer on the Raspberry Pi Forum lately, I suggest you take a look at that.

https://www.raspberrypi.org/forums/s...ords=omxplayer


All times are GMT -5. The time now is 06:20 AM.