Pipeline blocked after some block probe

adrien_sch adrien.schwartzentruber at gmail.com
Wed Jan 8 09:01:25 PST 2014


Hello guys,

I'm working on an app who displays and records a video stream. The recording
process segments the source stream in differents file by using a matroskamux
(+ probe etc..)

After some discussion with Pedro Corte-Real (see :
http://gstreamer-devel.966125.n4.nabble.com/Properly-segment-a-video-file-td4664496.html),
I have a running solution, but I observed that sometimes (after less that 5
min usually - but completly random) my pipeline just "block" and no data
seems to flow inside the pipeline. I tried to collect more information of
this state, but I didn't find any glue of the reason of this block. 

I don't know if this issue could be a side effect of this bug :
https://bugzilla.gnome.org/show_bug.cgi?id=721289 or if it's completly
different, or I'm doing something wrong (the patch was applied on my gst
version). 

You can find the application source code here :
https://user.iter.org/filesharing/?uid=f0178856-7556-41e3-91c9-c6953b6bfd64

This package includes : 
  The application source
  stdout & stderr logs : data/out
  Dot dump of a working pipeline : data/working.jpg
  Dot dump of a lock pipeline : data/lock.jpg

Run application :
  ./POC3_Recording uri_to_stream

Environment info : 
   Gstreamer version : 1.2
   Video sample used  :
http://www.auby.no/files/video_tests/h264_1080p_hp_4.1_10mbps_dts_unstyled_subs_monsters.mkv

Misc informations : 

info threads when the pipeline is lock : 
Info threads

  85   Thread 0x7fffd37fe700 (LWP 28473) "queue25:src"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  84   Thread 0x7fffd3fff700 (LWP 28472) "queue25:src"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  83   Thread 0x7fffd8fc3700 (LWP 28471) "queue25:src"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  82   Thread 0x7fffd9878700 (LWP 28470) "queue25:src"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  81   Thread 0x7fffda87a700 (LWP 28469) "xvimagesink-eve"
0x00007ffff74e508d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
  9    Thread 0x7fffda079700 (LWP 26816) "matroskademux12"
pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  7    Thread 0x7fffdb07b700 (LWP 26814) "typefind:sink"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  6    Thread 0x7ffff18ef700 (LWP 26813) "queue24:src"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  5    Thread 0x7ffff230e700 (LWP 26812) "queue25:src"
pthread_cond_wait@@GLIBC_2.3.2
    () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  4    Thread 0x7ffff2f59700 (LWP 26811) "multiqueue12:sr"
pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  3    Thread 0x7ffff375a700 (LWP 26810) "multiqueue12:sr"
pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  2    Thread 0x7ffff45c1700 (LWP 26809) "multiqueue12:sr"
pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
* 1    Thread 0x7ffff7fd9700 (LWP 26808) "POC_Recording3" 0x00007ffff750da43
in __GI___poll (fds=<optimized out>, nfds=<optimized out>,
timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87

Other point, sometimes the matroskamux print an error : matroskamux
matroska-mux.c:2516:gst_matroska_mux_start:<matroskamux15> downstream is not
seekable, but streamable=false. Will ignore that and create streamable
output instead. It seems be another "bug", but the lock pipeline still
appear when I set the streamable property to TRUE.

Any help, or ideas will be very appreciate.

Thx in advance.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pipeline-blocked-after-some-block-probe-tp4664553.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list