Hi,
sample_outdoor_car_1080p_10fps.h264 to long for test, for reproduce i create also transcoder piece of sample_outdoor_car_1080p_10fps
ffmpeg -y -i sample_outdoor_car_1080p_10fps.h264 -t 00:25 -c copy sample_outdoor_car_1080p_10fps_25.h264
./multivideo_transcode num_files 1 ../../data/Video/sample_outdoor_car_1080p_10fps_25.h264 H264 ../../data/Video/sample_outdoor_car_1080p_10fps_25_transcoded.h264
So, i am running multiple decode threads and after some time pid 19440 freeze
# ps auxww | grep video_de
root 8621 0.3 0.6 8637220 52016 pts/5 Sl+ 13:50 0:00 ./video_decode H264 --disable-rendering --input-nalu ../../data/Video/sample_outdoor_car_1080p_10fps_25_transcoded.h264
root 10494 101 0.6 8631100 48064 pts/3 Rl+ 13:53 0:02 ./video_decode H264 --disable-rendering --input-nalu ../../data/Video/sample_outdoor_car_1080p_10fps.h264
root 10514 0.0 0.5 8631100 46872 pts/4 Sl+ 13:53 0:00 ./video_decode H264 --disable-rendering --input-nalu ../../data/Video/sample_outdoor_car_1080p_10fps_25.h264
root 10524 0.0 0.0 6892 628 pts/7 S+ 13:53 0:00 grep --color=auto video_de
root 19440 0.1 0.6 8631100 48036 pts/2 tl+ 13:30 0:02 ./video_decode H264 --disable-rendering --input-nalu ../../data/Video/sample_outdoor_car_1080p_10fps.h264
# gdb -p 19440
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 19440
[New LWP 19442]
[New LWP 19443]
[New LWP 19444]
[New LWP 19445]
[New LWP 19455]
[New LWP 19456]
[New LWP 19457]
[New LWP 19458]
[New LWP 19464]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
0x0000007f94f83310 in __GI___pthread_timedjoin_ex (threadid=547676893648, thread_return=0x0, abstime=0x0, block=<optimized out>) at pthread_join_common.c:89
89 pthread_join_common.c: No such file or directory.
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f94fe7430 (LWP 19440) "DecOutPlane" 0x0000007f94f83310 in __GI___pthread_timedjoin_ex (threadid=547676893648, thread_return=0x0, abstime=0x0, block=<optimized out>)
at pthread_join_common.c:89
2 Thread 0x7f940a31d0 (LWP 19442) "drm_vbl" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b088a288)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
3 Thread 0x7f938a21d0 (LWP 19443) "drm_pflip" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b088a258)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
4 Thread 0x7f930a11d0 (LWP 19444) "drm_vbl" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b088a338)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
5 Thread 0x7f928a01d0 (LWP 19445) "drm_pflip" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b088a308)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
6 Thread 0x7f8747c1d0 (LWP 19455) "NVMDecBufProcT" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b08b526c)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
7 Thread 0x7f86c7b1d0 (LWP 19456) "NVMDecDisplayT" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b08afec8)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
8 Thread 0x7f8647a1d0 (LWP 19457) "NVMDecFrmStatsT" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b08aff3c)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
9 Thread 0x7f849641d0 (LWP 19458) "V4L2_DecThread" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b095f3cc)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
10 Thread 0x7f841631d0 (LWP 19464) "DecCapPlane" 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b095f358)
at ../sysdeps/unix/sysv/linux/futex-internal.h:88
(gdb) thread 10
[Switching to thread 10 (Thread 0x7f841631d0 (LWP 19464))]
#0 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b095f358) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
88 ../sysdeps/unix/sysv/linux/futex-internal.h: No such file or directory.
(gdb) list
83 in ../sysdeps/unix/sysv/linux/futex-internal.h
(gdb) bt
#0 0x0000007f94f882a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b095f358) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 0x0000007f94f882a4 in __pthread_cond_wait_common (abstime=0x0, mutex=0x55b095f300, cond=0x55b095f330) at pthread_cond_wait.c:502
#2 0x0000007f94f882a4 in __pthread_cond_wait (cond=0x55b095f330, mutex=0x55b095f300) at pthread_cond_wait.c:655
#3 0x0000007f945c5fdc in () at /usr/lib/aarch64-linux-gnu/tegra/libnvos.so
#4 0x0000007f90a3fbf0 in TegraV4L2_Poll_CPlane () at /usr/lib/aarch64-linux-gnu/tegra/libtegrav4l2.so
#5 0x0000007f9443a2e4 in plugin_ioctl () at /usr/lib/aarch64-linux-gnu/libv4l/plugins/nv/libv4l2_nvvideocodec.so
#6 0x0000007f94e69d68 in v4l2_ioctl (fd=14, request=3227014673) at libv4l2.c:1152
#7 0x000000557b13ccc0 in NvV4l2ElementPlane::dqBuffer(v4l2_buffer&, NvBuffer**, NvBuffer**, unsigned int) (this=0x55b089a488, v4l2_buf=..., buffer=0x7f841625b8, shared_buffer=0x0, num_ret
ries=0) at NvV4l2ElementPlane.cpp:126
#8 0x000000557b105720 in dec_capture_loop_fcn(void*) (arg=0x7ffba68218) at video_decode_main.cpp:1055
#9 0x0000007f94f82088 in start_thread (arg=0x7ffba67fff) at pthread_create.c:463
#10 0x0000007f949f5ffc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
(gdb) frame 8
#8 0x000000557b105720 in dec_capture_loop_fcn (arg=0x7ffba68218) at video_decode_main.cpp:1055
1055 if (dec->capture_plane.dqBuffer(v4l2_buf, &dec_buffer, NULL, 0))
(gdb) list
1050 memset(&v4l2_buf, 0, sizeof(v4l2_buf));
1051 memset(planes, 0, sizeof(planes));
1052 v4l2_buf.m.planes = planes;
1053
1054 /* Dequeue a filled buffer. */
1055 if (dec->capture_plane.dqBuffer(v4l2_buf, &dec_buffer, NULL, 0))
1056 {
1057 if (errno == EAGAIN)
1058 {
1059 usleep(1000);
(gdb) p dec->capture_plane.num_queued_buffers
$1 = 10
(gdb) p ctx.got_e
There is no member named got_e.
(gdb) p ctx.got_eos
$2 = true
(gdb)
Can you please tell me did you succeed in reproducing this behavior?