[mythtv-users] mencoder, x264, and myth

jedi jedi at mishnet.org
Sat Jan 9 17:02:33 UTC 2010

On Sat, Jan 09, 2010 at 08:48:57AM -0800, Yan Seiner wrote:
> Is anyone using mencoder to create h.264 videos for myth?
> If so, would you please share your mencoder -ovc x264 -x264encopts?
> I've been struggling with this all morning; I can't get mencoder to
> produce anything useful using x264.  It either tells me it can't
> initialize, or the resulting video is unplayable.
> -lavc works fine, so I expect it's my newbish efforts at h.264 that
> are the problem.

...what distro are you running? I have been having trouble with the latter
Ubuntus and x264 in mencoder. OTOH, I have been using some x264 for my vids
for a long time...

   I do 2 passes I I just "copy" the audio. I don't bother converting it.

   Here's my x264 options. The bitrate I use is 1500.

X264_PASS1="-ovc x264 -x264encopts subq=4:bframes=4:b_pyramid:weight_b:pass=1:psnr:bitrate=$BITRATE:turbo=1"
X264_PASS2="-ovc x264 -x264encopts subq=5:partitions=4x4:8x8dct:frameref=3:me=hex:bframes=4:b_pyramid:pass=2:psnr:bitrate=$BITRATE" 

   I picked these up off the web from a page I found when I was first starting
to do this myself after got my first version of MythTV up and running.

More information about the mythtv-users mailing list