LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2017, 11:32 AM   #1
halek37
LQ Newbie
 
Registered: Mar 2017
Location: Loudon TN
Distribution: Debian
Posts: 24

Rep: Reputation: Disabled
Question 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.
 
Old 03-11-2017, 02:23 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
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
 
  


Reply

Tags
crontab, linux, raspberrry pi, video



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gstreamer: play-pause of audio file hangs with gst-play command on Raspberry pi 2 Roronoa Zoro Linux - Newbie 2 10-14-2015 11:33 AM
New monitor - all video software crashes when I try to play video Lossenelin Linux - General 3 09-14-2010 05:30 AM
Lucid: Video apps crash after loading a video to play on Dell Latitude X300 johnbartley Linux - Hardware 9 08-16-2010 10:14 AM
Many video format (such as video/x-ms-asf and video/x-ms-wvx ) does not play? jmettova Debian 1 05-05-2009 11:22 AM
Firefox / Flash Player problem: Online video will play only audio, video is white. NOoBuntuLinux Linux - Software 1 03-28-2009 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration