AnsweredAssumed Answered

MX51 mfw_vpuencoder works with yuv file, but not with videotestsrc

Question asked by Robbie Jiang on Nov 24, 2012
Latest reply on Nov 30, 2012 by Robbie Jiang
Branched to a new discussion



I have been testing mfw_vpuencoder on MX51/Linux board.


Firstly, mfw_vpuencoder does not produce correct result with videotestsrc, but without any error message.


gst-launch-0.10 -v videotestsrc is-live=1 ! 'video/x-raw-yuv,format=(fourcc)I420,width=176,height=144,framerate=25/1'  ! mfw_vpuencoder codec-type=std_avc width=176 height=144 framerate=25 !  filesink location=test_1.264


The generated output file (test_1.264) is quite different from the input test video.


However, if I firstly generate a test.yuv using videotestsrc, and encode the test.yuv with mfw_vpuencoder, it works well.


gst-launch-0.10 -v videotestsrc is-live=1 ! 'video/x-raw-yuv,format=(fourcc)I420,width=176,height=144,framerate=25/1'  ! filesink location=test.yuv

gst-launch -v filesrc location=./test.yuv ! mfw_vpuencoder codec_type=std_avc width=176 height=144 gopsize=10 framerate=25 ! filesink location=test.264


This time, the output file (test.264) is almost the same as the input file, test.yuv, which means that mfw_vpuencoder works well as desired.


Anything wrong with my videotestsrc + mfw_vpuencoder encoding pipeline?


FYI, my kernel is 2.6.31, imx-lib-10.04, gst-fsl-plugin-1.7.3.

And the imx-test/mxc_vpu_test.out works correctly with config_enc file.