xref: /OK3568_Linux_fs/debian/overlay-debug/rockchip-test/video/test_enc-gst.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2export DISPLAY=:0.0
3#export GST_DEBUG=*:5
4#export GST_DEBUG_FILE=/tmp/2.txt
5export mpp_syslog_perror=1
6
7echo "message: output to /home/linaro/2k.ts!"
8
9gst-launch-1.0 videotestsrc num-buffers=512 ! video/x-raw,format=NV12,width=1920,height= 1080,framerate=30/1 \
10    ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/linaro/2k.ts
11
12echo "message: playing encoded video!"
13
14gst-launch-1.0 uridecodebin uri=file:///home/linaro/2k.ts  ! xvimagesink
15