View Single Post
Old 07-10-10, 03:06 PM   #2
rnissl
Registered User
 
Join Date: Jun 2005
Posts: 36
Default Re: VdpauDecoderRender() takes unusually long to complete

Hi,

I now have a backtrace of a related issue, where displaying a frame takes extremely long (e. g. ~500 ms). Image duration in this case is 20 ms.

The below backtrace shows the thread which takes care of displaying the decoded images. The backtrace was taken 15 ms after entering VdpauQueueBlock(). The second backtrace is from the decoding thread and was taken at the same time (doing VdpauDecoderRender()).

Code:
(gdb) bt
#0  0x00007f7c9c7ee0b7 in sched_yield () from /lib64/libc.so.6
#1  0x00007f7c96eed87a in sqrtf () at w_sqrtf.c:33
#2  0x00007f7c96eedd70 in sqrtf () at w_sqrtf.c:33
#3  0x00007f7c96eef2bb in ?? () from /usr/lib64/libvdpau_nvidia.so
#4  0x00007f7c97aaf387 in vdpau_display_frame2 (this_gen=0x8009c0, frame_gen=0x88d480) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:1861
#5  0x00007f7c97aaea60 in vdpau_display_frame (this_gen=0x8009c0, frame_gen=0x88d480) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:1698
#6  0x00007f7c9f00239f in overlay_and_display_frame (this=0x889450, img=0x88d480, vpts=63289957) at ../../../xine-lib-1.2/src/xine-engine/video_out.c:1093
#7  0x00007f7c9f0029b0 in video_out_loop (this_gen=0x889450) at ../../../xine-lib-1.2/src/xine-engine/video_out.c:1255
#8  0x00007f7c9ca9565d in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f7c9c804e1d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()
(gdb)

(gdb) bt
#0  0x00007f7c9c7fd4b7 in ioctl () from /lib64/libc.so.6
#1  0x00007f7c96f64647 in ?? () from /usr/lib64/libvdpau_nvidia.so
#2  0x00007f7c96f192dd in ?? () from /usr/lib64/libvdpau_nvidia.so
#3  0x00007f7c96f15998 in ?? () from /usr/lib64/libvdpau_nvidia.so
#4  0x00007f7c96f374e9 in ?? () from /usr/lib64/libvdpau_nvidia.so
#5  0x00007f7c96f03b2c in ?? () from /usr/lib64/libvdpau_nvidia.so
#6  0x00007f7c96ef6df6 in ?? () from /usr/lib64/libvdpau_nvidia.so
#7  0x00007f7c97aa9c8b in guarded_vdp_decoder_render (decoder=46, target=16, picture_info=0x7f7c8e485c70, bitstream_buffer_count=1, bitstream_buffers=0x7f7c8e485fc0) at ../../../xine-lib-1.2/src/video_out/video_out_vdpau.c:239
#8  0x00007f7c7d87c96b in vdpau_decoder_render (this_gen=0x11bf990, vdp_buffer=0x7f7c8e485fc0, slice_count=1) at ../../../../xine-lib-1.2/src/video_dec/libvdpau/vdpau_h264.c:710
#9  0x00007f7c7d87d21b in vdpau_h264_decode_data (this_gen=0x11bf990, buf=0xc17c40) at ../../../../xine-lib-1.2/src/video_dec/libvdpau/vdpau_h264.c:905
#10 0x00007f7c9effe1f1 in video_decoder_loop (stream_gen=0xb3cbf0) at ../../../xine-lib-1.2/src/xine-engine/video_decoder.c:383
#11 0x00007f7c9ca9565d in start_thread (arg=<value optimized out>) at pthread_create.c:297
#12 0x00007f7c9c804e1d in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()
(gdb)
Bye.
rnissl is offline   Reply With Quote