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

Discard audio track from source RTSP #198

Closed
felipecrs opened this issue Jan 23, 2023 · 3 comments
Closed

Discard audio track from source RTSP #198

felipecrs opened this issue Jan 23, 2023 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@felipecrs
Copy link
Contributor

I have some cameras which are actually CFTV and I take their stream from my Hikvision DVR. They don't have any microphone, but my DVR's RTSP output adds a blank PCMU audio track.

I'd like to discard them with something like #audio=0 (similar to backchannel=0):

my_cam: "rtsp://admin:123@192.168.1.12:554/Streaming/Channels/601#audio=0"

But instead I have to:

my_cam: "ffmpeg:rtsp://admin:123@192.168.1.12:554/Streaming/Channels/601#video=copy"

Which probably takes unnecessary CPU cycles as it has to spawn a ffmpeg process.

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 21, 2023

Supported in master:

streams:
  camera-video: rtsp://admin:123@192.168.1.12:554/Streaming/Channels/601#media=video
  camera-audio: rtsp://admin:123@192.168.1.12:554/Streaming/Channels/601#media=audio

@felipecrs
Copy link
Contributor Author

That's awesome!

@AlexxIT AlexxIT added this to the v1.7.0 milestone Sep 2, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 2, 2023

@AlexxIT AlexxIT closed this as completed Sep 2, 2023
felipecrs pushed a commit to felipecrs/go2rtc that referenced this issue Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants