Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: When the higher video bit rate is used for SRT streaming, the video will frequently appear green screen or mosaic #135

Closed
moliyadi opened this issue May 29, 2024 · 4 comments · Fixed by #137
Labels
bug Something isn't working
Milestone

Comments

@moliyadi
Copy link
Contributor

moliyadi commented May 29, 2024

Version

2.6.0

Environment that reproduces the issue

HUAWEI_Mate_30_Pro

RTMP/SRT/... Server

SRT on SRS

Audio configuration

default AAC

Video configuration

H264,
1920x1080,
bitrate: 10Mbps

Is it reproducible in the demos application?

Yes

Reproduction steps

  1. Connect to SRT server;
  2. Stream a short time;
  3. Play srt with VLC;

Expected result

The video picture is normal and clear without mosaics

Actual result

The picture near the top of the video frame is normal, and large areas of mosaics appear in most other areas, which is more obvious in scenes with rich content or frequent changes.

Additional context

The lower the video bitrate is set, the longer it will take to wait for this problem to appear after the streaming. If the video bit rate is set to 10 Mbps, it will be repeated almost immediately after the streaming.

#86
I saw the issue, I also tested it with srt-live-server, but the problem with the video still exists.
In addition, I used Haivision Play Pro App for SRT streaming test on the same mobile phone, using the same wifi and srt server, and the video picture was clear and normal.

Relevant logs output

There are a lot of errors when using ffplay to stream a video from StreamPack, but when using the Haivision Play Pro App to stream a video, there is no problem.

WX20240530-105304

@moliyadi moliyadi added the bug Something isn't working label May 29, 2024
@ThibaultBee
Copy link
Owner

Hi,

When you are using Haivision Play Pro, are you also testing in 1080p 10Mbps? Could you check the codec profile with Haivision Play Pro (In your ffplay screenshot it is High)?

@moliyadi
Copy link
Contributor Author

When you are using Haivision Play Pro, are you also testing in 1080p 10Mbps? Could you check the codec profile with Haivision Play Pro (In your ffplay screenshot it is High)?

The Haivision Play Pro can only set a maximum bitrate of 8000mbps;

PS: I found the problem, which was probably caused by PES_packet_length not being set correctly when the frame size was too large, so I committed a merge
#137

@ThibaultBee
Copy link
Owner

ThibaultBee commented May 30, 2024

Nice :)
Thanks. The TS muxer really needs some love!
Thanks for the help.
Does it fix your issue?

Also, be aware that due to CPU throttle a long live stream with a high bitrate is risky.

@tukez
Copy link
Contributor

tukez commented Jun 6, 2024

Could we get a patch release with this fix? Jitpack build does not work btw, so can't use that one: https://jitpack.io/#ThibaultBee/StreamPack

@ThibaultBee ThibaultBee added this to the 2.6.1 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants