Page 1 of 1

Data exchange between packetizer and muxer module

Posted: 16 Sep 2014 09:32
by sony
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

Re: Data exchange between packetizer and muxer module

Posted: 16 Sep 2014 22:30
by Rémi Denis-Courmont
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.

Re: Data exchange between packetizer and muxer module

Posted: 17 Sep 2014 09:04
by sony
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

Re: Data exchange between packetizer and muxer module

Posted: 17 Sep 2014 11:51
by Rémi Denis-Courmont
I cannot condone such brittle hacks.