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

2013-10-09 Thread James Board
Well, yes, you can call C from a C++ app. You need to mark the headers as C when you include them, but that's about it. Well, thanks for the help, but actually this isn't true.  I tried this with the demuxing.c example and that didn't work. It sounds like you're trying to solve a problem

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

2013-10-09 Thread James Board
That's an example program written in C. There's nothing in the actual codebase (as opposed to the examples) that doesn't work in C++. Yes, I know it's a program written in C.  As I stated before, I only used that example because everyone here already has a copy of it.  The alternative would be

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

2013-10-09 Thread James Board
demuxing.c is a C program, if you want to compile it with C++ (why?) you will have to convert it to C++, just as with any other C program. Yes, I know it's a program written in C.  As I stated before, I only used that example because everyone here already has a copy of it.  The alternative

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

2013-10-09 Thread Paul B Mahol
On 10/9/13, James Board jpboa...@yahoo.com wrote: Well, yes, you can call C from a C++ app. You need to mark the headers as C when you include them, but that's about it. Well, thanks for the help, but actually this isn't true. I tried this with the demuxing.c example and that didn't work.

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

2013-10-09 Thread Carl Eugen Hoyos
James Board jpboard2@... writes: (Nothing about this is FFmpeg specific.) This is the libav mailing list, not the fmpeg mailing list This is a mailing list about FFmpeg (that is why it is hosted on the FFmpeg server). Questions about how to convert a C program (that allows implicit type

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

2013-10-09 Thread Mihai Chindea
this is actually a FFmpeg e-mail list .. for multithreaded implementations you should have a look at av_lockmgr_register() Mihai, demuxing.c is a C program, if you want to compile it with C++ (why?) you will have to convert it to C++, just as with any other C program. Yes, I know it's a

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

2013-10-09 Thread Vitsas Nikolaos
On Wed, 9 Oct 2013 07:29:52 -0700 (PDT) James Board jpboa...@yahoo.com wrote: This is a mailing list about FFmpeg (that is why it is hosted on the FFmpeg server). Questions about how to convert a C program (that allows implicit type conversions which is why FFmpeg - and demuxing.c - does

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

2013-10-09 Thread Carl Eugen Hoyos
Michael Chisholm 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 same limitations apply than

[Libav-user] Extract frames in raw RGB formats

2013-10-09 Thread Amir Hossein Rouhi
Hi I am wondering if anyone can help me how can i use ffmpeg to extract frames in raw RGB image forma. The following code does not work: ffmpeg -i foo.mp4 -r 1 -s 320x240 -f image2 foo-%03d.rgb ___ Libav-user mailing list Libav-user@ffmpeg.org