Re: [Libav-user] FFMPEG giving error at compilation

2013-02-08 Thread Anshul
On 02/08/2013 12:52 PM, Carl Eugen Hoyos wrote: Anshul writes: Guys when I compile ffmpeg1.1 with enable-gpl flag and enable-x264 flag I get an error "can’t find a register in class ‘GENERAL_REGS’" Its in File libpostproc/postprocess_template.c:1094:5 Please test the following: $ make distcle

Re: [Libav-user] Problem with using libavcodec with AV_CODEC_ID_H264

2013-02-08 Thread Harald Jordan
If you did not make any changes to the open_video and add_video functions of the decoding_encoding example, it cannot work. For H264 you need to manually define a set a of H264 private settings before opening the codec. http://stackoverflow.com/questions/3553003/encoding-h-264-with-libavcodec-x2 6

[Libav-user] What' the difference of decoding an Audio frame of planar sample format with avcodec_decode_audio3 and 4

2013-02-08 Thread 黄轩宇
Hi All, I'm now upgrading our application to use the latest ffmpeg version. In old version the AAC decoder supports packed sample but the latest AAC decoder only supports planar sample format. Our application uses avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr

Re: [Libav-user] What' the difference of decoding an Audio frame of planar sample format with avcodec_decode_audio3 and 4

2013-02-08 Thread Carl Eugen Hoyos
黄轩宇 writes: > Another thing is about libavresample and libswresample. Please note that only libswresample is supported (and shold therefore be used). > I know this two libraries provide interfaces to convert data format. > But if what I want is just array re-layout (as AAC decoder upgraded >

[Libav-user] avpicture_alloc returns error -12 at frame 308

2013-02-08 Thread jim morgenstern
Application using ffmpeg to read and write QT files. C++, Win 7. First 300+ calls to avpicture_alloc succeed; then the next one returns error despite valid parameters in function call: { AVPicture* reformatFrame = new AVPicture; ap = avpicture_alloc( reformatFrame

[Libav-user] cross-compiling for win32 with --enable-libopenjpeg

2013-02-08 Thread René J.V. Bertin
Hello, I'm probably overlooking something but am a bit stuck trying to cross-compile FFmpeg for win32 (on OS X), linking in libopenjpeg. I've grabbed the libopenjpeg-1.5.1 binaries from openjpeg.org, but the the configure process fails on the test app, not finding opj_version. What's the way ar

Re: [Libav-user] Problem with using libavcodec with AV_CODEC_ID_H264

2013-02-08 Thread Ashwin Chandra - SISA
But the decoding_encoding example works for me without any changes. The problem is if you just want to encode two frames and flush them all out. With 25 there doesn't seem to be any issues. From: libav-user-boun...@ffmpeg.org [mailto:libav-user-boun...@ffmpeg.org] On Behalf Of Harald Jordan Se

[Libav-user] FFMPEG decoding H264 and Multithreading

2013-02-08 Thread Jérôme SALAYET
Hello, I'm using FFMPEG to decode video streaming from an IP Camera. all seems good but I try to decrease the CPU usage of my application when I decompress several differents streams. In fact, I have a dual core processor, and if I decode one stream, my CPU usage is very low (so good). If I deco

Re: [Libav-user] Problem with using libavcodec with AV_CODEC_ID_H264

2013-02-08 Thread Ashwin Chandra - SISA
All those presets I tried but didn't help. From: libav-user-boun...@ffmpeg.org [mailto:libav-user-boun...@ffmpeg.org] On Behalf Of Ashwin Chandra - SISA Sent: Friday, February 08, 2013 8:39 AM To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. Subject:

Re: [Libav-user] Problem with using libavcodec with AV_CODEC_ID_H264

2013-02-08 Thread Harald Jordan
Hm, i really dont believe your problem is the flushing part itself. I wonder if the pkt you are sending to the encoder is initialized - at least i cannot see how. There is a huge number of issues in avcodec_encode_video2 that occur when you send it a pkt that it did not expect. Here is how

Re: [Libav-user] Problem with using libavcodec with AV_CODEC_ID_H264

2013-02-08 Thread Ashwin Chandra - SISA
Tried your flushing method too but did not make a difference. The only way I can get this to work correctly is if I never flush frames until I know I'm at the end of the video stream. The problem is in my case I don't know when the video stream ends or changes into a different one (different wi

Re: [Libav-user] FFMPEG decoding H264 and Multithreading

2013-02-08 Thread Carl Eugen Hoyos
Jérôme SALAYET writes: > if I decode one stream, my CPU usage is very low > (so good). If I decompress two streams, it's ok too. > But if I had a third decompression, my CPU increase > from 2-5% to 25-30%.So, I try to activate > Mutlithreading in FFMPEG You should use multi-threading if you