TK1/TX1 Gstreamer 测试命令

测试解码器


gst-launch-1.0 -v filesrc location=/mnt/nfs/30fps4k.mp4 ! decodebin  ! nvvidconv ! xvimagesink -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/30fps4k.mp4 ! decodebin ! nveglglessink -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/30fps480p.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec skip-frames=2 ! queue ! nvhdmioverlaysink sync=false -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! nvvidconv ! 'video/x-raw, format=(string)GRAY8' ! queue ! videoconvert ! xvimagesink -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! nvvidconv ! xvimagesink brightness=300 -e




gst-launch-1.0 filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! 
 ! video/x-raw ! videoconvert ! nveglglessink -e






gst-launch-1.0 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nvoverlaysink overlay-x=0 overlay-y=0 overlay-w=800 overlay-h=600 -e


nveglglessink
nvoverlaysink
avdec_h264
omxh264dec
nvhdmioverlaysink
xvimagesink


gst-launch-0.10 filesrc location=/home/ubuntu/work/4K30fps.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! 'video/x-nv-yuv' ! nvvidconv ! xvimagesink -v -e


gst-launch-1.0 filesrc location=/home/ubuntu/work/4K30fps.mp4 ! qtdemux name=demux demux.video_00 ! queue ! omxh264dec ! nvvidconv ! xvimagesink -v -e


'video/x-raw, format=(string)I420, width=640, height=480'
gst-launch-1.0 -v filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux name=demux ! h264parse ! omxh264dec ! nveglglessink -e


gst-launch-1.0 -v filesrc location=/home/ubuntu/work/4K30fps.mp4 ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! fakesink -e




gst-launch-0.10 filesrc location=/mnt/nfs/1080P30fps.mp4 ! decodebin ! xvimagesink 
overlay-x=0 overlay-y=0 overlay-w=800 overlay-h=600


gst-launch-1.0 filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nvhdmioverlaysink overlay-x=900 overlay-y=700 overlay-w=400 overlay-h=300


指定坐标
gst-launch-0.10 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_hdmi_videosink overlay-x=0 overlay-y=300 overlay-w=500 overlay-h=500 -v -e &


gst-launch-0.10 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_videosink overlay-x=0 overlay-y=300 overlay-w=500 overlay-h=500 -v -e &




gst-launch-0.10 filesrc location=15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! 'video/x-nv-yuv' ! nvvidconv ! xvimagesink -v -e


gst-launch-0.10 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_hdmi_videosink overlay-x=700 overlay-y=700 overlay-w=500 overlay-h=500 -v -e &


gst-launch-1.0 filesrc location=/mnt/nfs/1080P30fps.mp4 ! decodebin ! eglglessink
nvgstplayer 播放器使用
nvgstplayer -i /mnt/nfs/15.mp4
 
 




./multiwindow.py file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps720p.avi file:/mnt/nfs/30fps720p.avi file:/mnt/nfs/30fps720p.avi


rtsp://192.168.0.103/axis-media/media.amp?videocodec=h264
rtsp://192.168.0.55/axis-media/media.amp?videocodec=h264
rtsp://192.168.0.10/MediaInput/h264
rtsp://192.168.0.55/axis-media/media.amp?camera=1&streamprofile=Quality
rtsp://192.168.0.103/axis-media/media.amp?videocodec=jpeg


gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)640, height=(int)480' ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000


gst-launch-1.0 -v rtspsrc user-id=root user-pw=root location=rtsp://192.168.0.10/axis-media/media.amp?camera=1 ! rtph264depay ! h264parse ! omxh264dec enable-error-check=true ! nvhdmioverlaysink  


gst-launch-1.0 -v rtspsrc user-id=root user-pw=root location=rtsp://192.168.0.103/axis-media/media.amp?videocodec=h264 ! decodebin ! autovideosink 




gst-launch -v gstrtpbin name=rtpbin filesrc location=filesrc location=30fps720p.avi ! decodebin name=dec dec. ! queue ! x264enc byte-stream=false bitrate=300 ! rtph264pay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5000 host=127.0.0.1 ts-offset=0 name=vrtpsink rtpbin.send_rtcp_src_0 ! udpsink port=5001 host=127.0.0.1 sync=false async=false name=vrtcpsink udpsrc port=5005 name=vrtpsrc ! rtpbin.recv_rtcp_sink_0 dec. ! queue ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! rtpbin.send_rtp_sink_1 rtpbin.send_rtp_src_1 ! udpsink port=5002 host=127.0.0.1 ts-offset=0 name=artpsink rtpbin.send_rtcp_src_1 ! udpsink port=5003 host=127.0.0.1 sync=false async=false name=artcpsink udpsrc port=5007 name=artpsrc ! rtpbin.recv_rtcp_sink_1




gst-launch-1.0 -v filesrc location=/mnt/nfs/15fps720p.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 skip-frame=1 ! queue ! videoconvert ! auto sync=false




Panasonic Multicast receive
gst-launch-1.0 udpsrc uri="udp://224.225.225.225:1026" ! 'application/x-rtp, encoding-name=H264, payload=98' ! rtph264depay ! h264parse ! tee name=aa ! queue ! avdec_h264 ! nvhdmioverlaysink sync=false aa. ! queue ! matroskamux ! filesink location=/mnt/nfs/aa.mkv






































测试解码器


gst-launch-1.0 -v filesrc location=/mnt/nfs/30fps4k.mp4 ! decodebin  ! nvvidconv ! xvimagesink -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/30fps4k.mp4 ! decodebin ! nveglglessink -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/30fps480p.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec skip-frames=2 ! queue ! nvhdmioverlaysink sync=false -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! nvvidconv ! 'video/x-raw, format=(string)GRAY8' ! queue ! videoconvert ! xvimagesink -e


