[MPlayer-users] Segmentation fault while scaling

James . jcube00 at gmail.com
Sat Jan 22 15:06:40 CET 2011


Hello,

I'm trying to scale and re-encode a clip recorded from Australian DVB-T free
to air television, but I keep getting the following segmentation fault,
granted this is received over the air so there are errors in the file but
this should be handled more gracefully so at least I can get the rest of the
clip, even if that one faulty frame was dropped.

I'm encoding to Xvid for later playback on my DVD player, if this is a
problem with a library outside of mencoder I'd be happy to hear about any
alternative Xvid libraries which do not suffer from this.

A 2MB sample used below is available at http://www.filedropper.com/sample_9

Thank you,

James.

$./configure --enable-debug=3 --disable-dvdnav

(gdb) run -v /mnt/d/dvd/sample.m2v -of avi -ovc xvid -xvidencopts
bitrate=4000:par=pal169 -vf scale=720:576 -o tmp.avi
Starting program: /home/james/mplayer/mplayer/mencoder -v
/mnt/d/dvd/sample.m2v -of avi -ovc xvid -xvidencopts bitrate=4000:par=pal169
-vf scale=720:576 -o tmp.avi
[Thread debugging using libthread_db enabled]
MEncoder SVN-r32797-4.5.1 (C) 2000-2011 MPlayer Team
get_path('codecs.conf') -> '/home/james/.mplayer/codecs.conf'
Reading /home/james/.mplayer/codecs.conf: Can't open
'/home/james/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/james/.mplayer/fonts'
Configuration: --enable-debug=3 --disable-dvdnav
[file] File size is 2075763 bytes
STREAM: [file] /mnt/d/dvd/sample.m2v
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x1fac73
LAVF_check: raw MPEG video
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /mnt/d/dvd/sample.m2v ext: .m2v
Trying demuxer 2 based on filename extension
sync_mpeg_ps: seems to be MP3 stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 6  p101: 18 p1B6: 0 p12x: 240 sli: 48 a: 48 b: 48
c: 0 idr: 15 sps: 0 pps: 15 PES: 0  MP3: 101, synced: 0
demuxer: continue fuzzy content-based format guessing...
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
AVS: avs_check_file - attempting to open file /mnt/d/dvd/sample.m2v
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 65728, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1510225963
LMLM4 Stream Format not found
sync_mpeg_ps: seems to be MP3 stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 6  p101: 18 p1B6: 0 p12x: 240 sli: 48 a: 48 b: 48
c: 0 idr: 15 sps: 0 pps: 15 PES: 0  MP3: 101, synced: 0
sync_mpeg_ps: seems to be MP3 stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 6  p101: 18 p1B6: 0 p12x: 240 sli: 48 a: 48 b: 48
c: 0 idr: 15 sps: 0 pps: 15 PES: 0  MP3: 101, synced: 0
Invalid seek to negative position!
==> Found video stream: 0
ds_fill_buffer: EOF reached (stream: video)
LAVF_check: raw MPEG video
libavformat file format detected.
[mpegvideo @ 0x8d71440] Estimating duration from bitrate, this may be
inaccurate
==> Found video stream: 0
======= VIDEO Format ======
  biSize 202
  biWidth 1440
  biHeight 1080
  biPlanes 0
  biBitCount 0
  biCompression 843534413='MPG2'
  biSizeImage 0
