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/11/07 13:14] – [Raspberry Pi Video Loop] Julien Deswaefprojects:raspi_video_loop [2015/03/10 22:42] – [GStreamer] Julien Deswaef
Line 59: Line 59:
 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 91:
  
 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 110:
  
 ==== 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