Where to intercept NAL packets?

This forum is about all development around libVLC.
indio
New Cone
New Cone
Posts: 5
Joined: 11 Nov 2016 15:52

Where to intercept NAL packets?

Postby indio » 11 Nov 2016 16:20

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Where to intercept NAL packets?

Postby Rémi Denis-Courmont » 11 Nov 2016 16:33

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

indio
New Cone
New Cone
Posts: 5
Joined: 11 Nov 2016 15:52

Re: Where to intercept NAL packets?

Postby indio » 11 Nov 2016 17:02

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?

indio
New Cone
New Cone
Posts: 5
Joined: 11 Nov 2016 15:52

Re: Where to intercept NAL packets?

Postby indio » 16 Nov 2016 12:10

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests