[MEncoder-users] M4V to WMV out of sync

Wietze wietzuh at gmail.com
Sat May 5 13:40:23 CEST 2012


Hi Everyone,
When transcode a M4V video file to a WMV, the resulting WMV is out-of-sync.
The audio gradually going out of sync with the video. I'm only having this
problem with M4V files.

I'm using the following mencoder command:
	"input.mp4" -of lavf -lavfopts format=asf -vf harddup -ovc lavc -oac
lavc -lavcopts
acodec=wmav2:vcodec=wmv2:autoaspect:keyint=25:vqscale=2:vqmin=2:aglobal=1:vg
lobal=1  -mc 0 -ofps 25 -o "output.wmv"

While transcoding, I get the following warning several times:
	[wmv2 @ 012521a0]warning, clipping 1 dct coefficients to -255..255

The properties of input.mp4:
	> General
	Format                                   : MPEG-4
	Codec ID                                 : M4V 
	File size                                : 415 MiB
	Duration                                 : 53mn 15s
	Overall bit rate                         : 1 090 Kbps
	Encoded date                             : UTC 2012-05-03 22:06:07
	Tagged date                              : UTC 2012-05-03 22:58:38

	> Video
	ID                                       : 1
	Format                                   : AVC
	Format/Info                              : Advanced Video Codec
	Format profile                           : Baseline at L3.0
	Format settings, CABAC                   : No
	Format settings, ReFrames                : 2 frames
	Format settings, GOP                     : M=1, N=24
	Codec ID                                 : avc1
	Codec ID/Info                            : Advanced Video Coding
	Duration                                 : 53mn 15s
	Bit rate mode                            : Variable
	Bit rate                                 : 900 Kbps
	Width                                    : 640 pixels
	Height                                   : 360 pixels
	Display aspect ratio                     : 16:9
	Frame rate mode                          : Constant
	Frame rate                               : 25.000 fps
	Color space                              : YUV
	Chroma subsampling                       : 4:2:0
	Bit depth                                : 8 bits
	Scan type                                : Progressive
	Bits/(Pixel*Frame)                       : 0.156
	Stream size                              : 343 MiB (83%)
	Language                                 : English
	Encoded date                             : UTC 2012-05-03 22:06:07
	Tagged date                              : UTC 2012-05-02 21:59:23
	Color primaries                          : BT.601-6 525, BT.1358
525, BT.1700 NTSC, SMPTE 170M
	Transfer characteristics                 : BT.709-5, BT.1361
	Matrix coefficients                      : BT.601-6 525, BT.1358
525, BT.1700 NTSC, SMPTE 170M
	
	> Audio
	ID                                       : 2
	Format                                   : AAC
	Format/Info                              : Advanced Audio Codec
	Format profile                           : LC
	Codec ID                                 : 40	
	Duration                                 : 53mn 15s
	Bit rate mode                            : Constant
	Bit rate                                 : 117 Kbps
	Nominal bit rate                         : 128 Kbps
	Channel(s)                               : 2 channels
	Channel positions                        : Front: L R
	Sampling rate                            : 44.1 KHz
	Compression mode                         : Lossy
	Stream size                              : 44.6 MiB (11%)
	Language                                 : English
	Encoded date                             : UTC 2012-05-03 22:06:08
	Tagged date                              : UTC 2012-05-02 21:59:23

Does anyone has an idea how to solve this problem?
Wietze



More information about the MEncoder-users mailing list