Closed fpuente70 closed 6 years ago
Does it work with the vlc 3.0.0 desktop application
When I say I tried with VLC application for Windows I mean I tried the desktop application and it fails on VLC 3.0.x but works fine on version 2.4 I thought it could have some relationship with the nuget not being able to display the UDP stream video but working well with, for example, http
the nuget is very recent, so probably uses the code from VLC 3.0.x
just in case it helps, I generate the UDP stream using FFMPEG using the following setting:
ffmpeg -f gdigrab -framerate 30 -i desktop -preset ultrafast -vcodec libx264 -tune zerolatency -b 900k -f mpegts udp://127.0.0.1:1234
It works great on VLC v2.4 but with the newer 3.0.x it doesn't seem to recognize the codec used or something like that
The NuGet is 3.0.0 in a packege, we never updated it to a more recent version. If it fails with VLC 3.0.4 itself, there's nothing we can do about it and you should submit a bug in vlc's trac
I will do that then, thanks Anyway, if you think it could be solved through non default configuration, I will be happy to hear it
It's hard to tell without the vlc logs (they will ask you). Please close this issue as there's nothing we can do here
Before reporting the bug I made a little additional investigation and found out it is not a bug on VLC v3.0.x but a restriction on the maximum MTU size when using UDP. I made the change on the streaming source to take that into account and now it works fine on VLC desktop application for Windows v 3.0.x. However, I still can't open the UDP stream using libVLCSharp.Forms, at least on IOS which I'm using for the tests. How can I trace the problem? It doesn't give me any message... just tries to start the video but never starts. Is there any way to access a log of debug it to see what is happening? Thanks in advance
Have you tried LibVLC.Log += ...
?
I am using a Xamarin.Forms example that simply sets the video directly on the XAML so I have no control on the loading of the video or anything. I will check that property to see if I can find any info there, but if I have to write into it what is happening (+=...) then it doesn't help much.
then it doesn't help much.
Then share your code. Helping you blindly is not very efficient ;-)
I will try that. Thanks
That link was of great use... I had to do some extra work to put the project to work but finally it works great... I owe you a couple beers at least. Thanks so much
@fpuente70 Can you share you working code ?
I tried with VLC application for Windows and it fails to reproduce the UDP video stream on version 3.0.x and works fine on the older version 2.4. ¿What has changed? ¿How can I make the nuget display the UDP stream video?