Artefacts with rtp streams
@microkatz is already working on this.
Since Feb 10, 2025.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Dear ExoPlayer Team,
the ExoPlayer play the streams with udp rtp created by ffmpeg with artefacts
ffmpeg.exe -re -i f:\zdf_hd.ts -vcodec copy -acodec copy -f rtp_mpegts "rtp://224.0.33.55:10000"
the media3 ExoPlayer 1.5.1 play the streams with udp
Uri uri = Uri.parse("udp://224.0.33.55:10000");
playerView.setPlayer(currentPlayer);
currentPlayer.setMediaItem(MediaItem.fromUri(uri));
currentPlayer.setPlayWhenReady(playWhenReady);
currentPlayer.prepare();
and with rtp
Uri uri = Uri.parse("rtp://224.0.33.55:10000");
ProgressiveMediaSource pProgressiveMediaSource = new ProgressiveMediaSource.Factory(
udpDataSourceFactory)
.createMediaSource(MediaItem.fromUri(uri)
);
playerView.setPlayer(currentPlayer);
currentPlayer..setMediaSource(pProgressiveMediaSource);
currentPlayer.setPlayWhenReady(playWhenReady);
currentPlayer.prepare();
I have tried with so many changes like
ExtractorsFactory
DefaultTsPayloadReaderFactory
DefaultRenderersFactory
setMediaCodecSelector
setBufferDurationsMs
but without any success.
Does anyone here have a solution for this ?
I have test the rtp stream created by ffmpeg and the Andoid VLC, Windows VLC, ffplay play it without any artefacts.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.