VLC/libVLC 3.0.x receiving UDP streaming frame dropping

About encoding, codec settings, muxers and filter usage
arek90
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2018 13:01

VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby arek90 » 27 Aug 2018 19:28

Hello,

Not sure if proper section but I'm using libVLC for receiving UDP streams from specifically manufactured cameras through IP Encoders.
However after upgrading client side libVLC to 3.0.3 (but issue appears on all 3.0.x versions) I'm experiencing massive frame dropping with --network-caching (1000 ms delay works fine but 50-100 ms receives 1-2 frames per second and I need those low values).
Lower versions (equals/below 2.2.8 ) are working as expected without any delays/frame dropping.

Here's my setup:

Server Side:
Protocol: UDP, one-way streaming
IP Encoders: Antrica (not using VLC for streaming - firmware does that)
Stream container: MPEG-TS
Stream resolution: 1920x1080 @ 30 fps
Video Bitrate: 8192kbps
Audio Bitrate: disabled (no audio)
MTU: 1500 (I've tried with 1316 and 1200 and nothing happened - both on client and server side)

Client side:
libVLC: 3.0.3
OS: Windows 10 x64

Would be great to use newest libVLC because of --udp-timeout parameter.

arek90
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2018 13:01

Re: VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby arek90 » 02 Sep 2018 21:42

Oh, forgot to mention - I've tested with 3.0.4 nightly build (dated on August 21 2018) and still no effect.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby InTheWings » 03 Sep 2018 09:39

If you're using VLC 3.0.x and have video issues.
Try:

  1. Preferences -> Input/Codecs -> Disable hw decoding
  2. If you are a Windows user, Preferences -> Video -> Change from direct3d11 to direct3d9
If any solution works, please tell us which one solved your case, Please also quote your video driver name and version.
also disable hurry up in avcodec prefs
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

arek90
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2018 13:01

Re: VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby arek90 » 03 Sep 2018 15:25

Thanks for reply,

I assume that thing you've posted can be achieved using command line only?
Anyway about results - I'll let you know in next 2 weeks because I don't have any IP encoders (those weren't mine) so I need to buy one for tests.

arek90
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2018 13:01

Re: VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby arek90 » 17 Oct 2018 10:45

Hey, back from the dead.

Problem still exists. And only "hurry up" option helped a bit (from 0.1 FPS to 2 FPS). Here's my logs from testing mentioned options:

log1.log - Disabled HW decoding
log2.log - D3D9
log3.log - Disabled "Hurry Up"

Gabri_91
New Cone
New Cone
Posts: 1
Joined: 03 Jul 2020 18:58

Re: VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby Gabri_91 » 03 Jul 2020 19:01

Hi,
sorry to bring up this discussion again, but I'm having exactly the same issue with UDP streamings sent by encoders.
They are working perfectly on 2.X but had massive dropouts on 3.X

I can reproduce the issue every time and I'm able to provide any required logs, any ideas?

If it helps, logs are full of this:

Code: Select all

ts warning: discontinuity received 0x4 instead of 0x8 (pid=256) ts warning: discontinuity received 0xf instead of 0xe (pid=256) ts warning: discontinuity received 0x6 instead of 0xa (pid=256) ts warning: discontinuity received 0x2 instead of 0x0 (pid=0) ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0) for PID 0 ts debug: PATCallBack called ts warning: discontinuity received 0x2 instead of 0x0 (pid=4096) ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0) for PID 4096 ts debug: PMTCallBack called for program 1

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC/libVLC 3.0.x receiving UDP streaming frame dropping

Postby Jean-Baptiste Kempf » 03 Jul 2020 20:15

PLease share the samples.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 27 guests