From: Keith W. <ke...@MI...> - 2009-07-16 01:47:31
|
Hi Gus, If I had to make a wild guess, you're trying to play an MPEG-2 system stream (a transport stream or program stream). sample2.c only works on an MPEG-2 video elementary stream -- the raw video that is multiplexed into the system stream. Does the file play back properly with mplayer on a normal Linux x86 machine? You might try playing with mpeg2dec and the "-s0" option to see if it's a program stream that you need to extract the video from. Or can you post one of these files to the Web? We can take a look and tell you what's going on if you do that. Best, Keith On Wed, 15 Jul 2009, Gus Issa wrote: > Hello, > > I have ported libmpeg2 to a small project running on 200Mhz ARM9. I must > say it runs really fast, about 100 frames/sec for 320x240! > The only problem I am having is errors in the generated frames. The > pictures has too many little squares in it. They are randomly placed and > of different sizes. It looks like just if I was receiving a bad MPEG file > but I know my file is fine because I tried many files of different > settings and I always get same thing (MPEG1 and MPEG2) > > I am outputting a 16bit RGB to my display and using sample2.c file. > > Any hints on what am I doing wrong or what file is responsible for this > error would really help me. I tried standard and ARM motion_comp files > and standard and ARM idct files but I always get the same results so I am > assuming the error is not in motion or in idct?! I do not know anything > about video compression. > > Gus > > |