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

Optimize restream docs #5132

Merged
merged 9 commits into from
Jan 18, 2023
Merged

Optimize restream docs #5132

merged 9 commits into from
Jan 18, 2023

Conversation

NickM-27
Copy link
Collaborator

@NickM-27 NickM-27 commented Jan 17, 2023

It's better to use

go2rtc:
  streams:
    test_cam:
      - rtsp://192.168.1.5:554/live0
      - ffmpeg:test_cam#audio=aac  # or audio=opus

Because:

  1. Start will be faster. FFmpeg has high start time for RTSP with video. Usual: 2 * keyframe time.
  2. Go2rtc may not run ffmpeg if first source already has suitable video+audio
    Start ffmpeg with only audio will be fast.

@netlify
Copy link

netlify bot commented Jan 17, 2023

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit c8a8708
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/63c8831c1a84e60009c19372
😎 Deploy Preview https://deploy-preview-5132--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@NickM-27 NickM-27 marked this pull request as draft January 17, 2023 16:09
@felipecrs
Copy link
Contributor

Actually this optimization is quite dramatic. It drops multiple times the amount of CPU used by go2rtc.

@NickM-27 NickM-27 marked this pull request as ready for review January 18, 2023 15:02
@blakeblackshear blakeblackshear merged commit fb85c8c into dev Jan 18, 2023
@blakeblackshear blakeblackshear deleted the correct-docs branch January 18, 2023 23:50
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

Successfully merging this pull request may close these issues.

3 participants