Skip to content

Fix artifacts in RTP multicast streams - #440

Merged
mtwebster merged 1 commit into
linuxmint:masterfrom
fridrich:fix-rtp
Oct 20, 2026
Merged

mtwebster merged 1 commit into
linuxmint:masterfrom
fridrich:fix-rtp

Conversation

@fridrich

Copy link
Copy Markdown
Contributor

RTP multicast IPTV streams (rtp://239.x.x.x:port, MPEG-TS over RTP, as used by e.g. Swisscom) play with constant blocky artifacts and smearing in Hypnotix. The same streams play cleanly in VLC.

The packets arrive intact: the kernel UDP counters (UdpRcvbufErrors, UdpInErrors) stay at 0. The damage happens in mpv's default handling of rtp://. Over 60 seconds of the same channel, mpv's log showed:

Packet corrupt / PES packet size mismatch
mpv rtp://… (current behaviour) 1067
mpv --demuxer-lavf-format=rtp rtp://… 0

With libavformat's rtp demuxer forced, the only remaining decoder messages are the expected ones from joining a stream mid-GOP (missing PPS until the first keyframe).

This change passes demuxer-lavf-format=rtp as a per-file loadfile option for rtp:// URLs only. Other URLs, and the user's global MPV options, are unaffected.

@mtwebster
mtwebster merged commit ac4928f into linuxmint:master Oct 20, 2026
4 checks passed
@fridrich
fridrich deleted the fix-rtp branch October 21, 2026 19:45
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.

2 participants