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 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

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

2013-10-10 Thread Bruce Wheaton
On Oct 9, 2013, at 7:29 AM, James Board jpboa...@yahoo.com 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

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 jpboa...@yahoo.com mailto:jpboa...@yahoo.com wrote: Really? The title of the mailing list is Libav-user@ffmpeg.org mailto:Libav-user@ffmpeg.org. I'm asking whether libav can be used in C++ programs, if

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] 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

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

2013-10-08 Thread James Board
On Monday, October 7, 2013 5:39 PM, Michael Chisholm chish...@mitre.org wrote: On 10/7/2013 5:31 PM, James Board wrote: I'm trying to incorporate the libav subroutines into a C++ program.  Has this been done?  When I try to compile, I get lots of errors like UINT64_c undefined and many

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

2013-10-08 Thread James Board
How difficult would it be to compile the examples in the doc/examples directory with a C++ compiler? Those are C programs, so just use a C compiler for them.  Thatapos;s all I meant. Okay, I understand.  Yes they are just C programs, so I can compile with the C compiler.  But my C++ programs

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

2013-10-08 Thread Michael Chisholm
On 10/8/2013 2:12 PM, James Board wrote: How difficult would it be to compile the examples in the doc/examples directory with a C++ compiler? Those are C programs, so just use a C compiler for them. Thatapos;s all I meant. Okay, I understand. Yes they are just C programs, so I can compile

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

2013-10-08 Thread Carl Eugen Hoyos
Michael Chisholm chisholm@... writes: demuxing.c: In function 'int main(int, char**)': demuxing.c:261:66: error: invalid conversion from 'void*' to 'uint8_t** {aka unsigned char**}' [-fpermissive] audio_dst_data = av_mallocz(sizeof(uint8_t *) * nb_planes);

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

2013-10-08 Thread Michael Chisholm
On 10/8/2013 6:19 PM, Carl Eugen Hoyos wrote: Michael Chisholm chisholm@... writes: demuxing.c: In function 'int main(int, char**)': demuxing.c:261:66: error: invalid conversion from 'void*' to 'uint8_t** {aka unsigned char**}' [-fpermissive] audio_dst_data =

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

2013-10-08 Thread Bruce Wheaton
On Oct 8, 2013, at 11:12 AM, James Board jpboa...@yahoo.com wrote: I tried exactly that with the demuxing.c example. When I try to compile it with the C++ compiler, I get errors. When I compile with the C compiler, no errors. What do I need to do to get demuxing.c to compile with the C++

[Libav-user] Compile with g++

2013-10-07 Thread James Board
I'm trying to incorporate the libav subroutines into a C++ program.  Has this been done?  When I try to compile, I get lots of errors like UINT64_c undefined and many others.  How difficult would it be to compile the examples in the doc/examples directory with a C++ compiler?

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

2013-10-07 Thread Michael Chisholm
On 10/7/2013 5:31 PM, James Board wrote: I'm trying to incorporate the libav subroutines into a C++ program. Has this been done? When I try to compile, I get lots of errors like UINT64_c undefined and many others. How difficult would it be to compile the examples in the doc/examples

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

2013-10-07 Thread James Board
But if you're compiling pure C code, why not use a C compiler? I'm not compiling pure C code.  I'm compiling C++ code and I want to call the libav surboutines from C++ code.  How do I do this?___ Libav-user mailing list Libav-user@ffmpeg.org