OpenIPC / firmware

Alternative IP Camera firmware from an open community
https://openipc.org
MIT License
1.25k stars 239 forks source link

ssc338q imx415, 2.3.11.29, 1080@60 bad video quality #1179

Closed Raduq91 closed 10 months ago

Raduq91 commented 10 months ago

h265(same with h264) .video0.bitrate: 40000 .video0.gopSize: 20 .video0.rcMode: avbr Used RTSP with VLC(win) Full screen on 1080 monitor to take screenshots I used frame rate 60 in openipc(resolution and crop fields are empty, vlc shows 1920x1080): z1_1080_arrows I drew small red arrows pointing to bad aliasing. That Image does not look like 1080p quality and has bigger field of view than the native resolution(native resolution as when using 30 as framerate, vlc shows 3040x2040)

I used frame rate 30 in openipc(resolution and crop fields are empty, vlc shows 3040x2040): z1_full

I used frame rate 30 and crop 0x0x1600x1080 in openipc(resolution field empty, vlc shows 1600x1088): z1_crop

I used frame rate 30 and resolution 1920x1080(crop field empty, vlc shows 1920x1080): 1080_30 This looks more decent, to mention that it looks like it has same aspect ratio as native resolution(not 16:9) so it appears stretched.

viktorxda commented 10 months ago

An update was issued for the driver, please try the following resolutions with the new update:

Crop basically just cuts a part of the full output picture.

Raduq91 commented 10 months ago

An update was issued for the driver, please try the following resolutions with the new update:

* 3840x2160 at 20fps

* 1920x1080 at 20fps

* 1920x1080 at 60fps

Crop basically just cuts a part of the full output picture.

ssc338q (infinity6e family), imx415, 16 MB nor flash, 2.3.12.04-lite, openipc-ssc338q

Still the same issue: 1920x1080@60: 1080_60_upd

1920x1080@20: 1080_20_upd

( updated with tftp, updating from openipc firmware did not work, it rebooted and it was same firmware)

Upgrading firmware
DO NOT CLOSE, REFRESH, OR NAVIGATE AWAY FROM THIS PAGE UNTIL THE PROCESS IS FINISHED!
# /usr/sbin/sysupgrade -k -r -x
[root@openipc-ssc338q /tmp]# /usr/sbin/sysupgrade -k -r -x

OpenIPC System Updater v1.0.21

Vendor  sigmastar
SoC ssc338q
Kernel  15:18:44 2023-11-29
RootFS  master+456454e, 2023-11-29

Synchronizing time
ntpd: setting time to 2023-12-04 02:17:32.903650 (offset +385127.563953s)
Mon Dec  4 02:17:32 GMT 2023

Checking for sysupgrade update...
A new version is available, trying to activate updated script...
Done. Restarting...

OpenIPC System Updater v1.0.23

Vendor  sigmastar
SoC ssc338q
Kernel  15:18:44 2023-11-29
RootFS  master+456454e, 2023-11-29

Synchronizing time
ntpd: setting time to 2023-12-04 02:17:34.476844 (offset +385129.240708s)
Mon Dec  4 02:17:34 GMT 2023

Checking for sysupgrade update...
Same version. No update required.

Stop services, sync files, free up memory

--- finished ---
viktorxda commented 10 months ago

Try to clean the overlay together with force_ver: sysupgrade -k -r -n --force_ver

Also please provide some pictures taken with the webui: http://192.168.1.15/image.jpg

Raduq91 commented 10 months ago

Try to clean the overlay together with force_ver: sysupgrade -k -r -n --force_ver

Also please provide some pictures taken with the webui: http://192.168.1.15/image.jpg (the log from the previous comment was from the page: http://192.168.1.15/cgi-bin/firmware.cgi)

1920x1080@60 from http://192.168.1.15/image.jpg: image_1080_60

1920x1080@20 from http://192.168.1.15/image.jpg: image_1080_20

themactep commented 10 months ago

Looks like you were trying to update from port 80 which is wrong as our web ui port is 85.

viktorxda commented 10 months ago

I think we basically have two problems:

The intended resolution is 3840x2160@20fps, this is the maximum what the interface and encoder can handle. If the picture is set to 1080p@20fps the internal scaler will be used (4k sensor -> 1080p encoder) to resize the picture, which results in a better quality. Everything above 20fps will use the sensor binning mode, so the sensor and encoder will use 1080p without rescaling.


Raduq91 commented 10 months ago

Here is a link with 12 images. Slightly 3 different focus distances, using 'sensor configuration file' IMX415 and IMX335 at 1080@20FPS and 1080@60FPS: https://www.dropbox.com/scl/fi/5hx2m9fwm9ynjhnand3ix/images.zip?rlkey=wmyiitydv0k9cd1x8v4iuozqa&dl=0

viktorxda commented 10 months ago

Here is the sensor calibration tool, you can try to adjust the quality this way:

With the newest firmware you can directly connect to this tool:

Raduq91 commented 10 months ago

Here is the sensor calibration tool, you can try to adjust the quality this way:

* [Download SSCamIQTool](https://github.com/viktorxda/SSCamIQTool/releases)

With the newest firmware you can directly connect to this tool:

* Enable the iqserver on the camera:
  `cli -s .isp.iqServer true`

* Start SSCamIQTool.exe, enter the Camera IP and click the connect button.

Are changes permanent in the sense that they are not lost after openipc reset/reflash? I changed a few settings and I did not made a backup.

viktorxda commented 10 months ago

You need to save your changes to a new calibration file. This file can be uploaded to the camera and then used as new default.

Raduq91 commented 10 months ago

(Can "Commits on Dec 5, 2023" "Sigmastar: update imx415 sensor" be reversed, or part of it so the '20fps > '30fps'?) I modified some Sharpness settings: 1080_90fps default sharpness: 1080_90fps

1080_90fps_custom_sharpness: 1080_90fps_custom_sharpness

How to upload and what file to upload to use as default?

viktorxda commented 10 months ago

Copy it to the /etc/sensors directory on the camera. You can then select the profile in the isp menu on the camera website

tipoman9 commented 10 months ago

Binning_vs_native_mode Another comparison. imx415. 3840x2160 native vs 1920x1080 binning. Same camera position, the image is scaled down on the ground, since the screen is 1080p. Will try to finetune with SSCamIQTool