[MPlayer-users] h.264 playback ignoring forced FPS value

Matthew Nichols mjnichol at uwaterloo.ca
Mon Mar 10 07:22:58 CET 2008


With the latest version from SVN (and this has been a problem for over a 
month now with the latest SVN), if I specify an fps value on the 
command-line for playing a file containing h.264 video, the value is 
ignored. In 1.0rc2, this was not the case.

For other types of video formats I've tried, the fps value I provide is 
respected.

Log output is below. Pretty much any file from 
http://www.apple.com/trailers/#section=justhd should exhibit the same 
problem. In practical terms, this is a problem because most HDDVD video 
is incorrectly detected at 29.970 fps, whereas it's really 23.976 fps. 
The only way around this AFAIK is to use the -fps parameter. The result 
when playing HDDVD video encoded with h.264 now, is that every second 
there is a 0.2 second pause in the video output (mplayer plays 24 frames 
in 0.8 seconds, then pauses 0.2 seconds).

Not sure if this is an issue for the ffmpeg list, or this list.


[root at lakota mplayer]# ./mplayer -v -fps 10 
/free/plugin/kung_fu_panda-tlr1_h1080p.mov
MPlayer dev-SVN-r26206-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 
15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading /root/.mplayer/codecs.conf: Can't open 
'/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration:
CommandLine: '-v' '-fps' '10' '/free/plugin/kung_fu_panda-tlr1_h1080p.mov'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or 
directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such 
file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not open config files /root/.lircrc and /etc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
get_path('kung_fu_panda-tlr1_h1080p.mov.conf') -> 
'/root/.mplayer/kung_fu_panda-tlr1_h1080p.mov.conf'

Playing /free/plugin/kung_fu_panda-tlr1_h1080p.mov.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 87625970 bytes
STREAM: [file] /free/plugin/kung_fu_panda-tlr1_h1080p.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: QuickTime/MPEG4/Motion JPEG 2000 format
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xac7c60]edit list not starting at 0, a/v 
desync might occur, patch welcome
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xac7c60]negative ctts, ignoring
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xac7c60]edit list not starting at 0, a/v 
desync might occur, patch welcome
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xac7c60]edit list not starting at 0, a/v 
desync might occur, patch welcome
==> Found video stream: 0
[lavf] Video stream found, -vid 0
======= VIDEO Format ======
   biSize 75
   biWidth 1920
   biHeight 816
   biPlanes 0
   biBitCount 24
   biCompression 828601953='avc1'
   biSizeImage 4700160
Unknown extra header dump: [1] [4d] [40] [28] [ff] [e1] [0] [14] [27] 
[4d] [40] [28] [a9] [18] [f] [0] [cf] [60] [d] [40] [40] [40] [6d] [b0] 
[ad] [7b] [df] [1] [1] [0] [4] [28] [de] [9] [c8]
===========================
==> Found audio stream: 1
[lavf] Audio stream found, -aid 1
======= WAVE Format =======
Format Tag: 255 (0xFF)
Channels: 2
Samplerate: 44100
avg byte/sec: 0
Block align: 1
bits/sample: 16
cbSize: 2
Unknown extra header dump: [12] [10]
==========================================================================
LAVF: 1 audio and 1 video streams found
LAVF: build 3410176
VIDEO:  [avc1]  1920x816  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x31637661  size:1920x816  fps:29.97  ftime:=0.0334
Clip info:
  name: Kung Fu Panda
  copyright: ? 2008 Dreamworks Pictures. All Rights Reserved
get_path('sub/') -> '/root/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 236223245380Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) 
decoder)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.15
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little 
Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
FPS forced to be 10.000  (ftime: 0.100).
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 1920 x 816 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (1920x816->1920x816,flags=0,'MPlayer',0x32315659)
VO: [xv] 1920x816 => 1920x816 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 355 for hw scaling
[ASPECT] Warning: No suitable new res found!
[xv] dx: 0 dy: 0 dw: 1920 dh: 816
*** [vo] Exporting mp_image_t, 1920x816x12bpp YUV planar, 2350080 bytes
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[xv] dx: 51 dy: 192 dw: 1546 dh: 816
Uninit audio filters... 0.002 ct:  0.020   0/  0 20%  3%  0.6% 0 0
[libaf] Removing filter dummy
Uninit audio: faad
FAAD: Closing decoder!
Uninit video: ffmpeg
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)



More information about the MPlayer-users mailing list