Hi all:
I use the omap 4 and ics 4.0.3 . the command is gst-launch -v filesrc location=/mnt/ext_sdcard/nv12.yuv ! videoparse width=1280 height=720 framerate=22/1 !omx_h264enc profile=8 bitrate=1024000 ! avimux ! filesink location=/mnt/sdcard/test10.avi sync=false --gst-debug=omx:5. I find that the 264 file saved in output_loop function(gstomx_base_filter.c) does not have the sps and pps at the beginning of this file and lose some pictures in front of the result avi file when display .so what parameters in openmax can influence the sps and pps? Thank you!
Best Regards
Aaron
Arone,
OMAP4 codecs needs strided buffers as input and output. Can you try using stridetransform and check? The required stride is 4096.
Regards,
Chintan
------------------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.------------------------------------------------------------------------------------------------------------------
Chintan,
I had strided the buffer to 4096 and the picture display right . If did not stride to 4096,the picture will chaos. I have the android 2.3 and ics 4.0.3 .the omx_h264enc in android 2.3 will produce a file which the size is 4.2M and the size of file which produced by omx_h264 in ics 4.0.3 is 3.9~~4.0M. I find the file produced by ics lost sps +pps at the first frame. it lost some data too. What is the stridetransform?
Regards
It is supposed Application in this case GST must copy SPS+PPS into the file before writing first Iframe, It should be stored in "codec_data" caps.
Manuel:
Thank you very much! the sps+pps are in the cpas.and now i get the sps/pps。
That sounds great.