New submission from burek <[email protected]>: Hi,
I've compiled libx264 and libaacplus (the latest versions) with -- enable-shared and I've also downloaded the latest ffmpeg from git and patched it for libaacplus (from tipok) and compiled ffmpeg with: ./configure --enable-pthreads --enable-runtime-cpudetect --enable-gpl -- enable-shared --disable-static --enable-libaacplus --enable-libx264 -- enable-nonfree I've configured my ffserver with: [code] Port 9999 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000 CustomLog - NoDaemon <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 2M ACL allow 127.0.0.1 ACL allow 192.168.0.0 192.168.0.255 </Feed> <Stream test.mp4> Feed feed1.ffm Format mp4 AudioBitRate 32 AudioChannels 2 AudioSampleRate 44100 VideoBitRate 200 VideoFrameRate 5 VideoSize cif AudioCodec libaacplus VideoCodec libx264 </Stream> <Stream stat.html> Format status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 </Stream> <Redirect index.html> URL http://www.ffmpeg.org/ </Redirect> [/code] and here is the result of running ffserver: ffserver -f /etc/ffserver.conf FFserver version git-caf835c, Copyright (c) 2000-2010 the FFmpeg developers built on Dec 29 2010 21:09:50 with gcc 4.4.5 configuration: --enable-pthreads --enable-runtime-cpudetect --enable- gpl --enable-shared --disable-static --enable-libaacplus --enable- libx264 --enable-nonfree libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 0 / 0.16. 0 libavcodec 52.101. 0 / 52.101. 0 libavformat 52.91. 0 / 52.91. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.72. 0 / 1.72. 0 libswscale 0.12. 0 / 0.12. 0 Wed Dec 29 21:14:42 2010 Deleting feed file '/tmp/feed1.ffm' as it appears to be corrupt Wed Dec 29 21:14:42 2010 FFserver started. now, I've started ffmpeg like: ffmpeg -f video4linux2 -s cif -i /dev/video0 http://localhost:9999/feed1.ffm and I've got this: in ffserver: Wed Dec 29 21:15:51 2010 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4149 Wed Dec 29 21:15:51 2010 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 0 in ffmpeg: # ffmpeg -f video4linux2 -s cif -i /dev/video0 http://localhost:9999/feed1.ffm FFmpeg version git-caf835c, Copyright (c) 2000-2010 the FFmpeg developers built on Dec 29 2010 21:09:50 with gcc 4.4.5 configuration: --enable-pthreads --enable-runtime-cpudetect --enable- gpl --enable-shared --disable-static --enable-libaacplus --enable- libx264 --enable-nonfree libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 0 / 0.16. 0 libavcodec 52.101. 0 / 52.101. 0 libavformat 52.91. 0 / 52.91. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.72. 0 / 1.72. 0 libswscale 0.12. 0 / 0.12. 0 [video4linux2 @ 0x8e984c0] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1293653750.704258, bitrate: N/A Stream #0.0: Video: rawvideo, yuv420p, 352x288, -2147483 kb/s, 1000k tbr, 1000k tbn, 1000k tbc Output #0, ffm, to 'http://localhost:9999/feed1.ffm': Stream #0.0: Audio: libaacplus, 44100 Hz, 2 channels, s16, 32 kb/s Stream #0.1: Video: libx264, yuv420p, 352x288, q=2-31, 200 kb/s, 1000k tbn, 5 tbc Could not find input stream matching output stream #0.0 *** glibc detected *** ffmpeg: double free or corruption (!prev): 0x08ea1080 *** ======= Backtrace: ========= /lib/i686/cmov/libc.so.6(+0x6b281)[0xb6b36281] /lib/i686/cmov/libc.so.6(+0x6cad8)[0xb6b37ad8] /lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb6b3abbd] ffmpeg[0x804c3a2] ======= Memory map: ======== 08048000-0805f000 r-xp 00000000 08:01 3738044 /usr/local/bin/ffmpeg 0805f000-08060000 rw-p 00016000 08:01 3738044 /usr/local/bin/ffmpeg 08060000-08061000 rw-p 00000000 00:00 0 08e8f000-08eb0000 rw-p 00000000 00:00 0 [heap] b6300000-b6321000 rw-p 00000000 00:00 0 b6321000-b6400000 ---p 00000000 00:00 0 b64c9000-b64e6000 r-xp 00000000 08:01 7102467 /lib/libgcc_s.so.1 b64e6000-b64e7000 rw-p 0001c000 08:01 7102467 /lib/libgcc_s.so.1 b64e7000-b64f1000 r-xp 00000000 08:01 7120226 /lib/i686/cmov/libnss_files-2.11.2.so b64f1000-b64f2000 r--p 00009000 08:01 7120226 /lib/i686/cmov/libnss_files-2.11.2.so b64f2000-b64f3000 rw-p 0000a000 08:01 7120226 /lib/i686/cmov/libnss_files-2.11.2.so b64f3000-b6519000 rw-s 0049a000 00:05 2907 /dev/video0 b6519000-b653f000 rw-s 00474000 00:05 2907 /dev/video0 b653f000-b6565000 rw-s 0044e000 00:05 2907 /dev/video0 b6565000-b658b000 rw-s 00428000 00:05 2907 /dev/video0 b658b000-b65b1000 rw-s 00402000 00:05 2907 /dev/video0 b65b1000-b65d7000 rw-s 003dc000 00:05 2907 /dev/video0 b65d7000-b65fd000 rw-s 003b6000 00:05 2907 /dev/video0 b65fd000-b6623000 rw-s 00390000 00:05 2907 /dev/video0 b6623000-b6649000 rw-s 0036a000 00:05 2907 /dev/video0 b6649000-b666f000 rw-s 00344000 00:05 2907 /dev/video0 b666f000-b6695000 rw-s 0031e000 00:05 2907 /dev/video0 b6695000-b66bb000 rw-s 002f8000 00:05 2907 /dev/video0 b66bb000-b66e1000 rw-s 002d2000 00:05 2907 /dev/video0 b66e1000-b6707000 rw-s 002ac000 00:05 2907 /dev/video0 b6707000-b672d000 rw-s 00286000 00:05 2907 /dev/video0 b672d000-b6753000 rw-s 00260000 00:05 2907 /dev/video0 b6753000-b6779000 rw-s 0023a000 00:05 2907 /dev/video0 b6779000-b679f000 rw-s 00214000 00:05 2907 /dev/video0 b679f000-b67c5000 rw-s 001ee000 00:05 2907 /dev/video0 b67c5000-b67eb000 rw-s 001c8000 00:05 2907 /dev/video0 b67eb000-b6811000 rw-s 001a2000 00:05 2907 /dev/video0 b6811000-b6837000 rw-s 0017c000 00:05 2907 /dev/video0 b6837000-b685d000 rw-s 00156000 00:05 2907 /dev/video0 b685d000-b6883000 rw-s 00130000 00:05 2907 /dev/video0 b6883000-b68a9000 rw-s 0010a000 00:05 2907 /dev/video0 b68a9000-b68cf000 rw-s 000e4000 00:05 2907 /dev/video0 b68cf000-b68f5000 rw-s 000be000 00:05 2907 /dev/video0 b68f5000-b691b000 rw-s 00098000 00:05 2907 /dev/video0 b691b000-b6941000 rw-s 00072000 00:05 2907 /dev/video0 b6941000-b6967000 rw-s 0004c000 00:05 2907 /dev/video0 b6967000-b698d000 rw-s 00026000 00:05 2907 /dev/video0 b698d000-b69b3000 rw-s 00000000 00:05 2907 /dev/video0 b69b3000-b69b5000 rw-p 00000000 00:00 0 b69b5000-b69e0000 r-xp 00000000 08:01 3738006 /usr/local/lib/libaacplus.so.2.0.2 b69e0000-b69e1000 rw-p 0002a000 08:01 3738006 /usr/local/lib/libaacplus.so.2.0.2 b69e1000-b6ac3000 r-xp 00000000 08:01 3738022 /usr/local/lib/libx264.so.112 b6ac3000-b6ac4000 rw-p 000e1000 08:01 3738022 /usr/local/lib/libx264.so.112 b6ac4000-b6acb000 rw-p 00000000 00:00 0 b6acb000-b6c0b000 r-xp 00000000 08:01 7120228 /lib/i686/cmov/libc- 2.11.2.so b6c0b000-b6c0d000 r--p 0013f000 08:01 7120228 /lib/i686/cmov/libc- 2.11.2.so b6c0d000-b6c0e000 rw-p 00141000 08:01 7120228 /lib/i686/cmov/libc- 2.11.2.so b6c0e000-b6c11000 rw-p 00000000 00:00 0 b6c11000-b6c26000 r-xp 00000000 08:01 7120217 /lib/i686/cmov/libpthread-2.11.2.so b6c26000-b6c27000 r--p 00014000 08:01 7120217 /lib/i686/cmov/libpthread-2.11.2.so b6c27000-b6c28000 rw-p 00015000 08:01 7120217 /lib/i686/cmov/libpthread-2.11.2.so b6c28000-b6c2a000 rw-p 00000000 00:00 0 b6c2a000-b6c4e000 r-xp 00000000 08:01 7120212 /lib/i686/cmov/libm- 2.11.2.so b6c4e000-b6c4f000 r--p 00023000 08:01 7120212 /lib/i686/cmov/libm- 2.11.2.so b6c4f000-b6c50000 rw-p 00024000 08:01 7120212 /lib/i686/cmov/libm- 2.11.2.so b6c50000-b6c51000 rw-p 00000000 00:00 0 b6c51000-b6c67000 r-xp 00000000 08:01 3738042 /usr/local/lib/libavutil.so.50.36.0 b6c67000-b6c68000 rw-p 00016000 08:01 3738042 /usr/local/lib/libavutil.so.50.36.0 b6c68000-b6c6b000 rw-p 00000000 00:00 0 b6c6b000-b6c70000 r-xp 00000000 08:01 3738039 /usr/local/lib/libavcore.so.0.16.0 b6c70000-b6c71000 rw-p 00004000 08:01 3738039 /usr/local/lib/libavcore.so.0.16.0 b6c71000-b6ccf000 r-xp 00000000 08:01 3738036 /usr/local/lib/libswscale.so.0.12.0 b6ccf000-b6cd0000 rw-p 0005e000 08:01 3738036 /usr/local/lib/libswscale.so.0.12.0 b6cd0000-b7258000 r-xp 00000000 08:01 3738033 /usr/local/lib/libavcodec.so.52.101.0 b7258000-b7263000 rw-p 00588000 08:01 3738033 /usr/local/lib/libavcodec.so.52.101.0 b7263000-b7793000 rw-p 00000000 00:00 0 b7793000-b7876000 r-xp 00000000 08:01 3738030 /usr/local/lib/libavformat.so.52.91.0 b7876000-b787d000 rw-p 000e3000 08:01 3738030 /usr/local/lib/libavformat.so.52.91.0 b787d000-b787e000 rw-p 00000000 00:00 0 b787e000-b7894000 r-xp 00000000 08:01 3738027 /usr/local/lib/libavfilter.so.1.72.0 b7894000-b7897000 rw-p 00015000 08:01 3738027 /usr/local/lib/libavfilter.so.1.72.0 b7897000-b789f000 r-xp 00000000 08:01 3738024 /usr/local/lib/libavdevice.so.52.2.2 b789f000-b78a0000 rw-p 00007000 08:01 3738024 /usr/local/lib/libavdevice.so.52.2.2 b78a4000-b78a6000 rw-p 00000000 00:00 0 b78a6000-b78a7000 r-xp 00000000 00:00 0 [vdso] b78a7000-b78c2000 r-xp 00000000 08:01 7102489 /lib/ld-2.11.2.so b78c2000-b78c3000 r--p 0001a000 08:01 7102489 /lib/ld-2.11.2.so b78c3000-b78c4000 rw-p 0001b000 08:01 7102489 /lib/ld-2.11.2.so bfb14000-bfb29000 rw-p 00000000 00:00 0 [stack] Aborted Any help? :/ ---------- messages: 13115 priority: normal status: new substatus: new title: ffmpeg crashes when trying to stream to ffserver with libx264+libaacplus type: bug ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2464> ________________________________________________
