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
projects:raspi_video_loop [2014/11/07 13:16] – [Transcoding a video to h264] Julien Deswaefprojects:raspi_video_loop [2015/03/25 04:06] (current) – [OMXplayer] Julien Deswaef
Line 26: Line 26:
   Version   : 39e6342 [master]   Version   : 39e6342 [master]
      
-Developpment happens here: https://github.com/popcornmix/omxplayer.git+Developpment happens here: https://github.com/popcornmix/omxplayer
  
 Bendenoz has been working on a [[https://github.com/bendenoz/omxplayer/commit/cd47dbb47cfa1a2ef2d5a8ca3f80e1348a76fa49|fix]] to get the loop working. But I haven't had the time and energy to compile and test it.  Bendenoz has been working on a [[https://github.com/bendenoz/omxplayer/commit/cd47dbb47cfa1a2ef2d5a8ca3f80e1348a76fa49|fix]] to get the loop working. But I haven't had the time and energy to compile and test it. 
  
 Until this "loop" option is working in the official version, we'll have to come with other tricks. Until this "loop" option is working in the official version, we'll have to come with other tricks.
 +
 +**March 2015** : Visited back the repo, and it seems the loop option works now, with some limitations and some bugs as indicated by [[https://github.com/jvcleave/ofxOMXPlayer/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+loop|some issues]]. 
  
 ==== Bash scripting ==== ==== Bash scripting ====
Line 59: Line 61:
 I have not taken the time to try it out. It uses pyomxplayer to control multiple instances of OMXPlayer started at once. The idea is that you would start one instance while maintaining another one on pause. Then watch the first instance and right before it reaches the end of the video, start the second one. And so on. I have not taken the time to try it out. It uses pyomxplayer to control multiple instances of OMXPlayer started at once. The idea is that you would start one instance while maintaining another one on pause. Then watch the first instance and right before it reaches the end of the video, start the second one. And so on.
  
-==== openFrameworks + ofxOMXPlayer ====+===== openFrameworks + ofxOMXPlayer =====
  
 [[http://www.openframeworks.cc|openFrameworks]] is a C++ framework for artists and coders. There is a version of it that you can install on RaspberryPi (with Raspbian). [[http://www.openframeworks.cc|openFrameworks]] is a C++ framework for artists and coders. There is a version of it that you can install on RaspberryPi (with Raspbian).
Line 91: Line 93:
  
 With the hello_video.bin file that is generated, you'll only be able to play videos encoded in h264 with no sound. But you'll have a perfect loop, with no gap. With the hello_video.bin file that is generated, you'll only be able to play videos encoded in h264 with no sound. But you'll have a perfect loop, with no gap.
 +
 +===== GStreamer =====
 +I've heard of a [[https://github.com/sailfishos/gst-omx|GST-OMX]] plugin for gstreamer. So it seems GStreamer would talk directly to the GPU and be a good candidate for video playback on the Raspi, with the added features that GStreamer can offer. I have yet to try this option. If you have some feedback, don't hesitate to fill the page with your findings.
  
  
Line 107: Line 112:
  
 ==== Transcoding a video to h264 ==== ==== Transcoding a video to h264 ====
-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:+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.1415362572.txt.gz · Last modified: 2014/11/07 13:16 by Julien Deswaef