[x264-devel] Help Required: Segmentation fault using x264enc
Tejas Shah
tpshah1 at asu.edu
Wed Jan 29 19:25:55 CET 2014
Hello,
Can anyone please help me? I sent my error using this email two weeks ago
but no one helped me?
I am trying to use x264enc on wandboard-dual and I am getting segmentation
fault error. I tried using x264enc on laptop (compiled one) and this works
but the cross-compiled is not working. Here is my error and with help from
freescale community I atleast know from where it is getting error but need
help resolving it.
root at wandboard-dual:~# gst-launch v4l2src num-buffers=500 ! video/x-raw-yuv
! queue ! ffmpegcolorspace ! queue ! x264enc ! matroskamux ! filesink
location=outputh264.mp4 sync=false
Setting pipeline to PAUSED
...
Pipeline is live and does not need PREROLL
...
Setting pipeline to PLAYING
...
New clock:
GstSystemClock
Caught SIGSEGV accessing address
0x915
#0 0x40502bf4 in ??
()
#1 0x40502be4 in ??
()
#2 0x40502be4 in ??
()
Spinning. Please run 'gdb gst-launch 2392' to continue debugging, Ctrl-C
to qui
t, or Ctrl-\ to dump core.
I ran gdb to find what is causing the error:
root at wandboard-dual:/home# gdb
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-poky-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) file gst-launch
Reading symbols from /usr/bin/gst-launch...Reading symbols from
/usr/bin/.debug/
gst-launch...done.
done.
(gdb) run v4l2src num-buffers=500 ! video/x-raw-yuv ! queue !
ffmpegcolorspace !
queue ! x264enc ! matroskamux ! filesink location=outputh264.mp4 sync=false
Starting program: /usr/bin/gst-launch v4l2src num-buffers=500 !
video/x-raw-yuv
! queue ! ffmpegcolorspace ! queue ! x264enc ! matroskamux ! filesink
location=o
utputh264.mp4 sync=false
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
process 1641 is executing new program: /usr/bin/gst-launch-0.10
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Setting pipeline to PAUSED
...
[New Thread 0x4133f460 (LWP
1644)]
[New Thread 0x41b3f460 (LWP
1645)]
[New Thread 0x42695460 (LWP
1646)]
Pipeline is live and does not need PREROLL
...
Setting pipeline to PLAYING
...
New clock:
GstSystemClock
[New Thread 0x438c2460 (LWP
1647)]
[New Thread 0x440c2460 (LWP
1648)]
[New Thread 0x448c2460 (LWP
1649)]
[New Thread 0x45dff460 (LWP
1650)]
Program received signal SIGSEGV, Segmentation
fault.
[Switching to Thread 0x45dff460 (LWP
1650)]
0x40989e6c in x264_vbv_lookahead (keyframe=<optimized
out>,
num_frames=<optimized out>, frames=<optimized out>, a=<optimized
out>,
h=<optimized out>) at
encoder/slicetype.c:1297
warning: Source file is more recent than
executable.
1297 frames[next_nonb]->i_planned_type[idx] =
frames[cur_nonb]->i
_type;
(gdb) bt
#0 0x40989e6c in x264_vbv_lookahead (keyframe=<optimized
out>,
num_frames=<optimized out>, frames=<optimized out>, a=<optimized
out>,
h=<optimized out>) at
encoder/slicetype.c:1297
#1 x264_slicetype_analyse (h=h at entry=0x42edc7d0,
intra_minigop=intra_minigop at entry=1) at
encoder/slicetype.c:1681
#2 0x409bf7e8 in x264_lookahead_slicetype_decide (h=h at entry=0x42edc7d0)
at
encoder/lookahead.c:85
#3 0x409bf8d0 in x264_lookahead_thread
(h=0x42edc7d0)
at
encoder/lookahead.c:113
#4 0x4027106c in start_thread (arg=0x45dff460) at
pthread_create.c:314
#5 0x4035a810 in ?? () at
../ports/sysdeps/unix/sysv/linux/arm/clone.S:97
from
/lib/libc.so.6
#6 0x4035a810 in ?? () at
../ports/sysdeps/unix/sysv/linux/arm/clone.S:97
from
/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt
stack?)
Basically it is the following line that is causing the problem for me:
http://git.videolan.org/?p=x264
.git;a=blob;f=encoder/slicetype.c;h=22b2e914df77b8ec4c0ef91345d99fed4222bcd2;hb=HEAD#l1297
Please help me. I really need to get it working.
--
Tejas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20140129/a39cebe1/attachment.html>
More information about the x264-devel
mailing list