• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » OMAP™ Applications Processors » OMAP 4 Forum » The h264 file encode by omx_h264enc do not have sps/pps
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

The h264 file encode by omx_h264enc do not have sps/pps

The h264 file encode by omx_h264enc do not have sps/pps

This question is answered
Aaron Pope
Posted by Aaron Pope
on Aug 06 2012 05:26 AM
Intellectual465 points

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

omx_h264enc sps pps 264
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Chintan Patel
    Posted by Chintan Patel
    on Aug 06 2012 06:48 AM
    Intellectual1410 points

    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.
    ------------------------------------------------------------------------------------------------------------------

    gstreamer OpenMAX
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aaron Pope
    Posted by Aaron Pope
    on Aug 06 2012 08:02 AM
    Intellectual465 points

    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

    Aaron

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Aug 06 2012 11:34 AM
    Verified Answer
    Verified by Aaron Pope
    Genius9115 points

    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.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aaron Pope
    Posted by Aaron Pope
    on Aug 11 2012 01:34 AM
    Intellectual465 points

    Manuel:

          Thank you very much!  the sps+pps are in the cpas.and now i get the sps/pps。

    Aaron

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Aug 13 2012 10:53 AM
    Genius9115 points

    That sounds great.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use