[MEncoder-users] mcdeint=2 segfault
Christian Ebert
blacktrash at gmx.net
Mon Mar 9 17:19:32 CET 2009
Hello,
On MacOS 10.5.6 mcdeint=2 segfaults.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.5.6
BuildVersion: 9G55
$ uname -a
Darwin krille.blacktrash.org 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
$ ls -l /usr/lib/libc.dylib
lrwxr-xr-x 1 root wheel 15 Nov 14 17:22 /usr/lib/libc.dylib -> libSystem.dylib
$ ls -l /usr/lib/libSystem*
-r-xr-xr-x 1 root wheel 7895440 Nov 25 01:31 /usr/lib/libSystem.B.dylib
-r-xr-xr-x 1 root wheel 14290032 Jul 10 2008 /usr/lib/libSystem.B_debug.dylib
-r-xr-xr-x 1 root wheel 11204560 Jul 10 2008 /usr/lib/libSystem.B_profile.dylib
lrwxr-xr-x 1 root wheel 17 Nov 14 17:22 /usr/lib/libSystem.dylib -> libSystem.B.dylib
-r--r--r-- 1 root wheel 88544 Feb 19 2008 /usr/lib/libSystemStubs.a
-r--r--r-- 1 root wheel 88544 Feb 19 2008 /usr/lib/libSystemStubs_debug.a
-r--r--r-- 1 root wheel 88656 Feb 19 2008 /usr/lib/libSystemStubs_profile.a
lrwxr-xr-x 1 root wheel 23 Nov 26 16:06 /usr/lib/libSystem_debug.dylib -> libSystem.B_debug.dylib
lrwxr-xr-x 1 root wheel 25 Nov 26 16:06 /usr/lib/libSystem_profile.dylib -> libSystem.B_profile.dylib
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-85.2.1
$ as -v
Apple Inc version cctools-698.1~1, GNU assembler version 1.38
Mencoder command and output:
$ mencoder -msglevel all=9 -mc 0 -noskip -vfm ffmpeg -fps 25 -ofps 25 -field-dominance 1 \
-vf yadif=3,mcdeint=2:1:10,softskip,harddup \
-of lavf -lavfopts format=pal-dv -oac pcm -ovc lavc \
-lavcopts vcodec=dvvideo:vqscale=0 -o test.dv test.mov
MEncoder SVN-r28904-4.0.1 (C) 2000-2009 MPlayer Team
this_opt = option: mc
Setting mc=0
this_opt = option: noskip
Setting noskip=-vfm
this_opt = option: vfm
Setting vfm=ffmpeg
this_opt = option: fps
Setting fps=25
this_opt = option: ofps
Setting ofps=25
this_opt = option: field-dominance
Setting field-dominance=1
this_opt = option: vf
Setting vf=yadif=3,mcdeint=2:1:10,softskip,harddup
this_opt = option: of
Setting of=lavf
this_opt = option: lavfopts
Setting lavfopts=format=pal-dv
this_opt = option: oac
Setting oac=pcm
this_opt = option: ovc
Setting ovc=lavc
this_opt = option: lavcopts
Setting lavcopts=vcodec=dvvideo:vqscale=0
this_opt = option: o
Setting o=test.dv
Adding file test.mov
Configuration: --prefix=/usr/local --with-extralibdir=/sw/lib --with-extraincdir=/sw/include --disable-dvdread-internal
init_freetype
get_path('font/font.desc') -> '/Users/chris/.mplayer/font/font.desc'
font: can't open file: /Users/chris/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Config pushed level is now 2
Config pushed level is now 3
[file] File size is 993783801 bytes
STREAM: [file] test.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0 data: 0x0 - 0x3b3beff9
s->pos=0 newpos=0 new_bufpos=0 buflen=0
LAVF_check: QuickTime/MPEG-4/Motion JPEG 2000 format
libavformat file format detected.
mp_seek(0x1805200, 0, 65536)
32768=mp_read(0x1805200, 0x131d00c, 32768), eof:0
mp_seek(0x1805200, 993756800, 0)
s->pos=8000 newpos=3B3B8000 new_bufpos=3B3B8680 buflen=0
27001=mp_read(0x1805200, 0x131d00c, 32768), eof:1
mp_seek(0x1805200, 993783801, 0)
s->pos=3B3BEFF9 newpos=3B3BE800 new_bufpos=3B3BEFF9 buflen=0
stream_seek: WARNING! Can't seek to 0x3B3BEFF9 !
s->pos=0 newpos=3B3BE800 new_bufpos=3B3BEFF9 buflen=0
mp_seek(0x1805200, 993783801, 0)
s->pos=3B3BEFF9 newpos=3B3BE800 new_bufpos=3B3BEFF9 buflen=0
mp_seek(0x1805200, 512, 0)
s->pos=3B3BEFF9 newpos=0 new_bufpos=200 buflen=0
192000=mp_read(0x1805200, 0x136b000, 192000), eof:0
mp_seek(0x1805200, 192512, 0)
s->pos=2F000 newpos=2F000 new_bufpos=2F000 buflen=0
144000=mp_read(0x1805200, 0x139a000, 144000), eof:0
mp_seek(0x1805200, 336512, 0)
144000=mp_read(0x1805200, 0x1466000, 144000), eof:0
mp_seek(0x1805200, 480512, 0)
144000=mp_read(0x1805200, 0x148a000, 144000), eof:0
mp_seek(0x1805200, 624512, 0)
144000=mp_read(0x1805200, 0x14ae000, 144000), eof:0
mp_seek(0x1805200, 768512, 0)
144000=mp_read(0x1805200, 0x14d2000, 144000), eof:0
mp_seek(0x1805200, 912512, 0)
144000=mp_read(0x1805200, 0x14f6000, 144000), eof:0
mp_seek(0x1805200, 1056512, 0)
144000=mp_read(0x1805200, 0x151a000, 144000), eof:0
mp_seek(0x1805200, 1200640, 0)
144000=mp_read(0x1805200, 0x153e000, 144000), eof:0
mp_seek(0x1805200, 1344640, 0)
144000=mp_read(0x1805200, 0x1562000, 144000), eof:0
mp_seek(0x1805200, 1488640, 0)
144000=mp_read(0x1805200, 0x1586000, 144000), eof:0
mp_seek(0x1805200, 1632640, 0)
144000=mp_read(0x1805200, 0x15aa000, 144000), eof:0
mp_seek(0x1805200, 1776640, 0)
144000=mp_read(0x1805200, 0x15ce000, 144000), eof:0
mp_seek(0x1805200, 1920640, 0)
144000=mp_read(0x1805200, 0x15f2000, 144000), eof:0
mp_seek(0x1805200, 2064640, 0)
144000=mp_read(0x1805200, 0x1616000, 144000), eof:0
mp_seek(0x1805200, 2208768, 0)
144000=mp_read(0x1805200, 0x163a000, 144000), eof:0
mp_seek(0x1805200, 2352768, 0)
144000=mp_read(0x1805200, 0x165e000, 144000), eof:0
mp_seek(0x1805200, 2496768, 0)
144000=mp_read(0x1805200, 0x1682000, 144000), eof:0
mp_seek(0x1805200, 2640768, 0)
144000=mp_read(0x1805200, 0x16a6000, 144000), eof:0
mp_seek(0x1805200, 2784768, 0)
144000=mp_read(0x1805200, 0x16ca000, 144000), eof:0
mp_seek(0x1805200, 2928768, 0)
144000=mp_read(0x1805200, 0x16ee000, 144000), eof:0
mp_seek(0x1805200, 3072768, 0)
144000=mp_read(0x1805200, 0x1712000, 144000), eof:0
mp_seek(0x1805200, 3216896, 0)
144000=mp_read(0x1805200, 0x1736000, 144000), eof:0
mp_seek(0x1805200, 3360896, 0)
144000=mp_read(0x1805200, 0x175a000, 144000), eof:0
mp_seek(0x1805200, 3504896, 0)
144000=mp_read(0x1805200, 0x177e000, 144000), eof:0
mp_seek(0x1805200, 3648896, 0)
144000=mp_read(0x1805200, 0x17a2000, 144000), eof:0
mp_seek(0x1805200, 3792896, 0)
s->pos=39E000 newpos=39E000 new_bufpos=39E000 buflen=0
192000=mp_read(0x1805200, 0x17c6000, 192000), eof:0
mp_seek(0x1805200, 3984896, 0)
144000=mp_read(0x1805200, 0x2000000, 144000), eof:0
mp_seek(0x1805200, 993769984, 0)
s->pos=3F0800 newpos=3B3BB800 new_bufpos=3B3BBA00 buflen=0
13817=mp_read(0x1805200, 0x131d00c, 32768), eof:1
mp_seek(0x1805200, 4128896, 0)
s->pos=0 newpos=3F0000 new_bufpos=3F0080 buflen=0
144000=mp_read(0x1805200, 0x2024000, 144000), eof:0
mp_seek(0x1805200, 4272896, 0)
144000=mp_read(0x1805200, 0x2048000, 144000), eof:0
mp_seek(0x1805200, 4416896, 0)
144000=mp_read(0x1805200, 0x206c000, 144000), eof:0
mp_seek(0x1805200, 4560896, 0)
s->pos=459800 newpos=459800 new_bufpos=459800 buflen=0
144000=mp_read(0x1805200, 0x2090000, 144000), eof:0
mp_seek(0x1805200, 4704896, 0)
144000=mp_read(0x1805200, 0x20b4000, 144000), eof:0
mp_seek(0x1805200, 4848896, 0)
144000=mp_read(0x1805200, 0x20d8000, 144000), eof:0
mp_seek(0x1805200, 4993024, 0)
s->pos=4C3000 newpos=4C3000 new_bufpos=4C3000 buflen=0
144000=mp_read(0x1805200, 0x20fc000, 144000), eof:0
mp_seek(0x1805200, 0, 65536)
==> Found video stream: 0
[lavf] Video stream found, -vid 0
aspect= 720*0/(576*1)
======= VIDEO Format ======
biSize 60
biWidth 720
biHeight 576
biPlanes 0
biBitCount 24
biCompression 1885566564='dvcp'
biSizeImage 1244160
Unknown extra header dump: [0] [0] [0] [a] [66] [69] [65] [6c] [2] [e] [0] [0] [0] [a] [66] [69] [65] [6c] [2] [e]
===========================
==> Found audio stream: 1
[lavf] Audio stream found, -aid 1
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 16
cbSize: 0
==========================================================================
LAVF: 1 audio and 1 video streams found
LAVF: build 3415809
VIDEO: [dvcp] 720x576 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x70637664 size:720x576 fps:25.000 ftime:=0.0400
Input fps will be interpreted as 25.000 instead.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] test.dv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
ALLOCATED STREAM N. 1, type=0
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [softskip]
Opening video filter: [mcdeint=2:1:10]
Opening video filter: [yadif=3]
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
INFO: libavcodec init OK!
Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)
==========================================================================
ALLOCATED STREAM N. 2, type=1
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[libaf] Removing filter format
[dummy] Was reinitialized: 48000Hz/2ch/s16le
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 48000
avg byte/sec: 192000
Block align: 4
bits/sample: 16
cbSize: 0
==========================================================================
demux_lavf_fill_buffer()
Increasing filtered audio buffer size from 0 to 65536
demux_lavf_fill_buffer()
vd_ffmpeg data: bf00071f, 787878f8, ffffffff, ffffffff
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Trying filter chain: yadif mcdeint softskip harddup expand lavc
vo_debug: query(Planar 411P) returned 0x0 (i=0)
vo_debug: query(Planar 422P) returned 0x0 (i=1)
vo_debug: query(Planar YV12) returned 0x401 (i=2)
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is 1.37:1 - prescaling to correct movie aspect.
VO Config (720x576->786x576,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401 req=0x0
REQ: flags=0x401 req=0x0
REQ: flags=0x401 req=0x0
REQ: flags=0x401 req=0x0
REQ: flags=0x401 req=0x0
videocodec: libavcodec (720x576 fourcc=64737664 [dvsd])
[VE_LAVC] Using constant qscale = 0.000000 (VBR).
using IP
*** [yadif] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x3c41000,0x3cbf900,0x3ca6400 strides: 720,360,360, chroma: 360x288, shift: h:1,v:1)
Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] A/Vms 0/16 D/B/S 0/1/0
demux_lavf_fill_buffer()
vd_ffmpeg data: bf00071f, 787878f8, ffffffff, ffffffff
using IP
*** [yadif] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x3cda000,0x3d58900,0x3d3f400 strides: 720,360,360, chroma: 360x288, shift: h:1,v:1)
*** [mcdeint] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x3d73000,0x3df1900,0x3dd8400 strides: 720,360,360, chroma: 360x288, shift: h:1,v:1)
*** [softskip] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x3e0c000,0x3e8a900,0x3e71400 strides: 720,360,360, chroma: 360x288, shift: h:1,v:1)
*** [harddup] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x0,0x0,0x0 strides: 0,0,0, chroma: 360x288, shift: h:1,v:1)
*** [expand] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x0,0x0,0x0 strides: 0,0,0, chroma: 360x288, shift: h:1,v:1)
*** [lavc] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
(imgfmt: 32315659, planes: 0x417e000,0x41fc900,0x41e3400 strides: 720,360,360, chroma: 360x288, shift: h:1,v:1)
get_path('subfont.ttf') -> '/Users/chris/.mplayer/subfont.ttf'
Unicode font: 5009 glyphs.
get_path('subfont.ttf') -> '/Users/chris/.mplayer/subfont.ttf'
Unicode font: 5009 glyphs.
OSD chg: 5 V: no pb:-1
OSD chg: 3 V: no pb:-1
OSD chg: 2 V: no pb:-1
Muxer frame buffer sending 2 frame(s) to the muxer.
VIDEO CODEC ID: 25
AUDIO CODEC ID: 10000, TAG: 0
MUXER_LAVF(audio stream) frame_size: 1, scale: 1, sps: 48000, rate: 48000, ctx->block_align = stream->wf->nBlockAlign; 0=4 stream->wf->nAvgBytesPerSec:192000
Writing header...
Segmentation fault
Simple attempt at gdb backtrace:
(gdb) run -mc 0 -noskip -vfm ffmpeg -fps 25 -ofps 25 -field-dominance 1 -vf yadif=3,mcdeint=2:1:10,softskip,harddup -of lavf -lavfopts format=pal-dv -oac pcm -ovc lavc -lavcopts vcodec=dvvideo:vqscale=0 -o test.dv test.mov
Starting program: /usr/local/bin/mencoder -mc 0 -noskip -vfm ffmpeg -fps 25 -ofps 25 -field-dominance 1 -vf yadif=3,mcdeint=2:1:10,softskip,harddup -of lavf -lavfopts format=pal-dv -oac pcm -ovc lavc -lavcopts vcodec=dvvideo:vqscale=0 -o test.dv test.mov
Reading symbols for shared libraries ++++++++++++++++++++++++++++++................................................................................. done
MEncoder SVN-r28904-4.0.1 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x3b3beff9
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [dvcp] 720x576 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x70637664 size:720x576 fps:25.000 ftime:=0.0400
Input fps will be interpreted as 25.000 instead.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [softskip]
Opening video filter: [mcdeint=2:1:10]
Opening video filter: [yadif=3]
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)
==========================================================================
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is 1.37:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=64737664 [dvsd])
[VE_LAVC] Using constant qscale = 0.000000 (VBR).
VIDEO CODEC ID: 25f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
AUDIO CODEC ID: 10000, TAG: 0
Writing header...
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x00000000
0x00559819 in ?? ()
(gdb) bt
#0 0x00559819 in ?? ()
#1 0x000002f0 in ?? ()
Previous frame inner to this frame (gdb could not unwind past this frame)
I'm not experienced with gdb, would need instructions to squeeze
more info out.
TIA
c
--
\black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html
More information about the MEncoder-users
mailing list