Page 1 of 1

Where to intercept NAL packets?

Posted: 11 Nov 2016 16:20
by indio
Hi all,
I developed an H264 - RTSP video server which sends encryped NAL packets and send other custom payload using Unspecfied NAL unit type.
Client side i was trying to use libVLC in order to connect to to the server, decrypt NALs, get custom NAL packet and play the Video.

Where is the best place to process incoming ordered NAL packets? Any help would be really apreciated
Indio

Re: Where to intercept NAL packets?

Posted: 11 Nov 2016 16:33
by RĂ©mi Denis-Courmont
At this point, you would have to write your own RTSP plugin altogether and replace the existing one(s). Due to lack of time/resources, there exists no proper abstraction for RTP depayloading in VLC.

Re: Where to intercept NAL packets?

Posted: 11 Nov 2016 17:02
by indio
Thanks for the reply,
I didn't expect to code a complete Demuxer!
Is there no way sto stay in a later state in the chain to decrypt the NALs payload? Or It would be easier if i drop the requirement to have the ordered packets?

Re: Where to intercept NAL packets?

Posted: 16 Nov 2016 12:10
by indio
Hi again,
Is it correct that the h264 decoder stay on top of RTP-RTSP? If so in the h264 decode i could get what i need to deal with NALs packet.

As an example, in the OpenH264 project the ParsNalHeader function here https://github.com/cisco/openh264/blob/ ... parser.cpp
suggest me could be correct. Am i missing something?
I