Difference between revisions of "Raspberry Pi - Week 4"

From Robert-Depot
Jump to: navigation, search
(Video Playback)
(Video Playback)
Line 8: Line 8:
 
== Video Playback ==
 
== Video Playback ==
 
*[https://github.com/huceke/omxplayer Omxplayer] is a video player specifically made for the Raspberry PI's GPU made by Edgar (gimli) Hucek from the XBMC project.
 
*[https://github.com/huceke/omxplayer Omxplayer] is a video player specifically made for the Raspberry PI's GPU made by Edgar (gimli) Hucek from the XBMC project.
*The commands. omxplayer hotkey reference:
+
**omxplayer comes pre-installed on our raspbian distribution.
 +
*Controlling omxplayer with hotkeys:  
 
**http://elinux.org/Omxplayer#Hotkeys
 
**http://elinux.org/Omxplayer#Hotkeys
 +
*Try it out, by hand.
 +
**Copy a movie file to your raspberry pi using scp.
 +
**movie needs to be mp4 format.
 +
***you can transcode with ffmpeg:
 +
****<code>ffmpeg -i mouse_brain.wmv mouse_brain.mp4</code>
 +
**run omxplayer and try hotkey controls
 +
***<code>omxplayer ~/Movies/mouse_brain.mp4<code>
 +
**notice responsiveness.
 
*We will send those via STDIN in python:
 
*We will send those via STDIN in python:
 
**http://stackoverflow.com/questions/12755968/sending-arrow-keys-to-popen
 
**http://stackoverflow.com/questions/12755968/sending-arrow-keys-to-popen
 +
 +
===ffmpeg===
 +
*install homebrew
 +
*<code>brew install ffmpeg</code>
  
 
== Scripting Video Playback ==
 
== Scripting Video Playback ==

Revision as of 08:01, 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.
  • Controlling omxplayer with hotkeys:
  • Try it out, by hand.
    • Copy a movie file to your raspberry pi using scp.
    • movie needs to be mp4 format.
      • you can transcode with ffmpeg:
        • ffmpeg -i mouse_brain.wmv mouse_brain.mp4
    • run omxplayer and try hotkey controls
      • omxplayer ~/Movies/mouse_brain.mp4<code>
    • notice responsiveness.
  • We will send those via STDIN in python:

ffmpeg

  • install homebrew
  • <code>brew install ffmpeg

Scripting Video Playback

GPIO

through python

Logic Level Conversion

  • RPi is 3.3V.