I've got a stream of data that contains encrypted packets of h264 data. Each packet is decrypted individually and the first packet contains a header that gives me the codec info (Version/Profile/Compatibility) the NAL unit length (3) and SPS/PPS lengths.
I am struggling to understand how to pipe this data (now byte[]) to vlc in a way that it will understand how to playback the video.
I am initialising vlc with
Code: Select all
vlc --file-caching=3000 --demux=h264 -
Any help appreciated.