kfish / gst-sh-mobile forked from honkasuo/gst-sh-mobile

GStreamer Encoder and Decoder for SH Mobile

This URL has Read+Write access

README
*** GSTREAMER SH ENCODER AND DECODER ***

This gst-sh-mobile contains the encoder and decoder Gstreamer elements for
SuperH environment. These elements are depending to libshcodes and it provides
the hardware acceleration for gst-sh-mobile elements.

HOWTO BUILD

Please use the autoconf and automake configurations in this package. You can
configure and build the elements like this:

$ ./autogen.sh
$ ./configure
$ make

HOWTO USE

These two basic use cases are just examples of the usage possibilities. Please
note that the decoder is a sink and it will play the video on the screen.

Encode file to file:

$ gst-launch filesrc location=source_video_to_encode ! gst-sh-mobile-enc \
cntl_file=encoder_control_file.ctl ! filesink location=encoded_video_file

Encode camera to file with LCD preview:

$gst-launch -v gst-sh-mobile-camera-enc cntl_file=k264-v4l2.ctl preview=1\
 ! video/x-h264,width=640,height=480,framerate=30/1 ! filesink location=encoded_video.h264

Decode a file and playback on the screen:

$ gst-launch filesrc location=video_file.avi  ! avidemux name=demux \
demux.video_00 ! queue ! gst-sh-mobile-dec-sink