[Mplayer-felhasznalok] [bug] fbdev veszekszik a ppvel

Gemes Tibor tib at i-trade.hu
Tue Jan 7 23:25:00 CET 2003


2003-01-07, k keltezéssel Arpi ezt írta:

> nem latom mplayer -v ... logjat, sem a 'nem indul' definiciojat (ha elszall,
> akkor gdb log stb).

Jogos. Hülye vagyok. Szóval itt a gdb logja. Csak azért küldöm ilyen
sokára, mert a gdb-vel úgy látom nem vagyok jóban, és az istennek se
sikerül értelmes outputot kicsikarjak belőle. Na végre sikerült.  

Szóval egyszerűen nem indul el, crashel, 1 mp-et se játszik. Csakhogy ha
fbdev outputot használok, akkor a konzolom olyan furcsa módon szétesik,
hogy pl nem látszik a stderr (meg hiába akármekkora a mérete, mindenképp
80x24-ben használja, de mind1), így aztán nem láttam, hogy crash
történt. Illetve meglepődve láttam meg a mplayer -v -ben...

Íme:
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run -v /local/wawa/Vidocq/Vidocq.avi
Starting program: /home/tib/install/mplayer/main/mplayer -v /local/wawa/Vidocq/Vidocq.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-030107-21:39-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /home/tib/.mplayer/config
Reading /home/tib/.mplayer/codecs.conf: 49 audio & 123 video codecs
CommandLine: '-v' '/local/wawa/Vidocq/Vidocq.avi'
get_path('font/font.desc') -> '/home/tib/.mplayer/font/font.desc'
font: can't open file: /home/tib/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/tib/.mplayer/input.conf'
get_path('Vidocq.avi.conf') -> '/home/tib/.mplayer/Vidocq.avi.conf'

