[MPlayer-users] mencoder+tv+grab

Robert L. RAKSI lobz at t-sys.hu
Mon Dec 16 19:30:02 CET 2002


Hi!

I have a problem grabing with my tvtuner card. mencoder crashes with
Floating point exception.
With some earlier versions of mplayer there were no problems like this. (i dont remember
the version number, sorry, it was 2-3 months ago)

My system:
- Debian/Woody
- Linux galaxy 2.4.19-xfs-saa #2 Fri Aug 16 14:20:16 CEST 2002 i686 unknown
- libc:
  /lib/libc-2.2.5.so
  /lib/libc.so.6 -> libc-2.2.5.so
- X:
  XFree86 Version 4.2.1 / X Window System
  (protocol Version 11, revision 0, vendor release 6600)
  Release Date: 3 September 2002
- gcc: gcc version 2.95.4 20011002 (Debian prerelease)
- ld: GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
- binutils: GNU assembler version 2.12.90.0.1 (i386-linux) using BFD version 2.12.90.0.1 20020307 Debian/GNU Linux

- CPU:
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 6
model name	: AMD Athlon(tm) XP 1800+
stepping	: 2
cpu MHz		: 1544.691
cache size	: 256 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips	: 3080.19

- video card: ATI radeon 7500
- video driver: from gatos:
  ATI-4.2.0-15
  drm-kernel-1.2.0-15
- audio:
00:0c.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
	Subsystem: Ensoniq Creative Sound Blaster AudioPCI128
- tvcard: lifeview flyvideo 3000 with using the driver from bytesex.org version saa7134-0.1.11

The commandline was:
mencoder -tv on:driver=v4l:freq=287.25:width=384:height=284:norm=PAL:chanlist=europe-west:amode=1:audiorate=44100 -oac pcm -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 -endpos 00:01:00 -vop pp=lb -o demo_384x288x800_vhq_112vbr_npp.avi -v

The log:
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/mplayer/share/locale


MEncoder CVS-021216-06:00-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading /home/lobz/.mplayer/codecs.conf: can't open '/home/lobz/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/mplayer/etc/mplayer/codecs.conf: 49 audio & 123 video codecs
File not found: 'frameno.avi'
Reading config file /home/lobz/.mplayer/mencoder: No such file or directory
get_path('font/font.desc') -> '/home/lobz/.mplayer/font/font.desc'
font: can't open file: /home/lobz/.mplayer/font/font.desc
Font /usr/local/mplayer/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
success: format: 0  data: 0x0 - 0x0
Detected TV! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Selected device: saa7134[0]
 Capabilites: capture tuner overlay clipping 
 Device type: 43
 Supported sizes: 48x32 => 720x576
 Inputs: 4
  0: Television: tuner audio tv camera  (tuner:1, norm:pal)
  1: Composite1:  (tuner:0, norm:pal)
  2: Composite2:  (tuner:0, norm:pal)
  3: S-Video:  (tuner:0, norm:pal)
mbuf: size=14155776, frames=8
 Audio devices: 1
Video capture card reports the audio setup as follows:
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
Audio mode setup warning!
Requested mode was stereo, but v4l still reports unknown.
You may need "forcechan" option to force stereo/mono audio recording.
  0: audio: muted=yes vol=0 bass=0 treble=0 balance=0 mode=unknown chan=2
ioctl dsp getfmt: 0
Supported formats: 18
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 1)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 0
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 1024
audio block size too low, setting to 16384!
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using input 'Television'
Selected norm: PAL
Tuner (Television) range: 0 -> 4294967295
ioctl set tuner failed: Invalid argument
Requested width: 384
Requested height: 284
Selected channel list: europe-west (including 104 channels)
requested frequency: 287.250
Selected frequency: 4596 (287.250)
Current frequency: 4596 (287.250)
==> Found video stream: 0
Output format: Planar YV12
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
==> Found audio stream: 0
  TV audio: 2 channels, 16 bits, 44100 Hz
