xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


projects:raspi_video_loop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
projects:raspi_video_loop [2014/05/22 21:31] Julien Deswaefprojects:raspi_video_loop [2014/11/07 13:16] Julien Deswaef
Line 6: Line 6:
  
 **First question: does your video needs sound or not?**\\ **First question: does your video needs sound or not?**\\
-If it does not have sound, jump immediatly to the [[#hello_video | hello_video]] solution. It's the quick and easy one that has been working since this page exist.+If it does not have sound, jump immediatly to the [[#hello_video | hello_video]] solution. It's the quick and easy one that has been working since day one.
  
 If you need sound, then there is multiple ways with different results and coding styles: [[#bash_scripting|Bash scripting]], [[#python_scripting|Python]] or [[#openframeworks_ofxomxplayer|C++]]. If you need sound, then there is multiple ways with different results and coding styles: [[#bash_scripting|Bash scripting]], [[#python_scripting|Python]] or [[#openframeworks_ofxomxplayer|C++]].
Line 21: Line 21:
   omxplayer --loop  video.mp4   omxplayer --loop  video.mp4
      
-But still not working with this version:+But (still not | or yes | or partly see issue [[https://github.com/popcornmix/omxplayer/issues/187|#187]]) working with this version:
      
   Build date: Sat, 22 Mar 2014 20:58:15 +0000   Build date: Sat, 22 Mar 2014 20:58:15 +0000
Line 67: Line 67:
 You will need to [[http://www.openframeworks.cc/setup/raspberrypi/Raspberry-Pi-Getting-Started.html|install a lot of libraries]] and take some time to compile openFrameworks. But the basic examples that come with ofxOMXPlayer addon all work and have a video loop function working. You will need to [[http://www.openframeworks.cc/setup/raspberrypi/Raspberry-Pi-Getting-Started.html|install a lot of libraries]] and take some time to compile openFrameworks. But the basic examples that come with ofxOMXPlayer addon all work and have a video loop function working.
  
-The advantage of using openFrameworks is that you can do more than just loop videos and have overlay text, logos, etc... But, adthough openFrameworks prepares a lot for its users, this reguires some knowledge of C++.+The advantage of using openFrameworks is that you can do more than just loop videos and have overlay text, logos, etc... But, though openFrameworks prepares a lot for its users, this requires some knowledge of C++.
  
 ===== hello_video ===== ===== hello_video =====
Line 107: Line 107:
  
 ==== Transcoding a video to h264 ==== ==== Transcoding a video to h264 ====
-This hello_video example is quite strict on what type of video file can be played. If your video file is in a mp4 container, it won't play. The easiest solution to get a working file for me was to start with a list of jpeg files with a 1920 x 1080 resolution and to process it with ffmpeg. Here's the code that worked for me:+This [[#hello_video|hello_video]] example is quite strict on what type of video file can be played. If your video file is in a mp4 container, it won't play. The easiest solution to get a working file for me was to start with a list of jpeg files with a 1920 x 1080 resolution and to process it with ffmpeg. Here's the code that worked for me:
  
 <code bash> <code bash>
projects/raspi_video_loop.txt · Last modified: 2015/03/25 04:06 by Julien Deswaef