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

RPi camera H.264 software encoder ignores codec config #3965

Open
agrear opened this issue Nov 19, 2024 · 0 comments
Open

RPi camera H.264 software encoder ignores codec config #3965

agrear opened this issue Nov 19, 2024 · 0 comments

Comments

@agrear
Copy link

agrear commented Nov 19, 2024

Which version are you using?

v1.9.3

Which operating system are you using?

Linux arm64 standard

Describe how to replicate the issue

I'm using a Raspberry Pi 5 Bookworm + HQ Camera to stream with the following config:

paths:
  cam:
    source: rpiCamera
    rpiCameraWidth: 1920
    rpiCameraHeight: 1080
    rpiCameraFPS: 25
    rpiCameraMode: "2028:1080:12"
    rpiCameraCodec: softwareH264
    rpiCameraBitrate: 5000000
    rpiCameraProfile: main
    rpiCameraLevel: "4.1"

When starting the server the following output is logged:

2024/11/19 13:13:30 INF MediaMTX v1.9.3
2024/11/19 13:13:30 INF configuration loaded from /usr/local/etc/mediamtx.yml
2024/11/19 13:13:30 INF [path cam] [RPI Camera source] started
2024/11/19 13:13:30 INF [RTSP] listener opened on :8554 (TCP)
2024/11/19 13:13:30 INF [SRT] listener opened on :8890 (UDP)
[23:07:52.467317250] [4752]  INFO Camera camera_manager.cpp:313 libcamera v0.3.0+65-6ddd79b5-dirty (2024-10-20T12:49:50+00:00)
[23:07:52.468428324] [4753]  INFO RPI pisp.cpp:695 libpisp version v1.0.6 b567f0455680-dirty 20-10-2024 (12:35:35)
[23:07:52.482498473] [4753]  INFO RPI pisp.cpp:1154 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a to CFE device /dev/media0 and ISP device /dev/media2 using PiSP variant BCM2712_C0
[23:07:52.483069806] [4752]  INFO Camera camera.cpp:1183 configuring streams: (0) 1920x1080-YUV420 (1) 2028x1080-BGGR_PISP_COMP1
[23:07:52.483308121] [4753]  INFO RPI pisp.cpp:1450 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected CFE format: 2028x1080-PC1B
using software H264 encoder
x264 [info]: using cpu capabilities:
x264 [info]: profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
2024/11/19 13:13:31 INF [path cam] [RPI Camera source] ready: 1 track (H264)

The selected profile is Constrained Baseline, level 4.0 despite main being specified in the config.

Do the codec parameters not get correctly passed to x264?

Server logs

No response

Network dump

No response

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