[MPlayer-dev-eng] multifile error (fastmemcpy?)

Nick Kurshev nickols_k at mail.ru
Fri Feb 22 18:21:14 CET 2002


Hello, Gabucino!

On Fri, 22 Feb 2002 11:34:28 +0100 you wrote:

> File #01: irrelevant
> File #02: MPEG1, which has a short clip of a different MPEG1 inside it (?!).
>           FPS changes, frame counter changes etc. This changing point is
>           where interesting stuff happens.
> 
> Situation #01: ffmpeg12 handles changing more correctly than libmpeg2 (I'll
>                upload the file this evening)
> 
> Situation #02: the topic, actually. When this MPEG1 file is played AFTER
>                one or more previous files, it segfaults when it the MPEG
>                change occurs. Also, it doesn't quit, video window stays,
>                MPlayer hanged..
> 
> Debug output follows :
> 
> (gdb) run ~/x/lila.avi ~/x/a.mpg -vc mpeg12
> Starting program: /home/gabucino/mplayer/src/./mplayer ~/x/lila.avi ~/x/a.mpg -vc mpeg12
> [New Thread 1024 (LWP 10478)]
> 
> 
> MPlayer CVS-020221-18:04-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> 
> CPU vendor name: AuthenticAMD  max cpuid level: 1
> CPU: Advanced Micro Devices K6-2 (Type: 5, Stepping: 12)
> extended cpuid-level: 5
> CPUflags: Type: 5 MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
> Compiled with RUNTIME CPU Detection - warning, it's untested!
> /home/gabucino/.mplayer/config(1): option: vo
> /home/gabucino/.mplayer/config(1): parameter: xmga
> /home/gabucino/.mplayer/config(2): option: fs
> /home/gabucino/.mplayer/config(2): parameter: igen
> /home/gabucino/.mplayer/config(5): option: osdlevel
> /home/gabucino/.mplayer/config(5): parameter: 1
> /home/gabucino/.mplayer/config(6): option: framedrop
> /home/gabucino/.mplayer/config(6): parameter: nem
> /home/gabucino/.mplayer/config(7): option: vfm
> /home/gabucino/.mplayer/config(7): parameter: 5
> /home/gabucino/.mplayer/config(9): option: autoq
> /home/gabucino/.mplayer/config(9): parameter: 0
> /home/gabucino/.mplayer/config(10): option: skin
> /home/gabucino/.mplayer/config(10): parameter: MidnightLove
> /home/gabucino/.mplayer/config(12): option: cache
> /home/gabucino/.mplayer/config(12): parameter: 1024
> Reading /home/gabucino/.mplayer/codecs.conf: 29 audio & 79 video codecs
> Font /home/gabucino/.mplayer/font/font.desc loaded successfully! (206 chars)
> Linux RTC init: ioctl (rtc_pie_on): Permission denied
> Using usleep() timing
> Can't open input config file /home/gabucino/.mplayer/input.conf : No such file or directory
> Falling back on default (hardcoded) config
> Playing /home/gabucino/x/lila.avi
> Not an URL!
> CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
> Cache fill:  0.00% (0 bytes)    Detected AVI file format!
> list_end=0x146
> MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
> list_end=0xD4
> list_end=0x146
> list_end=0xF8A7E8
> VIDEO:  [DIV3]  320x224  24bpp  15.00 fps   99.8 kbps (12.2 kbyte/s)
> [V] filefmt:3  fourcc:0x33564944  size:320x224  fps:15.00  ftime:=0.0667
> Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
> CPU vendor name: AuthenticAMD  max cpuid level: 1
> CPU: Advanced Micro Devices K6-2 (Type: 5, Stepping: 12)
> extended cpuid-level: 5
> mp3lib: made decode tables with MMX optimization
> init layer2&3 finished, tables done
> mp3lib: using 3DNow! optimized decore!
> MPEG 1.0, Layer III, 44100 Hz 32 kbit Joint-Stereo, BPF: 104
> Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
> AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 4000->176400
> Trying to force video codec driver family 5 ...
> Detected video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
> libavcodec: CPU flags: mmx 3dnow
> Movie-Aspect is undefined - no prescaling applied.
> VO: [xmga] 320x224 => 320x224 Planar YV12 fs 
> vo: X11 running at 800x600 with depth 24 and 32 bits/pixel (":0.0" => local display)
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
> ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
> audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
> audio_setup: using 2 channels (requested: 2)
> audio_setup: using 44100 Hz samplerate (requested: 44100)
> audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
> Start playing...
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
>                          .022 ct:  0.063   24/ 24   2%  1%  2.2% 0 0 96%
> Can't seek in raw .AVI streams! (index required, try with the -idx switch!)  
> Can't seek in raw .AVI streams! (index required, try with the -idx switch!)  
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6004   5%  1%  2.7% 0 0 48%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6006   5%  1%  2.7% 0 0 48%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6001   6%  1%  2.9% 0 0 16%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6003   6%  1%  2.9% 0 0 11%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6009   6%  1%  2.9% 0 0 7%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6000   6%  1%  2.9% 0 0 7%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6001   6%  1%  2.9% 0 0 2%
> [xmga-fs] dcx: 1 dcy: 21 dx: 0 dy: 20 dw: 800 dh: 560
> vo: uninit!  34.5 A-V: -0.000 ct:  0.069  518/518   6%  1%  2.9% 0 0 0%
> 
> *** free_stream() called ***
> Playing /home/gabucino/x/a.mpg
> Not an URL!
> CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
> Cache fill:  0.00% (0 bytes)    header block 1 size: 0
> Detected MPEG-PS file format!
> VIDEO:  MPEG1  352x240  (aspect 12)  30.00 fps  1362.0 kbps (170.2 kbyte/s)
> [V] filefmt:2  fourcc:0x10000001  size:352x240  fps:30.00  ftime:=0.0333
> Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
> CPU vendor name: AuthenticAMD  max cpuid level: 1
> CPU: Advanced Micro Devices K6-2 (Type: 5, Stepping: 12)
> extended cpuid-level: 5
> mp3lib: made decode tables with MMX optimization
> init layer2&3 finished, tables done
> mp3lib: using 3DNow! optimized decore!
> MPEG 1.0, Layer II, 44100 Hz 112 kbit Joint-Stereo, BPF: 365
> Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
> AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 14000->176400
> Trying to force video codec driver family 5 ...
> Can't find video codec for forced driver family, fallback to other drivers.
> Forcing video codec: [mpeg12] drv:1 prio:0 (MPEG 1 or 2)
> mpeg2dec-0.2.0-release (C) 2000-2001 Aaron Holtzman & Michel Lespinasse
> libmpeg2: Using MMX for IDCT transform
> libmpeg2: Using 3DNOW for motion compensation
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO: [xmga] 352x240 => 352x264 Planar YV12 fs 
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> [xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> [xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
> ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
> audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
> audio_setup: using 2 channels (requested: 2)
> audio_setup: using 44100 Hz samplerate (requested: 44100)
> audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
> Start playing...
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6005  17%  0%  2.1% 0 0 46%
> [xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> [xmga] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 6008  16%  0%  2.1% 0 0 46%
> [xmga-fs] dcx: 1 dcy: 1 dx: 0 dy: 0 dw: 800 dh: 600
> *** Misc stuff (counter changes) occurs, but cutpaste doesn't show :) ***
> Warning! FPS changed 30.000 -> 29.970  (0.030000) [4]   0%  2.1% 0 0 45%%
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 10478)]
> 0x8110f96 in fast_memcpy (to=0x40bfcf70, from=0x834afd0, len=240)
>     at aclib_template.c:314
> 314                     __asm__ __volatile__ (
> (gdb) bt
> #0  0x8110f96 in fast_memcpy (to=0x40bfcf70, from=0x834afd0, len=240)
>     at aclib_template.c:314
> #1  0x811d310 in draw_slice_g400 () at vo_xmga.c:102
> #2  0x811d36e in draw_slice () at vo_xmga.c:102
> #3  0x809fa1c in copy_slice (frame=0x8236220, src=0xbfffe4c4) at decode.c:165
> #4  0x80acd05 in slice_process (picture=0x830f330, code=16 '\020', 
>     buffer=0x40a842dc "\023её}\202\aе╝е∙!\177\177д╧1\027ц CTд▒ц╨R\022е╟е▒\025=е╪.\202\aе╝е∙!\177\177д╬0\021") at slice.c:1759
> #5  0x809fd8a in parse_chunk (output=0x8209700, code=16, 
>     buffer=0x40a842dc "\023её}\202\aе╝е∙!\177\177д╧1\027ц CTд▒ц╨R\022е╟е▒\025=е╪.\202\aе╝е∙!\177\177д╬0\021", framedrop=0) at decode.c:312
> #6  0x809fe8d in mpeg2_decode_data (output=0x8209700, 
>     current=0x40a847d0 "\023её{\202\aц b", end=0x40a88c78 "", framedrop=0)
>     at decode.c:368
> #7  0x80708e2 in decode_video (video_out=0x8209700, sh_video=0x82715b0, 
>     start=0x40a80008 "", in_size=35952, drop_frame=0) at dec_video.c:1103
> #8  0x8068c7b in main (argc=5, argv=0xbffff924, envp=0xbffff93c)
>     at mplayer.c:1625
> #9  0x405d4906 in __libc_start_main () from /lib/libc.so.6
> (gdb) disass $eip-32 $eip+32                                                   
> Dump of assembler code from 0x8110f76 to 0x8110fb6:
> 0x8110f76 <fast_memcpy+838>:    add    %cl,(%edi)
> 0x8110f78 <fast_memcpy+840>:    outsl  %ds:(%esi),(%dx)
> 0x8110f79 <fast_memcpy+841>:    push   %es
> 0x8110f7a <fast_memcpy+842>:    movq   0x8(%esi),%mm1
> 0x8110f7e <fast_memcpy+846>:    movq   0x10(%esi),%mm2
> 0x8110f82 <fast_memcpy+850>:    movq   0x18(%esi),%mm3
> 0x8110f86 <fast_memcpy+854>:    movq   0x20(%esi),%mm4
> 0x8110f8a <fast_memcpy+858>:    movq   0x28(%esi),%mm5
> 0x8110f8e <fast_memcpy+862>:    movq   0x30(%esi),%mm6
> 0x8110f92 <fast_memcpy+866>:    movq   0x38(%esi),%mm7
> 0x8110f96 <fast_memcpy+870>:    movq   %mm0,(%edi)
> 0x8110f99 <fast_memcpy+873>:    movq   %mm1,0x8(%edi)
> 0x8110f9d <fast_memcpy+877>:    movq   %mm2,0x10(%edi)
> 0x8110fa1 <fast_memcpy+881>:    movq   %mm3,0x18(%edi)
> 0x8110fa5 <fast_memcpy+885>:    movq   %mm4,0x20(%edi)
> 0x8110fa9 <fast_memcpy+889>:    movq   %mm5,0x28(%edi)
> 0x8110fad <fast_memcpy+893>:    movq   %mm6,0x30(%edi)
> 0x8110fb1 <fast_memcpy+897>:    movq   %mm7,0x38(%edi)
> 0x8110fb5 <fast_memcpy+901>:    add    $0x40,%esi
> End of assembler dump.
> 
Bug is out of fastmemcpy. 'dest' argument of fastmemcpy is
invalid in this case. You should dig mga stuff.
> -- 
> Gabucino
> 


Best regards! Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020222/085daf8f/attachment.pgp>


More information about the MPlayer-dev-eng mailing list