• 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 » Embedded Software » Multimedia Software Codecs » Multimedia Software Codecs forum » DM3730 DSP mpeg2 decoder mpeg2_dec_prod.l64P issue
Share
Multimedia Software Codecs
  • Forum
Options
  • Subscribe via RSS

Forums

DM3730 DSP mpeg2 decoder mpeg2_dec_prod.l64P issue

This question is not answered
Kaijun Tang
Posted by Kaijun Tang
on Dec 11 2011 05:09 AM
Intellectual710 points

I dowloaded ti-dvsdk_dm3730-evm_4_02_00_06 and tested mpeg2 decoder on beagleboard xM rev. C with 640x360 mpeg1 stream. I found the following issues.

1.  Vdec2_create(Engine_Handle hEngine, Char *codecName, VIDDEC2_Params *params, VIDDEC2_DynamicParams *dynParams) failed if maxWidth and maxHeight are set to 640 and 360 respetively in *params. It is O.K. if set to 1280x720 or 720X480. In terms of its user guide, it should work from 128x96 to 1280x720

2. It doesn't work with 640x360 mpeg1. Following the first issue, maxWidth and maxHeight are set to 1280X720, Vdec2_create works. But decoder output is green strip at the bottom of screen. I tested it with ffmpeg, it works. Then I tested davinci 720x480 mpeg2 test stream, it works. Its user data document says it supports mpeg1 as well.

Thanks.

C64x 720p decode MPEG2 DM3730
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Roopesh Rajashekharaiah Nataraja
    Posted by Roopesh Rajashekharaiah Nataraja
    on Dec 11 2011 23:29 PM
    Intellectual640 points

    Hi Kaijun,

    Can you please share the version number of codec used?

    Thanks,

    Roopesh

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Dec 12 2011 14:49 PM
    Intellectual710 points

    Hi Roopesh,

    The Release notes say the version number is 01.00.00.01.

    For the first issue, it seems the frame width/hight must be a multiple of 16.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Dec 13 2011 04:31 AM
    Intellectual710 points

    I also tested mpeg4 and h264 decoders with big bunk bunny mpeg4 and h264 720p streams. Sometimes video could be paused a while on a complicated motion background, e.g. in case of zooming. It seems DSP has no enough speed to handle decoding. mpeg4 and h264 codec versions are 5.0.3.0 and 1.0.3.0 respectively.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jay Shingala
    Posted by Jay Shingala
    on Dec 15 2011 07:54 AM
    Prodigy210 points

    Hi Kaijung Tang,

     Can you please share the 640x360 stream which shows the green strip ?
     
     I guess the displayBufs.frameHeight in outArgs is not populated correctly by decoder.
     It may have rounded this to next multiple of 16 (368) which probably explains the green strip.
     It is is also possible that it is mpeg1 specific issue in mpeg2 decoder.
     
     However I can confirm the exact issue once you upload the stream.

    Thanks and Regards,
    Jay

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Dec 15 2011 14:16 PM
    Intellectual710 points

    Click here to play this video

    Please see attached file.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Dec 21 2011 04:14 AM
    Intellectual710 points

    Hi Jay,

    Have you resolved the issue? If yes, please give me a new release for test.

    Kai

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jay Shingala
    Posted by Jay Shingala
    on Jan 18 2012 23:34 PM
    Prodigy210 points

    Hi Kai,

    Apologies for late response to this issue.

    We have made the following observations with the clip you uploaded:
     1. 640x360 stream that you uploaded is in mpg file format and it embeds raw mpeg2 stream and not mpeg1 stream as reported earlier.
     2. After extracting the raw mpeg2 stream and testing with decoder, it was observed that  display height was indicated as 368 which explains small green strip at bottom as predicted earlier
     
    We have made a fix in the decoder to give out actual width and height for non multiple of 16 resolutions.
    We have also fixed the decoder instance creation failure for resolutions non-multiple of 16.

    Can you confirm if you only saw small green strip (about 8 lines) at bottom of the screen.
    I am asking this question because when the test team here tested with mpg container file on gstreamer, huge black and green strip is seen as an output which could be an issue in mpg parser.
    But when I play the raw stream (extracted offline from the mpg file), I am seeing proper video.

    Regards,
    Jay

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Jan 19 2012 04:46 AM
    Intellectual710 points

    Hi Jay,

    For this test stream, I saw black screen plus a green strip at the bottom. But for other mpeg1/2 streams with non-multiple of 16 height, I saw a green strip at the bottom.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jay Shingala
    Posted by Jay Shingala
    on Jan 19 2012 05:31 AM
    Prodigy210 points

    4744.2021.test.zip

    We have fixed the small green strip issue at the bottom (small because it is only 8 lines when image height is 360).
    However the black + green strip for the specific mpg stream you uploaded looks like a bug in mpg parser and not the mpeg2 decoder.
    I say this because the raw mpeg2 stream (extracted from mpg) plays fine.
    I have attaced the raw m2v stream in case you want to test it out.

    Regards,
    Jay

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Jan 19 2012 06:24 AM
    Intellectual710 points

    Hi Jay,

    This test stream is still black+green strip.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Feb 23 2012 09:16 AM
    Intellectual710 points

    Hi Jay,

    have you fixed the issue?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jay Shingala
    Posted by Jay Shingala
    on Feb 23 2012 22:26 PM
    Prodigy210 points

    Hi Kaijun Tang,
     
     We have fixed this issue in the January and released new codec version 01.00.00.04.
     Can you please update the codec to this new version.
     
     As mentioned in my earlier posts,  we verified the fix by testing for raw stream (.m2v)
     The container (.mpg) stream (which goes via parser) still gives the green patch which I think is a mpg parser issue.
     
    Regards,
    Jay

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Feb 24 2012 04:57 AM
    Intellectual710 points

    Hi Jay,

    Where can I get the new version?

    Kind Regards

    Kaijun Tang

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jay Shingala
    Posted by Jay Shingala
    on Feb 24 2012 05:11 AM
    Prodigy210 points

    Can you please get in touch with Yashwant Dutt to get acces to this release.

    Thanks and Regards,

    Jay

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kaijun Tang
    Posted by Kaijun Tang
    on Feb 28 2012 07:19 AM
    Intellectual710 points

    Hi Jay,

    I tried to contact him, but no reply. Do you have his contact info?

    Thanks.

    Kaijun

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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