This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

H264 encoder: same program,same input yuv file, gives different stream file

I'm running H264 encoder v1.10 which is carried in DVSDK 1.3 with the example video_encode_io in DMAI on DM6446 EVM.

The input is a UYVY file, which all pixels are black( pixel value of uyvy is 0x80108010).

The command is:

#. /video_encode_io_dm6446.x470MV -b 400000 -c h264enc -e encodedecode -i 176x144.yuv -n 1000 -o s0.264 -r 176x144 -m

(1) If I run the command again, it may give a different output file(not always, only sometimes):

#. /video_encode_io_dm6446.x470MV -b 400000 -c h264enc -e encodedecode -i 176x144.yuv -n 1000 -o s1.264 -r 176x144 -m

#ls -l s0.264 s1.264

-rw-r--r--  1 root root 19865 Jan 14  2010 s0.264
-rw-r--r--  1 root root 19696 Jan 14  2010 s1.264

#cmp -b s0.264 s1.264

s0.264 s1.264 differ: byte 3017, line 11 is  30 ^X 107 G

(2) If 2 instances of video_encode_io is running at the same time(LAD is used to allow 2 processes calling  CodecEngine at the same time), the output file is ALWAYS different.

#ls -l s0.264 s1.264

-rw-r--r--  1 root root 19768 Jan 14  2010 s0.264
-rw-r--r--  1 root root 19696 Jan 14  2010 s1.264

#cmp -b s0.264 s1.264

s0.264 s1.264 differ: byte 644, line 3 is 100 @ 170 x

Maybe a problem of H264 encoder?