Question about PGM and color conversions

Peter Lambert <[email protected]>
Newsgroups gmane.comp.video.xvid.user
Message-ID <1053523167.3171.47.camel@schoenberg>
Dear all,

I am using the programs xvid_encraw and xvid_decraw (from the package
xvidcore-0.9.1.tar.gz) to code some video sequences. I have two
questions regarding this.


First, after decoding I get an PGM file for every frame that I encoded.
I would like to convert those files to the YUV 4:2:0 format. Is there a
way to do so? I used the following commands:

./xvid_encraw -w 176 -h 144 -b 1000 -f 30 -i foreman_qcif.yuv -t 0 -n
300 -q 5 -m 1 -mt 1 -o output.mp4u -mv 0

./xvid_decraw -w 176 -h 144 -i output.mp4u -t 1 -d 1 -m 0


A second question is about colors. I encoded a YUV sequence using the
command below (other -mt option):

./xvid_encraw -w 176 -h 144 -b 1000 -f 30 -i foreman_qcif.yuv -t 0 -n
300 -q 5 -m 1 -mt 0 -o output.m4v -mv 0

With the encoded stream I created an MP4 file, using the tools from the
MPEG4IP project (version 0.9.6):

mp4creator -create=output.m4v -optimize -rate=30 test.mp4

However, playing this file (using mp4player) gave strange colors. All
the shapes were OK (Luma), but red kind of turned into blue and other
strange effects...


Any suggestions about these two topics?

Thanks in advance!

Kind regards,
Peter Lambert.

-- 
Multimedia Lab
Ghent University, Belgium
http://multimedialab.elis.ugent.be
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.