ffmpeg crashes by segmentation fault while encoding many jpeg files from stdin to movie
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ffmpeg (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: ffmpeg
Hi,
ffmpeg (r11872+
Sincerely yours
Alexander Thomas
ffmpeg version: r11872+
uname -a: Linux hostname 2.6.27-12-generic #1 SMP Thu Feb 5 09:26:42 UTC 2009 x86_64 GNU/Linux
lsb_release -rd:
Description: Ubuntu 8.10
Release: 8.10
CPU: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
RAM: 4GB
Command Line: /usr/bin/ffmpeg -threads 3 -f mjpeg -i - -vcodec libxvid -r 25 -passlogfile videos/
Output:
FFmpeg version r11872+
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libfaad --enable-libfaadbin --enable-liba52 --enable-liba52bin --enable-libdc1394 --enable-shared --disable-static
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Oct 3 2008 22:41:23, gcc: 4.3.2
Input #0, mjpeg, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 720x406 [PAR 72:72 DAR 360:203], 25.00 tb(r)
Output #0, rawvideo, to '/dev/null':
Stream #0.0: Video: libxvid (hq), yuv420p, 720x406 [PAR 1:1 DAR 360:203], q=2-31, pass 1, 2000 kb/s, 25.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
--- 8< ---
Many, many useless lines....
--- >8 ---
frame=19229 fps= 84 q=2.0 size= 0kB time=769.2 bitrate= 0.0kbits/s
Segmentation fault
dmesg:
[126846.494668] ffmpeg[7717]: segfault at 0 ip 00007feae3eb31c2 sp 00007fffed86cf18 error 4 in libc-2.
Reproduceable (tried on):
Codec: mpeg4, libxvid
Codec-Packages: normal and unstripped
FPS: 25
Bite rate: 800, 800k, 1200k, 2000k and 2400k
Container format: avi and mp4
Threads: any also if not supplied
mbd: any also if not supplied
Solved:
Using svn checkout of current version (1/3/2009 2:00pm UTC).
Source images:
identify frame-0001.jpg:
frame-0001.jpg JPEG 720x406 720x406+0+0 DirectClass 8-bit 76.9961kb
Count: 85784 files in 84 subdirectories.
Mean file size: 70091.5 bytes
Biggest file: 110814 bytes
Additional informations:
Frame source (source of jpeg stream) is a Perl open-pipe-
open(my $ffmpegFD,
Streaming of the jpeg files:
open(my $frameFD, $frame) || die("Could not open frame for reading: $!\n");
binmode(
while( read($frameFD, $buffer, 1024**2) && print $ffmpegFD ($buffer) ) {}
Debug informations were attached on file...
this looks pretty similar to http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 561553