Data exchange between packetizer and muxer module

This forum is about all development around libVLC.
sony
Blank Cone
Blank Cone
Posts: 23
Joined: 06 Mar 2006 16:39
Contact:

Data exchange between packetizer and muxer module

Postby sony » 16 Sep 2014 09:32

Dear all,
I am facing to the following problem: I would like to pass the data structure SPS, PPS - which are well parsed / retrieved in the h264 packetizer module - to TS muxer module. Can you give me some way to be able to do that?
Before in the version 1.1.0, I attached these data to the input_thread_t structure, then I call the vlc_object_find in both packetizer and ts muxer module to attach and retrieve the data respectively. Now in the 3.0.0-git, the vlc_object_find no longer exists. The alternative function vlc_object_find_name needs a call (in advance) to the function vlc_object_set_name, which I hardly figure out where to insert such call.
By the way, I am not sure if the modification of input_thread_t is a good manner to exchange the data between a packetizer and muxer.
Please give me a right way to do so with 3.0.0
Many thanks

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

Re: Data exchange between packetizer and muxer module

Postby Rémi Denis-Courmont » 16 Sep 2014 22:30

I think the out-of-band H.264 parameter sets are supposed to be stored in the p_extra & i_extra members of the es_format_t structure already.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sony
Blank Cone
Blank Cone
Posts: 23
Joined: 06 Mar 2006 16:39
Contact:

Re: Data exchange between packetizer and muxer module

Postby sony » 17 Sep 2014 09:04

Dear Rémi Denis-Courmont,
Thank you for your guide. Effectively, the p_extra and i_extra contain all the raw information of SPS,PPS. Then I have to parse them to be able to make use of these information.
However in the input thread, the information is already parsed and stored in the decoder_t and parketizer_t structure (for h264). So if I can pass them directly to the sout_mux_ts I don,t need parsing for the second time.
Then I fall back to the intial problem : whether such data passing between packetizer and muxer is feasible?
Many thanks

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

Re: Data exchange between packetizer and muxer module

Postby Rémi Denis-Courmont » 17 Sep 2014 11:51

I cannot condone such brittle hacks.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 56 guests