Skip to content

Corrupted RTSP stream after upgrading from 1.8.0 #3121

@edgan

Description

@edgan

Version

Media3 1.9.2

More version details

1.8.0 works
1.9.0 doesn't work
1.9.2 doesn't work

Devices that reproduce the issue

Pixel 8 Pro Android 16

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

Running MediaMTX v1.16.1, linux, amd64 with a URL of rtsp://hostname8554/cam
Runing ffmpeg version 7.1.2 with this command:
ffmpeg -f v4l2 -i /dev/video0 -vcodec libx264 -pix_fmt yuv420p -r 30 -preset ultrafast -tune zerolatency -x264-params keyint=30:min-keyint=30 -bf 0 -g 30 -f rtsp -rtsp_transport tcp rtsp://localhost:8554/cam

Expected result

Non-corrupted video playing back in Exoplayer

Actual result

Corrupted video playing back in Exoplayer

Media

Good stream with 1.8.0:
Image

Examples of bad streams with 1.9.0 or 1.9.2:
Image

Image Image Image Image

Bug Report

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions