[MPlayer-users] Bug in bitrate calculation?

Mubashir Cheema cheema at cheema.com
Mon Dec 6 07:02:10 CET 2004


When playing this Transport stream clip Mplayer reports its bitrate to be 4500kbps

http://www.pchdtv.com/downloads/tst.tar  (rename to tst.ts after down load)

This is obviously not correct.

I have tried a few other clips and bitrates on those were not as wildly off.
I dont know of an easy way to calculate the bitrate on a mpeg-2 video 
encapsulated in a transport stream or else I would have been able to confirm
how far off MPlayer is on other video streams I tried.  Actually I ran into 
this problem while trying to find a tool that would reliably report the 
correct bitrate of a transport stream.

My system:  Redhat Fedora Core 2
uname -a: Linux home2 2.6.7-kraxel-pcHDTV #2 SMP Thu Jul 29 00:27:27 PDT 2004 i686 i686 i386 GNU/Linux
MPlayer version: Tried both pre5 and the daily snapshot from today

----------------
% mplayer tst.tp -vo null

MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 3079 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading config file /etc/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Can't init input joystick
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such device
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.

Playing tst.tp.
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=33)...AUDIO A52(pid=36) NO SUBS (yet)!  PROGRAM N. 2
Opened TS demuxer, audio: 2000(pid 36), video: 10000002(pid 33)...POS=28388
VIDEO:  MPEG2  1920x1080  (aspect 3)  29.970 fps  45000.0 kbps (5625.0 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 2.0 (stereo)  48000 Hz  384.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1920x1080 => 1920x1080 Mpeg PES 
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: no soundcards found: Success
audio_setup: Can't open audio device /dev/dsp: No such device
alsa-init: no soundcards found: Success
AO: [arts] can't connect to aRts soundserver
AO: [esd] esd_open_sound failed: No such file or directory
SDL: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
warning: leaving MCOP Dispatcher and still 146 types alive.
esd: Esound sound daemon already running or stale UNIX socket
/tmp/.esd/socket
This socket already exists indicating esd is already running.
Exiting...
audio_alsa: no cards found!
SDL: Unable to open audio: No available audio device
AO: [null] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...




More information about the MPlayer-users mailing list