[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
The problem with changing MAX_STREAMS is that this breaks binary compatibility of libavformat, which means we cannot do this change in ubuntu. This needs solving upstream. ** Also affects: ffmpeg via https://roundup.ffmpeg.org/roundup/ffmpeg/issue963 Importance: Unknown Status: Unknown ** Changed in: ffmpeg (Ubuntu) Status: New = Triaged ** Changed in: ffmpeg (Ubuntu) Importance: Undecided = Low ** Summary changed: - ffmpeg -i crashes with segmentation fault + libavformat doesn't handle containers with 20 streams -- libavformat doesn't handle containers with 20 streams https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
Encountered a similar issue today that was corrected with information from ffmpeg issue 963: https://roundup.ffmpeg.org/roundup/ffmpeg/issue963 The input mkv I was working with had 20 streams; changing MAX_STREAMS to 64 in libavformat/avformat.h in a recent checkout and rebuilding corrected the issue. ** Bug watch added: roundup.ffmpeg.org/roundup/ffmpeg/ #963 https://roundup.ffmpeg.org/roundup/ffmpeg/issue963 -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
Trying apt-get build-dep ffmpeg-debian apt-get source ffmpeg-debian cd ffmpeg-debian* make -f debian/rules build-stamp-shared I got make -f debian/rules build-stamp-shared Building FFmpeg for flavors: static shared DEB_BUILD_OPTIONS are: Using as CFLAGS: make: *** No rule to make target `build-stamp-shared'. Stop. Instead, I tried: make -f debian/rules build-stamp what gave me then much more output when debugging with gdb (see attachement) 'ffmpeg --version' on the ubuntu ffmpeg binary gives me: FFmpeg version r11872+debian_3:0.svn20080206-12ubuntu3, Copyright (c) 2000-2008 Fabrice Bellard, et al. 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 ffmpeg: missing argument for option '--version' Anything else I can do? ** Attachment added: gdb output http://launchpadlibrarian.net/20049602/gdb.txt -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
Hmm... is it possible that thesegfault bug was somehow 'fixed' in the SVN, and instead e new bug with this memory allocation error was introduced? Should I compile the old version directly from SVN to see if it makes some difference with what compile flags for example the ubuntu deb was compiled? -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301723] Re: ffmpeg -i crashes with segmentation fault
Jan Rüegg [EMAIL PROTECTED] writes: Hmm... is it possible that thesegfault bug was somehow 'fixed' in the SVN, and instead e new bug with this memory allocation error was introduced? That's pretty well possible. Should I compile the old version directly from SVN to see if it makes some difference with what compile flags for example the ubuntu deb was compiled? That would indeed be interesting. To get the source from the ubuntu package: apt-get build-dep ffmpeg-debian apt-get source ffmpeg-debian cd ffmpeg-debian* make -f debian/rules build-stamp-shared then you should have ffmpeg_g in the subdirectory 'debian-shared' and can continue with the bug reporting guidelines from the ffmpeg.org website. To learn the version and the configure flags used in the ubuntu version of ffmpeg issue 'ffmpeg --version' on the ubuntu ffmpeg binary. -- Gruesse/greetings, Reinhard Tartler, KeyID 945348A4 -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
Ok, I compiled now from SVN with the default options (./configure without arguments). I get: [EMAIL PROTECTED]:~/linux/ffmpeg$ ffmpeg -i /media/Synology/The\ Matrix\ -\ HD\ 720p\ x264.mkv FFmpeg version SVN-r15935, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: libavutil 49.12. 0 / 49.12. 0 libavcodec52. 3. 0 / 52. 3. 0 libavformat 52.23. 1 / 52.23. 1 libavdevice 52. 1. 0 / 52. 1. 0 built on Nov 25 2008 17:23:31, gcc: 4.3.2 /media/Synology/The Matrix - HD 720p x264.mkv: memory allocation error occurred Cutting down the file into a smaller as described on the link makes the recognition work, so I cannot provide a sample file: [EMAIL PROTECTED]:~$ dd if=/media/Synology/The\ Matrix\ -\ HD\ 720p\ x264.mkv of=/home/jan/Desktop/sample-file.mkv bs=1024 count=1 1+0 records in 1+0 records out 1024 bytes (10 MB) copied, 4.33087 s, 2.4 MB/s [EMAIL PROTECTED]:~$ file -i /home/jan/Desktop/sample-file.mkv /home/jan/Desktop/sample-file.mkv: application/octet-stream But that means, it must be the big size of the file, that causes the problem (ffmpeg -i on all the other files in my media library worked). Now the desired gdb ffmpeg_g output: [EMAIL PROTECTED]:~/linux/ffmpeg$ gdb ffmpeg_g GNU gdb 6.8-debian Copyright (C) 2008 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 x86_64-linux-gnu... (gdb) r -i '/media/Synology/The Matrix - HD 720p x264.mkv' Starting program: /home/jan/linux/ffmpeg/ffmpeg_g -i '/media/Synology/The Matrix - HD 720p x264.mkv' FFmpeg version SVN-r15935, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: libavutil 49.12. 0 / 49.12. 0 libavcodec52. 3. 0 / 52. 3. 0 libavformat 52.23. 1 / 52.23. 1 libavdevice 52. 1. 0 / 52. 1. 0 built on Nov 25 2008 17:23:31, gcc: 4.3.2 /media/Synology/The Matrix - HD 720p x264.mkv: memory allocation error occurred Program exited with code 01. (gdb) bt No stack. (gdb) disass $pc-32 $pc+32 No registers. (gdb) info all-registers The program has no registers now. (Didn't seem to work very well though, as the registers are all empty... Maybe a 64-bit problem?) --- If you need any more information, please tell me! ** Changed in: ffmpeg (Ubuntu) Status: Incomplete = New -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
that is pretty surprising. Your initial report contained a segmentation fault, while your last comment indicates an out of memory situation. That is, well, confusing at best, I'd say. -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
** Attachment added: console output of the command http://launchpadlibrarian.net/19907031/crashlog.txt -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301723] Re: ffmpeg -i crashes with segmentation fault
I'm sorry, but the console output is not helpful at all for diagnosing this problem. Please see http://ffmpeg.org/bugreports.html for guidelines how to submit useful bug reports. also consider compiling ffmpeg from svn and report your results. ** Changed in: ffmpeg (Ubuntu) Status: New = Incomplete -- ffmpeg -i crashes with segmentation fault https://bugs.launchpad.net/bugs/301723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs