PDA

View Full Version : vfw and playback of h261 file


hellfred
11th June 2004, 12:54
Hi
I have downloaded latest x264 source from cvs and compiled it in cygwin using
make -f Makefile.cygwin
Makefile.cygwin is int base directory.
Afterwards the vfw dlls was made.
cd vfw/buil/cygwin
make && make install
Then x264 shows up in VDubMod, but i were not able to encode, even when trying to encode a yuy2 avi file with dimension %16 and default parameters. Any hint what the source must look like?
I have obtained the file by opening an avs file withAviSource("input.avi").ConvertToYUY2(interlace=false)
and then just fast recompressed this unsing VDubMod. Then opened the resulting file and tryed to encode it (first fast recompress and then full compressin -> RGB colourpace :( )
I gave up on VDubMod and tryed the command line encoder build in the first step.
I have used ffmpeg_g.exe to create a yuv file.
./ffmpeg_g.exe -input.avi -coptop 2 -cropbottom 2 -f yuv4mpegpipe output.yuv
and then i have encoded the file
./x264 -c -o out.h261 output.yuv 640x352
I get a lot of lines with the word SKIP in them and i can not play the resulting file with cygwin port of mplayer (cvs, one week old).
The first frame is displayed, and then mplayer crashes.
Did i miss some importent parameters to x264? What players do you use to view your movies?

Hellfred

EDIT: It would have been better to start a new thread, but i have realized theis too late. Sorry. Maybe a moderator reading this lines can move the message to a new thread.

EDIT2: I have added the dimensions to the encoding command line that where missing. They are necessary for x264.exe for processing the file.

bond
11th June 2004, 13:05
Originally posted by hellfred
EDIT: It would have been better to start a new thread, but i have realized theis too late. Sorry. Maybe a moderator reading this lines can move the message to a new thread.you wish, we play ;)

hellfred
11th June 2004, 13:08
Originally posted by bond
you wish, we play ;)
Thanks.

hellfred
11th June 2004, 14:19
Now i am a bit confused, bond.
In my original post i wrote 'h261' because i read the output of x264.exe and thought that the output file should get the extension h261
Now i see that you have changed the subject to h.264 files, that is exactly what this is about. So i thought, maybe my trouble with playback comes form having given the wrong extension 'h261' istaead of 'h264'.
So i had once more a look at the output of x264.exe. Invoked without addintional parameters it prints this to the console:
$ ./x264.exe
x264: cpu capabilities: MMX MMXEXT SSE
x264 build:0x0008
Syntax: x264 [options] [-o out.h26l] in.yuv widthxheigh
...
it says "l"(letter l) not "4" or "1" (number one).
So what extension am i supposed to use? And how to mux the file together with audio stream into a container, to get a file that is useable?

Hellfed

bond
11th June 2004, 14:28
hm h.264 was once called h.26L, still the official name is h.264 or mpeg-4 avc now

i wonder that fenrir still used the .h26l extension for the raw bitstreams, as the reference encoder uses .264 as extension for raw bitstreams, which therefore i think can be said to be the "official" extension
anyways it should not be a problem to rename the extension from .h26l to .264

as i wrote in my mpeg-4 info sticky, you can play raw bitstreams with the moonlight or mainconcept dshow filtersets

hellfred
11th June 2004, 18:06
I have downloaded and registered the dshow filter from moonlight and was able to view the files. But the resulting output was missaranged. The chroma information of the hole image was drifting from the left to the right. Lunar information seemed no to move over the screen.
So when viewing the beginning of music video of The Darkness - I believe in a thing called Love", i could see the singer emerging/stepping out of the pool. But instead of being in the middle of the scene all the time, the singer, the pool and the hole roome was constantly drifting from the left to the right, in an endless loop, so the left edge of the scene was directly followed by the right edge of the sceen.

Looks funny, but is not what was to be expected. MPlayer on the other hand manages to display the first frame perfectly, chroma and lunar matching each other, but it crashes after that frame.

Hellfred

EDIT: Found this patch (http://thread.gmane.org/gmane.comp.video.mplayer.user/29234) for maplayer, but did not apply it myself up to now.