hi,
i try to build on linux with mingw64 toolchain the gstreamer packages.
all build and working fine except gst-ffmpeg. gst-ffmpeg inlude libav as
it's backend. when i try build it on linux with mingw than i use yasm.
it compile and build without any kind of error, but when i try to use it
seg fault immediately.
i've got a older build on windows with mingw64 in cygwin. it's use nasm
for the assembler code. and it's working. but on linux i'm not able to
build with nasm since i always got a compile error (see below).
so my questions:
- can the reason for seg fault that i cross compile it on linux?
- what can be the build problem with yasm or it has nothing to with yasm?
- is it possible to build libav with nasm?
- is it possible to cross compile libav with nasm on linux?
- if yes what kind of parameter should i've to use to build it?
i attached the gdb output for the seg fault.
another problem when i build on x84_64 linux for mingw32 then debug info
always gives CRC mismatch.
error compile with nasm:
------------------------------------
Configuring included Libav instance with args
--prefix=/usr/i686-w64-mingw32/sys-root/mingw --disable-ffserver
--disable-ffplay --disable-ffmpeg --disable-ffprobe
--enable-postproc --enable-gpl --enable-static --enable-pic
--disable-encoder=flac --disable-decoder=cavs --disable-protocols
--disable-devices --disable-network --disable-hwaccels
--disable-filters --disable-doc --enable-optimizations
--enable-cross-compile --target-os=mingw32 --arch=i686
--cross-prefix=i686-w64-mingw32- --enable-memalign-hack
--enable-w32threads --disable-muxer=matroska --disable-demuxer=matroska
--disable-pic
yasm not found, use --disable-yasm for a crippled build
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #libav on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
config.status: error: Failed to configure embedded Libav tree
------------------------------------
thank you for your help in advance.
regards.
--
Levente "Si vis pacem para bellum!"
Pipeline is PREROLLING ...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3440.0x5f0]
0x015b2b12 in clear_blocks_sse (blocks=0xdc8fb8)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/x8
6/dsputil_mmx.c:539
539 /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/x
86/dsputil_mmx.c: No such file or directory.
in /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcode
c/x86/dsputil_mmx.c
(gdb) bt full
#0 0x015b2b12 in clear_blocks_sse (blocks=0xdc8fb8)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/x8
6/dsputil_mmx.c:539
No locals.
#1 0x01426f8e in hl_decode_mb_internal (h=0xd91e80)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:1945
dest_y = <value optimized out>
linesize = 672
block_offset = 0xd94b5c
s = 0xd91e80
mb_x = <value optimized out>
mb_xy = <value optimized out>
uvlinesize = 336
mb_y = <value optimized out>
mb_type = 1
dest_cb = 0xecaf48 '\200' <repeats 200 times>...
dest_cr = 0x2000ae8 '\200' <repeats 200 times>...
#2 hl_decode_mb_simple_8 (h=0xd91e80)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:2060
No locals.
#3 0x014333ea in ff_h264_hl_decode_mb (avctx=0xd54200, arg=0x1fff72c)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:2094
No locals.
#4 ff_h264_hl_decode_mb (avctx=0xd54200, arg=0x1fff72c)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:3377
s = 0xd91e80
mb_xy = <value optimized out>
mb_type = <value optimized out>
is_complex = <value optimized out>
#5 decode_slice (avctx=0xd54200, arg=0x1fff72c)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:3453
ret = <value optimized out>
h = 0xd91e80
s = 0xd91e80
part_mask = 127
lf_x_start = 0
#6 0x01433a49 in execute_decode_slices (h=0xd91e80, context_count=Unhandled dwa
rf expression opcode 0xf3
)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:3575
s = <value optimized out>
avctx = 0xd54200
hx = <value optimized out>
i = <value optimized out>
#7 0x014388b9 in decode_nal_units (h=0xd91e80, buf=0xe17460 "",
buf_size=55836)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:3824
consumed = 55760
dst_length = 55757
bit_length = 446054
i = <value optimized out>
err = 0
ptr = 0xd81f80 "\210\200\b"
nalsize = <value optimized out>
s = 0xd91e80
avctx = 0xd54200
hx = 0xd91e80
buf_index = 55836
context_count = 1
next_avc = 55836
pass = 1
nals_needed = 0
nal_index = 5
#8 0x01438e6e in decode_frame (avctx=0xd54200, data=0xd53d40,
data_size=0x1fff970, avpkt=0x1fff8e8)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/h2
64.c:3899
buf = <value optimized out>
buf_size = 55836
h = 0xd91e80
s = 0xd91e80
pict = 0xd53d40
buf_index = <value optimized out>
#9 0x01308013 in avcodec_decode_video2 (avctx=0xd54200, picture=0xd53d40,
got_picture_ptr=0x1fff970, avpkt=0x1fff8e8)
at /builddir/build/BUILD/gst-ffmpeg-0.10.12/gst-libs/ext/libav/libavcodec/ut
ils.c:691
ret = <value optimized out>
#10 0x01261f88 in gst_ffmpegdec_video_frame (ffmpegdec=0xd51b50,
data=0xe17460 "", size=55836, got_data=0x1fffa30, dec_info=0xd51d08,
ret=0x1fffa34) at ../../../ext/ffmpeg/gstffmpegdec.c:1717
mode_switch = 0
out_offset = <value optimized out>
packet = {pts = 0, dts = 0, data = 0xe17460 "", size = 55836,
stream_index = 0, flags = 0, side_data = 0x0, side_data_elems = 0,
duration = 0, destruct = 0, priv = 0x0, pos = 0,
convergence_duration = 0}
iskeyframe = 0
out_timestamp = <value optimized out>
out_info = <value optimized out>
len = -1
have_data = <value optimized out>
decode = 1
skip_frame = 0
out_duration = <value optimized out>
out_pts = <value optimized out>
#11 _fu174____gst_debug_min (ffmpegdec=0xd51b50, data=0xe17460 "",
size=55836, got_data=0x1fffa30, dec_info=0xd51d08, ret=0x1fffa34)
at ../../../ext/ffmpeg/gstffmpegdec.c:2212
oclass = 0xd50a30
outbuf = 0x0
have_data = 0
len = 0
__FUNCTION__ = "gst_ffmpegdec_frame"
__PRETTY_FUNCTION__ = "gst_ffmpegdec_frame"
#12 0x01266684 in _fu250____gst_debug_min (pad=0xcff1c8, inbuf=0xd21538)
at ../../../ext/ffmpeg/gstffmpegdec.c:2659
tmp_padding = "\000\000\000\001AÜ\000@"
ffmpegdec = 0xd51b50
oclass = 0xd50a30
data = 0xe17460 ""
bdata = 0xd64008 ""
size = 55836
bsize = 14892
len = <value optimized out>
have_data = 4
ret = GST_FLOW_OK
in_timestamp = 40000000
in_duration = 60306048120011308
discont = <value optimized out>
in_offset = -1
in_info = 0xd51da8
dec_info = 0xd51d08
__FUNCTION__ = "gst_ffmpegdec_chain"
#13 0x6b6fa11f in gst_pad_push (pad=0xcff678, buffer=0xd21538)
at ../../gst/gstpad.c:4684
cache = 0xaf34d0
ret = <value optimized out>
cache_ptr = 0xcff73c
peer = <value optimized out>
caps = <value optimized out>
__PRETTY_FUNCTION__ = "gst_pad_push"
#14 0x65f0ab45 in _fu100____gst_debug_min (demux=0xd1a088, ebml=Unhandled dwarf
expression opcode 0xf3
)
at ../../../gst/matroska/matroska-demux.c:5220
sub = 0xd21538
duration = 0
lace_time = 40000000
delta_unit = <value optimized out>
stream = 0xd74200
ret = <value optimized out>
readblock = <value optimized out>
id = 163
block_duration = 0
buf = 0xd21380
stream_num = <value optimized out>
n = <value optimized out>
laces = <value optimized out>
size = <value optimized out>
lace_size = <value optimized out>
time = <value optimized out>
flags = <value optimized out>
referenceblock = 0
offset = 56327
__FUNCTION__ = "gst_matroska_demux_parse_blockgroup_or_simpleblock"
#15 0x65f17388 in _fu352____gst_debug_min (demux=0xd1a088, id=163,
length=14896, needed=3) at ../../../gst/matroska/matroska-demux.c:5853
ebml = {el = 0xd1a088, buf = 0xd21430, offset = 56327,
readers = 0xd23318}
ret = <value optimized out>
read = 14899
__FUNCTION__ = "gst_matroska_demux_parse_id"
#16 0x65f1b125 in _fu432____gst_debug_min (pad=0xcff100)
at ../../../gst/matroska/matroska-demux.c:6004
demux = 0xd1a088
ret = GST_FLOW_OK
id = 163
length = 14896
needed = 3
__FUNCTION__ = "gst_matroska_demux_loop"
#17 0x6b71fbb8 in gst_task_func (task=0xd25030) at ../../gst/gsttask.c:318
lock = 0xcf5ea0
tself = 0xd63420
priv = 0xd25080
__PRETTY_FUNCTION__ = "gst_task_func"
#18 0x6861417a in ?? ()
from c:\Program Files\Vidux5\gstreamer\bin\libglib-2.0-0.dll
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools