[Libav-user] get RGB values from ffmpeg frame
mc at enciris.com
Tue Nov 20 13:46:40 CET 2012
> Macros and datatypes like LT_SUCCESS, MAX_FR_SZ, metaD_t, LtHandle, ASF_IDX_SZ etc. seem new. Am a bit puzzled.
The code is taken from a proprietary stuff and I did not want to disclose everything but the main idea is there.
From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Navin
Sent: 20 November 2012 12:39
To: libav-user at ffmpeg.org
Subject: Re: [Libav-user] get RGB values from ffmpeg frame
Actually, Malik; the idea was not to use the ffmpeg.exe. I wanted the bitmap/RGB values to be stored in memory (a datastructure) in my program and then I'd pass the pointer of the datastructure to a client program which is running at the same time. The client program would then take the info from the datastructure and use it to display the video frame.
Thanks for the code you posted. Macros and datatypes like LT_SUCCESS, MAX_FR_SZ, metaD_t, LtHandle, ASF_IDX_SZ etc. seem new. Am a bit puzzled.
On 11/20/2012 5:00 PM, Malik Cissé wrote:
> Hi Navin,
> Also YUV4:2:0 in BMP does not seem feasible (sorry for my previous statement).
> One think you can do too is use ffmpeg in a system call in your code.
> This is very versatile (you need to replace 422 by 420 though) char
> ffmpegString;//should be plenty
> char fmt = "bmp"; //bmp, jpg, png, pgm etc...
> sprintf(ffmpegString, "ffmpeg.exe -s %dx%d -vcodec rawvideo -f rawvideo -pix_fmt uyvy422 -i raw_uyvy422.yuv -f image2 raw_uyvy422.%s",RawWidth, RawHeight, fmt);
> Malik Cisse
Libav-user mailing list
Libav-user at ffmpeg.org
More information about the Libav-user