gst-launch-1.0 -v filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! nvvidconv ! xvimagesink brightness=300 -e




gst-launch-1.0 filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! 
 ! video/x-raw ! videoconvert ! nveglglessink -e






gst-launch-1.0 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nvoverlaysink overlay-x=0 overlay-y=0 overlay-w=800 overlay-h=600 -e


nveglglessink
nvoverlaysink
avdec_h264
omxh264dec
nvhdmioverlaysink
xvimagesink


gst-launch-0.10 filesrc location=/home/ubuntu/work/4K30fps.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! 'video/x-nv-yuv' ! nvvidconv ! xvimagesink -v -e


gst-launch-1.0 filesrc location=/home/ubuntu/work/4K30fps.mp4 ! qtdemux name=demux demux.video_00 ! queue ! omxh264dec ! nvvidconv ! xvimagesink -v -e


'video/x-raw, format=(string)I420, width=640, height=480'
gst-launch-1.0 -v filesrc location=/mnt/nfs/1080P30fps.mp4 ! qtdemux name=demux ! h264parse ! omxh264dec ! nveglglessink -e


gst-launch-1.0 -v filesrc location=/home/ubuntu/work/4K30fps.mp4 ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! fakesink -e




gst-launch-1.0 filesrc location=/mnt/nfs/30fps4k.mp4 ! decodebin ! nvvidconv ! xvimagesink 
 


gst-launch-1.0 filesrc location=/mnt/nfs/30fps4k.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nvvidconv ! xvimagesink  


指定坐标
gst-launch-0.10 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_hdmi_videosink overlay-x=0 overlay-y=300 overlay-w=500 overlay-h=500 -v -e &


gst-launch-0.10 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_videosink overlay-x=0 overlay-y=300 overlay-w=500 overlay-h=500 -v -e &




gst-launch-0.10 filesrc location=15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! 'video/x-nv-yuv' ! nvvidconv ! xvimagesink -v -e


gst-launch-0.10 filesrc location=/mnt/nfs/15.mp4 ! qtdemux name=demux demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_hdmi_videosink overlay-x=700 overlay-y=700 overlay-w=500 overlay-h=500 -v -e &


gst-launch-1.0 filesrc location=/mnt/nfs/1080P30fps.mp4 ! decodebin ! eglglessink
nvgstplayer 播放器使用
nvgstplayer -i /mnt/nfs/15.mp4
 
 




./multiwindow.py file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps480p.mp4 file:/mnt/nfs/30fps720p.avi file:/mnt/nfs/30fps720p.avi file:/mnt/nfs/30fps720p.avi


rtsp://192.168.0.103/axis-media/media.amp?videocodec=h264
rtsp://192.168.0.55/axis-media/media.amp?videocodec=h264
rtsp://192.168.0.10/MediaInput/h264
rtsp://192.168.0.55/axis-media/media.amp?camera=1&streamprofile=Quality
rtsp://192.168.0.103/axis-media/media.amp?videocodec=jpeg


gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)640, height=(int)480' ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000


gst-launch-1.0 -v rtspsrc latency=200 user-id=root user-pw=root location=rtsp://192.168.0.10/axis-media/media.amp?videocodec=h264 ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! xvimagesink sync=false


gst-launch-1.0 -v rtspsrc latency=50 user-id=root user-pw=root location=rtsp://192.168.0.10/axis-media/media.amp?videocodec=jpeg ! rtpjpegdepay ! nvjpegdec ! nveglglessink sync=false max-lateness=200


gst-launch-1.0 -v rtspsrc user-id=root user-pw=root location=rtsp://192.168.0.10/axis-media/media.amp?videocodec=h264 latency=100 ! decodebin ! nvvidconv ! xvimagesink  sync=false -e




gst-launch -v gstrtpbin name=rtpbin filesrc location=filesrc location=30fps720p.avi ! decodebin name=dec dec. ! queue ! x264enc byte-stream=false bitrate=300 ! rtph264pay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5000 host=127.0.0.1 ts-offset=0 name=vrtpsink rtpbin.send_rtcp_src_0 ! udpsink port=5001 host=127.0.0.1 sync=false async=false name=vrtcpsink udpsrc port=5005 name=vrtpsrc ! rtpbin.recv_rtcp_sink_0 dec. ! queue ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! rtpbin.send_rtp_sink_1 rtpbin.send_rtp_src_1 ! udpsink port=5002 host=127.0.0.1 ts-offset=0 name=artpsink rtpbin.send_rtcp_src_1 ! udpsink port=5003 host=127.0.0.1 sync=false async=false name=artcpsink udpsrc port=5007 name=artpsrc ! rtpbin.recv_rtcp_sink_1




gst-launch-1.0 -v filesrc location=/mnt/nfs/15fps720p.mp4 ! qtdemux ! queue ! h264parse ! avdec_h264 skip-frame=1 ! queue ! videoconvert ! auto sync=false




Panasonic Multicast receive
gst-launch-1.0 udpsrc uri="udp://224.225.225.225:1026" ! 'application/x-rtp, encoding-name=H264, payload=98' ! rtph264depay ! h264parse ! tee name=aa ! queue ! avdec_h264 ! nvhdmioverlaysink sync=false aa. ! queue ! matroskamux ! filesink location=/mnt/nfs/aa.mkv

你可能感兴趣的:(Gstreamer,Linux)