updated output never returns true. error on vlc logs when streaming:
we use MEPG2TS over UDP and it is a H264
_mediaPlayer.Media = new Media(new Uri("udp://@0.0.0.0:1234"));
var texptr = _mediaPlayer.GetTexture(rxVideoWidth,rxVideoHeight,out bool updated); //updated never returns true on this stream
Minimal project and steps to reproduce
stream the provided udp stream to unity ios player
What is the current bug behavior?
no frames
Does it work on other platforms? Does it work with the official VLC apps?
VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 247Module main File ../../../src/modules/modules.c Line 247VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/input/input.c Line 2468Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/input/demux.c Line 154VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:VLC Logger:webvtt Debug:Module webvtt File ../../../modules/demux/webvtt.c Line 629VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235Module main File ../../../src/modules/modules.c Line 286VLC Logger:main Debug:VLC Logger:ts Debug:Module main File ../../../src/modules/modules.c Line 235Module ts File ../../../modules/demux/mpeg/ts.c Line 523VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts.c Line 1090VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 247VLC Logger:main Debug:Module main File ../../../src/input/input.c Line 1377VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts.c Line 683VLC Logger:ts Debug:VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 163VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 200Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 97VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 131VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 1844VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 1901VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 1955VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 2016VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 1370VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 1237VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/input/decoder.c Line 737VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:swscale Debug:Module swscale File ../../../modules/video_chroma/swscale.c Line 247VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:yuvp Debug:Module yuvp File ../../../modules/video_chroma/yuvp.c Line 83VLC Logger:main Debug:Module main File ../../../src/video_output/interlacing.c Line 98VLC Logger:main Debug:Module main File ../../../src/video_output/interlacing.c Line 86VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 247Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:decoder Notice:Module decoder File ../../../modules/codec/videotoolbox/decoder.c Line 1449VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts.c Line 2787VLC Logger:main Debug:VLC Logger:ts Debug:Module main File ../../../src/input/es_out.c Line 1237Module ts File ../../../modules/demux/mpeg/ts_psi.c Line 2185VLC Logger:ts Debug:VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts.c Line 868Module ts File ../../../modules/demux/mpeg/ts.c Line 877VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 1274VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 1304VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:h264 Debug:Module h264 File ../../../modules/packetizer/h264.c Line 1149VLC Logger:h264 Debug:Module h264 File ../../../modules/packetizer/h264.c Line 1149VLC Logger:main Debug:Module main File ../../../src/input/decoder.c Line 1716VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/misc/es_format.c Line 513Module main File ../../../src/misc/es_format.c Line 249VLC Logger:main Debug:Module main File ../../../src/misc/es_format.c Line 251VLC Logger:main Debug:Module main File ../../../src/misc/es_format.c Line 253VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/misc/es_format.c Line 255Module main File ../../../src/modules/modules.c Line 286VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/input/decoder.c Line 751Module main File ../../../src/input/decoder.c Line 743VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:decoder Debug:VLC Logger:decoder Debug:Module decoder File ../../../modules/codec/hxxx_helper.c Line 213Module decoder File ../../../modules/codec/hxxx_helper.c Line 222VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:decoder Warning:Module decoder File ../../../modules/codec/videotoolbox/decoder.c Line 1195VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts.c Line 2628VLC Logger:ts Debug:VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_si.c Line 166Module ts File ../../../modules/demux/mpeg/ts_si.c Line 153VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_si.c Line 167VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_si.c Line 177VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_si.c Line 194VLC Logger:ts Debug:Module ts File ../../../modules/demux/mpeg/ts_si.c Line 264VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 1612VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:decoder Notice:VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235Module decoder File ../../../modules/codec/videotoolbox/decoder.c Line 1449VLC Logger:decoder Debug:Module decoder File ../../../modules/codec/videotoolbox/decoder.c Line 1990VLC Logger:decoder Debug:VLC Logger:main Debug:Module decoder File ../../../modules/codec/videotoolbox/decoder.c Line 2052Module main File ../../../src/input/decoder.c Line 756VLC Logger:main Debug:Module main File ../../../src/video_output/video_window.c Line 380VLC Logger:main Debug:Module main File ../../../src/video_output/interlacing.c Line 86VLC Logger:main Debug:Module main File ../../../src/video_output/vout_wrapper.c Line 66VLC Logger:main Warning:Module main File ../../../src/video_output/display.c Line 718VLC Logger:main Debug:[VLC-Unity] output callback setupModule main File ../../../src/video_output/display.c Line 750VLC Logger:main Debug:[VLC-Unity] [GLEAGL] call resizeModule main File ../../../src/modules/modules.c Line 212[VLC-Unity] bind FBO[VLC-Unity] bind FBO[VLC-Unity] bind FBOVLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Error:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 38VLC Logger:vout_ios Warning:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 39VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/libplacebo/utils.c Line 41VLC Logger:vout_ios Debug:Module vout_ios File ../../../modules/video_output/opengl/sampler.c Line 829VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:VLC Logger:main Debug:Module main File ../../../src/video_output/display.c Line 767Module main File ../../../src/misc/es_format.c Line 298VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 286VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 212VLC Logger:main Debug:Module main File ../../../src/modules/modules.c Line 235VLC Logger:main Debug:Module main File ../../../src/video_output/video_window.c Line 380VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:main Debug:Module main File ../../../src/input/input.c Line 743VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 977VLC Logger:main Debug:Module main File ../../../src/input/es_out.c Line 986
I'm not sure how to setup this stream with ffmpeg, so if you cannot provide the stream access to me, clear instructions on how to set that up are welcome.
Moreover, this issue is specific to libvlc, not the unity integration itself, so commercial support may be required if you need this fixed. The unity integration sold is for binaries only, as described, and reasonable support for the unity integration itself, not libvlc (or any of its dependencies).
The stream is generated in a device we have no control over its source so it is hard to tell exactly how to reproduce it on ffmpeg. I can how however stream to you from one of our devices if we schedule some time or I can also leave it on running 24/7 if you want to give me an IP and Port to stream to. or we can also find a way to replay the wireshark recordings and it will provide you a stream on demand if needed.
As for libvlc i can tell you it is playing properly on another project that we have which runs under a WPF application on Windows and intel x64 CPU. so I am not sure where exactly it breaks.
As for libvlc i can tell you it is playing properly on another project that we have which runs under a WPF application on Windows and intel x64 CPU. so I am not sure where exactly it breaks.
Different libvlc version, so that's why. Unrelated to Unity.
I can how however stream to you from one of our devices if we schedule some time or I can also leave it on running 24/7 if you want to give me an IP and Port to stream to. or we can also find a way to replay the wireshark recordings and it will provide you a stream on demand if needed.
No idea what would be the easiest. Ideally, I'd just need a URL to be able to test with locally.
But since it creates a UDP stream that being sent to you the is no address i can give, if you can give me an IP:PORT where you can receive it i can set it up to stream to you. this port will need to be open for UDP so you can get it.
once we do that you will be able to use udp://@0.0.0.0:PORT (where PORT is the PORT you provide me) and you can capture it.
The iOS app can already receive a UDP stream when broadcasted from another source. It just can’t receive from the source we want. Though the Android Unity package recieved just fine from that same source.
Just a quick test, can you try initializing the LibVLC object with --no-hw. This will disable hardware decoding, as a temporary workaround, to see if that is indeed the (only) issue.
I need to figure out how to set this up with ffmpeg locally, but haven't had time for this yet.
[h264 @ 0x10f97d830] Invalid level prefix\[h264 @ 0x10f97d830] error while decoding MB 78 44\[h264 @ 0x10f97d830] concealing 51 DC, 51 AC, 51 MV errors in P frame\
Could not find ref with POC
These look like packet loss and/or corruption. Picture too late to be displayed is somewhat expected as hardware is disabled for this test (wanted to see if the original issue was solely videotoolbox-related, probably not).
Honestly at this point, we'd need to agree on a support/consulting contract because this requires time to investigate and fix, and this isn't related to the Unity integration at all (purely a libvlc problem), so I'd need to get our mpegts/h264/h265 VLC core expert on it.
We can discuss that, but isn't the fact that just plain VLC app on the same device works and plays the same stream perfectly says that it is some where in the plugin? I am unaware of how the software stack is different that is why I ask.
Very different, since you're talking about VLC 3.x, while the plugin must use a 4.x VLC engine. You could try the VLC 4.x app on macOS to see if you have similar logs https://nightlies.videolan.org/ but there are no release of VLC 4 on iOS yet.
Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. When in doubt, contact your IT Department
Very different, since you're talking about VLC 3.x, while the plugin must use a 4.x VLC engine. You could try the VLC 4.x app on macOS to see if you have similar logs https://nightlies.videolan.org/ but there are no release of VLC 4 on iOS yet.
--
Reply to this email directly or view it on GitLab: #224 (comment 437255)
You're receiving this email because of your account on code.videolan.org.