Skip to content

Instantly share code, notes, and snippets.

@devarsht
Last active July 27, 2023 09:33
Show Gist options
  • Save devarsht/ea31179199393c2026ae457219bb6321 to your computer and use it in GitHub Desktop.
Save devarsht/ea31179199393c2026ae457219bb6321 to your computer and use it in GitHub Desktop.
e5010_jpeg_upstream_manualtests
Single stream with vivid test pattern generator using different compression quality
======================================================================================
root@am62axx-evm:~# ./pipe_jpegenc.sh 1920 1080 NV12 30 100 80 [98/14247]
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,comp
ression_quality=80 '!' filesink location=/run/op_1920_1080_NV12_80_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(strin
g)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=
(string)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, c
olorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=
(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry
=(string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.323381577
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# ./pipe_jpegenc.sh 1920 1080 NV12 30 100 70 [150/14247]
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,comp
ression_quality=70 '!' filesink location=/run/op_1920_1080_NV12_70_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(stri$
g)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry$
(string)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, $
olorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, co$
orimetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry$
(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetr$
=(string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.327330480
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# ./pipe_jpegenc.sh 1920 1080 NV12 30 100 50
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,com$
ression_quality=50 '!' filesink location=/run/op_1920_1080_NV12_50_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(stri$
g)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry$
(string)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, $
olorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=
(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry
=(string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.327014267
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# du -sh /run/op_*
4.2M /run/op_1920_1080_NV12_50_comp.mjpeg
4.3M /run/op_1920_1080_NV12_70_comp.mjpeg
4.4M /run/op_1920_1080_NV12_80_comp.mjpeg
Mulstream test with test pattern generator and fpssink
=========================================================
ot@am62axx-evm:~# ./pipe_loop.sh 640 480 NV12 100 70
++ for i in {1..20}
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ for i in {1..20}
++ sleep 0.5
++ for i in {1..20}
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ sleep 0.5
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ for i in {1..20}
++ for i in {1..20}
++ for i in {1..20}
++ sleep 0.5
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ sleep 0.5
++ sleep 0.5
++ sleep 0.5
++ sleep 0.5
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ sleep 0.5
++ for i in {1..20}
++ for i in {1..20}
++ sleep 0.5
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ for i in {1..20}
++ sleep 0.5
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ for i in {1..20}
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ for i in {1..20}
++ sleep 0.5
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ for i in {1..20}
++ sleep 0.5
++ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' queue '!' v4l2jpegenc extra-controls=c,compression_quality=70 '!' fpsdisplaysink name=fpssin
k text-overlay=false 'video-sink=fakesink sync=true' sync=true
++ sleep 0.5
root@am62axx-evm:~#
root@am62axx-evm:~#
root@am62axx-evm:~#
root@am62axx-evm:~# tail /run/fps_1
fps_1.txt fps_10.txt fps_11.txt fps_12.txt fps_13.txt fps_14.txt fps_15.txt fps_16.txt fps_17.txt fps_18.txt fps_19.txt
root@am62axx-evm:~# tail /run/fps_1
fps_1.txt fps_10.txt fps_11.txt fps_12.txt fps_13.txt fps_14.txt fps_15.txt fps_16.txt fps_17.txt fps_18.txt fps_19.txt
root@am62axx-evm:~# tail /run/fps_1.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 31, dropped: 0, current: 27.57, average: 30.72
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 45, dropped: 0, current: 26.90, average: 29.42
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 58, dropped: 0, current: 23.51, average: 27.85
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 69, dropped: 0, current: 20.80, average: 26.42
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 80, dropped: 0, current: 21.20, average: 25.56
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 91, dropped: 0, current: 21.07, average: 24.92
Got EOS from element "pipeline0".
Execution ended after 0:00:04.016812791
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_2.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 17, dropped: 0, current: 33.93, average: 33.93
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 32, dropped: 0, current: 27.95, average: 30.84
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 46, dropped: 0, current: 27.13, average: 29.61
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 61, dropped: 0, current: 28.50, average: 29.33
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 76, dropped: 0, current: 28.36, average: 29.13
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 91, dropped: 0, current: 28.46, average: 29.02
Got EOS from element "pipeline0".
Execution ended after 0:00:03.456872948
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_3.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 25, dropped: 0, current: 26.12, average: 23.87
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 39, dropped: 0, current: 27.13, average: 24.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 54, dropped: 0, current: 28.20, average: 25.77
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 69, dropped: 0, current: 28.62, average: 26.34
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 84, dropped: 0, current: 28.01, average: 26.63
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 99, dropped: 0, current: 29.34, average: 27.00
Got EOS from element "pipeline0".
Execution ended after 0:00:03.704224188
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_4.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 16, dropped: 0, current: 31.11, average: 31.11
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 30, dropped: 0, current: 25.99, average: 28.49
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 44, dropped: 0, current: 27.63, average: 28.21
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 59, dropped: 0, current: 28.83, average: 28.36
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 74, dropped: 0, current: 28.65, average: 28.42
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 89, dropped: 0, current: 28.79, average: 28.48
Got EOS from element "pipeline0".
Execution ended after 0:00:03.504594855
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_5.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 24, dropped: 0, current: 26.96, average: 22.79
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 37, dropped: 0, current: 24.79, average: 23.46
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 52, dropped: 0, current: 28.41, average: 24.70
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 67, dropped: 0, current: 28.95, average: 25.54
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 82, dropped: 0, current: 29.28, average: 26.15
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 96, dropped: 0, current: 27.70, average: 26.36
Got EOS from element "pipeline0".
Execution ended after 0:00:03.801082398
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_6.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 31, dropped: 0, current: 26.54, average: 29.80
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 44, dropped: 0, current: 24.57, average: 28.04
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 55, dropped: 0, current: 20.83, average: 26.23
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 66, dropped: 0, current: 20.77, average: 25.13
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 77, dropped: 0, current: 20.90, average: 24.42
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 92, dropped: 0, current: 29.82, average: 25.16
Got EOS from element "pipeline0".
Execution ended after 0:00:03.727758978
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_7.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 24, dropped: 0, current: 25.80, average: 23.25
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 37, dropped: 0, current: 25.30, average: 23.93
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 51, dropped: 0, current: 27.99, average: 24.92
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 65, dropped: 0, current: 27.95, average: 25.52
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 79, dropped: 0, current: 27.72, average: 25.88
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 93, dropped: 0, current: 27.76, average: 26.15
Got EOS from element "pipeline0".
Execution ended after 0:00:03.730950734
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_8.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 17, dropped: 0, current: 33.92, average: 33.92
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 33, dropped: 0, current: 30.00, average: 31.90
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 48, dropped: 0, current: 28.33, average: 30.69
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 63, dropped: 0, current: 28.07, average: 30.03
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 78, dropped: 0, current: 28.00, average: 29.61
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 92, dropped: 0, current: 27.84, average: 29.33
Got EOS from element "pipeline0".
Execution ended after 0:00:03.425106465
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_9.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 27, dropped: 0, current: 27.02, average: 25.53
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 41, dropped: 0, current: 26.92, average: 25.99
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 56, dropped: 0, current: 28.58, average: 26.64
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 71, dropped: 0, current: 28.89, average: 27.08
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 86, dropped: 0, current: 28.85, average: 27.37
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 100, dropped: 0, current: 27.71, average: 27.42
Got EOS from element "pipeline0".
Execution ended after 0:00:03.649463522
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_10.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 17, dropped: 0, current: 33.92, average: 33.92
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 33, dropped: 0, current: 30.00, average: 31.90
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 49, dropped: 0, current: 29.89, average: 31.21
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 64, dropped: 0, current: 28.97, average: 30.66
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 79, dropped: 0, current: 28.55, average: 30.23
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 94, dropped: 0, current: 28.43, average: 29.93
Got EOS from element "pipeline0".
Execution ended after 0:00:03.357567555
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_11.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 14, dropped: 0, current: 27.55, average: 27.55
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 28, dropped: 0, current: 26.63, average: 27.08
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 42, dropped: 0, current: 27.92, average: 27.36
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 57, dropped: 0, current: 28.17, average: 27.57
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 72, dropped: 0, current: 28.44, average: 27.74
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 87, dropped: 0, current: 28.62, average: 27.89
Got EOS from element "pipeline0".
Execution ended after 0:00:03.568646107
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_12.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 15, dropped: 0, current: 28.20, average: 28.20
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 29, dropped: 0, current: 27.79, average: 28.00
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 43, dropped: 0, current: 26.86, average: 27.62
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 58, dropped: 0, current: 28.19, average: 27.77
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 73, dropped: 0, current: 28.04, average: 27.82
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 88, dropped: 0, current: 28.31, average: 27.90
Got EOS from element "pipeline0".
Execution ended after 0:00:03.576066618
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_13.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 31, dropped: 0, current: 28.24, average: 29.63
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 44, dropped: 0, current: 25.55, average: 28.29
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 55, dropped: 0, current: 20.62, average: 26.33
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 66, dropped: 0, current: 20.94, average: 25.25
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 77, dropped: 0, current: 21.01, average: 24.54
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 88, dropped: 0, current: 21.67, average: 24.14
Got EOS from element "pipeline0".
Execution ended after 0:00:03.822535015
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_14.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 16, dropped: 0, current: 31.30, average: 31.30
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 30, dropped: 0, current: 27.04, average: 29.16
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 45, dropped: 0, current: 28.51, average: 28.94
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 60, dropped: 0, current: 28.66, average: 28.87
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 75, dropped: 0, current: 29.10, average: 28.91
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 90, dropped: 0, current: 28.80, average: 28.89
Got EOS from element "pipeline0".
Execution ended after 0:00:03.333944265
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_15.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 31, dropped: 0, current: 27.88, average: 30.88
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 43, dropped: 0, current: 23.62, average: 28.44
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 54, dropped: 0, current: 20.93, average: 26.50
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 65, dropped: 0, current: 20.72, average: 25.31
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 76, dropped: 0, current: 21.30, average: 24.64
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 88, dropped: 0, current: 22.69, average: 24.35
Got EOS from element "pipeline0".
Execution ended after 0:00:03.709440792
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_16.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 17, dropped: 0, current: 33.84, average: 33.84
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 31, dropped: 0, current: 27.32, average: 30.55
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 45, dropped: 0, current: 27.60, average: 29.57
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 59, dropped: 0, current: 27.51, average: 29.05
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 74, dropped: 0, current: 28.20, average: 28.87
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 89, dropped: 0, current: 28.30, average: 28.77
Got EOS from element "pipeline0".
Execution ended after 0:00:03.474194032
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_17.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 17, dropped: 0, current: 33.92, average: 33.92
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 32, dropped: 0, current: 30.00, average: 31.96
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 47, dropped: 0, current: 29.96, average: 31.29
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 62, dropped: 0, current: 27.84, average: 30.38
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 77, dropped: 0, current: 28.19, average: 29.93
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 92, dropped: 0, current: 28.07, average: 29.61
Got EOS from element "pipeline0".
Execution ended after 0:00:03.391642257
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_18.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 16, dropped: 0, current: 30.93, average: 30.93
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 30, dropped: 0, current: 27.32, average: 29.13
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 45, dropped: 0, current: 28.14, average: 28.79
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 60, dropped: 0, current: 28.46, average: 28.71
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 75, dropped: 0, current: 28.29, average: 28.62
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 90, dropped: 0, current: 28.44, average: 28.59
Got EOS from element "pipeline0".
Execution ended after 0:00:03.392244938
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_19.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 15, dropped: 0, current: 29.45, average: 29.45
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 28, dropped: 0, current: 24.35, average: 26.84
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 39, dropped: 0, current: 21.43, average: 25.06
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 50, dropped: 0, current: 21.01, average: 24.04
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 61, dropped: 0, current: 20.79, average: 23.38
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 72, dropped: 0, current: 20.95, average: 22.97
Got EOS from element "pipeline0".
Execution ended after 0:00:03.588037849
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# tail /run/fps_20.txt
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 15, dropped: 0, current: 28.72, average: 28.72
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 29, dropped: 0, current: 25.97, average: 27.33
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 43, dropped: 0, current: 27.59, average: 27.41
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 58, dropped: 0, current: 28.66, average: 27.72
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 73, dropped: 0, current: 28.53, average: 27.88
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 88, dropped: 0, current: 28.23, average: 27.94
Got EOS from element "pipeline0".
Execution ended after 0:00:03.387361612
Setting pipeline to NULL ...
Freeing pipeline ...
Power Domain off on suspend
============================
root@am62axx-evm:~# k3conf dump device 201
|------------------------------------------------------------------------------|
| VERSION INFO |
|------------------------------------------------------------------------------|
| K3CONF | (version v0.1-90-g1dd468d built Mon Jul 10 05:34:55 PM UTC 2023) |
| SoC | AM62Ax SR1.0 |
| SYSFW | ABI: 3.1 (firmware version 0x0009 '9.0.5--v09.00.05 (Kool Koala))') |
|------------------------------------------------------------------------------|
|---------------------------------------------------|
| Device ID | Device Name | Device Status |
|---------------------------------------------------|
| 201 | AM62AX_DEV_JPGENC0 | DEVICE_STATE_OFF |
|---------------------------------------------------|
Different Video Formats test
=============================
root@am62axx-evm:~# ^C
root@am62axx-evm:~# ./pipe_jpegenc.sh 640 480 NV12 30 100 70
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compre
ssion_quality=70 '!' filesink location=/run/op_640_480_NV12_70_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)
2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, color
imetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(
string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.319219535
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# ./pipe_jpegenc.sh 640 480 NV21 30 100 70
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV21, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compre
ssion_quality=70 '!' filesink location=/run/op_640_480_NV21_70_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV21, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)
2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV21, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, color
imetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV21, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV21, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(
string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.319145642
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# ./pipe_jpegenc.sh 640 480 NV16 30 100 70
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV16, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compre
ssion_quality=70 '!' filesink location=/run/op_640_480_NV16_70_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV16, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)
2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV16, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, color
imetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV16, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV16, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(
string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.319813963
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# ./pipe_jpegenc.sh 640 480 NV61 30 100 70
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV61, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compre
ssion_quality=70 '!' filesink location=/run/op_640_480_NV61_70_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV61, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)
2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV61, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
tring)2:4:7:1 [22/14737]
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV16, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(
string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.319813963
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# ./pipe_jpegenc.sh 640 480 NV61 30 100 70
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV61, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compre
ssion_quality=70 '!' filesink location=/run/op_640_480_NV61_70_comp.mjpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV61, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)
2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV61, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, color
imetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV61, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=($
tring)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV61, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=$
string)2:4:7:1
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:03.319926707
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# du -sh /run/op_*
4.2M /run/op_1920_1080_NV12_50_comp.mjpeg
4.3M /run/op_1920_1080_NV12_70_comp.mjpeg
4.4M /run/op_1920_1080_NV12_80_comp.mjpeg
1.6M /run/op_640_480_NV12_70_comp.mjpeg
1.8M /run/op_640_480_NV16_70_comp.mjpeg
1.6M /run/op_640_480_NV21_70_comp.mjpeg
1.8M /run/op_640_480_NV61_70_comp.mjpeg
root@am62axx-evm:~# md5sum /run/op_*
2cbd8ca181574367bcf5ee3514df5dae /run/op_1920_1080_NV12_50_comp.mjpeg
3dd47eea4d940c5be54acae842942505 /run/op_1920_1080_NV12_70_comp.mjpeg
df4aac3cf5ab832d7c2b77f9ee3152ec /run/op_1920_1080_NV12_80_comp.mjpeg
60cb7c9bbf6402af94ca11e57e1be47a /run/op_640_480_NV12_70_comp.mjpeg
36a3a3f0cccf18527ee85a1719cceeba /run/op_640_480_NV16_70_comp.mjpeg
e4df5a4769c604c1c13dbe75307c5bf9 /run/op_640_480_NV21_70_comp.mjpeg
55d7bdb904056368716f47e5407c22a8 /run/op_640_480_NV61_70_comp.mjpeg
root@am62axx-evm:~# scp /run/op_* devarsht@172.24.227.6:~/.
DMABUF export for JPEG Encoder
=================================
./pipe_perf.sh 640 480 NV12 30 100 20
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=640,height=480,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compre
ssion_quality=20 '!' fpsdisplaysink text-overlay=false name=fpssink video-sink=fakesink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink/GstFakeSink:fakesink0: sync = true
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)
2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, col
orimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink.GstGhostPad:sink.GstProxyPad:proxypad0: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-
mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink/GstFakeSink:fakesink0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=
(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink.GstGhostPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressi
ve, colorimetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(s
tring)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(
string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink/GstFakeSink:fakesink0: sync = true
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 17, dropped: 0, current: 32.27, average: 32.27
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 33, dropped: 0, current: 29.85, average: 31.05
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 48, dropped: 0, current: 30.00, average: 30.72
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 63, dropped: 0, current: 30.00, average: 30.54
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 79, dropped: 0, current: 30.08, average: 30.45
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 94, dropped: 0, current: 30.00, average: 30.37
Got EOS from element "pipeline0".
Execution ended after 0:00:03.370291783
Setting pipeline to NULL ...
Freeing pipeline ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment