TI E2E Community
Multimedia Software Codecs
Multimedia Software Codecs forum
DM3730 DSP mpeg2 decoder mpeg2_dec_prod.l64P issue
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.
Can you please share the version number of codec used?
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.
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 126.96.36.199 and 188.8.131.52 respectively.
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
Please see attached file.
Have you resolved the issue? If yes, please give me a new release for test.
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.
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.
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.
This test stream is still black+green strip.
have you fixed the issue?
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
Where can I get the new version?
Can you please get in touch with Yashwant Dutt to get acces to this release.
Thanks and Regards,
I tried to contact him, but no reply. Do you have his contact info?
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.