Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get multiple h264 streams #1

Open
svpcom opened this issue Aug 23, 2021 · 1 comment
Open

Unable to get multiple h264 streams #1

svpcom opened this issue Aug 23, 2021 · 1 comment

Comments

@svpcom
Copy link

svpcom commented Aug 23, 2021

Kurokesu C1 camera (KurokesuC1_SN000717: Kurokesu C)

When I trying to record two streams (HD + VGA)

$ ./SONiX_UVC_TestAP --mse 1 --xuset-sei 1 --mf 8 -c -r /dev/video3 
v1.0.22_SONiX_UVC_TestAP_Multi
kernel version 50a22
optind:3  optopt:0
optind:5  optopt:0
optind:7  optopt:0
optind:8  optopt:0
optind:9  optopt:0
Device /dev/video3 opened: KurokesuC1_SN000717: Kurokesu C.
XU_Ctrl_ReadChipID ==>
   == XU_Ctrl_ReadChipID Success == 
      ASIC READ data[0] : 1f
      ASIC READ data[1] : 10
      ASIC READ data[2] : 92 (Chip ID)
      ASIC READ data[3] : 0
ChipID = 2
XU_Ctrl_ReadChipID <==
XU_Multi_Get_Info ==>
   == XU_Multi_Get_Info Success == 
      Get Support Stream 3
      Get Support Resolution 0x5f
XU_Multi_Set_Type (8) ==>
XU_Multi_Set_Type <== Success 
XU_Multi_Set_Enable ==>
Set H264_Multi_Enable = 1 
Set MJPG_Multi_Enable = 0 
XU_Multi_Set_Enable <== Success 
XU_H264_Set_SEI ==>
XU_H264_Set_SEI <== Success 
Video format set: width: 1280 height: 720 buffer size: 1843200
Current frame rate: 1/30
Frame rate set: 1/30
6 buffers allocated.
length: 1843200 offset:          0     --  Buffer 0 mapped at address 0xffff9e2ab000.
length: 1843200 offset:    1843200     --  Buffer 1 mapped at address 0xffff9e0e9000.
length: 1843200 offset:    3686400     --  Buffer 2 mapped at address 0xffff9df27000.
length: 1843200 offset:    5529600     --  Buffer 3 mapped at address 0xffff9dd65000.
length: 1843200 offset:    7372800     --  Buffer 4 mapped at address 0xffff9dba3000.
length: 1843200 offset:    9216000     --  Buffer 5 mapped at address 0xffff9d9e1000.
[   HD]  Frame[   0] 2338 bytes 1769.390135 1629732858.815189
 [  VGA]  Frame[   1] 27329 bytes 1770.158123 1629732858.819288
 [   HD]  Frame[   2] 2205 bytes 1770.326112 1629732859.015144
 [  VGA]  Frame[   3] 157 bytes 1770.358125 1629732859.019171
 [   HD]  Frame[   4] 162 bytes 1770.526115 1629732859.215114
 [  VGA]  Frame[   5] 68 bytes 1770.562160 1629732859.219143
 [   HD]  Frame[   6] 769 bytes 1770.726101 1629732859.415108
 [  VGA]  Frame[   7] 61 bytes 1770.762169 1629732859.419126
 [   HD]  Frame[   8] 2560 bytes 1770.926137 1629732859.615106
 [  VGA]  Frame[   9] 61 bytes 1770.962153 1629732859.619120
 [   HD]  Frame[  10] 1281 bytes 1771.126082 1629732859.815117
 [  VGA]  Frame[  11] 61 bytes 1771.162145 1629732859.819116
 [   HD]  Frame[  12] 851 bytes 1771.326082 1629732860.015079
 [  VGA]  Frame[  13] 61 bytes 1771.362140 1629732860.019096
 [   HD]  Frame[  14] 964 bytes 1771.526069 1629732860.215061
 [  VGA]  Frame[  15] 61 bytes 1771.562140 1629732860.219110
 [   HD]  Frame[  16] 2576 bytes 1771.726070 1629732860.415082
 [  VGA]  Frame[  17] 61 bytes 1771.762108 1629732860.419090
...

I've got two files: RecordH264HD.h264 RecordH264VGA.h264
When playing them via mpv (or any other video player) RecordH264HD.h264 shows normal video, but RecordH264VGA.h264 only red lines.

$ file RecordH264VGA.h264 
RecordH264VGA.h264: JVT NAL sequence, H.264 video, main @ L 31
$ file RecordH264HD.h264 
RecordH264HD.h264: JVT NAL sequence, H.264 video, main @ L 31
@Lukse
Copy link
Contributor

Lukse commented Aug 23, 2021

Hi, Vasily not all functions are implemented in firmware. For now you can capture 2 streams MJPEG and h.264.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants