|
|||||
gst-inspect x170
will give you all the capabilities supported by the plugin.
Pad Templates: SINK template: 'sink' Availability: Always Capabilities: image/jpeg video/x-h264 width: [ 16, 4096 ] height: [ 16, 4096 ] framerate: [ 0/1, 2147483647/1 ]Here you can see that the video decoder can decode H264( Baseline Profile, levels 1-3.1) videos. This list is of course not exhaustive. You can also check the elements properties of the decoder:
Element Properties: name : The name of the object flags: readable, writable String. Default: null Current: "x1700" codec : Set codec type flags: readable, writable Enum "X170CodecName" Default: 0, "obtained from GStreamer" Current: 0, "obtained from GStreamer" (0): obtained from GStreamer - AUTO (1): JPEG raw bit stream - JPEG (2): H264 raw bit stream - H264 (3): MPEG2 raw bit stream - MPEG2 (4): MPEG4 raw bit stream - MPEG4 (5): VC1 raw bit stream - VC1Here you can check the name of the video decoder, plus the different codecs it supports. More properties analysis:
rotation : Rotate output flags: readable, writable Enum "X170RotationType" Default: 0, "0 degrees clockwise" Current: 0, "0 degrees clockwise" (0): 0 degrees clockwise - 0 (1): 90 degrees clockwise - 90 (2): 180 degrees clockwise - 180 (3): 270 degrees clockwise - 270 output-width : Width output flags: readable, writable Unsigned Integer. Range: 16 - 1280 Default: 0 Current: 480 output-height : Height output flags: readable, writable Unsigned Integer. Range: 16 - 720 Default: 0 Current: 272 crop-x : Crop output (x coordinate) flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 crop-y : Crop output (y coordinate) flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 crop-width : Crop output (width) flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 crop-height : Crop output (height) flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0Here are some post processing features supported by the video decoder such as scaling(up-scaling and down-scaling), image rotation or cropping. "output_width" and "output_height" value should be set to the size of your screen, so the decoder will resize your video(up or down-scale) according to your specific Hardware and you will have a full screen image.
output : Output video format flags: readable, writable Enum "X170OutputType" Default: 0, "UYVY video format" Current: 2, "RGB16 (565) video format" (0): UYVY video format - UYVY (1): RGB15 (555) video format - RGB15 (2): RGB16 (565) video format - RGB16 (3): RGB32 video format - RGB32Here you can see the different formats the decoder can output. It should be set according to the capabilities of the next stage of the pipeline(video sink). For instance if you need to play the video on the screen of your AT91SAM9M10-EKES board, you will set it to RGB16.
export DISPLAY=:0.0
export DISPLAY=:0.0 gst-launch filesrc location="path_to_file/your_file.avi" ! avidemux ! x170 output=RGB16 ! ximagesink
export DISPLAY=:0.0 gst-launch filesrc location="path_to_file/your_file.avi" ! avidemux name=demux \ { demux.video_00 ! queue ! x170 output=RGB16 inbuf-thresh=10000 ! queue ! ximagesink } \ { demux.audio_00 ! queue ! mad ! audioconvert ! queue ! osssink }
export DISPLAY=:0.0 gst-launch filesrc location="path_to_file/your_file.avi" ! mpegdemux name=demux \ { demux.video_00 ! queue ! x170 output=RGB16 inbuf-thresh=50000 ! ximagesink } \ { demux.audio_00 ! queue ! mad ! osssink }
DISPLAY=:0.0 if [ -f $1 ]; then echo Video file : $1 else echo File $1 does not exist exit 1 fi # Get container type CONTAINER=`gst-typefind $1 | awk -F " - " '{print $NF}'` #For mpeg TEMP=`echo $CONTAINER | grep "video/mpeg,"` if [ "$TEMP" != "" ]; then CONTAINER=video/x-mpeg fi case "$CONTAINER" in video/x-ms-asf) DEMUX=asfdemux ;; video/x-msvideo) DEMUX=avidemux ;; video/x-mpeg) DEMUX=mpegdemux ;; video/quicktime) DEMUX=qtdemux ;; *) echo File type $CONTAINER is not supported exit 1 esac #Play video CMD="gst-launch filesrc location=$1 ! $DEMUX name=demux \ demux.video_00 ! queue ! x170 output=RGB16 inbuf-thresh=50000 output_width=480 output_height=272 ! ximagesink display=$DISPLAY \ demux.audio_00 ! queue ! decodebin ! osssink " echo gst-launch command line: echo $CMD RET=`exec $CMD` gpe-question --question "$RET" --buttons icons1:"Ok
WebFaqBaseForm | |
---|---|
Boards | AT91SAM9 boards |
Components | |
Summary | M10 Vdec support |
|
||||||||||||||||||||||
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.