Public bug reported: Binary package hint: ffmpeg
I have Ubuntu 8.04, 64 bit edition. Normally, any unix program should return 0 when it finished without errors. But when I run "ffmpeg -version", return code is 1. Similar, when I run "ffmpeg -formats" it also return 1. This bug is fixed in latest svn version and in Ubuntu 9.04. n...@omd1:~$ ffmpeg -version FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr libavutil version: 1d.49.3.0 libavcodec version: 1d.51.38.0 libavformat version: 1d.51.10.0 built on Mar 16 2009 21:19:49, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) ffmpeg SVN-rUNKNOWN libavutil 3212032 libavcodec 3352064 libavformat 3344896 n...@omd1:~$ echo $? 1 n...@omd1:~$ aptitude show ffmpeg Package: ffmpeg State: installed Automatically installed: yes Version: 3:0.cvs20070307-5ubuntu7.3 Priority: optional Section: universe/graphics Maintainer: Ubuntu MOTU Developers <ubuntu-m...@lists.ubuntu.com> Uncompressed Size: 705k Depends: libavcodec1d (>= 0.cvs20070307), libavformat1d (>= 0.cvs20070307), libavutil1d (>= 0.cvs20070307), libc6 (>= 2.7), libfreetype6 (>= 2.3.5), libimlib2, libsdl1.2debian (>= 1.2.10-1), libswscale1d (>= 0.cvs20070307) Description: multimedia player, server and encoder 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...). n...@omd1:~$ Looking to the source code of ffmpeg (that I get with apt-src) I found , that the problem is in show_version() and similar info functions. They print necessary information and than there is "exit(1)". It is very easy to fix this bug! ** Affects: ffmpeg (Ubuntu) Importance: Undecided Status: New -- FFMpeg exits with non-zero code when it is asked for version or supported formats https://bugs.launchpad.net/bugs/380165 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