Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to use ubuntu server 12.04 to play a repeating video loop on a connected tv. There won't be any interaction with the system once it is live, except remotely.

Additionally, I need to be able to push an updated video file/files to the server remotely and have them play as soon as they are done. I'm not worried about the technology required to send the files to the server as I can handle that, but I would like to know which video player for ubuntu server to use and how to set up the server to play video.

So the ideal setup would be we just connect this server to a tv, turn it on, and then it begins playing the video loop.

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Install ubuntu-desktop (or any other way that you are comforatble with, that gives you a working X server).

As for pushing files there is a million different ways, you could use rsync, or CIFS or AFP.

Create a service that runs constantly in the background. (I would use Python and supervisor).

This service can:

  • Start VLC with the --fullscreen and --loop arguments.
  • Use inotify to detect newly uploaded files, and restart VLC (or maybe just update a playlist?).
share|improve this answer
    
Your solution is working great, however I have one question: When I push files to the computer, how can I have vlc load that new file after the video loop is done (or immediately). I'm assuming deleting the existing file while vlc is playing it is not a good idea? –  zenchess Oct 5 '13 at 22:39
    
Once you have the upstart script build you will need to open a shell and enter restart the-script-name to change anything. You can delete the file while it still running but it won't affect vlc. This is until you restart the script. –  MadMike Oct 5 '13 at 23:00
    
@thnee If it isn't too much trouble: could you provide a working upstart script? –  MadMike Oct 5 '13 at 23:03
    
Edited my answer to accomodate for reloading VLC when new files are uploaded. –  thnee Oct 7 '13 at 10:50
    
@MadMike No I will not be able to author a complete solution, sorry. –  thnee Oct 7 '13 at 10:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.