Difference between revisions of "Raspberry Pi - Week 4"

From Robert-Depot
Jump to: navigation, search
(Video Playback)
(Video Playback)
Line 10: Line 10:
 
**omxplayer comes pre-installed on our raspbian distribution.
 
**omxplayer comes pre-installed on our raspbian distribution.
 
*Try it out.
 
*Try it out.
**Copy a movie file to your raspberry pi using scp. The movie needs to be mp4 format.  
+
*Copy a movie file to your raspberry pi using scp. The movie needs to be mp4 format.  
***you can transcode with ffmpeg:
+
**you can transcode with ffmpeg:
***<code>ffmpeg -i mouse_brain.wmv mouse_brain.mp4</code>
+
**<code>ffmpeg -i mouse_brain.wmv mouse_brain.mp4</code>
**run omxplayer:
+
*run omxplayer:
***<code>omxplayer ~/Movies/mouse_brain.mp4<code>
+
**<code>omxplayer ~/Movies/mouse_brain.mp4<code>
 
*You can control playback with a number of hotkeys:
 
*You can control playback with a number of hotkeys:
 
**http://elinux.org/Omxplayer#Hotkeys
 
**http://elinux.org/Omxplayer#Hotkeys

Revision as of 08:04, 26 April 2013

<<< back to Raspberry Pi

Review

  • Installed software with apt-get. (including festival).
  • Installed and ran VNC to get a remote desktop on the machine.
  • Ran a simple python script to synthesize speech ( example)
  • Another python tutorial: Learn Python the Hard Way

Video Playback

  • Omxplayer is a video player specifically made for the Raspberry PI's GPU made by Edgar (gimli) Hucek from the XBMC project.
    • omxplayer comes pre-installed on our raspbian distribution.
  • Try it out.
  • Copy a movie file to your raspberry pi using scp. The movie needs to be mp4 format.
    • you can transcode with ffmpeg:
    • ffmpeg -i mouse_brain.wmv mouse_brain.mp4
  • run omxplayer:
    • omxplayer ~/Movies/mouse_brain.mp4<code>
  • You can control playback with a number of hotkeys:
  • We can send hotkeys via STDIN in python:

ffmpeg

  • install homebrew
  • <code>brew install ffmpeg

Scripting Video Playback

GPIO

through python

Logic Level Conversion

  • RPi is 3.3V.