[MPlayer-users] Can't "-vf scale=xxx" in mencoder

zoiks2004-mplayer at yahoo.com zoiks2004-mplayer at yahoo.com
Tue Sep 26 17:13:12 CEST 2006


Thanks.  Actually I'm using gcc 3.3.4, but I take it
I'll need something more like 3.4.x.

I'll have to figure out whether I want to fix this or
not because it's a mythbox running SuSE 9.2 and I've
never upgraded a distro's gcc outside of its standard
packages.

Eh well.


--- Giacomo Comes <comes at naic.edu> wrote:

> On Mon, Sep 25, 2006 at 02:19:53AM -0700,
> zoiks2004-mplayer at yahoo.com wrote:
> > I get a segfault whenever I try to use the -vf
> > scale=xxx option.  Using other filters seems to
> work,
> > like pp=xxx.  I'm trying to scale the video down
> by a
> > factor of 2 in each dimension.  It's happening
> when I
> > scale using either xvid video encoding or
> lavc(mpeg4).
> > 
> > mplayer plays the video fine and results with
> mencoder
> > without "-vf scale..." are fine.
> > 
> > The following is an example text output
> (testfile.nuv
> > is an mpeg with mp3 audio encoding and mpeg4 video
> > encoding, a la mythtv).  GDB text follows.
> > 
> > ----------------------------------------
> > mencoder testfile.nuv -v -oac copy -ovc lavc
> -lavcopts
> > vbitrate=600:vcodec=mpeg4 -vf scale=360:240 -o
> > testout.avi
> > 
> > MEncoder 1.0pre8-3.3.4 (C) 2000-2006 MPlayer Team
> 
> Try to compile mplayer using gcc 3.4.x.
> I had the same kind of problem using gcc 3.3.1.
> Now I use gcc 3.4.6.
> 
> Giacomo
> 
> > CPU:               Intel(R) Pentium(R) 4 CPU
> 2.40GHz
> > (Family: 15, Model: 2, Stepping: 7)
> > CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2:
> 0
> > SSE: 1 SSE2: 1
> > Compiled for x86 CPU with extensions: MMX MMX2 SSE
> > SSE2
> > 
> > init_freetype
> > get_path('font/font.desc') ->
> > '/home/mythtv/.mplayer/font/font.desc'
> > font: can't open file:
> > /home/mythtv/.mplayer/font/font.desc
> > font: can't open file:
> > /usr/local/share/mplayer/font/font.desc
> > Using MMX (with tiny bit MMX2) Optimized
> > OnScreenDisplay
> > [file] File size is 594723666 bytes
> > STREAM: [file] testfile.nuv
> > STREAM: Description: File
> > STREAM: Author: Albeu
> > STREAM: Comment: based on the code from ???
> (probably
> > Arpi)
> > success: format: 0  data: 0x0 - 0x2372c352
> > Checking for YUV4MPEG2
> > ASF_check: not ASF guid!
> > Checking for NuppelVideo
> > NuppelVideo file format detected.
> > ==> Found video stream: 0
> > ==> Found audio stream: 0
> > Detected MythTV stream
> > FOURCC: XVID
> > channels=2 bitspersample=16 samplerate=48000
> > compression_ratio=11
> > [V] filefmt:13  fourcc:0x58564944  size:720x480 
> > fps:29.97  ftime:=0.0334
> > Opening video filter: [expand osd=1]
> > Expand: -1 x -1, -1 ; -1, osd: 1, aspect:
> 0.000000,
> > round: 1
> > Opening video filter: [scale w=360 h=240]
> > SwScale params: 360 x 240 (-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)
> >
>
==========================================================================
> > Building audio filter chain for 48000Hz/2ch/s16le
> ->
> > 0Hz/0ch/??...
> > [libaf] Adding filter dummy
> > [dummy] Was reinitialized: 48000Hz/2ch/s16le
> > [dummy] Was reinitialized: 48000Hz/2ch/s16le
> > audiocodec: framecopy (format=55 chans=2
> rate=48000
> > bits=16 B/s=16000 sample-4)
> > [ffmpeg] aspect_ratio: 1.500000
> > VDec: vo config request - 720 x 480 (preferred
> > colorspace: Planar YV12)
> > Trying filter chain: scale expand lavc
> > VDec: using Planar YV12 as output csp (no 0)
> > Movie-Aspect is 1.50:1 - prescaling to correct
> movie
> > aspect.
> > VO Config
> > (720x480->720x480,flags=0,'MPlayer',0x32315659)
> > SwScaler: reducing / aligning filtersize 9 -> 8
> > SwScaler: reducing / aligning filtersize 9 -> 8
> > SwScaler: reducing / aligning filtersize 9 -> 8
> > SwScaler: reducing / aligning filtersize 9 -> 8
> > 
> > SwScaler: BICUBIC scaler, from Planar YV12 to
> Planar
> > YV12 using MMX2
> > SwScaler: using 8-tap MMX scaler for horizontal
> > luminance scaling
> > SwScaler: using 8-tap MMX scaler for horizontal
> > chrominance scaling
> > SwScaler: using n-tap MMX scaler for vertical
> scaling
> > (YV12 like)
> > SwScaler: 720x480 -> 360x240
> > REQ: flags=0x401  req=0x0
> > REQ: flags=0x401  req=0x0
> > videocodec: libavcodec (360x240 fourcc=34504d46
> > [FMP4])
> > *** [lavc] Allocating mp_image_t, 368x240x12bpp
> YUV
> > planar, 132480 bytes
> > *** [expand] Direct Rendering mp_image_t,
> > 368x240x12bpp YUV planar, 132480 bytes
> > *** [scale] Allocating (slices) mp_image_t,
> > 720x480x12bpp YUV planar, 518400 bytes
> > Segmentation fault
> > 
> > ----------------------------------------
> > 
> > cat gdb.txt [uses same args as above]
> > 
> > [Thread debugging using libthread_db enabled]
> > [New Thread 1078741504 (LWP 23611)]
> > 
> > Program received signal SIGSEGV, Segmentation
> fault.
> > [Switching to Thread 1078741504 (LWP 23611)]
> > 0x08198da2 in hScale_MMX2 (dst=Variable "dst" is
> not
> > available.
> > ) at swscale_template.c:2108
> > 2108                    asm volatile(
> > 
> > Thread 1 (Thread 1078741504 (LWP 23611)):
> > #0  0x08198da2 in hScale_MMX2 (dst=Variable "dst"
> is
> > not available.
> > ) at swscale_template.c:2108
> >         counter = gdbcoms:7: Error in sourced
> command
> > file:
> > Cannot access memory at address 0xfffffe7c
> > The program is running.  Exit anyway? (y or n)
> > 
> > ----------------------------------------
> > 
> > Any help on this is greatly appreciated.  Thanks.
> > 
> > _______________________________________________
> > MPlayer-users mailing list
> > MPlayer-users at mplayerhq.hu
> >
>
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> 
> -- 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
>
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> 




More information about the MPlayer-users mailing list