Opened 13 years ago

Last modified 13 years ago

#1984 new defect

The newest SVN mencoder converting error

Reported by: dashing.meng@… Owned by: reimar
Priority: normal Component: mencoder
Version: unspecified Severity: critical
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

First, with the same configure options, the version of mencoder(MEncoder SVN-r33713-4.4.5) of Debian Sid is no problem.

I convert a wmv file with the command below:
<code>
mencoder -noconfig all -ovc lavc -oac pcm -lavcopts vcodec=mpeg4:vbitrate=256 -vf crop=292:::,harddup,scale=176:144 -af volnorm -of lavf -ofps 15 -lavfopts format=mkv -o ./test1.mkv ./test1.wmv
</code>

It reports error message like below:
<code>
[mpeg4 @ 0x8a2a040]Error, Invalid timestamp=249, last=295
[matroska @ 0x89b2280]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 19667 >= 16600
Error while writing frame.
</code>

The result video is video time longer than audio time as below:
<code>
A: 26.5 V: 30.0 A-V: -3.500 ct: -2.667 0/ 0 2% 1% 3.6% 1 0
</code>

When I combine with ffmpeg to convert this video with command below:
<code>
#/bin/bash

mkfifo ./test1.mkv

mencoder -noconfig all -ovc lavc -oac pcm \
-lavcopts vcodec=mpeg4:vbitrate=256 \
-vf crop=292:::,harddup,scale=176:144 -af volnorm \
-of lavf -ofps 15 -lavfopts format=mkv \
-o ./test1.mkv ./test1.wmv &

ffmpeg -y -i ./test1.mkv -vcodec mpeg4 -b 256k \
-r 15 -s 176x144 -aspect 176:144 -acodec libfaac \
-ac 2 -ar 44100 -ab 128k -f mp4 \
./test1.wmv-0.mp4 </dev/null

rm ./test1.mkv

exit 0
</code>

The result is the video stream will start later than the audio stream several seconds.

The attachment includes the original video test1.wmv and the result video test1.wmv-0.mp4 processed by combining Mencoder and FFmpeg with the command near above.

Attachments (1)

ifbug.tar.gz (681.0 KB ) - added by dashing.meng@… 13 years ago.
The attachment includes the original video test1.wmv

Download all attachments as: .zip

Change History (3)

by dashing.meng@…, 13 years ago

Attachment: ifbug.tar.gz added

The attachment includes the original video test1.wmv

comment:1 by dashing.meng@…, 13 years ago

The file size is limited, so only upload the original video file test1.wmv.

comment:2 by compn, 13 years ago

Cc: patriotact@… added

try adding -demuxer lavf to your mencoder line.

also your mencoder is old

Note: See TracTickets for help on using tickets.