I am currently trying the following naive approach:
- Extracting the contents of the mdat box from the input stream (usually around 9000 bytes per mdat)
- Splitting the mdat content into as many 188 byte MPEG-TS packets as needed and multicasting
- Periodically adding a MPEG-TS packet containing both the SPS and PPS NALUs extracted from the completed file and multicasting
Out of curiosity I tried VLC's streaming option to see what it outputs:
Code: Select all
vlc input.mp4 --sout="#std{access=udp, mux=ts, dst=233.1.2.3:12345}"
I can't use VLC's streaming option for my purposes because I will not have a completed file. How can I get this to display in VLC?