Open tuyenld opened 3 years ago
This problem even was reproduced with raspivid
raspivid -fps 15 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid.mjpg -t 10000 -b 25000000
Play back with VLC
vlc --demux=avformat 640_480_raspivid.mjpg
Result: 640_480_raspivid-error
Edited:
However, raspistill
produces a good JPEG image (without any stripe).
raspistill -w 640 -h 480 -o 640_480_still.jpg
@6by9, Do you have any idea? I don't know where can I start to debug this issue. Thanks!
It sounds like one of the sensor readout modes is producing rubbish in the raw data, which then translates into rubbish in the final image. The modes are listed in https://picamera.readthedocs.io/en/latest/fov.html#sensor-modes
raspistill always uses the full resolution mode for the stills captures, and then crops it down.
You can override in either raspistill or raspivid that by using the -md <mode index>
option to force a particular mode.
I'd suspect it's mode 5 where the issue lies, but it'd be useful if you could confirm that before I start staring at register sets.
Something is wrong with the sensor modes, I guess.
Here is my test result (>>
is my comment).
I also tested with different FPS.
### 640x480 ###
$ raspivid -md 4 -fps 15 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md4.mjpg -t 10000
>> Stripe
$ raspivid -md 5 -fps 15 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md5.mjpg -t 10000
>> Good
$ raspivid -md 6 -fps 15 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md6-fps15.mjpg -t 10000
>> no stripe, but color is not good
$ raspivid -md 6 -fps 45 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md6-fps45.mjpg -t 10000
>> no stripe, but color is not good
$ raspivid -md 6 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md6.mjpg -t 10000
>> no stripe, but color is not good
$ raspivid -md 7 -fps 15 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md7-fps15.mjpg -t 10000
>> no stripe, but color is not good
$ raspivid -md 7 -fps 70 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md7-fps70.mjpg -t 10000
>> no stripe, but color is not good
$ raspivid -md 7 -w 640 -h 480 -cd MJPEG -o 640_480_raspivid_md7.mjpg -t 10000
>> no stripe, but color is not good
$
$
$ ### 1270x720 ###
$ raspivid -md 3 -w 1280 -h 720 -cd MJPEG -o 1280_720_raspivid_md3.mjpg -t 10000
Camera control callback cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board
$
$ raspivid -md 3 -fps 1 -w 1280 -h 720 -cd MJPEG -o 1280_720_raspivid_md3.mjpg -t 10000
>> Good
$ raspivid -md 4 -fps 15 -w 1280 -h 720 -cd MJPEG -o 1280_720_raspivid_md4.mjpg -t 10000
>> Stripe
$ raspivid -md 5 -fps 15 -w 1280 -h 720 -cd MJPEG -o 1280_720_raspivid_md5.mjpg -t 10000
>> Stripe
@6by9 Is there anything else you need me to test?
Sorry, this isn't a priority to investigate at the moment. Based on your reports I'm not convinced that it's the register setup in the sensor, so it's going to take a fair amount of investigation to work out what's going on.
Describe the bug I tried to take a JPEG image on Pi Zero + Camera v1.3, but there are pixels wide stripe on the right side.
To reproduce
then see the image output. I tested with several resolutions, but I didn't find what is the pattern of the issue happened here. Please zoom out to see the stripe on the right.
1280x724 (to 726, 728, .. 748) >> ok
640x484 >> ok
640x478 >> stripe
1920x1084 >> ok
1440x1084 >> ok
1440x1078 >> stripe
Expected behaviour The Pi should produce a clear image.
Actual behaviour There is a wide stripe line on the right.
System https://pastebin.com/7jPWKPdr
Logs I tried to enable bcm2835_v4l2 log, yet I didn't find anything was anormal.
Original issue: peterbay/uvc-gadget#5