Using Gstreamer on the Hawkboard

From RidgeRun Developer Connection

Revision as of 15:10, 5 August 2010 by Dsoto (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to:navigation, search

The RidgeRun SDK for Hawkboard has Gstreamer integrated, which is a library for constructing graphs of media-handling components. Gstreamer will allow you to link different elements into a pipeline to achieve different functions such as video and audio decoding, encoding and streaming.

Make sure you have followed the instructions at the Configure u-boot environment for Hawkboard page before continuing with the next steps.

The first step once your board is set up correctly, is to load the modules that reserve the memory needed by cmemk. Execute the following command:

/ # loadmodules.sh 

The output after running the script should look like this:

[   14.190000] CMEMK module: built on Apr 21 2010 at 11:43:48
[   14.190000]   Reference Linux version 2.6.32
[   14.200000]   File $(DEVDIR)/proprietary/dvsdk_1_00_00/OMAP_L138_arm_1_00_00_08/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[   14.240000] allocated heap buffer 0xc3000000 of size 0x4de000
[   14.240000] cmemk initialized
[   14.380000] DSPLINK Module (1.65.00.01) created on Date: Apr 21 2010 Time: 11:44:15

Audio pipelines

gst-launch filesrc location= BigBuckBunny_320x240M.mp4 ! qtdemux name=demux .audio_00 ! 
queue ! dmaidec_aac ! dmaiperf ! alsasink            
gst-launch videotestsrc ! fbdevsink    

Video pipelines

gst-launch filesrc location= BigBuckBunny_320x240M.mp4 ! qtdemux name=demux .video_00 ! 
queue ! dmaidec_mpeg4 ! dmaiperf ! ffmpegcolorspace ! fbdevsink                
gst-launch videotestsrc ! fbdevsink   

Audio + video pipelines

gst-launch filesrc location= BigBuckBunny_320x240M.mp4 ! qtdemux name=demux .audio_00 ! queue ! dmaidec_aac ! 
fakesink demux.video_00 ! queue !  dmaidec_mpeg4 ! dmaiperf ! ffmpegcolorspace ! fbdevsink
Navigation
Toolbox