[Libav-user] memory leak when I-frame is delayed

2013-10-10 Thread Алексей Дорофеев
Hello! I'm using function avcodec_decode_video2() to decode streaming h.264 video in WOIP-application. My application is receiving the video packets by network over RTP. I'm seeing memory leak in case when the first INTRA-frame is delayed. The more times avcodec_decode_video2() is called before t

Re: [Libav-user] memory leak when I-frame is delayed

2013-10-10 Thread Carl Eugen Hoyos
Алексей Дорофеев writes: > I'm seeing memory leak in case when the first > INTRA-frame is delayed. Did you try to reproduce with ffmpeg (the application) and valgrind? Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/m

Re: [Libav-user] memory leak when I-frame is delayed

2013-10-10 Thread Алексей Дорофеев
I have my own simple h.264 test. Test reads YUV frames from file, encodes to h.264 frames and after decodes. Test is leaking too. I've used valgring and massif to get memory snapshots in runtime. There are two points where memory is leaking: ->30.61% (13,777,514B) 0x1019308: av_mallocz (mem.c:93)

Re: [Libav-user] HW decoding on Android

2013-10-10 Thread sirvo
Hi. We develop an android player using ffmpeg lib. It plays .ts files but when it comes to 1080p files, it runs really slow (like 10~15 fps). The problem is that sws_scale() and avcodec_video_decoder2() takes to much time to get it done (> 30ms). Then, I've compiled ffmpeg with libstagefright_h26

Re: [Libav-user] Compile with g++

2013-10-10 Thread Michael Chisholm
On 10/9/2013 8:33 PM, Carl Eugen Hoyos wrote: Michael Chisholm writes: So my point to all this is, the ffmpeg-2.0.1 headers aren't completely C++-friendly I don't think this is correct as such: The headers are neither C++-friendly nor C++-unfriendly, they are simply C headers and exactly the

Re: [Libav-user] Is libav thread-safe?

2013-10-10 Thread Bruce Wheaton
On Oct 9, 2013, at 6:28 AM, James Board wrote: Actually I have already wasted several weeks or months of coding time doing what you suggested: assume ffmpeg/libav works the way you want it, then start coding. I didn't say that at all. Based on my experience, it's highly unlikely ffmpeg work

Re: [Libav-user] Compile with g++

2013-10-10 Thread Bruce Wheaton
On Oct 9, 2013, at 7:29 AM, James Board wrote: > > Really? The title of the mailing list is Libav-user@ffmpeg.org. > I'm asking whether libav can be used in C++ programs, if anyone > uses libav in C++ programs, and what I need to do in order to > use libav in C++ programs. How can that be inapp

Re: [Libav-user] Compile with g++

2013-10-10 Thread Andy Shaules
On 10/10/2013 4:34 PM, Bruce Wheaton wrote: On Oct 9, 2013, at 7:29 AM, James Board > wrote: Really? The title of the mailing list is Libav-user@ffmpeg.org . I'm asking whether libav can be used in C++ programs, if anyone uses libav in

Re: [Libav-user] Extract frames in raw RGB formats

2013-10-10 Thread Amir Hossein Rouhi
Hi Carl What the bellow command line generate is a raw image but in YUV 4:2:0 format. what i want is RGB raw image. I know there is a formula to convert YUV to RGB but i need pure RGB in the file. even i tried to use -pix_fmt but could not find any parameter for RGB. Would you please give advice? f

Re: [Libav-user] HW decoding on Android

2013-10-10 Thread Alex Cohn
On Oct 11, 2013 12:40 AM, "sirvo" wrote: > > Hi. > > We develop an android player using ffmpeg lib. It plays .ts files but when > it comes to 1080p files, it runs really slow (like 10~15 fps). The problem > is that sws_scale() and avcodec_video_decoder2() takes to much time to get > it done (> 30m

[Libav-user] [h264] RTP: missed X packets: corrupted images

2013-10-10 Thread Rafa Lopez
Hi all I'm using the latest version of libav (2.0.2). I'm writing a simple code test (attached with .pro file) for camera streaming. My libav is compiled by me in debian squeeze amd64 (./configure --prefix=/opt/ffmpeg/ --enable-shared && make && make install) If my simple code test is compiled a