Re: [Libav-user] Using ffmpeg with SDL2 - Bad src image pointers / New decoding flow - questions

2017-02-05 Thread Blake Senftner
I’m in a somewhat similar situation as you, working on a video player, using a more C approach versus C++ classes for all the data and logic. I write a hybrid, with classes, but minimally. I prefer C. And I’m using wxWidgets with OpenGL, so there is very little hiding/encapsulation of my data

Re: [Libav-user] Using ffmpeg with SDL2 - Bad src image pointers / New decoding flow - questions

2017-02-05 Thread Jan
On 05.02.2017 17:34, Gonzalo Garramuño wrote: El 05/02/17 a las 12:07, Jan escribió: Hello, Im currently working on a video player software, which should be based on ffmpeg tools and at the moment of writing, using SDL2 for display of the video content. The documentation for ffmpeg is a

Re: [Libav-user] Using ffmpeg with SDL2 - Bad src image pointers / New decoding flow - questions

2017-02-05 Thread Gonzalo Garramuño
El 05/02/17 a las 12:07, Jan escribió: The error I get: [swscaler @ 0x555e2af7ff60] bad src image pointers For the swscale call, I have C++ code, but you would do something like: AVFrame output; // Final output frame // The pointer to the allocated image boost::uint8_t* ptr =

Re: [Libav-user] Using ffmpeg with SDL2 - Bad src image pointers / New decoding flow - questions

2017-02-05 Thread Gonzalo Garramuño
El 05/02/17 a las 12:07, Jan escribió: Hello, Im currently working on a video player software, which should be based on ffmpeg tools and at the moment of writing, using SDL2 for display of the video content. The documentation for ffmpeg is a bit difficult to get through, as most example

[Libav-user] Using ffmpeg with SDL2 - Bad src image pointers / New decoding flow - questions

2017-02-05 Thread Jan
Hello, Im currently working on a video player software, which should be based on ffmpeg tools and at the moment of writing, using SDL2 for display of the video content. The documentation for ffmpeg is a bit difficult to get through, as most example code seems to be outdated or using

[Libav-user] How to set avcodec_open2 to set ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1?

2017-02-05 Thread sea
Hi , I'm trying to push a stream to a server with ffmpeg. I debugged the ffmpeg code, and found that when avcode_open2 returned, the ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1. That to say, when video stream was handled, certain offset of avctx->priv_data pointer (just