导读:Example GStreamer Pipelines From Texas Instruments Embedded Processors Wiki Jump to: navigation,search Translate this page to Translate Example GStreamer Pipelines MAINTENANCE ALERT: 05 MAY 2012 The Embedded Processors Wiki is scheduled to
Example GStreamer Pipelines
From Texas Instruments Embedded Processors Wiki
Jump to: navigation,search
Translate this page to Translate
Example GStreamer Pipelines
MAINTENANCE ALERT: 05 MAY 2012
The Embedded Processors Wiki is scheduled to undergo routine maintenance and updates between the hours of 8:00 AM and 12:00 PM EDT (GMT -5) on Saturday,May 5,2012.
During this period,the wiki content may be unavailable for short periods of time and will not be editable. Please plan accordingly.
if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); }Purpose
This page provides example pipelines that can be copied to the command line to demonstrate various GStreamer operations. Some of the pipelines may need modification for things such as file names,ip addresses,etc.
It is our hope that people using this page will add new interesting pipelines that they themselves are using. For example,on DM6467 if you are decoding a 1080 video and outputing to component please include your pipeline for others to use as a reference.
Refer to this Gstreamer article for more information on downloading and building TI Gstreamer elements. The project is hosted athttp://gstreamer.ti.com. If you are interested in understanding the design details then watch video presentationhttp://software-dl.ti.com/sdo/sdo_apps_public_sw/GStreamer_On_TI/FLV1/GStreamer_On_TI.htm
Testing
Currently these pipelines have not undergone any extensive testing. If you find an error in a pipeline please correct it.
Media files
You should be able to use any audio and video media file that conforms to the appropriate standard.
Creating an AVI file
The followingffmpegcommand takes a .mov file (say from the Apple movie trailers site) and make an AVI file. Run the command on your host computer.
The following pipeline assumes you have an AVI file with MPEG-4 Video and MP1L2 or MP3 Audio. Note that not all MPEG-4 video streams can be played using the DM355 MPEG-4 decoder -- make sure the MPEG-4 stream was encoded with the DM355 MPEG-4 encoder or another compatible encoder.
The above command assumes that gstreamer is installed in /opt/gstreamer directory.
Notes on DM357 Performance:There is a known issue on DM357 where there are intermittent freezes in video and audio playback in some cases. If you experience this,nicing your gst-launch command to 15 as follows may resolve the issue:
nice -n 15 gst-launch .... (rest of gst-launch command)
When the pipeline starts to run,profile-level-id=(string)5,config=(string)000001b005000001b509000001000000012000847a9828b421e0a31f,ssrc=(guint)302303174,clock-base=(guint)347576712,seqnum-base=(guint)48616
Make a note of caps="application/x-rtp,media=(string)video ................" string and pass this string in client below
A simple RTP client to decodes MPEG-4 and display on HOST machine
This section gives example where EVM acts as RTP client,which receives encoded stream via udp then decodes and display output. Host PC can be used as server to transmit encoded stream.
A simple RTP server which encodes and transmits MPEG-4 on DM6446 EVM.