I have a question regarding the DM8168 MPEG_2 Decoder:
I am currently working on decoding the MPEG-2 bitstream using the OMX-based MPEG-2 decoder while I found the interlaced video was not correctly decoded. I use the provided tool to cut the bitstream into frame unit. However, according to the source code, the segment is PICTURE but NOT FRAME in case of interlaced video. So what I am concerned is: does the current SDK cannot handle the interlace video(the MPEG-2 decoder shall do it in terms of the spec) or it can but I need to modifiy the bitstream-cutting tool to feed the decoder a whole frame?
Thanks in advance for your nice help!
Sorry for the delay, looks like this post got missed, are you still chasing this issue ?
I also encountered interlaced issue of MPEG2.
All Mpeg2 bitstream I am using is interlaced ones. I write a tool to cut the bitstream in frame basis.
It can correctly feed the decoder a whole frame and decoder does correctly output the frame.
However the output YUV of decoder is field separate which the top and bottom field are the same.
I thought it is not a big deal as I will encode this YUV by h262 encoder and h264 encode should handle this field separate YUV buffer.
But, I tried so many h264 parameter settings and still can not get it.
I am using EZSDK504, can you help me out of here? what parameters should I use in 264 encoder or mpeg2 decoder?
Yeah...We are still struggling against this interlace issue....Do you have any ideas about it?
I have fwded this to EZSDK experts, they will reply back soon.
which cutting tool are you using for giving frames to MPEG2 decoder. Parser available in EZSDK is for example purpose and can not parse all the streams. Also decoder gives both fields in same buffer ( top and bottom field which can look same), It needs to be de-interlaced for display.
The parser is written by us and can make sure it feeds one frame per time correctly.
The decoder's ouptut, just as you said, is field separate. We don't display it but need re-encode it into h264 stream.
The question is h264 can encoder encode this buffer just as normal NV12 picture format, so encoded h264 stream will show two same fields when decoded.
So, how can we feed this field separate buffer to h264 encoder?
You would need to set inputContentType in static parameters. For details on static parameter refer to codec user guide.
Also Have a look at following link for setting up static parameters in OMX.
" How to modify static parameters of codec ? "
We tried inputContentType, but didn't work.
We will try again.
It works now, thanks a lot.
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.