[MPlayer-dev-eng] what about -vf/-vop expand ?

Gabucino gabucino at mplayerhq.hu
Tue Oct 21 19:01:36 CEST 2003


Arpi wrote:
> i nearly always use -vop expand=720:576:0:32:1,scale=720:-2
> and it works fine, with any video size. vo is always fbdev
My mistake, I put xvidix before xv. MPlayer actually fails in nvidia_vid.so

gdb log follows:

(gdb) r /home/media/julikaaa.avi -vf expand=800:600
Starting program: /home/gabucino/mplayer/src/./mplayer /home/media/julikaaa.avi                         -vf expand=800:600
[New Thread 1024 (LWP 3193)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer dev-CVS-031021-15:54-2.95.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 1095 MHz (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
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: can't open file: /usr/share/mplayer/font/font.desc
Using usleep() timing
Can't open input config file /root/.mplayer/input.conf: No such file or director                        y
Input config file /etc/mplayer/input.conf parsed: 51 binds

Playing /home/media/julikaaa.avi.
Cache fill:  0.00% (0 bytes)    AVI file format detected.
VIDEO:  [DX50]  640x480  24bpp  25.000 fps  696.9 kbps (85.1 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 20000->176400 (160.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
open: No such device
vo_mga: Couldn't open /dev/mga_vid
No vidix driver name provided, probing available ones!
vo: X11 running at 800x600 with depth 24 and 32 bpp (":0.0" => local display)
[mga] No supported cards found
[mga] No supported cards found
[nvidia_vid] Found chip: NV11 [GeForce2 MX]
[nvidia_vid] arch 10 register base 40e3e000
[nvidia_vid] detected memory size 64 MB
[nvidia_vid] MTRR set up
[nvidia_vid] video mode: 800x600 at 32
VIDIX: Description: NVIDIA RIVA OVERLAY DRIVER
VIDIX: Author: Sascha Sommer <saschasommer at freenet.de>
Opening video filter: [expand w=800 h=600]
Expand: 800 x 600, -1 ; -1  (-1=autodetect) osd: 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int 
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from Planar YV12 to Packed YUY2 using MMX2
VO: [xvidix] 800x600 => 800x600 Packed YUY2  [fs]
Using colorkey: ff00
[nvidia_vid] set colorkey 0xff00

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 1024 (LWP 3193)]
0x400df746 in rivatv_overlay_start (info=0x861d698, bufno=0)
    at nvidia_vid.c:558
558                     VID_WR32 (info->chip.PVIDEO, 0x938 + 0, (info->width <<                         20) / info->d_width);
(gdb) bt
#0  0x400df746 in rivatv_overlay_start (info=0x861d698, bufno=0)
    at nvidia_vid.c:558
#1  0x400e0209 in vixSetGrKeys (grkey=0x8560580) at nvidia_vid.c:856
#2  0x8105c69 in vdlSetGrKeys (handle=0x861d5f8, k=0x8560580) at vidixlib.c:317
#3  0x80f6d40 in vidix_grkey_set (gr_key=0x8560580) at vosub_vidix.c:362
#4  0x80f2097 in config (width=800, height=600, d_width=800, d_height=600, 
    flags=1, title=0x842bfbb "MPlayer", format=844715353) at vo_xvidix.c:361
#5  0x8117b02 in config (vf=0x861d738, width=800, height=600, d_width=800, 
    d_height=600, flags=1, outfmt=844715353) at vf_vo.c:48
#6  0x8117496 in vf_next_config (vf=0x861d788, width=800, height=600, 
    d_width=800, d_height=600, voflags=1, outfmt=844715353) at vf.c:488
#7  0x8118786 in config (vf=0x861d788, width=640, height=480, d_width=800, 
    d_height=600, flags=1, outfmt=844715353) at vf_expand.c:184
#8  0x8117496 in vf_next_config (vf=0x86d5580, width=640, height=480, 
    d_width=640, d_height=480, voflags=1, outfmt=844715353) at vf.c:488
#9  0x81193f0 in config (vf=0x86d5580, width=640, height=480, d_width=640, 
    d_height=480, flags=1, outfmt=842094169) at vf_scale.c:226
#10 0x810e127 in mpcodecs_config_vo (sh=0x8604730, w=640, h=480, 
    preferred_outfmt=842094169) at vd.c:316
#11 0x81135c9 in init_vo (sh=0x8604730) at vd_ffmpeg.c:422
#12 0x811366c in get_buffer (avctx=0x861d960, pic=0x861ecfc) at vd_ffmpeg.c:451
#13 0x8231e62 in alloc_picture (s=0x861ec40, pic=0x861ecfc, shared=0)
    at mpegvideo.c:265
---Type <return> to continue, or q <return> to quit---
#14 0x8233cd8 in MPV_frame_start (s=0x861ec40, avctx=0x861d960)
    at mpegvideo.c:1046
#15 0x83331cf in ff_h263_decode_frame (avctx=0x861d960, data=0x861d8c0, 
    data_size=0xbfffe7d4, buf=0x860a070 "", buf_size=3356) at h263dec.c:640
#16 0x82305c8 in avcodec_decode_video (avctx=0x861d960, picture=0x861d8c0, 
    got_picture_ptr=0xbfffe7d4, buf=0x860a070 "", buf_size=3356) at utils.c:410
#17 0x81139f4 in decode (sh=0x8604730, data=0x860a070, len=3356, flags=0)
    at vd_ffmpeg.c:625
#18 0x810d956 in decode_video (sh_video=0x8604730, start=0x860a070 "", 
    in_size=3356, drop_frame=0) at dec_video.c:304
#19 0x80b3964 in main (argc=4, argv=0xbffffb94) at mplayer.c:2098
#20 0x4049a836 in __libc_start_main () from /lib/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x400df726 to 0x400df766:
0x400df726 <rivatv_overlay_start+562>:  or     0x18(%edi),%eax
0x400df729 <rivatv_overlay_start+565>:  mov    %eax,0x928(%edx)
0x400df72f <rivatv_overlay_start+571>:  mov    0x48(%edi),%eax
0x400df732 <rivatv_overlay_start+574>:  movl   $0x0,0x930(%eax)
0x400df73c <rivatv_overlay_start+584>:  mov    0x18(%edi),%ecx
0x400df73f <rivatv_overlay_start+587>:  shl    $0x14,%ecx
0x400df742 <rivatv_overlay_start+590>:  mov    %ecx,%eax
0x400df744 <rivatv_overlay_start+592>:  xor    %edx,%edx
0x400df746 <rivatv_overlay_start+594>:  div    0x20(%edi),%eax
0x400df749 <rivatv_overlay_start+597>:  mov    0x48(%edi),%edx
0x400df74c <rivatv_overlay_start+600>:  mov    %eax,0x938(%edx)
0x400df752 <rivatv_overlay_start+606>:  mov    0x1c(%edi),%ecx
0x400df755 <rivatv_overlay_start+609>:  shl    $0x14,%ecx
0x400df758 <rivatv_overlay_start+612>:  mov    %ecx,%eax
0x400df75a <rivatv_overlay_start+614>:  xor    %edx,%edx
0x400df75c <rivatv_overlay_start+616>:  div    0x24(%edi),%eax
0x400df75f <rivatv_overlay_start+619>:  mov    0x48(%edi),%edx
0x400df762 <rivatv_overlay_start+622>:  mov    %eax,0x940(%edx)
End of assembler dump.


-- 
Gabucino
MPlayer Core Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031021/6fbabe06/attachment.pgp>


More information about the MPlayer-dev-eng mailing list