Re: [Libav-user] libavformat, RTSP: periodically read last available frame of live stream

2013-09-10 Thread Sandro Mani
On 09.09.2013 22:33, Alex Cohn wrote: On Sep 8, 2013 8:15 PM, "Sandro Mani" wrote: On 08.09.2013 18:32, Alex Cohn wrote: On Sep 8, 2013 6:17 PM, "Sandro Mani" wrote: Hello, I would like to periodically (say every second) grab the latest frame from a rtsp live stream of a webcam. I am able

[Libav-user] downmixing 5.1 to stereo

2013-09-10 Thread luigi
the following code (adapted from resampling_audio.c written by Stefano Sabatini and included in ffmpeg doc/examples) is able do resample fltp to AV_SAMPLE_FMT_S16 but fails to downmix 5.1 to stereo. I've tried several solutions without hope. The routine takes a buffer decoded with av_decode_aud

[Libav-user] Segmentation fault in get_bits

2013-09-10 Thread Leo Fernando
Hi, I use libav through gstreamer. I'm using gst version 1.0.8. I often see crash with segmentation fault pointing to get_bits function while decoding 576i Mpeg2 stream Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe67c8700 (LWP 20524)] get_bits (s=0x7fffd804a1a0

Re: [Libav-user] Segmentation fault in get_bits

2013-09-10 Thread Carl Eugen Hoyos
Leo Fernando writes: > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x7fffe67c8700 (LWP 20524)] > get_bits (s=0x7fffd804a1a0, mb_y=34, buf=0x7fffe67c6a00, > buf_size=0) at libavcodec/get_bits.h:241 > 241 UPDATE_CACHE(re, s); > (gdb) Needed part of gdb outp