Huge delay in starting v4l2src ! fakesink pipeline

Baby Octopus jagadishkamathk at gmail.com
Fri Aug 7 08:29:00 PDT 2015


Ok, I have some more useful data after trying with 1.5.2. Seems like its a
bug. The behaviour is same but the bt throws some light into the problem

It's wait in open function call in gst_v4l2_probe_and_register(). Printing
the value of device it opens showed it's trying to open /dev/video0 where as
the device that it is supposed to run in this pipeline is /dev/video1. Why
is it trying to open /dev/video0 which is already busy running in another
pipeline(process) in parallel?

#0  0x00007ffff6a1d9e0 in __open_nocancel () from /usr/lib64/libpthread.so.0
#1  0x00007fffefcee225 in gst_v4l2_probe_and_register (plugin=0x782330) at
gstv4l2.c:127
#2  plugin_init (plugin=0x782330) at gstv4l2.c:205
#3  0x00007ffff7b37f94 in gst_plugin_register_func (plugin=0x782330,
desc=0x7fffeff1e9c0 <gst_plugin_desc>, user_data=0x0) at gstplugin.c:524
#4  0x00007ffff7b39d4a in gst_plugin_load_file (filename=0x785b20
"/usr/local/lib/gstreamer-1.0/libgstvideo4linux2.so",
error=error at entry=0x7fffffffc798)
    at gstplugin.c:819
#5  0x00007ffff7b3aa21 in gst_plugin_load_by_name (name=0x77c34c
"video4linux2") at gstplugin.c:1258
#6  0x00007ffff7b3b3ee in gst_plugin_feature_load (feature=0x7846e0) at
gstpluginfeature.c:111
#7  0x00007ffff7b17477 in gst_element_factory_create
(factory=factory at entry=0x7846e0, name=name at entry=0x0) at
gstelementfactory.c:352
#8  0x00007ffff7b177d1 in gst_element_factory_make (factoryname=0x634e10
"v4l2src", name=name at entry=0x0) at gstelementfactory.c:446
#9  0x00007ffff7b7c9ec in priv_gst_parse_yyparse (scanner=0x798b90,
graph=graph at entry=0x7fffffffdef0) at ./grammar.y:688
#10 0x00007ffff7b7db6f in priv_gst_parse_launch (str=str at entry=0x7974f0
"v4l2src device=/dev/video1 ! fakesink ", error=error at entry=0x7fffffffdf78,
    ctx=ctx at entry=0x0, flags=flags at entry=GST_PARSE_FLAG_NONE) at
./grammar.y:1050
#11 0x00007ffff7b74fef in gst_parse_launch_full
(pipeline_description=0x7974f0 "v4l2src device=/dev/video1 ! fakesink ",
context=context at entry=0x0, flags=flags at entry=
    GST_PARSE_FLAG_NONE, error=error at entry=0x7fffffffe058) at gstparse.c:325
#12 0x00007ffff7b75285 in gst_parse_launchv_full (argv=argv at entry=0x614050,
context=context at entry=0x0, flags=flags at entry=GST_PARSE_FLAG_NONE,
    error=error at entry=0x7fffffffe058) at gstparse.c:262
#13 0x00007ffff7b7538c in gst_parse_launchv (argv=argv at entry=0x614050,
error=error at entry=0x7fffffffe058) at gstparse.c:215
#14 0x00000000004034b1 in main (argc=5, argv=0x7fffffffe3f8) at
gst-launch.c:993
(gdb) frame 1
#1  0x00007fffefcee225 in gst_v4l2_probe_and_register (plugin=0x782330) at
gstv4l2.c:127
127         video_fd = open (it->device_path, O_RDWR);
(gdb) p it->device_path
$1 = (const gchar *) 0x7905d0 "/dev/video0"




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Huge-delay-in-starting-v4l2src-fakesink-pipeline-tp4673042p4673056.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list