Skip to content

renesas-rz/rz_gstreamer_demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RZV and RZG GStreamer Demo

These demos show how to implement the GStreamer C API on the RZV and RZG boards. For more detailed reference to the GStreamer API here.

PlayVideoMP3

This demo is c code that shows how to implement the below CLI on C Code. The Example takes advantage the the RZ Hardware peripherals ( H.264, and VSPMFilere).

Plays the MP3 in original format

gst-launch-1.0 filesrc location=./Road.mp4 ! qtdemux ! queue ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter dmabuf-use=true ! waylandsink

Down Scales MP3 Video to VGA

gst-launch-1.0 filesrc location=./Road.mp4 ! qtdemux ! queue ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter dmabuf-use=true ! video/x-raw, width=640, height=480 ! waylandsink

Build

  1. Enable the Yocto SDK
  2. Run make
  3. Two binaries are created PlayMP3video and PlayMP3video_vga. The first plays the video in it;s original format. The second does the downscale of the video.

Image Capture Demo

This is an example of how to capture images from the GStreamer stream. This demo uses the GStreamer AppSink Element. It pushes video frames to the user application. For this example the first frame of the MP3 Stream is saved to a binary file "capImage". Use the included script to view the image. This demo takes advantage of RZ peripherials H.264 for decoding and VSPM to convert the stream format and resolution. This method is a fast and efficient method to extract images compared to OpenCV and ARM Computelibrary.

Script

The ImageViewer.py python file decodes the generated binary file "capImage". The script is designed to decode a VGA image with a BGR color pattern.

Python Required Libraries

Pillow : used to decode and view images from numpy array numpy : used to import binary files into numpy array

Build

  1. Enable the Yocto SDK
  2. Run make
  3. Copy the created binary ImageCapture to the RZ board.
  4. On the rz board type ./ImageCapture MoveFile.mp3

eAIDemo

TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published