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.
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.
Hi,
We are no longer maintaining tienc_encode moving forward as we have shifted to using GStreamer pipelines. Could you please share which SDK and version you are using?
Thank you,
Fabiana
HI,
SDK verison:
RTOS SDK version: ti-processor-sdk-rtos-j721e-evm-08_01_00_11
Linux SDK version: ti-processor-sdk-linux-j7-evm-08_01_00_07
Hi,
Please see the discussion in the following thread: (+) TDA4VM: Gstreamer Decode YUV Data Problem - Processors forum - Processors - TI E2E support forums
Please let me know if you have further questions.
Thank you,
Fabiana
Hi,
I am sorry that the solution to the above problem did not solve my problem.
1. In the test routine, the image data has been encoded by H264, I do not need to specify the resolution size, player will parse out the resolution and apply, I forcibly specify the resolution will cause the player to be unavailable.
2. The original video I used is in YUV format, and there is no abnormal color problem when playing this video. After H264 coding, there is abnormal color phenomenon. In the above problem, the original video in YUV format has a color problem, which is not consistent with the problem I have encountered.
Thanks,
Jin
Hi Jin,
Have you switched to using a GStreamer pipeline for color conversion? Could you share the new command you are using to test?
Thank you,
Fabiana
Hi, Fabiana
No, I have no experience with the GStreamer pipeline.
I think the reason for the abnormal image is caused by H264 encoding and decoding,
can GStreamer solve this problem? What can GStreamer do to help?
I would appreciate your help in this regard.
Thank you,
Jin
Hi Jin,
Yes, the encoding issue you are currently experiencing is caused by tienc_encode. I suggest taking a look at this E2E thread I previously linked to see how GStreamer can be used to achieve the desired result: TDA4VM: HOW TO USE encode (h264) on tda4 without tiovx - Processors forum - Processors - TI E2E support forums
Try this and let me know if this solves the issue.
Thank you,
Fabiana