Playing /local/wawa/Vidocq/Vidocq.avi
Not an URL!
File size is 714203136 bytes
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 140365   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 352
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: divx (78766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 1000000/40000 = 25,000
Start: 0   Len: 140365
Suggested BufferSize: 60980
Quality -1
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 352
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 675840
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 16000/1 = 16000,000
Start: 0   Len: 89833600
Suggested BufferSize: 8000
Quality -1
Sample size: 1
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
list_end=0x2292
Broken chunk?  chunksize=1382  (id=JUNK)
list_end=0x2A4D55EC
Found movie at 0x280C - 0x2A4D55EC
Reading INDEX block, 280719 chunks for 140365 frames (fpos=0x2a4d55f4)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1F4C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=617551717 (140365) audio size=89833600 (89833600)
VIDEO:  [DIVX]  640x352  24bpp  25,00 fps  879,9 kbps (107,4 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:640x352  fps:25,00  ftime:=0,0400
get_path('sub/') -> '/home/tib/.mplayer/sub/'
SUB: Detected sub file: /local/wawa/Vidocq/Vidocq.srt
SUB: Detected subtitle file format: subviewer
SUB: Read 706 subtitles.
SUB: Adjusted 1 subtitle(s).
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done

MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
fbdev: using /dev/fb1
Opening video filter: [expand=720:576:-1:-1:1]
Expand: 720 x 576, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale=720:-2]
SwScale params: 720 x -2 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: compiled for ALSA-0.9.0beta10a
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: hw:0,0
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: current val=16, fragcount=16
alsa-init: got buffersize=65536
alsa9: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: ALSA-0.9.x audio output
AO: Author: Alex Beregszaszi <alex at naxine.org>, Joy Winter <joy at pingfm.org>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
Start playing...
alsa-space: free space = 65536, status=137540216, prepared --
looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[ffmpeg] aspect_ratio: 0,000000
VDec: vo config request - 640 x 352 (preferred csp: Planar YV12)
Opening video filter: [pp]
scale: query(BGR 32-bit) -> 3
[scale] query(Planar YV12) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar I420) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar IYUV) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar 444P) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar 422P) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar 411P) -> 1
scale: query(BGR 32-bit) -> 3
scale: query(BGR 32-bit) -> 3
scale: query(BGR 32-bit) -> 3
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x352->640x352,flags=0,'MPlayer',0x32315659)
scale: query(BGR 32-bit) -> 3
REQ: flags=0x445  req=0x0  
scale: query(BGR 32-bit) -> 3
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from Planar YV12 to BGR 32-bit using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: using MMX YV12->BGR32 Converter
SwScaler: 640x352 -> 720x396
REQ: flags=0x407  req=0x0  
REQ: flags=0x7  req=0x0  
VO: [fbdev] 720x576 => 720x576 BGR 32-bit 
VO: Description: Framebuffer Device
VO: Author: Szabolcs Berecz <szabi at inf.elte.hu>
fbdev: Can't set graphics mode: Invalid argument
fbdev: var info:
fbdev: xres: 640
fbdev: yres: 480
fbdev: xres_virtual: 640
fbdev: yres_virtual: 480
fbdev: xoffset: 0
fbdev: yoffset: 0
fbdev: bits_per_pixel: 32
fbdev: grayscale: 0
fbdev: red: 16 8 0
fbdev: green: 8 8 0
fbdev: blue: 0 8 0
fbdev: transp: 24 8 0
fbdev: nonstd: 0
fbdev: fix info:
fbdev: framebuffer size: 8388608 bytes
fbdev: type: 0
fbdev: type_aux: 0
fbdev: visual: 2
fbdev: line_length: 2560 bytes
fbdev: fb_bpp: 32
fbdev: fb_real_bpp: 24
fbdev: fb_pixel_size: 4 bytes
fbdev: other:
fbdev: in_width: 720
fbdev: in_height: 576
fbdev: out_width: 720
fbdev: out_height: 576
fbdev: first_row: 0
fbdev: last_row: 576
fbdev: pixel per line: 640
*** [pp] Allocating mp_image_t, 640x352x12bpp YUV planar, 337920 bytes
*** [scale] Allocating mp_image_t, 640x352x12bpp YUV planar, 337920 bytes
*** [vo] Allocating mp_image_t, 720x576x32bpp BGR packed, 1658880 bytes
*** [expand] Direct Rendering mp_image_t, 720x396x32bpp BGR packed, 1140480 bytes
[New Thread 1024 (LWP 584)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 584)]
0x0808b5b6 in fast_memcpy_SSE (to=0x5e252000, from=0x41549008, len=2880) at aclib_template.c:191
191			__asm__ __volatile__ (
(gdb) bt
#0  0x0808b5b6 in fast_memcpy_SSE (to=0x5e252000, from=0x41549008, len=2880) at aclib_template.c:191
#1  0x0808b6cf in fast_memcpy (to=0x5e252000, from=0x41549008, len=2880) at aclib.c:136
#2  0x08080067 in put_frame () at vo_fbdev.c:1228
#3  0x080800c3 in flip_page () at vo_fbdev.c:1242
#4  0x08053890 in main (argc=3, argv=0xbffff904) at mplayer.c:1915
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x808b596 to 0x808b5d6:
0x808b596 <fast_memcpy_SSE+86>:	add    %al,(%eax)
0x808b598 <fast_memcpy_SSE+88>:	je     0x808b5d0 <fast_memcpy_SSE+144>
0x808b59a <fast_memcpy_SSE+90>:	test   %ecx,%ecx
0x808b59c <fast_memcpy_SSE+92>:	je     0x808b602 <fast_memcpy_SSE+194>
0x808b59e <fast_memcpy_SSE+94>:	mov    %esi,%esi
0x808b5a0 <fast_memcpy_SSE+96>:	prefetchnta 0x140(%esi)
0x808b5a7 <fast_memcpy_SSE+103>:	movups (%esi),%xmm0
0x808b5aa <fast_memcpy_SSE+106>:	movups 0x10(%esi),%xmm1
0x808b5ae <fast_memcpy_SSE+110>:	movups 0x20(%esi),%xmm2
0x808b5b2 <fast_memcpy_SSE+114>:	movups 0x30(%esi),%xmm3
0x808b5b6 <fast_memcpy_SSE+118>:	movntps %xmm0,(%edi)
0x808b5b9 <fast_memcpy_SSE+121>:	movntps %xmm1,0x10(%edi)
0x808b5bd <fast_memcpy_SSE+125>:	movntps %xmm2,0x20(%edi)
0x808b5c1 <fast_memcpy_SSE+129>:	movntps %xmm3,0x30(%edi)
0x808b5c5 <fast_memcpy_SSE+133>:	add    $0x40,%esi
0x808b5c8 <fast_memcpy_SSE+136>:	add    $0x40,%edi
0x808b5cb <fast_memcpy_SSE+139>:	dec    %ecx
0x808b5cc <fast_memcpy_SSE+140>:	jne    0x808b5a0 <fast_memcpy_SSE+96>
0x808b5ce <fast_memcpy_SSE+142>:	jmp    0x808b602 <fast_memcpy_SSE+194>
0x808b5d0 <fast_memcpy_SSE+144>:	test   %ecx,%ecx
0x808b5d2 <fast_memcpy_SSE+146>:	je     0x808b602 <fast_memcpy_SSE+194>
0x808b5d4 <fast_memcpy_SSE+148>:	prefetchnta 0x140(%esi)
End of assembler dump.
(gdb) quit
A debugging session is active.
Do you still want to close the debugger?(y or n) 






More information about the MPlayer-felhasznalok mailing list