[MPlayer-users] Convert to raw h.264 and increase frame rate

Marlon Smith marlon.smith10 at gmail.com
Fri Feb 17 22:50:44 CET 2012


On Fri, 2012-02-17 at 19:20 +0000, Carl Eugen Hoyos wrote:

> Marlon Smith <marlon.smith10 <at> gmail.com> writes:
> 
> > mencoder input.avi -nosound -of rawvideo -ovc x264 -x264encopts
> > bframes=0 -o output.264
> > 
> > The video is playing back on a hardware device that always plays at
> > 30fps.  Therefore, I need my raw h.264 file to actually contain 30 fps.
> 
> Did you try
> ffmpeg -i input.avi -an -r 30 out.h264
> ?
> 
> Carl Eugen
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users


It looks like mencoder is trying to add frames to the output file (I get
lots of duplicate frame messages, which should be good), but it always
plays back at the same speed (with mplayer and on my target device).
The file size does change though; specifying a higher output framerate
results in a larger file.

Does anyone know what I could be doing wrong?

Here's the mencoder output I get:

marlon at marlon-Z68X-UD3H-B3:~/$ mencoder ./input.avi -nosound -of
rawvideo -ovc x264 -x264encopts bframes=0 -o output.264 -ofps 30
mencoder: Symbol `ff_codec_bmp_tags' has different size in shared
object, consider re-linking
MEncoder 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0x1d5d3c4
AVI file format detected.
[aviheader] Video stream found, -vid 0
VIDEO:  [XVID]  624x352  12bpp  23.976 fps  1363.5 kbps (166.4 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:624x352  fps:23.976
ftime:=0.0417
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle
SSE4.2
x264 [info]: profile High, level 3.0
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.0s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.1s      7f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.1s     11f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.1s     15f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.2s     19f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.2s     23f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.2s     27f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.3s     31f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.3s     35f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.3s     39f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.4s     43f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.4s     47f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.4s     51f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.5s     55f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.7s     59f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.9s     63f ( 1%)  0.00fps Trem:   0min   1mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   1.0s     67f ( 1%)  0.00fps Trem:   0min   1mb  A-V:0.000 [225:0]
1 duplicate frame(s)!
Pos:   1.2s     71f ( 1%)  0.00fps Trem:   0min   2mb  A-V:0.000 [290:0]
1 duplicate frame(s)!
Pos:   1.4s     75f ( 1%)  0.00fps Trem:   0min   3mb  A-V:0.000 [350:0]
1 duplicate frame(s)!
Pos:   1.5s     79f ( 1%)  0.00fps Trem:   0min   4mb  A-V:0.000 [399:0]
1 duplicate frame(s)!
Pos:   1.7s     83f ( 1%)  0.00fps Trem:   0min   5mb  A-V:0.000 [445:0]
1 duplicate frame(s)!
Pos:   1.9s     87f ( 1%)  0.00fps Trem:   0min   6mb  A-V:0.000 [480:0]
1 duplicate frame(s)!
Pos:   2.0s     91f ( 1%)  0.00fps Trem:   0min   9mb  A-V:0.000 [652:0]
1 duplicate frame(s)!
Pos:   2.2s     95f ( 1%)  0.00fps Trem:   0min   9mb  A-V:0.000 [625:0]
1 duplicate frame(s)!
Pos:   2.4s     99f ( 1%)  0.00fps Trem:   0min   9mb  A-V:0.000 [600:0]
1 duplicate frame(s)!
Pos:   2.5s    103f ( 1%)  0.00fps Trem:   0min   9mb  A-V:0.000 [591:0]
1 duplicate frame(s)!
Pos:   2.7s    107f ( 2%)  0.00fps Trem:   0min   9mb  A-V:0.000 [577:0]
1 duplicate frame(s)!
Pos:   2.9s    111f ( 2%)  0.00fps Trem:   0min   9mb  A-V:0.000 [571:0]
1 duplicate frame(s)!
Pos:   3.0s    115f ( 2%)  0.00fps Trem:   0min   9mb  A-V:0.000 [558:0]
1 duplicate frame(s)!
Pos:   3.2s    119f ( 2%)  0.00fps Trem:   0min   9mb  A-V:0.000 [538:0]
1 duplicate frame(s)!
Pos:   3.4s    123f ( 2%)  0.00fps Trem:   0min   9mb  A-V:0.000 [530:0]
1 duplicate frame(s)!
Pos:   3.5s    127f ( 2%)  0.00fps Trem:   0min   9mb  A-V:0.000 [521:0]
1 duplicate frame(s)!
Pos:   3.7s    131f ( 2%)  0.00fps Trem:   0min   8mb  A-V:0.000 [506:0]
1 duplicate frame(s)!
Pos:   3.9s    135f ( 2%)  0.00fps Trem:   0min   8mb  A-V:0.000 [499:0]
1 duplicate frame(s)!
Pos:   4.0s    139f ( 2%)  0.00fps Trem:   0min   8mb  A-V:0.000 [493:0]
1 duplicate frame(s)!
Pos:   4.2s    143f ( 2%)  0.00fps Trem:   0min   8mb  A-V:0.000 [484:0]
1 duplicate frame(s)!
Pos:   4.4s    147f ( 2%)  0.00fps Trem:   0min   8mb  A-V:0.000 [477:0]
1 duplicate frame(s)!
^CPos:   4.5s    151f ( 2%)  0.00fps Trem:   0min   8mb  A-V:0.000
[469:0]
Flushing video frames.

Video stream:  557.331 kbit/s  (69666 B/s)  size: 436576 bytes  6.267
secs  151 frames
x264 [info]: frame I:4     Avg QP:19.28  size: 18160
x264 [info]: frame P:146   Avg QP:23.59  size:  2493
x264 [info]: mb I  I16..4: 36.6% 57.5%  5.9%
x264 [info]: mb P  I16..4:  1.7%  6.4%  0.4%  P16..4: 27.2%  8.4%  4.9%
0.0%  0.0%    skip:51.0%
x264 [info]: 8x8 transform intra:70.6% inter:76.0%
x264 [info]: coded y,uvDC,uvAC intra: 49.2% 66.1% 29.3% inter: 12.6%
18.7% 1.6%
x264 [info]: i16 v,h,dc,p: 49% 32%  6% 13%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 32%  3%  3%  4%  5%
4%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 22% 14%  4%  7%  7%  9%
5%  5%
x264 [info]: i8c dc,h,v,p: 44% 27% 21%  7%
x264 [info]: Weighted P-Frames: Y:0.0%
x264 [info]: ref P L0: 69.6% 13.6% 11.6%  5.2%
x264 [info]: kb/s:698.52




More information about the MPlayer-users mailing list