Reconstructing h264 data into a format that vlc can play on stdin
Posted: 09 Feb 2018 05:54
Hi,
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. The StandardInput is then piped from the parent .net application. And it does show that it is playing from fd://0. I get no error message, but it doesn't play anything so I am assuming I've missed a step massaging these bytes into an h264 format that can be understood by the player.
Any help appreciated.
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.