mediamtx icon indicating copy to clipboard operation
mediamtx copied to clipboard

Horrendous smearing

Open user897943 opened this issue 2 years ago • 1 comments

Which version are you using?

"latest" - see image sha256 below

Which operating system are you using?

OS

  • [ X] Linux
  • [ ] Windows
  • [ ] macOS

Architecture

  • [X ] amd64
  • [ ] arm64
  • [ ] arm7
  • [ ] arm6

Describe the issue

image

I am seeing horrendous smearing on my CCTV, this is really really terrible.

Describe how to replicate the issue

All cameras are set up like this: image

Log from container: image

Stats from container: image

Docker image: aler9/rtsp-simple-server@sha256:c4c1a5c8cada09f089c1161e9f3b853114e259557e9cab862c2d97ab2e46e089

Docker ports: 0.0.0.0:1935  1935/tcp:::1935  1935/tcp0.0.0.0:8554  8554/tcp:::8554  8554/tcp

Config file (rtsp URLs redacted):

api: yes
apiAddress: 127.0.0.1:9997
protocols: [tcp]
rtspPort: 8554
rtpPort: 8000
rtcpPort: 8001
readTimeout: 5s
writeTimeout: 5s
pprof: false
readBufferCount: 1024
readBufferSize: 8192

paths:
  cam1_ch1:
    source: "rtsp://1"
    sourceOnDemand: yes
    sourceProtocol: tcp
  cam2_ch1:
    source: "rtsp://2"
    sourceOnDemand: yes
    sourceProtocol: tcp
  cam3_ch1:
    source: "rtsp://3"
    sourceOnDemand: yes
    sourceProtocol: tcp
  cam4_ch1:
    source: "rtsp://4"
    sourceOnDemand: yes
    sourceProtocol: tcp

Did you attach a network dump?

no

user897943 avatar Sep 25 '21 12:09 user897943

Hello, in my opinion you have to either lower the resolution or switch to H265. It can be a bandwidth problem (try increasing readBufferCount) or even a decoder problem, since H264 doesn't play well with 2K and 4K and high bandwidths.

aler9 avatar Oct 27 '21 19:10 aler9