flvmux threading model

Sean csosmo at hotmail.com
Sat Oct 8 16:09:33 UTC 2016


Hi, 

Here is my flvmux pipeline:

gst_launch flvmux name=mux ! filesink location=aac.flv audiotestsrc ! 
audioconvert ! audio/x-raw,channels=1 ! faac bitrate=64000 ! mux.
videotestsrc  ! video/x-raw,framerate=25/1 ! x264enc ! mux. 

I assume audio and video are two separate threads to mux the data into flv.
When I checked the console log as below, I found both audio and video
threads (thread ID: 0x7f11c8a5f320, 0x7f11c8a2b370) will execute the audio
muxing path of gst_flv_mux_buffer_to_tag_internal() in interleaving way.
While in the video muxing path (if (cpad->video) {....}) in
gst_flv_mux_buffer_to_tag_internal(), the thread 0x7f11c8a5f320 only
executes video muxing path around 4 times (in the first 4 video muxing),
later, all the video muxing path is executed by thread 0x7f495205f320. Would
anyone help to comment my understanding? Thanks.


=============================================
0:00:00.159602470 50417 0x7f11c8a2b370 DEBUG                
flvmux gstflvmux.c:1142:gst_flv_mux_buffer_to_tag_internal:<mux>
Creating byte af with audio_codec:10, rate:3, width:1, channels:1
0:00:00.160335426 50417 0x7f11c8a5f320 DEBUG                
flvmux gstflvmux.c:1142:gst_flv_mux_buffer_to_tag_internal:<mux>
Creating byte af with audio_codec:10, rate:3, width:1, channels:1
0:00:00.162046462 50417 0x7f11c8a2b370 DEBUG                
flvmux gstflvmux.c:1142:gst_flv_mux_buffer_to_tag_internal:<mux>
Creating byte af with audio_codec:10, rate:3, width:1, channels:1
0:00:00.162770257 50417 0x7f11c8a5f320 DEBUG                
flvmux 
=============================================






--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/flvmux-threading-model-tp4680001.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list