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

transfer quality about SRT #1129

Closed
whu-ysw opened this issue Feb 13, 2020 · 11 comments
Closed

transfer quality about SRT #1129

whu-ysw opened this issue Feb 13, 2020 · 11 comments
Assignees
Labels
Type: Question Questions or things that require clarification

Comments

@whu-ysw
Copy link

whu-ysw commented Feb 13, 2020

I'm the new to srt, and set up whole environment in Windows 7 by documents. However, the video quality can't satisfy common use in daily life. The VLC srceen is blurred as following picture shows. Maybe I should do something to improve video quality. Could someone help me? Thanks in advance.

problemDescription

Following code is my configuration:
FFmpeg configuration:
ffmpeg -r 30 -re -i test.mp4 -pix_fmt yuv420p -c:v libx264 -b:v 1000k -profile:v baseline -preset ultrafast -f mpegts "udp://127.0.0.1:5000?pkt_size=1316"
srt configuration:
srt-live-transmit.exe udp://5000 srt://:9000

@whu-ysw whu-ysw added the Type: Question Questions or things that require clarification label Feb 13, 2020
@dfloer
Copy link

dfloer commented Feb 23, 2020

One helpful piece of troubleshooting is to see what is going with on VLC's end. You can select Tools -> Messages (apologies, I don't know what those are not in English) and then select verbosity: 2 (debug). There'll be a lot of general VLC debug messages (volume change, mouse clicks and the like), but it should at least help you narrow down what VLC is having issues with.

I've also found it helpful when troubleshooting to turn the verbosity of srt-live-transmit's stats up, I usually use srt-live-transmit -s 100 -v -f. Easy to see if I'm dropping a lot of packets, etc.

@whu-ysw
Copy link
Author

whu-ysw commented Feb 23, 2020

It's really helpful for me to turn on VLC debug option. I should analyse the error messages carefully. Thanks for your instructions.

@mkdryden
Copy link

I am having similar issues. I think the problem is that there are continuity issues in the MPEG-TS stream. Testing with a similar setup (both ffmpeg and srt-live-transmit on the same Windows 10 system), I don't see any lost or dropped packets in srt's stats, but VLC shows a ton of messages like this:

ts warning: discontinuity received 0xa instead of 0xf (pid=256)
main warning: playback way too early (-131786): playing silence
main warning: picture is too late to be displayed (missing 1778 ms)
main warning: playback too early (-44580): down-sampling

and piping it through tsduck and using the continuity tool, there is a constant string of missing packets:

* continuity: packet index: 747,191, PID: 0x0100, missing 8 packets

I did have some success in getting a better quality stream by fiddling with ffmpeg's encoder settings; some settings produce mostly watchable video with glitches only every few seconds, and others are essentially blank video (though the audio track seems less problematic). I'm not sure if this is an ffmpeg problem or just masking over a problem somewhere else. I am aware that ffmpeg is not amazing at doing MPEG-TS, and doing just UDP to UDP with tsduck does show some continuity issues, but far less than using srt.

@mkdryden
Copy link

Actually, testing further, I don't see this problem using ffmpeg with libsrt support instead of srt-live-transmit, so this is perhaps just #933 (though I see it at bitrates below 8M).

@whu-ysw
Copy link
Author

whu-ysw commented Feb 25, 2020

Thanks a lot. Maybe using FFMpeg with libsrt is good choice worth to try. The version I use now is a static version without libsrt support. I need to google to look for some articles for how build it. Actually, I have tried all these configurations in Ubuntu14.04 LTS and Ubuntu18.04 LTS in VMWare. Configurations were completed successfully, but it doesn't work. There is no any video or audio I can get in the receiver. Instread, I deploy in Windows 7 system. The voice is retrieved finally. By the way, it is so tedious to compile in Windows.

@maxsharabayko
Copy link
Collaborator

A short guide on FFMpeg + srt: link

@whu-ysw
Copy link
Author

whu-ysw commented Feb 25, 2020

Wow, that's a good instruction. Thank you very much. A short guide is more easy to understand for a newbie.

@maxsharabayko
Copy link
Collaborator

SRT can be built on Windows using vcpkg manager. Vcpkg builds the dependencies (pthreads and OpenSSL) without the need to manually configure everything.
Instructions (see 2nd option).

@whu-ysw
Copy link
Author

whu-ysw commented Feb 26, 2020

Sorry, I don't look up my email yesterday later. Thanks to remind me of this important infomation. Using vcpkg is really a better choice to a Windows user. After building SRT, I should learn about some related concepts and set parameters carefully to improve the video effect.

@mbakholdina mbakholdina added this to the v1.5.0 - Sprint 18 milestone Jun 26, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 18, v1.5.0 - Sprint 19 Jul 13, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 19, v1.5.0 - Sprint 21 Aug 10, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 21, v1.5.0 - Sprint 22 Aug 24, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 22, v1.5.0 - Sprint 23 Sep 7, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 23, v1.5.0 - Sprint 24 Sep 21, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 24, v1.5.0 - Sprint 25, v1.5.0 Oct 13, 2020
@J-Rogmann
Copy link
Contributor

Hello @whu-ysw

I'm working through some old tickets, which are still left open. Did you manage to build it? Do you still experience any issues? Or can we close this ticket?

best regards,
Justus

@mbakholdina mbakholdina removed this from the v1.5.0 milestone Oct 22, 2020
@whu-ysw
Copy link
Author

whu-ysw commented Oct 22, 2020

Hello @whu-ysw

I'm working through some old tickets, which are still left open. Did you manage to build it? Do you still experience any issues? Or can we close this ticket?

best regards,
Justus

My problem has been solved already, you can close this ticker now. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Questions or things that require clarification
Projects
None yet
Development

No branches or pull requests

6 participants