The input is 8-bit uyvy generated by setting each byte as
void SetToNoise(char* buf, int size)
{
for(int i = 0; i < size; ++i)
{
buf[i] = rand() & 0xff;
}
}
The uyvy format is then converted to 420 planar to feed your encoder. I attached the following 3 files:
CODEC_FMT(UYVY8_640x360p, H264_640x368p30) is the format used for generating the attached stream.
Dongning
(Please visit the site to view this file)
(Please visit the site to view this file)
(Please visit the site to view this file)