Performance
- 測試編解碼器性能
- jpeg
- h264, h265
- 測試色彩空間轉換性能
- NV12 -> BGRA
- I420 -> BGRA
- 測試 moil remap 性能
- bgra
- 整合測試
- jpeg -> I420 -> BGRA -> moil remap -> videosink
- h264 -> NV12 -> BGRA -> moil remap -> videosink
- h265 -> NV12 -> BGRA -> moil remap -> videosink
Element
Video Capture Plugin
v4l2src
Video Decode Plugin
avdec_h264 avdec_h265 omxh264dec omxh265dec
Video Encode Plugin
omxh264enc omxh265enc
Video Conversion Plugin
videoconvert glcolorconvert vspmfilter (RZ/G2L and RZ/V2H) vaapipostproc (PC only)
Video Sink Plugin
waylandsink glimagesink vaapisink (PC only)
Mux/Demux Plugin
mp4mux qtdemux
Audio Plugin
alsasink
Network Protocol Plugin
udpsrc udpsink
gst-launch-1.0 videotestsrc ! "video/x-raw, formate=BGRA,width=1920, height=1080" ! fpsdisplaysink text-overlay=false video-sink=fakevideosink -v
gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw, formate=BGRA,width=1920, height=1080" ! filesink location=test.bgra
gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw, formate=NV12,width=1920, height=1080" ! filesink location=test.nv12
save to jpeg
gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw, formate=BGRA,width=1920, height=1080" ! videoconvert ! jpegenc ! filesink location=test.jpg
gst-launch-1.0 filesrc location=test.bgra ! videoparse width=1920 height=1080 formate=BGRA ! imagefreeze ! fpsdisplaysink text-overlay=false video-sink=fakevideosink -v
gst-launch-1.0 videotestsrc ! videoconvert ! fpsdisplaysink text-overlay=false video-sink=fakevideosink sync=false -v
gst-launch-1.0 multifilesrc location=test.jpg loop=true num-buffers=600 ! jpegdec ! fpsdisplaysink text-overlay=false video-sink=fakevideosink -v
gst-launch-1.0 multifilesrc location=test.jpg loop=true num-buffers=600 ! jpegdec ! fpsdisplaysink text-overlay=false video-sink=fakevideosink -v
建立測試用的Raw檔案
BGRA、NV12、I420、YUV2
gst-launch-1.0 videotestsrc num-buffers=300 ! video/x-raw,format=NV12,width=1920,height=1080 ! filesink location=test_1080p.nv12
gst-launch-1.0 v4l2src num-buffers=300 ! jpegdec ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! filesink location=camera_1080p.nv12