Unknown extra header dump: [0] [0] [1] [b3] [5a] [4] [38] [33] [15] [f9]
[29] [2] [10] [20] [20] [26] [20] [26] [2c] [2c] [2c] [2c] [2c] [2c] [34]
[30] [34] [36] [36] [36] [34] [34] [34] [34] [36] [36] [36] [3a] [3a] [3a]
[44] [44] [44] [3a] [3a] [3a] [36] [36] [3a] [3a] [40] [40] [44] [44] [4a]
[4c] [4a] [46] [46] [44] [46] [4c] [4c] [50] [50] [50] [60] [60] [5c] [5c]
[70] [70] [74] [8a] [8a] [a7] [10] [10] [10] [13] [10] [13] [16] [16] [16]
[16] [16] [16] [1a] [18] [1a] [1b] [1b] [1b] [1a] [1a] [1a] [1a] [1b] [1b]
[1b] [1d] [1d] [1d] [22] [22] [22] [1d] [1d] [1d] [1b] [1b] [1d] [1d] [20]
[20] [22] [22] [25] [26] [25] [23] [23] [22] [23] [26] [26] [28] [28] [28]
[30] [30] [2e] [2e] [38] [38] [3a] [45] [45] [53] [0] [0] [1] [b5] [14] [42]
[0] [1] [0] [0] [0] [0] [1] [b5] [2b] [2] [2] [2] [16] [82] [21] [c0]
===========================
[lavf] stream 0: video (mpeg2video), -vid 0
LAVF: 0 audio and 1 video streams found
LAVF: build 3431680
VIDEO:  [MPG2]  1440x1080  0bpp  25.000 fps  9187.6 kbps (1121.5 kbyte/s)
[V] filefmt:35  fourcc:0x3247504D  size:1440x1080  fps:25.000  ftime:=0.0400
[file] File size is 0 bytes
STREAM: [file] tmp.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
xvid: using library version 1.2.2 (build xvid-1.2.2)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=720 h=576]
SwScale params: 720 x 576 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 1440 x 1080 (preferred colorspace: Planar YV12)
Trying filter chain: scale expand xvid
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (1440x1080->1920x1080,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 @ 0x87b70c0]BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0x87b70c0]using 8-tap MMX scaler for horizontal luminance
scaling
[swscaler @ 0x87b70c0]using 8-tap MMX scaler for horizontal chrominance
scaling
[swscaler @ 0x87b70c0]using n-tap MMX scaler for vertical scaling (YV12
like)
[swscaler @ 0x87b70c0]1440x1080 -> 720x576
[swscaler @ 0x87b70c0]lum srcW=1440 srcH=1080 dstW=720 dstH=576 xInc=131072
yInc=122880
[swscaler @ 0x87b70c0]chr srcW=720 srcH=540 dstW=360 dstH=288 xInc=131072
yInc=122880
REQ: flags=0x403  req=0x0
REQ: flags=0x3  req=0x0
videocodec: XviD (720x576 fourcc=44495658 [XVID])
xvid: par=0/0 (pal169), displayed=1024x576, sampled=720x576
xvid: CBR Rate Control -- bitrate=4000kbit/s
*** [xvid] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [expand] Direct Rendering mp_image_t, 720x576x12bpp YUV planar, 622080
bytes
*** [scale] Allocating (slices) mp_image_t, 1440x1088x12bpp YUV planar,
2350080 bytes
Pos:   0.0s      1f (100%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms
0/14 D/B/S 0/1/0
*** [scale] Allocating (slices) mp_image_t, 1440x1088x12bpp YUV planar,
2350080 bytes
Unicode font: 5162 glyphs.
Unicode font: 5162 glyphs.
Muxer frame buffer sending 1 frame(s) to the muxer.
Writing header...
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.
Pos:   0.0s      2f (100%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms
0/136 D/B/S 0/1/0
*** [scale] Allocating (slices) mp_image_t, 1440x1088x12bpp YUV planar,
2350080 bytes
Pos:   1.0s     26f (100%)  25fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms
0/39 D/B/S 0/1/0
[mpeg2video @ 0x870f7a0]00 motion_type at 50 1

Program received signal SIGSEGV, Segmentation fault.
0x08597e32 in hScale_MMX2 (dst=Cannot access memory at address 0xfffffa68
) at swscale_template.c:2095
2095            __asm__ volatile(
(gdb) bt
#0  0x08597e32 in hScale_MMX2 (dst=Cannot access memory at address
0xfffffa68
) at swscale_template.c:2095
Cannot access memory at address 0xfffffa64


More information about the MPlayer-users mailing list