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

The screenshots and MJPEG stream have a 3:2 aspect ratio, even though the sensor is 16:9. #201

Open
MalgathThelamin opened this issue Sep 25, 2024 · 1 comment

Comments

@MalgathThelamin
Copy link

MalgathThelamin commented Sep 25, 2024

Required information

  • SoC: ssc378de
  • Image sensor: imx415
  • OpenIPC version: 2.4.09.25-lite
  • Build: master+179f369, 2024-09-25
  • Majestic: master+e3705f4, 2024-09-21
  • installation method: Firmware > Update > Install update from GitHub

Issue description

The Sony imx415 image sensor has a resolution of 3840x2160 pixels with an aspect ratio of 16:9.

However, the picture on the Preview page, the screenshots at /image.jpg and the MPEG stream at /mjpeg have a resolution of 3096x2088 pixels with an aspect ratio of 3:2.

Expectations

The picture on the Preview page, the screenshots at /image.jpg and the MPEG stream at /mjpeg also have a resolution of 3840x2160 pixels.

Detailed information

In Majestic log, the resolution of 3096x2160 is mentioned twice:

majestic[624]: Majestic Lite for SigmaStar, version master+e3705f4, built on 2024-09-21
majestic[624]: Main audio codec is aac (other options: opus, pcm, alaw, ulaw)
majestic[624]: Detected infinity Watchdog
majestic[624]: Watchdog timeout set to 300 seconds
majestic[624]: Set server path: /var/www
majestic[624]: HTTP server started on 0.0.0.0:80
majestic[624]: Main audio codec is aac (other options: opus, pcm, alaw, ulaw)
majestic[624]: Loading main configuration: /etc/majestic.yaml
majestic[624]: Initializing Sigmastar SDK, mi_sys_version_3.011
majestic[624]: Sensor index 1: 3096x2160@30fps
majestic[624]: [MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
majestic[624]: [MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
majestic[624]: [MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
majestic[624]: Channel 0: 1920x1080@30fps
majestic[624]: - [H265, 2048Kb, RC1, GOP30]
majestic[624]: - [minQp: 12, maxQp: 48, qpDelta: -4, slice: 0]
majestic[624]: Channel 2: 3096x2088@5fps
majestic[624]: - [JPEG, Q50, 2560Kb]
majestic[624]: Region: 464x48
majestic[624]: Input: 8kHz, 0dB
majestic[624]: Load isp file /etc/sensors/imx415.bin
majestic[624]: [MAJOR]: ispversion(1) in sdk, ispversion(1) in binfile.
majestic[624]: [MINOR]: ispversion(2) in sdk, ispversion(2) in binfile.
cat /etc/majestic.yaml

system:
  webPort: 80
  httpsPort: 443
  logLevel: debug
isp:
  antiFlicker: disabled
image:
  mirror: false
  flip: false
  rotate: 0
  contrast: 50
  hue: 50
  saturation: 50
  luminance: 50
video0:
  enabled: true
  codec: h265
  fps: 30
  bitrate: 2048
  rcMode: vbr
  gopSize: 1.0
  profile: high
  size: 1920x1080
  sliceUnits: 0
video1:
  enabled: false
  codec: h264
  size: 704x576
  fps: 15
jpeg:
  enabled: true
  qfactor: 50
  fps: 5
osd:
  enabled: true
  font: "/usr/share/fonts/truetype/UbuntuMono-Regular.ttf"
  template: "%d.%m.%Y %H:%M:%S"
  posX: 16
  posY: 16
audio:
  enabled: true
  volume: 0
  srate: 8000
  codec: aac
  outputEnabled: false
  outputVolume: 30
  speakerPinInvert: false
rtsp:
  enabled: true
  port: 554
nightMode:
  colorToGray: true
  irCutSingleInvert: false
  lightMonitor: false
  lightSensorInvert: false
  irCutPin1: 80
  irCutPin2: 81
  monitorDelay: 0
  backlightPin: 13
motionDetect:
  enabled: false
  visualize: false
  debug: false
records:
  enabled: false
  path: "/mnt/mmcblk0p1/%F"
  split: 20
  maxUsage: 95
outgoing:
  enabled: true
  naluSize: 1200
  server: rtmp://a.rtmp.youtube.com/live2/{key}
watchdog:
  enabled: true
  timeout: 300
hls:
  enabled: false
@MalgathThelamin
Copy link
Author

MalgathThelamin commented Oct 11, 2024

Similar problem with ssc337de + gc4653:

majestic[638]: Channel 2: 2400x1440@5fps

Screenshots are taken with a resolution of 2400x1440 instead of 2560x1440.

If I set JPEG resolution to 2560x1440 in Majestic > Settings > JPEG, I get an error message:

majestic[638]: Channel 2 invalid size: 2560x1440

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

1 participant