Page 1 of 1

VLC 0.8.2-svn cannot open encoder h264

Posted: 11 Apr 2005 06:18
by leicestershire2000
Hi all,

I am using VLC media player 0.8.2-svn from subversion and built em on my Linux redhat 9 machine. I get some errors below, when I try to transcode a mpeg file using h264 video codec.
VLC media player 0.8.2-svn Janus
[00000447] main playlist: adding playlist item `VideoSample.mpeg' (VideoSample.mpeg )
[h264 @ 0x403f2018]width % 16 != 0 or height % 16 != 0 (160x120)
[00000466] ffmpeg encoder error: cannot open encoder
[00000453] stream_out_transcode private error: cannot find encoder
[00000453] stream_out_transcode private error: cannot create video chain
[00000464] main packetizer error: cannot create packetizer output
[00000447] main playlist: nothing to play


I've already enabled the x264 module, and specified the x264 tree path when I built my vlc 0.8.2-svn, as below:

./configure --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-ffmpeg --enable-faad --enable-vorbis --enable-ogg --enable-caca --enable-skins --enable-skins2 --disable-kde --disable-qt --enable-wxwindows --enable-ncurses --enable-release --enable-x264 --with-x264-tree=/home/eric/x264 --disable-smb

also, I've already enabled the x264 module when I built the latest ffmpeg I get from CVS.

Please give me an advise to solve this issue.

Regards,

Eric

Posted: 11 Apr 2005 13:33
by dionoea
did you build x264 ?
you may need to build ffmpeg too (although it isn't used for h264 encoding, it might be needed somwhere along the way)

Posted: 11 Apr 2005 13:38
by leicestershire2000
Hi Dionoea,

Yeah, I built my x264 module, and I just noticed this issue on ffmpeg, so I rebuilt my ffmpeg with x264 enabled, then rebuilt my vlc using above option.

I get another error messages though, like below:

VLC media player 0.8.2-svn Janus
[00000447] main playlist: adding playlist item `VideoSample.mpeg' (VideoSample.mpeg )
[h264 @ 0x403f2018]width % 16 != 0 or height % 16 != 0 (160x120)
[00000466] ffmpeg encoder error: cannot open encoder
[00000453] stream_out_transcode private error: cannot find encoder
[00000453] stream_out_transcode private error: cannot create video chain
[00000464] main packetizer error: cannot create packetizer output
[00000447] main playlist: nothing to play

P.S.: I edited my prev posting, so the error message here looks the same as what I posted above.

I am curious what this error message means : [h264 @ 0x403f2018]width % 16 != 0 or height % 16 != 0 (160x120) . Probably that is the reason ffmpeg can not open the encoder.

Forget to mention, I am using GUI to transcode a mpeg file using h264 video codec. File->Open File->Output Stream , check video codec, select h264. Should I use command line only to do transcoding ?

Can you please give me another possible solution ?

Regards,

Eric
did you build x264 ?
you may need to build ffmpeg too (although it isn't used for h264 encoding, it might be needed somwhere along the way)

Posted: 11 Apr 2005 23:17
by dionoea
Basically, videos encoded with x264 need to have widths and heights that are multiples of 16 (sometimes 8 works ... but i don't remember when)

( VLC doesn't need x264 to be compiled in ffmpeg (but it seems usefull since it gives you some more debug messages here) )

Posted: 14 Apr 2005 06:52
by leicestershire2000
Hmm ...
In this case, can anyone give me a file that can be encoded with x264 ?
I tried different kind of files but no one can be encoded using VLC 264 video codec option.

Thanks,

Eric
Basically, videos encoded with x264 need to have widths and heights that are multiples of 16 (sometimes 8 works ... but i don't remember when)

( VLC doesn't need x264 to be compiled in ffmpeg (but it seems usefull since it gives you some more debug messages here) )

Posted: 14 Apr 2005 16:23
by dionoea
you just need to resize the file so x264 can use it. (that can be done in #transcode)