Hi All
I used the routine code of tienc encode in my test routine, and continuously input video stream data in NV12 format,
and send the data through UDP after H264 encoding by videox chip.
I use the ffmpeg tool to receive the data and display the image, which can successfully play the video.
The command is as follows:
ffplay - 10 - fflags max_delay nobuffer -f h264 udp: / / 192.168.1.58:9500
But moving objects in the video were found to appear in large purple patches.
Note: The left image is the H264 encoded image, and the right image is the original image.
What is the reason for this problem? How to solve it?
In addition, I did some additional testing and found that the official routine provided by TI also had problems with the display of the encoded video.
We get the test app here:
compile on board and test with following YUV file:
http://trace.eas.asu.edu/yuv/index.html
the test app works and we could get the H264 video.
However, the video color is not correct.
The command we use is:
./tienc_encode -i ./bus_cif.yuv -w 352 -h 288 -b 1000000 -o image.h264
mplayer -fps 30 image.h264
That's all. Thank you.