Page 1 of 1

VLC won't display MPEG-TS Stream (H.264)

Posted: 10 Jun 2020 17:05
by acoolmoose
- everything is Windows 10

I have a server streaming an MPEG-TS Stream via UDP multicast and H.264 compressed data.
My client is able to receive the stream just fine but VLC will not.
I enter the network stream "udp://@239.10.1.10:61200" and click play. VLC displays the loading bar for a few seconds then it disappears which seems to indicate that everything is working but no video is displayed. I also noticed that when a stream is working the log continues to grow. In my case the log stops outputting messages but no errors are shown. Here are the last few lines from the log before clicking the stop button (not sure how to attach full log):

Code: Select all

main debug: creating demux: access='udp' demux='any' location='@239.10.1.10:61200' file='\\@239.10.1.10:61200' main debug: looking for demux module matching "any": 55 candidates main debug: looking for xml reader module matching "any": 1 candidates main debug: using xml reader module "xml" webvtt debug: subtitle demux discarded ts debug: Standard set to Auto main debug: using demux module "ts" ts debug: DEMUX_SET_GROUP 0 00000000 main debug: looking for meta reader module matching "any": 2 candidates lua debug: Trying Lua scripts in C:\Users\Ryan\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac main debug: no meta reader modules matched main debug: `udp://@239.10.1.10:61200' successfully opened ts debug: first packet for pid=0 cc=0x4 ts debug: PATCallBack called ts debug: new PAT ts_id=4100 version=0 current_next=1 ts debug: * number=1001 pid=100 ts debug: temporary receiving program 1001 ts debug: first packet for pid=100 cc=0x4 ts debug: PMTCallBack called for program 1001 ts debug: new PMT program number=1001 version=1 pid_pcr=102 ts debug: * pid=102 type=0x1b AVC video stream as defined in ITU-T Rec. H.264 ts debug: => pid 102 has now es fcc=h264 main debug: selecting program id=1001 main debug: looking for packetizer module matching "any": 25 candidates main debug: using packetizer module "h264" main debug: looking for video decoder module matching "any": 19 candidates avcodec debug: using ffmpeg Lavc58.6.103 avcodec debug: CPU flags: 0x000fd3db avcodec debug: allowing 6 thread(s) for decoding avcodec debug: codec (h264) started avcodec debug: using frame thread mode with 6 threads main debug: using video decoder module "avcodec" ts debug: Default program is 1001 ts debug: * pid=17 listening for SDT ts debug: enabling pid 102 from program 1001 ts debug: enabling pcr pid 102 from program 1001
Here you can see the VLC codec information and wireshark running on the client.
https://ibb.co/vhzsvB8

At this point, I'm not sure if my server is to blame (breaking spec in some way) or I'm not using VLC correctly. Any insight about what might be going wrong would be greatly appreciated. Thanks.

Re: VLC won't display MPEG-TS Stream (H.264)

Posted: 25 Apr 2021 01:57
by bitsky
Try to add after the PORT?pkt_size=1316

"udp://@239.10.1.10:61200?pkt_size=1316"

Normally from where you are streaming should add the packet size 1316 or 7*188 (1316) depends what you are using.