Hello,
I have a custom board based on TI's AM5728 EVM. I am using the latest Linux PSDK 6.03 on it. I have ported the OV5640 Camera on the custom board.
I am using the same driver code which is present in Linux 6.03 PSDK. Path for the driver is -
~./ti-processor-sdk-linux-am57xx-evm-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85/drivers/media/i2c/ov5640.c
PROBLEM -
I am trying to run yavta test and capture the stream in a file. When I try to play the file on my PC using ffplay, the capture is coming only on half the screen.
I am using the following command to capture the stream -
For 640x480 -
root@am57xx-evm:~# yavta -c20 -F640x480.yuv -fYUYV -s640x480 /dev/video1 Device /dev/video1 opened. Device `vip' on `platform:vip2:vin3a:stream0' is a video output (without mplanes) device. Video format set: YUYV (56595559) 640x480 (stride 1280) field none buffer size 614400 Video format: YUYV (56595559) 640x480 (stride 1280) field none buffer size 614400 8 buffers requested. length: 614400 offset: 0 timestamp type/source: mono/EoF Buffer 0/0 mapped at address 0xb6d63000. length: 614400 offset: 614400 timestamp type/source: mono/EoF Buffer 1/0 mapped at address 0xb6ccd000. length: 614400 offset: 1228800 timestamp type/source: mono/EoF Buffer 2/0 mapped at address 0xb6c37000. length: 614400 offset: 1843200 timestamp type/source: mono/EoF Buffer 3/0 mapped at address 0xb6ba1000. length: 614400 offset: 2457600 timestamp type/source: mono/EoF Buffer 4/0 mapped at address 0xb6b0b000. length: 614400 offset: 3072000 timestamp type/source: mono/EoF Buffer 5/0 mapped at address 0xb6a75000. length: 614400 offset: 3686400 timestamp type/source: mono/EoF Buffer 6/0 mapped at address 0xb69df000. length: 614400 offset: 4300800 timestamp type/source: mono/EoF Buffer 7/0 mapped at address 0xb6949000. 0 (0) [-] top 0 614400 B 45.774776 45.774803 23.268 fps ts mono/EoF 1 (1) [-] top 1 614400 B 45.808073 45.808094 30.033 fps ts mono/EoF 2 (2) [-] top 2 614400 B 45.841367 45.841386 30.035 fps ts mono/EoF 3 (3) [-] top 3 614400 B 45.874663 45.874680 30.034 fps ts mono/EoF 4 (4) [-] top 4 614400 B 45.907958 45.908110 30.035 fps ts mono/EoF 5 (5) [-] top 5 614400 B 45.941254 45.941272 30.034 fps ts mono/EoF 6 (6) [-] top 6 614400 B 45.974550 45.974568 30.034 fps ts mono/EoF 7 (7) [-] top 7 614400 B 46.007846 46.007865 30.034 fps ts mono/EoF 8 (0) [-] top 8 614400 B 46.041143 46.041163 30.033 fps ts mono/EoF 9 (1) [-] top 9 614400 B 46.074438 46.074456 30.035 fps ts mono/EoF 10 (2) [-] top 10 614400 B 46.107734 46.107755 30.034 fps ts mono/EoF 11 (3) [-] top 11 614400 B 46.141031 46.141050 30.033 fps ts mono/EoF 12 (4) [-] top 12 614400 B 46.174326 46.174344 30.035 fps ts mono/EoF 13 (5) [-] top 13 614400 B 46.207622 46.207641 30.034 fps ts mono/EoF 14 (6) [-] top 14 614400 B 46.240917 46.240941 30.035 fps ts mono/EoF 15 (7) [-] top 15 614400 B 46.274214 46.274235 30.033 fps ts mono/EoF 16 (0) [-] top 16 614400 B 46.307509 46.307528 30.035 fps ts mono/EoF 17 (1) [-] top 17 614400 B 46.340805 46.340826 30.034 fps ts mono/EoF 18 (2) [-] top 18 614400 B 46.374101 46.374121 30.034 fps ts mono/EoF 19 (3) [-] top 19 614400 B 46.407396 46.407416 30.035 fps ts mono/EoF Captured 20 frames in 0.675616 seconds (29.602601 fps, 18187837.843750 B/s). 8 buffers released.
For 1280x720 -
root@am57xx-evm:~# yavta -c20 -F1280x720.yuv -fYUYV -s1280x720 /dev/video1 Device /dev/video1 opened. Device `vip' on `platform:vip2:vin3a:stream0' is a video output (without mplanes) device. Video format set: YUYV (56595559) 1280x720 (stride 2560) field none buffer size 1843200 Video format: YUYV (56595559) 1280x720 (stride 2560) field none buffer size 1843200 8 buffers requested. length: 1843200 offset: 0 timestamp type/source: mono/EoF Buffer 0/0 mapped at address 0xb6c28000. length: 1843200 offset: 1843200 timestamp type/source: mono/EoF Buffer 1/0 mapped at address 0xb6a66000. length: 1843200 offset: 3686400 timestamp type/source: mono/EoF Buffer 2/0 mapped at address 0xb68a4000. length: 1843200 offset: 5529600 timestamp type/source: mono/EoF Buffer 3/0 mapped at address 0xb66e2000. length: 1843200 offset: 7372800 timestamp type/source: mono/EoF Buffer 4/0 mapped at address 0xb6520000. length: 1843200 offset: 9216000 timestamp type/source: mono/EoF Buffer 5/0 mapped at address 0xb635e000. length: 1843200 offset: 11059200 timestamp type/source: mono/EoF Buffer 6/0 mapped at address 0xb619c000. length: 1843200 offset: 12902400 timestamp type/source: mono/EoF Buffer 7/0 mapped at address 0xb5fda000. 0 (0) [-] top 0 1843200 B 226.492738 226.492790 16.974 fps ts mono/EoF 1 (1) [-] top 1 1843200 B 226.525681 226.564673 30.355 fps ts mono/EoF 2 (2) [-] top 2 1843200 B 226.558626 226.630222 30.354 fps ts mono/EoF 3 (3) [-] top 3 1843200 B 226.591569 226.696956 30.355 fps ts mono/EoF 4 (4) [-] top 4 1843200 B 226.624513 226.762544 30.355 fps ts mono/EoF 5 (5) [-] top 5 1843200 B 226.657455 226.828163 30.356 fps ts mono/EoF 6 (6) [-] top 6 1843200 B 226.690399 226.893689 30.355 fps ts mono/EoF 7 (7) [-] top 7 1843200 B 226.723343 226.959336 30.355 fps ts mono/EoF 8 (0) [-] top 8 1843200 B 226.756285 227.024964 30.356 fps ts mono/EoF 9 (1) [-] top 9 1843200 B 226.789229 227.092647 30.355 fps ts mono/EoF 10 (2) [-] top 10 1843200 B 226.822172 227.158128 30.355 fps ts mono/EoF 11 (3) [-] top 12 1843200 B 226.888059 227.224741 15.178 fps ts mono/EoF 12 (4) [-] top 14 1843200 B 226.953945 227.290432 15.178 fps ts mono/EoF 13 (5) [-] top 16 1843200 B 227.019833 227.356140 15.177 fps ts mono/EoF 14 (6) [-] top 18 1843200 B 227.085717 227.421599 15.178 fps ts mono/EoF 15 (7) [-] top 20 1843200 B 227.151605 227.487328 15.177 fps ts mono/EoF 16 (0) [-] top 22 1843200 B 227.217492 227.552805 15.178 fps ts mono/EoF 17 (1) [-] top 24 1843200 B 227.283377 227.620463 15.178 fps ts mono/EoF 18 (2) [-] top 26 1843200 B 227.349265 227.686988 15.177 fps ts mono/EoF 19 (3) [-] top 28 1843200 B 227.415151 227.752682 15.178 fps ts mono/EoF Captured 20 frames in 1.318859 seconds (15.164623 fps, 27951433.014256 B/s). 8 buffers released.
I am playing the files captured on my PC using ffplay utility. I have attached the capture file (.mp4) with this post.
The camera preview is coming only in half of the LCD screen at 1280x720 resolution. Also with 640x480 resolution, I am not getting any preview on LCD only lines.
How can I resolve this?
Regards,
Devashish