Changes between Initial Version and Version 1 of Yocto/gstreamer/multimedia

10/22/2017 05:28:45 AM (3 years ago)



  • Yocto/gstreamer/multimedia

    v1 v1  
     4= Video and Audio =
     5Playback of combined video and audio is a bit more complicated as now you need to utilize parsers, named elements to split the audio and video paths, and queues to avoid single-threaded blocking.
     7The following pipeline examples utilize plugins from the the Freescale gst-fsl-plugin package on GStreamer 0.10.
     9gst-fsl-plugin elements used:
     10 * Parsers / Demuxers:
     11  * '''aiurdemux''' - parse and identify source stream formats
     13Example using Big Buck Bunney H.264 (MOV H264 video, AAC suuround sound):
     15gst-launch filesrc location=/media/sda1/ typefind=true ! aiurdemux name=d ! \
     16  queue2 ! beepdec ! alsasink d. ! \
     17  queue2 ! vpudec ! mfw_v4lsink device=/dev/video16
     21== GStreamer '''playbin2''' and '''decodebin2''' elements ==
     22GStreamer has some '''bin''' elements that try to 'autoplug' other elements together by inspecting the pipeline.
     24The '''decodebin2''' element will try to figure out the proper decoder pipeline for the sink specified:
     26gst-launch filesrc location=/media/sda1/big_buck_bunny_720p_surround.avi ! \
     27  decodebin2 ! mfw_v4lsink device=/dev/video16
     30There is also '''playbin2''' which just needs to be given a source and a sink
     32gst-launch playbin2 uri=file:///home/root/hawaii.mp4 \
     33  video-sink="mfw_v4lsink device=/dev/video16"
     36Note that these 'bin' elements may not always do what you want or expect (they may not use hardware decode for example).
     39== Freescale gplay ==
     40Or if simplicity is required, the Freescale GStreamer based '''gplay''' app will try to determine the file type and play it back as best as it can.
     42gplay /media/sda1/