SOLVED: see point B!
Originally Posted by
FakeOutdoorsman
Are you using Ubuntu 11.10?
Did you get the segmentation fault with "ffmpeg" from the repository? Can you provide a sample so I can attempt to duplicate the segmentation fault? Also provide the complete console output that includes the seg fault.
Hello and thank you so much for your quick reply!
So I divide my question into two points:
A) Segmentation fault:
Yes I'm using Ubuntu 11.10 ... actually lubuntu oneiric flavour
Code:
$ uname -a
Linux my-pc 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 2012 i686 i686 i386 GNU/Linux
To reproduce the segmentation fault:
1. I started removing everything I've installed following your (very nice) guide, to install them again from the repository
Code:
$ sudo apt-get remove ffmpeg x264 libx264-dev
$ sudo apt-get install ffmpeg x264 libx264-dev
Which gave me the following versions of:
ffmpeg
Code:
$ dpkg -s ffmpeg
Package: ffmpeg
Status: install ok installed
Priority: optional
Section: video
Installed-Size: 1340
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: libav
Version: 4:0.7.3-0ubuntu0.11.10.1
Replaces: libavcodec-extra-53 (<< 4:0.6~), libavcodec53 (<< 4:0.7.3-0ubuntu0.11.10.1)
Depends: libavcodec53 (>= 4:0.7.3-0ubuntu0.11.10.1) | libavcodec-extra-53 (>= 4:0.7.3), libavcodec53 (<< 4:0.7.3-99) | libavcodec-extra-53 (<< 4:0.7.3.99), libavdevice53 (>= 4:0.7.3-0ubuntu0.11.10.1) | libavdevice-extra-53 (>= 4:0.7.3), libavdevice53 (<< 4:0.7.3-99) | libavdevice-extra-53 (<< 4:0.7.3.99), libavfilter2 (>= 4:0.7.3-0ubuntu0.11.10.1) | libavfilter-extra-2 (>= 4:0.7.3), libavfilter2 (<< 4:0.7.3-99) | libavfilter-extra-2 (<< 4:0.7.3.99), libavformat53 (>= 4:0.7.3-0ubuntu0.11.10.1) | libavformat-extra-53 (>= 4:0.7.3), libavformat53 (<< 4:0.7.3-99) | libavformat-extra-53 (<< 4:0.7.3.99), libavutil51 (>= 4:0.7.3-0ubuntu0.11.10.1) | libavutil-extra-51 (>= 4:0.7.3), libavutil51 (<< 4:0.7.3-99) | libavutil-extra-51 (<< 4:0.7.3.99), libc6 (>= 2.7), libpostproc52 (>= 4:0.7.3-0ubuntu0.11.10.1) | libpostproc-extra-52 (>= 4:0.7.3), libpostproc52 (<< 4:0.7.3-99) | libpostproc-extra-52 (<< 4:0.7.3.99), libsdl1.2debian (>= 1.2.10-1), libswscale2 (>= 4:0.7.3-0ubuntu0.11.10.1) | libswscale-extra-2 (>= 4:0.7.3), libswscale2 (<< 4:0.7.3-99) | libswscale-extra-2 (<< 4:0.7.3.99)
Conflicts: ffprobe
Conffiles:
/etc/ffserver.conf d4d0a77d594735af0d92e12e2b74aa15
Description: Multimedia player, server, encoder and transcoder
This package contains the ffplay multimedia player, the ffserver streaming
server and the ffmpeg audio and video encoder. They support most existing
file formats (AVI, MPEG, OGG, Matroska, ASF...) and encoding formats (MPEG,
DivX, MPEG4, AC3, DV...).
Homepage: http://libav.org/
Original-Maintainer: Debian multimedia packages maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
x264
Code:
$ dpkg -s x264
Package: x264
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 656
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Version: 2:0.116.2042+git178455c-1ubuntu1
Replaces: x264-bin
Depends: libavutil51 (>= 4:0.7-1) | libavutil-extra-51 (>= 4:0.7-1), libc6 (>= 2.7), libffms2-2, libswscale2 (>= 4:0.7-1) | libswscale-extra-2 (>= 4:0.7-1), libx264-116
Conflicts: x264-bin
Description: video encoder for the H.264/MPEG-4 AVC standard
x264 is an advanced commandline encoder for creating H.264 (MPEG-4 AVC)
video streams.
.
x264 supports the following features:
* CABAC (context-based adaptive binary arithmetic coding) and CAVLC
(context-based adaptive variable length coding
* multiple reference frames
* 16x16, 8x8 and 4x4 intra-predicted macroblocks
* all P-frame inter-predicted macroblock types
* B-Inter-predicted macroblock types from 16x16 down to 8x8
* rate distortion optimization
* multiple rate control modes (constant quantizer, constant quality, single
or multipass ABR with the option of VBV)
* scene cut detection
* adaptive B-frame placement, with the option of keeping B-frames as
references / arbitrary frame order
* 8x8 and 4x4 adaptive spatial transform (high profile)
* lossless mode (high 4:4:4 profile)
* custom quantization matrices (high profile)
* parallel encoding on multiple CPUs
* interlaced streams
Original-Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Homepage: http://www.videolan.org/developers/x264.html
libx264-dev
Code:
$ dpkg -s libx264-dev
Package: libx264-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 1324
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: x264
Version: 2:0.116.2042+git178455c-1ubuntu1
Depends: libx264-116 (= 2:0.116.2042+git178455c-1ubuntu1)
Description: development files for libx264
libx264 is an advanced encoding library for creating H.264 (MPEG-4 AVC)
video streams.
.
This package contains the static library and headers used to build programs
that use libx264.
Original-Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Homepage: http://www.videolan.org/developers/x264.html
2. You can download a sample of the video I'm trying to convert here it's a file of about 9 Mb.
3. I'm trying to convert it using the following command
Code:
$ ffmpeg -i "sample.mp4" -ar 44100 -ac 2 -ab 192k -acodec libmp3lame -s 1280x544 -vcodec libxvid -r 23.98 -b 2500k "output.avi"
I get the following error
Code:
ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
built on Jan 4 2012 16:21:50 with gcc 4.6.1
configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
WARNING: library configuration mismatch
avutil configuration: --extra-version='4:0.7.3ubuntu0.11.10.1+medibuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
avcodec configuration: --extra-version='4:0.7.3ubuntu0.11.10.1+medibuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
avformat configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
avdevice configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
avfilter configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
swscale configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
postproc configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libavutil 51. 7. 0 / 51. 7. 0
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 3. 0 / 53. 3. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 52. 0. 0 / 52. 0. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2011-04-20 03:55:11
encoder : HandBrake 0.9.5 2011010300
Duration: 00:00:30.03, start: 0.000000, bitrate: 2530 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x544, 2141 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
creation_time : 2011-04-20 03:55:11
Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 383 kb/s
Metadata:
creation_time : 2011-04-20 03:55:11
[buffer @ 0x89fb020] w:1280 h:544 pixfmt:yuv420p
Output #0, avi, to 'output.avi':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2011-04-20 03:55:11
ISFT : Lavf53.3.0
Stream #0.0(und): Video: mpeg4, yuv420p, 1280x544, q=2-31, 2500 kb/s, 23.98 tbn, 23.98 tbc
Metadata:
creation_time : 2011-04-20 03:55:11
Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 192 kb/s
Metadata:
creation_time : 2011-04-20 03:55:11
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Segmentation Fault
B) Following your howto:
Why --enable-shared ? you asked ..
The only params changing from your guide are --enable-shared --enable-libgsm --enable-libxvid .. actually the only one I really need is libxvid so I discarded the others and recompiled ffmpeg.
So following your guide I completed point 1 (with sudo apt-get autoremove too), 2, 3, 4 and 5 (installing ffmpeg) with
Code:
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --enable-libxvid --enable-libvpx
and then everything went ok!
So now I can convert my sample.mp4 with the same command as above! (see point A.3)
So you were right: the problem was --enable-shared!
Thank you very much for your support!
Bookmarks