Reconstructing h264 data into a format that vlc can play on stdin

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
rsouthgate
New Cone
New Cone
Posts: 1
Joined: 09 Feb 2018 05:28

Reconstructing h264 data into a format that vlc can play on stdin

Postby rsouthgate » 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

Code: Select all

vlc --file-caching=3000 --demux=h264 -
. 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.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Reconstructing h264 data into a format that vlc can play on stdin

Postby InTheWings » 09 Feb 2018 10:31

VLC only reads AnnexB raw streams
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 90 guests