Skip to content

Allow to set an audio codec per channel #62

@felipecrs

Description

@felipecrs

OPUS is great and is the best audio codec hands down.

But sometimes we need other codecs. For example, legacy HLS (browser) players can only play AAC audio.

go2rtc can be used for that:

streams:
  my_cam:
    - rtsp://thingino:[email protected]/ch1
    - ffmpeg:my_cam#audio=aac

But this will invoke ffmpeg on the receiving end, which consumes CPU resources and (probably) adds some latency.

It would be great if we could have different audio codecs per channel, so that I could do something like this in go2rtc:

streams:
  my_cam:
    # ch1 would be set to send OPUS
    - rtsp://thingino:[email protected]/ch1
    # copy AAC audio track from my_cam_hd
    - rtsp://127.0.0.1:8554/my_cam_hd?audio=aac
  my_cam_hd:
    # ch0 would be set to send AAC
    - rtsp://thingino:[email protected]/ch0
    # copy OPUS audio track from my_cam
    - rtsp://127.0.0.1:8554/my_cam?audio=opus

Which would not require any transcoding. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions