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