[MPlayer-users] x264 encoding/matroska/etc.

Vítězslav Kotrla vitko at post.cz
Mon Sep 11 22:24:17 CEST 2006


Peter Gavin píše v St 23. 08. 2006 v 20:28 +0200:

> So I've determined that its pretty much impossible (atm) to use
> mencoder to create an x264 file which can be muxed into a matroska
> container, and still maintain A/V sync.  I'm trying to backup my DVDs,
> and my most recent attempt involved encoding using -of rawvideo, but
> the A/V sync was way off.  If I use -of avi, the sync is perfect, but
> of course, mkvmerge won't accept the file.

Peter, right now I tried

$ mkvmerge --engage allow_avc_in_vfw_mode -o test.mkv title-x264-hq.avi
title.ac3

and it works fine, A/V sync is spot on. The same for Vorbis Ogg audio,
no A/V sync problems whatsoever.

AVI file was obtained using

#!/bin/sh
SOURCE=stream.dump
NAME=title-x264-hq
BITRATE=1400
CROP="704:432:8:76"
SCALE="704:304"
# x264 very high quality
# subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b
for i in 1 2 ; do
   mencoder $SOURCE -nosound -ovc x264 \
   -x264encopts
subq=6:frameref=5:4x4mv:me=3:8x8dct:bframes=3:b_pyramid:weight_b:bitrate=${BITRATE}:pass=${i}:threads=2:psnr \
   -sws 9 -vf crop=${CROP},scale=${SCALE} \
   -o ${NAME}.avi -force-avi-aspect 232/100
done

$ mplayer --version
MPlayer dev-SVN-r19633-4.1.2 (C) 2000-2006 MPlayer Team

$ mkvmerge --version
mkvmerge v1.7.0 ('What Do You Take Me For') built on Apr 29 2006
14:55:19

Only my USD 0.02.

Vit






More information about the MPlayer-users mailing list