Skip to content

Instantly share code, notes, and snippets.

@maditnerd
Created December 13, 2017 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maditnerd/60bb436504ed8bc6b1289f5fc09fedb6 to your computer and use it in GitHub Desktop.
Save maditnerd/60bb436504ed8bc6b1289f5fc09fedb6 to your computer and use it in GitHub Desktop.
TEST 1
28s lost
root@dev:/home/pi# /home/pi/yavta/yavta --capture=10000000 -n 3 --encode-to=/home/pi/test/file.h264 -f UYVY -m -T /dev/video0
We're encoding to /home/pi/test/file.h264
Device /dev/video0 opened.
Device `unicam' on `platform:unicam 3f801000.csi1' (driver 'unicam') is a video capture (without mplanes) device.
stride is 0
stride is now 1280
Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
Framerate is 25
Video format: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
vc.ril.isp:in:0(UYVY)(0xb42fb0)type: video, fourcc: UYVY bitrate: 0, framed: 0 extra data: 0, (nil) width: 1920, height: 1088, (0,0,1920,1080) pixel aspect ratio: 0/0, frame rate: 0/0 buffers num: 3(opt 1, min 1), size: 4177920(opt 4177920, min: 4177920), align: 0Created pool of length 3, size 0
Enable encoder....
Create pool of 3 buffers of size 3133440 for encode/render
Create pool of 3 buffers of size 0 for render
Create pool of 3 buffers of size 0 for encode ip
Create pool of 8 buffers of size 262144
Sent buffer 0xb4d158
Sent buffer 0xb4d330
Sent buffer 0xb4d508
Sent buffer 0xb4d6e0
Sent buffer 0xb4d8b8
Sent buffer 0xb4da90
Sent buffer 0xb4dc68
Sent buffer 0xb4de403 buffers requested.
length: 4177920 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x70904000.
Importing DMABUF 8 into VCSM...
...done. vcsm_handle 237568
Exported buffer 0 to dmabuf 8, vcsm handle 237568
Linking V4L2 buffer index 0 ptr 0xb4eb58 to MMAL header 0xb494c0. mmal->data 0xC0000003
length: 4177920 offset: 4177920 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x70508000.
Importing DMABUF 9 into VCSM...
...done. vcsm_handle 241664
Exported buffer 1 to dmabuf 9, vcsm handle 241664
Linking V4L2 buffer index 1 ptr 0xb4ebc8 to MMAL header 0xb49698. mmal->data 0xC0000006
length: 4177920 offset: 8355840 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7010c000.
Importing DMABUF 10 into VCSM...
...done. vcsm_handle 245760
Exported buffer 2 to dmabuf 10, vcsm handle 245760
Linking V4L2 buffer index 2 ptr 0xb4ec38 to MMAL header 0xb49870. mmal->data 0xC0000007
DROPPED FRAME - 445787695 and 446107691, delta 319996
DROPPED FRAME - 673902752 and 673982752, delta 80000
DROPPED FRAME - 689262420 and 706742040, delta 17479620
DROPPED FRAME - 752141056 and 765860759, delta 13719703
DROPPED FRAME - 798340055 and 815459687, delta 17119632
DROPPED FRAME - 855978807 and 877058350, delta 21079543
DROPPED FRAME - 890098068 and 892458019, delta 2359951
DROPPED FRAME - 920057418 and 926777272, delta 6719854
DROPPED FRAME - 947936813 and 959536580, delta 11599767
DROPPED FRAME - 994895795 and 1002215639, delta 7319844
TEST 2
1s lost
root@dev:/home/pi# /home/pi/yavta/yavta --capture=10000000 -n 3 --encode-to=/home/pi/test/file.h264 -f UYVY -m -T /dev/video0
We're encoding to /home/pi/test/file.h264
Device /dev/video0 opened.
Device `unicam' on `platform:unicam 3f801000.csi1' (driver 'unicam') is a video capture (without mplanes) device.
stride is 0
stride is now 1280
Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
Framerate is 25
Video format: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
vc.ril.isp:in:0(UYVY)(0x2a8fb0)type: video, fourcc: UYVY bitrate: 0, framed: 0 extra data: 0, (nil) width: 1920, height: 1088, (0,0,1920,1080) pixel aspect ratio: 0/0, frame rate: 0/0 buffers num: 3(opt 1, min 1), size: 4177920(opt 4177920, min: 4177920), align: 0Created pool of length 3, size 0
Enable encoder....
Create pool of 3 buffers of size 3133440 for encode/render
Create pool of 3 buffers of size 0 for render
Create pool of 3 buffers of size 0 for encode ip
Create pool of 8 buffers of size 262144
Sent buffer 0x2b3158
Sent buffer 0x2b3330
Sent buffer 0x2b3508
Sent buffer 0x2b36e0
Sent buffer 0x2b38b8
Sent buffer 0x2b3a90
Sent buffer 0x2b3c68
Sent buffer 0x2b3e403 buffers requested.
length: 4177920 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x70904000.
Importing DMABUF 8 into VCSM...
...done. vcsm_handle 319488
Exported buffer 0 to dmabuf 8, vcsm handle 319488
Linking V4L2 buffer index 0 ptr 0x2b4b58 to MMAL header 0x2af4c0. mmal->data 0xC0000006
length: 4177920 offset: 4177920 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x70508000.
Importing DMABUF 9 into VCSM...
...done. vcsm_handle 323584
Exported buffer 1 to dmabuf 9, vcsm handle 323584
Linking V4L2 buffer index 1 ptr 0x2b4bc8 to MMAL header 0x2af698. mmal->data 0xC0000007
length: 4177920 offset: 8355840 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7010c000.
Importing DMABUF 10 into VCSM...
...done. vcsm_handle 327680
Exported buffer 2 to dmabuf 10, vcsm handle 327680
Linking V4L2 buffer index 2 ptr 0x2b4c38 to MMAL header 0x2af870. mmal->data 0xC0000008
DROPPED FRAME - 37392827 and 38072825, delta 679998
TEST 3
4s lost
root@dev:/home/pi# /home/pi/yavta/yavta --capture=10000000 -n 3 --encode-to=/home/pi/test/file.h264 -f UYVY -m -T /dev/video0
We're encoding to /home/pi/test/file.h264
Device /dev/video0 opened.
Device `unicam' on `platform:unicam 3f801000.csi1' (driver 'unicam') is a video capture (without mplanes) device.
stride is 0
stride is now 1280
Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
Framerate is 25
Video format: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
vc.ril.isp:in:0(UYVY)(0x1e20fb0)type: video, fourcc: UYVY bitrate: 0, framed: 0 extra data: 0, (nil) width: 1920, height: 1088, (0,0,1920,1080) pixel aspect ratio: 0/0, frame rate: 0/0 buffers num: 3(opt 1, min 1), size: 4177920(opt 4177920, min: 4177920), align: 0Created pool of length 3, size 0
Enable encoder....
Create pool of 3 buffers of size 3133440 for encode/render
Create pool of 3 buffers of size 0 for render
Create pool of 3 buffers of size 0 for encode ip
Create pool of 8 buffers of size 262144
Sent buffer 0x1e2b158
Sent buffer 0x1e2b330
Sent buffer 0x1e2b508
Sent buffer 0x1e2b6e0
Sent buffer 0x1e2b8b8
Sent buffer 0x1e2ba90
Sent buffer 0x1e2bc68
Sent buffer 0x1e2be403 buffers requested.
length: 4177920 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x70a04000.
Importing DMABUF 8 into VCSM...
...done. vcsm_handle 401408
Exported buffer 0 to dmabuf 8, vcsm handle 401408
Linking V4L2 buffer index 0 ptr 0x1e2cb58 to MMAL header 0x1e274c0. mmal->data 0xC0000007
length: 4177920 offset: 4177920 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x70608000.
Importing DMABUF 9 into VCSM...
...done. vcsm_handle 405504
Exported buffer 1 to dmabuf 9, vcsm handle 405504
Linking V4L2 buffer index 1 ptr 0x1e2cbc8 to MMAL header 0x1e27698. mmal->data 0xC0000008
length: 4177920 offset: 8355840 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7020c000.
Importing DMABUF 10 into VCSM...
...done. vcsm_handle 409600
Exported buffer 2 to dmabuf 10, vcsm handle 409600
Linking V4L2 buffer index 2 ptr 0x1e2cc38 to MMAL header 0x1e27870. mmal->data 0xC0000009
DROPPED FRAME - 122592210 and 123272189, delta 679979
DROPPED FRAME - 152391350 and 155231270, delta 2839920
DROPPED FRAME - 212469637 and 212709630, delta 239993
DROPPED FRAME - 606378896 and 607698861, delta 1319965
TEST 4
0s lost
root@dev:/home/pi# /home/pi/yavta/yavta --capture=10000000 -n 3 --encode-to=/home/pi/test/file.h264 -f UYVY -m -T /dev/video0
We're encoding to /home/pi/test/file.h264
Device /dev/video0 opened.
Device `unicam' on `platform:unicam 3f801000.csi1' (driver 'unicam') is a video capture (without mplanes) device.
stride is 0
stride is now 1280
Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
Framerate is 25
Video format: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
vc.ril.isp:in:0(UYVY)(0x1436fb0)type: video, fourcc: UYVY bitrate: 0, framed: 0 extra data: 0, (nil) width: 1920, height: 1088, (0,0,1920,1080) pixel aspect ratio: 0/0, frame rate: 0/0 buffers num: 3(opt 1, min 1), size: 4177920(opt 4177920, min: 4177920), align: 0Created pool of length 3, size 0
Enable encoder....
Create pool of 3 buffers of size 3133440 for encode/render
Create pool of 3 buffers of size 0 for render
Create pool of 3 buffers of size 0 for encode ip
Create pool of 8 buffers of size 262144
Sent buffer 0x1441158Sent buffer 0x1441330Sent buffer 0x1441508Sent buffer 0x14416e0Sent buffer 0x14418b8Sent buffer 0x1441a90Sent buffer 0x1441c68Sent buffer 0x1441e403 buffers requested.
length: 4177920 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x70904000.
Importing DMABUF 8 into VCSM...
...done. vcsm_handle 483328
Exported buffer 0 to dmabuf 8, vcsm handle 483328
Linking V4L2 buffer index 0 ptr 0x1442b58 to MMAL header 0x143d4c0. mmal->data 0xC0000008
length: 4177920 offset: 4177920 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x70508000.
Importing DMABUF 9 into VCSM...
...done. vcsm_handle 487424
Exported buffer 1 to dmabuf 9, vcsm handle 487424
Linking V4L2 buffer index 1 ptr 0x1442bc8 to MMAL header 0x143d698. mmal->data 0xC0000009
length: 4177920 offset: 8355840 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7010c000.
Importing DMABUF 10 into VCSM...
...done. vcsm_handle 491520
Exported buffer 2 to dmabuf 10, vcsm handle 491520
Linking V4L2 buffer index 2 ptr 0x1442c38 to MMAL header 0x143d870. mmal->data 0xC000000A
Test 5
3s lost
root@dev:/home/pi# /home/pi/yavta/yavta --capture=10000000 -n 3 --encode-to=/home/pi/test/file.h264 -f UYVY -m -T /dev/video0
We're encoding to /home/pi/test/file.h264
Device /dev/video0 opened.
Device `unicam' on `platform:unicam 3f801000.csi1' (driver 'unicam') is a video capture (without mplanes) device.
stride is 0
stride is now 1280
Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
Framerate is 25
Video format: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
vc.ril.isp:in:0(UYVY)(0x7a8fb0)type: video, fourcc: UYVY bitrate: 0, framed: 0 extra data: 0, (nil) width: 1920, height: 1088, (0,0,1920,1080) pixel aspect ratio: 0/0, frame rate: 0/0 buffers num: 3(opt 1, min 1), size: 4177920(opt 4177920, min: 4177920), align: 0Created pool of length 3, size 0
Enable encoder....
Create pool of 3 buffers of size 3133440 for encode/render
Create pool of 3 buffers of size 0 for render
Create pool of 3 buffers of size 0 for encode ip
Create pool of 8 buffers of size 262144
Sent buffer 0x7b3158Sent buffer 0x7b3330Sent buffer 0x7b3508Sent buffer 0x7b36e0Sent buffer 0x7b38b8Sent buffer 0x7b3a90Sent buffer 0x7b3c68Sent buffer 0x7b3e403 buffers requested.
length: 4177920 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x70904000.
Importing DMABUF 8 into VCSM...
...done. vcsm_handle 565248
Exported buffer 0 to dmabuf 8, vcsm handle 565248
Linking V4L2 buffer index 0 ptr 0x7b4b58 to MMAL header 0x7af4c0. mmal->data 0xC0000009
length: 4177920 offset: 4177920 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x70508000.
Importing DMABUF 9 into VCSM...
...done. vcsm_handle 569344
Exported buffer 1 to dmabuf 9, vcsm handle 569344
Linking V4L2 buffer index 1 ptr 0x7b4bc8 to MMAL header 0x7af698. mmal->data 0xC000000A
length: 4177920 offset: 8355840 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7010c000.
Importing DMABUF 10 into VCSM...
...done. vcsm_handle 573440
Exported buffer 2 to dmabuf 10, vcsm handle 573440
Linking V4L2 buffer index 2 ptr 0x7b4c38 to MMAL header 0x7af870. mmal->data 0xC000000B
DROPPED FRAME - 474089032 and 476768963, delta 2679931
DROPPED FRAME - 506768196 and 509608123, delta 2839927
DROPPED FRAME - 509608123 and 510928099, delta 1319976
DROPPED FRAME - 570766562 and 579646335, delta 8879773
DROPPED FRAME - 617045380 and 622925230, delta 5879850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment