Can play H.264 file, but cannot play same file over TCP or UDP network stream
Posted: 26 Nov 2019 14:31
I have recently been working on a project to write a H.264 video encoder in C++, using the NVIDIA Video Codec SDK.
If I write the data to a file and try to play the file in VLC, the video successfully plays. But if I open a TCP or UDP server in C# and send the data to VLC over the network instead, VLC does not play the video. For what it's worth, I'm testing this on a Windows 10 machine.
The URL I'm trying to open is "tcp://127.0.0.1:22398".
This is the log for a successful session by opening the file: https://pastebin.com/bccg3unc
And here is the log output for an unsuccessful play over a TCP stream: https://pastebin.com/24WnC4KK
This is with the H.264 demuxer selected in the VLC GUI options. If I leave the demuxer set to "automatic", the file still doesn't play and it appears to try another one for MPEG-TS.
I am using VLC Player 3.0.6. Any ideas?
If I write the data to a file and try to play the file in VLC, the video successfully plays. But if I open a TCP or UDP server in C# and send the data to VLC over the network instead, VLC does not play the video. For what it's worth, I'm testing this on a Windows 10 machine.
The URL I'm trying to open is "tcp://127.0.0.1:22398".
This is the log for a successful session by opening the file: https://pastebin.com/bccg3unc
And here is the log output for an unsuccessful play over a TCP stream: https://pastebin.com/24WnC4KK
This is with the H.264 demuxer selected in the VLC GUI options. If I leave the demuxer set to "automatic", the file still doesn't play and it appears to try another one for MPEG-TS.
I am using VLC Player 3.0.6. Any ideas?