[MPlayer-users] MPlayer playing one frame more than specified with -frames
Andrei Badea
andrei.badea at movzx.net
Sun May 22 13:31:44 CEST 2005
When I use this command:
mplayer tv://R12 -tv driver=v4l2:width=768:height=576:brightness=20:contrast=30:
saturation=15 -vf pp=lb -vo tga -ao null -frames 1
I get two tga files instead of one. Actually for any -frames value greater than
0 I get one file more. I experience it in both 1.0pre7 and CVS versions. Is this
the intended behavior? From what I see in mplayer.c I think not:
--- mplayer.c 2005-05-22 12:59:55.229574728 +0200
+++ mplayer.c 2005-05-22 13:10:49.350133288 +0200
@@ -2236,7 +2236,7 @@
if(play_n_frames>=0){
--play_n_frames;
- if(play_n_frames<0) eof = PT_NEXT_ENTRY;
+ if(play_n_frames<=0) eof = PT_NEXT_ENTRY;
}
/*========================== PLAY AUDIO ============================*/
Andrei
My computer configuration follows: Debian unstable with Linux kernel 2.6.10 and
the following software:
tam0 at farpoint:~$ uname -a
Linux farpoint 2.6.10.tam0 #1 Mon Jan 17 21:58:41 CET 2005 i686 GNU/Linux
tam0 at farpoint:~$ ls -l /lib/libc[.-]*
lrwxr-xr-x 1 root root 13 2005-01-08 20:37 /lib/libc.so.6 ->
libc-2.3.2.so-rw-r--r-- 1 root root 1244016 2004-12-27 03:41 /lib/libc-2.3.2.so
tam0 at farpoint:~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-12)
tam0 at farpoint:~$ ld -v
GNU ld version 2.15
tam0 at farpoint:~$ as --version
GNU assembler 2.15
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i386-linux'.
tam0 at farpoint:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Celeron(R) CPU 2.80GHz
stepping : 4
cpu MHz : 2800.091
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid
xtpr
bogomips : 5521.40
The output of the above mplayer command with verbose level 1 is (without -vf
pp=lb, because for some reason I get the "Option vf: pp doesn't exist." error
with the CVS version):
MPlayer dev-CVS-050522-12:48-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Northwood (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
CommandLine: 'tv://R12' '-tv'
'driver=v4l2:width=768:height=576:brightness=20:contrast=30:saturation=15' '-vo'
'tga' '-ao' 'null' '-frames' '1' '-v'
init_freetype
get_path('font/font.desc') -> '/home/tam0/.mplayer/font/font.desc'
font: can't open file: /home/tam0/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/tam0/.mplayer/input.conf'
Can't open input config file /home/tam0/.mplayer/input.conf: No such file or
directory
Can't open input config file /etc/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('R12.conf') -> '/home/tam0/.mplayer/R12.conf'
Playing tv://R12.
STREAM: [null] tv://R12
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment:
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: LifeView FlyVIDEO3000
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO STEREO
Capabilites: video capture video overlay VBI capture device tuner
read/write streaming
supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4 = NTSC; 5 =
SECAM; 6 = PAL-M; 7 = PAL-Nc;
inputs: 0 = Television; 1 = TV (mono only); 2 = Composite1; 3 = Composite2; 4 =
S-Video;
Current input: 0
Format GREY ( 8 bits, 8 bpp gray): Planar Y800
Format RGB555 (16 bits, 15 bpp RGB, le): BGR 15-bit
Format RGB555X (16 bits, 15 bpp RGB, be): Unknown
Format RGB565 (16 bits, 16 bpp RGB, le): BGR 16-bit
Format RGB565X (16 bits, 16 bpp RGB, be): Unknown
Format BGR24 (24 bits, 24 bpp RGB, le): BGR 24-bit
Format RGB24 (24 bits, 24 bpp RGB, be): RGB 24-bit
Format BGR32 (32 bits, 32 bpp RGB, le): BGRA
Format RGB32 (32 bits, 32 bpp RGB, be): RGBA
Format YUYV (16 bits, 4:2:2 packed, YUYV): Packed YUY2
Format UYVY (16 bits, 4:2:2 packed, UYVY): Packed UYVY
Format YUV422P (16 bits, 4:2:2 planar, Y-Cb-Cr): Planar 422P
Format YUV420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar I420
Format YVU420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar YV12
Current format: BGR24
v4l2: current audio mode is : STEREO
v4l2: set format: YUV420
v4l2: set input: 0
Selected norm: pal
v4l2: set norm: PAL
v4l2: set width: 768
v4l2: set height: 576
Selected channel list: europe-east (including 133 channels)
Requested channel: R12
Selected channel: R12 (freq: 223.250)
Current frequency: 3572 (223.250)
Current frequency: 3572 (223.250)
==> Found video stream: 0
v4l2: get format: YUV420
v4l2: get fps: 25.000000
v4l2: get width: 720
v4l2: get height: 576
Using a ring buffer for maximum 2 frames, 1 MB total size.
v4l2: set Brightness: 153 [0, 255]
v4l2: set Hue: 0 [-128, 127]
v4l2: set Saturation: 73 [0, 127]
v4l2: set Contrast: 85 [0, 127]
[V] filefmt:9 fourcc:0x32315659 size:720x576 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/tam0/.mplayer/sub/'
get_path('default.sub') -> '/home/tam0/.mplayer/default.sub'
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (720x576->720x576,flags=0,'MPlayer',0x32315659)
SwScaler: using unscaled Planar YV12 -> BGRA special converter
REQ: flags=0x3 req=0x0
VO: [tga] 720x576 => 720x576 BGRA
VO: Description: Targa output
VO: Author: Daniele Forghieri - guru at digitalfantasy.it
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
v4l2: going to capture
*** [scale] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [vo] Allocating mp_image_t, 720x576x32bpp BGR packed, 1658880 bytes
EOF code: 1 2 ??% ??% ??,?% 0 0
uninit video: raw
v4l2: 4 frames successfully processed, 0 frames dropped.
v4l2: up to 1 video frames buffered.
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
--
andrei.badea at movzx.net # http://movzx.net # jabber:tam0 at njs.netlab.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20050522/d5893e91/attachment.pgp>
More information about the MPlayer-users
mailing list