[MEncoder-users] x264 weird frameskip
Tobias Brockamp
tobiasbrockamp at gmx.de
Thu Nov 15 23:55:02 CET 2007
Hi,
i encode x266 encoded AVI-Files again to x264/avi with the following
mencoder command:
mencoder-cache 51200 -of avi -ovc x264 -ofps 25 -oac mp3lame -srate 44100
-mc 0 -vf kerndeint,scale=768:576,harddup -x264encopts
"keyint=250:min-keyint=25:scenecut=40:bframes=3:b-bias=0:ref=5:deblock=-2,-2:crf=25:ratetol=1.0:vbv-bufsize=0:vbv-init=0.0:ipratio=1.4:pbratio=1.3:chroma-qp-offset=0:rceq=blurCplx^(1-qComp):qcomp=0.6:cplxblur=20.0:qblur=0.5:subq=4:partitions=all:direct-8x8=-1:direct=auto:me=hex:8x8dct:trellis=1:nodct_decimate:nr=0:sar=1/1:fps=25:threads=auto:psnr:ssim:log=3"
-lameopts "cbr:preset=128:mode=0" -o 01_x264_out.avi 01_x264_in.avi
My problem is that the the framecount of the x264-Output ist 1-frame less
than the input. I strongly need the same framecount from
the input file. Mencoder shows that 226 were encoded but with MediaInfo
get a Framecount of 225.
Here is the mencoder output:
MEncoder dev-SVN-rUNKNOWN-3.4.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU T2500 @ 2.00GHz (Family: 6, Model:
14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
success: format: 0 data: 0x0 - 0x287a84
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [h264] 768x576 24bpp 25.000 fps 2204.9 kbps (269.2 kbyte/s)
[V] filefmt:3 fourcc:0x34363268 size:768x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=768 h=576]
Opening video filter: [kerndeint]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
MP3 audio selected.
VDec: vo config request - 768 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 009AF5D0]SwScaler: using unscaled yuv420p -> yuv420p special
converter
x264 [debug]: using mv_range_thread = 88
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2
x264 [debug]: frame= 0 QP=22 NAL=3 Slice:I Poc:0 I:1728 P:0
SKIP:0 size=51375 bytes PSNR Y:45.10 U:50.63 V:51.48 SSIM Y:0.99105
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.078s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.078s.
x264 [debug]: frame= 1 QP=26 NAL=2 Slice:P Poc:4 I:558 P:1001
SKIP:169 size=21182 bytes PSNR Y:41.88 U:49.38 V:50.07 SSIM Y:0.98329
x264 [debug]: frame= 2 QP=28 NAL=0 Slice:B Poc:2 I:146 P:1136
SKIP:273 size=12578 bytes PSNR Y:40.45 U:48.62 V:49.10 SSIM Y:0.97865
x264 [debug]: frame= 3 QP=30 NAL=2 Slice:P Poc:8 I:464 P:871
SKIP:393 size=11694 bytes PSNR Y:39.87 U:48.32 V:48.67 SSIM Y:0.97697
x264 [debug]: frame= 4 QP=30 NAL=0 Slice:B Poc:6 I:118 P:1104
SKIP:423 size=8109 bytes PSNR Y:39.55 U:48.38 V:48.70 SSIM Y:0.97436
x264 [debug]: frame= 5 QP=30 NAL=2 Slice:P Poc:12 I:528 P:1018
SKIP:182 size=15242 bytes PSNR Y:39.46 U:47.70 V:48.08 SSIM Y:0.97750
...
x264 [debug]: frame= 215 QP=28 NAL=2 Slice:P Poc:432 I:80 P:1221
SKIP:427 size=11289 bytes PSNR Y:38.91 U:46.80 V:46.70 SSIM Y:0.97445
x264 [debug]: frame= 216 QP=30 NAL=0 Slice:B Poc:430 I:9 P:549
SKIP:1116 size=3639 bytes PSNR Y:38.63 U:47.09 V:46.75 SSIM Y:0.97496
x264 [debug]: frame= 217 QP=28 NAL=2 Slice:P Poc:436 I:130 P:1233
SKIP:365 size=12189 bytes PSNR Y:38.99 U:46.90 V:46.88 SSIM Y:0.97329
x264 [debug]: frame= 218 QP=30 NAL=0 Slice:B Poc:434 I:16 P:536
SKIP:1108 size=4144 bytes PSNR Y:38.84 U:46.88 V:46.74 SSIM Y:0.97429
x264 [debug]: frame= 219 QP=28 NAL=2 Slice:P Poc:440 I:103 P:1217
SKIP:408 size=10680 bytes PSNR Y:38.98 U:46.80 V:46.90 SSIM Y:0.97336
Pos: 8.8s 226f (100%) 13.25fps Trem: 0min 2mb A-V:0.000
[1945:127]
Flushing video frames.
x264 [debug]: frame= 220 QP=30 NAL=0 Slice:B Poc:438 I:12 P:526
SKIP:1139 size=3820 bytes PSNR Y:38.41 U:46.91 V:46.93 SSIM Y:0.97250
x264 [debug]: frame= 221 QP=28 NAL=2 Slice:P Poc:444 I:84 P:1337
SKIP:307 size=12421 bytes PSNR Y:38.83 U:46.65 V:46.87 SSIM Y:0.97361
x264 [debug]: frame= 222 QP=30 NAL=0 Slice:B Poc:442 I:32 P:530
SKIP:1105 size=3987 bytes PSNR Y:38.70 U:46.72 V:46.90 SSIM Y:0.97458
x264 [debug]: frame= 223 QP=28 NAL=2 Slice:P Poc:448 I:63 P:1170
SKIP:495 size=10862 bytes PSNR Y:38.85 U:46.69 V:46.78 SSIM Y:0.97353
x264 [debug]: frame= 224 QP=30 NAL=0 Slice:B Poc:446 I:8 P:595
SKIP:1059 size=4272 bytes PSNR Y:38.70 U:46.72 V:46.64 SSIM Y:0.97438
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.080s.
Video stream: 1933.577 kbit/s (241697 B/s) size: 2175274 bytes 9.000
secs 226 frames
Audio stream: 128.000 kbit/s (15999 B/s) size: 142106 bytes 8.882 secs
x264 [info]: slice I:1 Avg QP:22.00 size: 51380 PSNR Mean Y:45.10
U:50.63 V:51.48 Avg:46.34 Global:46.34
x264 [info]: slice P:116 Avg QP:28.62 size: 13427 PSNR Mean Y:39.46
U:46.18 V:46.79 Avg:40.79 Global:40.67
x264 [info]: slice B:108 Avg QP:30.72 size: 5239 PSNR Mean Y:38.71
U:46.05 V:46.65 Avg:40.10 Global:40.04
x264 [info]: mb I I16..4: 2.6% 21.5% 75.9%
x264 [info]: mb P I16..4: 2.9% 13.8% 6.9% P16..4: 38.5% 14.4% 4.7%
1.0% 0.6% skip:17.2%
x264 [info]: mb B I16..4: 0.8% 4.2% 1.3% B16..8: 25.4% 2.1% 4.5%
direct: 8.4% skip:53.4%
x264 [info]: 8x8 transform intra:59.1% inter:30.5%
x264 [info]: direct mvs spatial:98.1% temporal:1.9%
x264 [info]: ref P 76.8% 11.5% 6.2% 3.0% 2.6%
x264 [info]: ref B 80.3% 9.8% 5.2% 2.9% 1.9%
x264 [info]: SSIM Mean Y:0.9731840
x264 [info]: PSNR Mean Y:39.127 U:46.138 V:46.744 Avg:40.486 Global:40.368
kb/s:1933.06
I cant see any frameskip in the output. I also tried xvid for encoding
there the framecount was the same.
Any ideas? Please i strongly need a solution here.
Kind regards,
Tobias Brockamp
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
More information about the MEncoder-users
mailing list