Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ggrosselohmann
Beginner
98 Views

BMP TO YUV

Hi,

we want to convertBMP Files to YUV Data.

This YUV Data we want to use as input for the umc video encoder from intel

to create a mpeg video.

What is the best way to do this?

Should we use the IJL encoder to create the YUV Data?

The IJL only creates YUV422 Data or? Can the encoder use this data to create a mpeg file?

Or do we need YUV420 Data?

We have already created a function for the conversion with IJL but the encoder do not like this data.
The function you can find attached.

It does not create a mpeg File. We always get the error message "Can't read next 0 source frame".

We have set thevideo width and heigth to the bitmap size and frames per second to 1.

Is the video width not the same as the picture width?

It would be great if anyone could help us

best regards,

Gerd Groelohmann

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
98 Views

Hello Gerd,

You do not need to use JPEG compressor or decompressor to convert RGB data to YUV. All you need to call one of IPP color conversion routines, please take a look on IPP manual for the details (or see through IPP samples)

Regards,
Vladimir

ggrosselohmann
Beginner
98 Views

Hello Vladimir,

thanks for the advice.

We now use the function ippiRGBToYUV420_8u_P3R.

Can we directly encode this data with the umc_video_enc_con Project?

How can we post the DST Buffer to th p_dataIn (Type VideoData) Pointer ?

Or How can we get the sizes of the DST Buffers?

best regards,

Gerd

ggrosselohmann
Beginner
98 Views

Hi Vladimir,

I have done it by setting the planar data pointers and it works fine.

Thanks for your help

best regards,
Gerd
Reply