Skip to content

unix+rtp publish h264 stream,decode error;using same stream,udp+rtp is ok #4999

@unv274

Description

@unv274

Which version are you using?

V1.1.4.0

Which operating system are you using?

Linux arm64 standard

Describe how to replicate the issue

  1. arm64,not docker
    2.may be unix domain socket using stream mode, mediamtx receive more than one packets once,so parse rtp error.

Server logs

2025/09/20 15:47:15 INF MediaMTX v1.14.0
2025/09/20 15:47:15 INF configuration loaded from /config/mediamtx.yml
2025/09/20 15:47:15 DEB [path channel_0_main] created
2025/09/20 15:47:15 DEB [path example] created
2025/09/20 15:47:15 DEB path manager created
2025/09/20 15:47:15 INF [RTSP] listener opened on :8554 (TCP)
2025/09/20 15:47:15 INF [path channel_0_main] [RTP source] started
2025/09/20 15:47:15 INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/TCP)
2025/09/20 15:47:15 DEB [path channel_0_main] [RTP source] connecting
2025/09/20 15:47:15 INF [path channel_0_main] [RTP source] ready: 1 track (H264)
2025/09/20 15:47:16 INF [path channel_0_main] RTP packets are too big, remuxing them into smaller ones
2025/09/20 15:47:16 WAR [path channel_0_main] [RTP source] 163 decode errors
2025/09/20 15:47:16 WAR [path channel_0_main] 5 processing errors
2025/09/20 15:47:17 WAR [path channel_0_main] [RTP source] 90 decode errors
2025/09/20 15:47:17 WAR [path channel_0_main] 137 processing errors
2025/09/20 15:47:18 WAR [path channel_0_main] [RTP source] 71 decode errors
2025/09/20 15:47:18 WAR [path channel_0_main] 1 processing error
2025/09/20 15:47:19 WAR [path channel_0_main] [RTP source] 62 decode errors
2025/09/20 15:47:19 WAR [path channel_0_main] 103 processing errors
2025/09/20 15:47:20 WAR [path channel_0_main] [RTP source] 53 decode errors
2025/09/20 15:47:20 WAR [path channel_0_main] 5 processing errors
2025/09/20 15:47:21 WAR [path channel_0_main] [RTP source] 39 decode errors
2025/09/20 15:47:21 WAR [path channel_0_main] 136 processing errors
2025/09/20 15:47:22 WAR [path channel_0_main] [RTP source] 60 decode errors
2025/09/20 15:47:22 WAR [path channel_0_main] 5 processing errors
2025/09/20 15:47:23 WAR [path channel_0_main] [RTP source] 33 decode errors
2025/09/20 15:47:23 WAR [path channel_0_main] 10 processing errors
2025/09/20 15:47:24 WAR [path channel_0_main] [RTP source] 48 decode errors
2025/09/20 15:47:24 WAR [path channel_0_main] 6 processing errors

config of unix+rtp (cannot decode stream)

paths:
example:
channel_0_main:
source: unix+rtp:///tmp/ts_stream_0_0
rtpSDP: |
v=0
o=- 123456789 123456789 IN IP4 127.0.0.1
s=H264 Video Stream
c=IN IP4 127.0.0.1
t=0 0
m=video 5004 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=640041;packetization-mode=1;sprop-parameter-sets=ZGQAKawsaoHgCJ+mbgoCCgQ=,aO4xshs=
maxReaders: 4

config of udp+rtp (decode stream is ok)
paths:
example:
channel_0_main:
source: udp+rtp://127.0.0.1:10000
rtpSDP: |
v=0
o=- 123456789 123456789 IN IP4 127.0.0.1
s=H264 Video Stream
c=IN IP4 127.0.0.1
t=0 0
m=video 10000 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=640041;packetization-mode=1

Network dump

No response

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