Skip to content

Unathorized error for streaming audio_with_cam on raspberrypi zero 2W using yocto #4358

Open
@adejewski

Description

@adejewski

Which version are you using?

1.9.3

Which operating system are you using?

Other (please describe)

Describe how to replicate the issue

Hi,

I am trying to make mediamtx work on raspberrypi zero 2w with yocto scarthgap. I've managed to compile mediamtx and make it work with the camera which works really nice. The problem is with the audio, I cannot stream that.

After solving a couple of issues I am getting unauthorized error and not sure what is the root cause of that.

My config is pretty basic the only thing I've modified is:

paths:
  # example:
  # my_camera:
  #   source: rtsp://my_camera
  cam:
    source: rpiCamera
  
  cam_with_audio:
    runOnInit: >
      gst-launch-1.0
      rtspclientsink name=s location=rtsp://localhost:$RTSP_PORT/cam_with_audio
      rtspsrc location=rtsp://127.0.0.1:$RTSP_PORT/cam latency=0 ! rtph264depay ! s.
      alsasrc device=hw:0 ! audioconvert ! vorbisenc ! s.
    runOnInitRestart: yes

  # Settings under path "all_others" are applied to all paths that
  # do not match another entry.
  all_others:

I am attaching log as well, in line 7238 you can see unauthorized error.

I am using the older version because this version of Yocto does not support Go1.23.

Thanks

Server logs

mediamtx.log

Network dump

No response

EDIT:
I've managed to compile 1.11.3 as well but the result is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions