Re: [Libav-user] Encoding FLOAT PCM to OGG using libav

2014-07-31 Thread Dmitry Adjiev
Try libavfilter, please see transcoding.c again for sream conversions, btw keep in mind your code may broke during porting from C to C++ or or vice versa. Just FYI: https://ffmpeg.org/pipermail/libav-user/2014-August/author.html 2014-08-01 1:33 GMT+04:00 wm4 : > On Thu, 31 Jul 2014 09:24:38 +020

Re: [Libav-user] avcodec_encode_video2 C++problem

2014-07-31 Thread Dmitry Adjiev
I found it here: https://ffmpeg.org/pipermail/libav-user/2014-August/author.html Sorry for flooding 2014-08-01 6:13 GMT+04:00 Dmitry Adjiev : > How can I get link to this iscussion for snding to others? > > > 2014-08-01 5:11 GMT+04:00 Dmitry Adjiev : > > I solved the issue. I don't know why. but

Re: [Libav-user] avcodec_encode_video2 C++problem

2014-07-31 Thread Dmitry Adjiev
How can I get link to this iscussion for snding to others? 2014-08-01 5:11 GMT+04:00 Dmitry Adjiev : > I solved the issue. I don't know why. but in C++ buffer size outbuf_size = > 10; was too small, so increase of buffer size solves the problem. > Thanks for everyone who read it > > > 2014-0

[Libav-user] FFmpeg and OPW

2014-07-31 Thread Michael Niedermayer
Hi all OPW (Outreach Program for Women) is twice per year (compared to google summer of code which is just once a year) FFmpeg can participate in the next round but we need to fund at least 1 intern/student (6250 USD) for that. OPW is not run by a large corporation with deep pockets. Thus my mai

Re: [Libav-user] avcodec_encode_video2 C++problem

2014-07-31 Thread Dmitry Adjiev
I solved the issue. I don't know why. but in C++ buffer size outbuf_size = 10; was too small, so increase of buffer size solves the problem. Thanks for everyone who read it 2014-08-01 5:08 GMT+04:00 Dmitry Adjiev : > if (open_url(argv[1], &stream) == 0) { > > AVFrame* pic = av_frame

Re: [Libav-user] avcodec_encode_video2 C++problem

2014-07-31 Thread Dmitry Adjiev
if (open_url(argv[1], &stream) == 0) { AVFrame* pic = av_frame_alloc(); int i, size, x, y, outbuf_size; uint8_t *outbuf, *picture_buf; // alloc image and output buffer outbuf_size = 10; outbuf = malloc(outbuf_size); size = VIDEO_WIDTH *

[Libav-user] avcodec_encode_video2 C++problem

2014-07-31 Thread Dmitry Adjiev
Hello. I have a problem with avcodec_encode_video2. I send h263 video stream to network, this code works when I compile it with C, but when I try to use C++ classes it crashes. Can anyone help me? -- Regards, Dmitry ___ Libav-user mailing list Libav-user

Re: [Libav-user] Encoding FLOAT PCM to OGG using libav

2014-07-31 Thread wm4
On Thu, 31 Jul 2014 09:24:38 +0200 Charles-Henri DUMALIN wrote: > I am currently trying to convert a raw PCM Float buffer to an OGG encoded > file. I tried several library to do the encoding process and I finally > chose libavcodec. > > What I precisely want to do is get the float buffer ([-1;1]

Re: [Libav-user] transcode from and to memory buffer

2014-07-31 Thread Dmitry Adjiev
yes, I mean transcoding.c, also output example has audio example 2014-07-31 17:07 GMT+04:00 Dmitry Adjiev : > You can google for output example, there are example of using it uses > buffers encode_video, but it's deprecated function, but I'm sure libav has > some replacement for this > > > 2014-

Re: [Libav-user] transcode from and to memory buffer

2014-07-31 Thread Dmitry Adjiev
You can google for output example, there are example of using it uses buffers encode_video, but it's deprecated function, but I'm sure libav has some replacement for this 2014-07-31 17:03 GMT+04:00 Xiaofei Yang : > Thanks for your quick response. I could store the audio stream in a > buffer and

Re: [Libav-user] transcode from and to memory buffer

2014-07-31 Thread Xiaofei Yang
Thanks for your quick response. I could store the audio stream in a buffer and then decode the buffer and output to a new buffer, does that sound OK? BUT I don't know how to decode from a buffer :( you mean the transcoding.c example? 2014-07-31 20:57 GMT+08:00 Dmitry Adjiev : > FFmpeg has trans

Re: [Libav-user] transcode from and to memory buffer

2014-07-31 Thread Dmitry Adjiev
FFmpeg has transcoding example, but it doesn't work with network because it can't detect the output format, you can set it manually (edit the code). I tested it for udp, so currently I have udp video stream. Ofcourse I made my code, but after investigation ot transcode example, so the code is works

[Libav-user] transcode from and to memory buffer

2014-07-31 Thread Xiaofei Yang
Hi: I am doing audio stream transcoding things, the scenario is that I keep receiving audio data through HTTP protocol, storing it in memory buffer and meanwhile I have to transcode it to the required target format for further use. The original audio data may come in various formats. So the whole

[Libav-user] Encoding FLOAT PCM to OGG using libav

2014-07-31 Thread Charles-Henri DUMALIN
I am currently trying to convert a raw PCM Float buffer to an OGG encoded file. I tried several library to do the encoding process and I finally chose libavcodec. What I precisely want to do is get the float buffer ([-1;1]) provided by my audio library and turn it to a char buffer of encoded ogg d