[MPlayer-dev-eng] [PATCH] MPEG-2 TS 60000/1001 FPS Conversion Error in mencoder
Bill Adams
gofish at evilbill.org
Sun Nov 26 00:48:46 CET 2006
I have been having some problems converting a 720p MPEG-2 TS stream.
You can see the thread (along with a link to a sample stream) here:
http://lists.mplayerhq.hu/pipermail/mencoder-users/2006-June/003345.html
The grand summary is that when I run mencoder (svn from Nov 25, 2006) on
60000/1001 FPS 720p MPEG-2 TS, I get the following bit of output:
mencoder \
-oac copy \
-ovc lavc \
-lavcopts
vcodec=mpeg2video:vqscale=4:dia=4:mbd=2:trell=yes:mv0=yes:cbp=yes:keyint=50
\
-mpegopts muxrate=36000 \
-of mpeg \
-o Test.mpg Bad-FPS.ts
[snip]
[mpeg2video @ 0x861accc]MPEG1/2 does not support 19001/317 fps
After digging around for a while, I came across the bug. In mencoder.c
the line:
AVRational q=
av_d2q(force_ofps?force_ofps:sh_video->fps*playback_speed, 30000);
caps the numerator to 30,000 (I think). Changing this to:
AVRational q=
av_d2q(force_ofps?force_ofps:sh_video->fps*playback_speed, 60000);
fixes the problem.
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fps-fix.diff
Type: text/x-patch
Size: 432 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061125/49b55abd/attachment.bin>
More information about the MPlayer-dev-eng
mailing list