Picture values:
 Depth: 12, Palette: yuv420p (Format: Planar YV12)
 Brightness: 32896, Hue: 32896, Colour: 33026, Contrast: 35090
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using a ring buffer for maximum 803 frames, 125 MB total size.
Enabling tv audio. Requested setup is:
id=0 vol=60000 bass=0 treble=0 balance=0 mode=stereo chan=2
[V] filefmt:9  fourcc:0x32315659  size:384x284  fps: 0.00  ftime:=   inf
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 176400->176400 (1411.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [pp=lb]
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 284 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (384x284->384x284,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0  
REQ: flags=0x401  req=0x0  
videocodec: libavcodec (384x284 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
CBR PCM audio selected
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Adding filter dummy 
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
Forcing audio preload to 0, max pts correction to 0

gdb (disass $pc-32 $pc+32,  info all-registers):
Core was generated by `mencoder -tv on:driver=v4l:freq=287.25:width=384:height=284:norm=PAL:chanlist=e'.
Program terminated with signal 8, Arithmetic exception.
#0  0x081b5bdf in decode_frame (avctx=0xcf850, data=0x0, data_size=0x0, buf=0x0, buf_size=1084381920) at mpegaudiodec.c:2342
2342		if (s->frame_size == 0) {
Dump of assembler code from 0x81b5bbf to 0x81b5bff:
0x81b5bbf <decode_frame+43>:	add    (%eax),%eax
0x81b5bc1 <decode_frame+45>:	add    %cl,0x938bfc5d(%ebx)
0x81b5bc7 <decode_frame+51>:	add    $0x12,%al
0x81b5bc9 <decode_frame+53>:	add    %al,(%eax)
0x81b5bcb <decode_frame+55>:	mov    0x1208(%ebx),%ecx
0x81b5bd1 <decode_frame+61>:	mov    0x120c(%ebx),%eax
0x81b5bd7 <decode_frame+67>:	mov    %edx,%esi
0x81b5bd9 <decode_frame+69>:	sub    %ecx,%esi
0x81b5bdb <decode_frame+71>:	test   %eax,%eax
0x81b5bdd <decode_frame+73>:	jne    0x81b5d61 <decode_frame+461>
0x81b5be3 <decode_frame+79>:	mov    0x1214(%ebx),%eax
0x81b5be9 <decode_frame+85>:	test   %eax,%eax
0x81b5beb <decode_frame+87>:	je     0x81b5c40 <decode_frame+172>
0x81b5bed <decode_frame+89>:	shr    $0x18,%eax
0x81b5bf0 <decode_frame+92>:	mov    %al,(%ecx)
0x81b5bf2 <decode_frame+94>:	mov    0x1208(%ebx),%edx
0x81b5bf8 <decode_frame+100>:	movzwl 0x1216(%ebx),%eax
End of assembler dump.
eax            0x1	1
ecx            0x1	1
edx            0x0	0
ebx            0x3b1ee	242158
esp            0xbf5ffa2c	0xbf5ffa2c
ebp            0xbf5ffa84	0xbf5ffa84
esi            0x0	0
edi            0x0	0
eip            0x81b5bdf	0x81b5bdf
eflags         0x10246	66118
cs             0x23	35
ss             0x2b	43
ds             0x2b	43
es             0x2b	43
fs             0x2b	43
gs             0x2b	43
st0            -nan(0x80807d7e7c7e7f7e)	(raw 0xffff80807d7e7c7e7f7e)
st1            -nan(0x808080807f7f8080)	(raw 0xffff808080807f7f8080)
st2            -nan(0x818080807e7f7f80)	(raw 0xffff818080807e7f7f80)
st3            -nan(0x7e7f7f7f7e7f7f80)	(raw 0xffff7e7f7f7f7e7f7f80)
st4            -nan(0x7e7e7e7e807f7f7f)	(raw 0xffff7e7e7e7e807f7f7f)
st5            -nan(0x7e7e7e7d7e7e7e7e)	(raw 0xffff7e7e7e7d7e7e7e7e)
st6            -nan(0x7e7f7f7e7f7e7f7f)	(raw 0xffff7e7f7f7e7f7e7f7f)
st7            -nan(0x7f7f7e7f7f7d7e80)	(raw 0xffff7f7f7e7f7f7d7e80)
fctrl          0x37f	895
fstat          0x0	0
ftag           0x0	0
fiseg          0x0	0
fioff          0x0	0
foseg          0x1f80	8064
fooff          0x0	0
fop            0x0	0
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}	{f = {-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
mxcsr          0x1f80	8064
orig_eax       0xffffffff	-1

-- 
                                       Robert L. RAKSI
 
   -- The Microsoft of Borg: Patches Are Futile! --




More information about the MPlayer-users mailing list