Menu

#78 Cannot export video on Ubuntu 14.04

v1.0
closed-fixed
nobody
None
5
2018-09-23
2014-06-02
No

I have installed Imagination 3.0-3 on Ubuntu 14.04. Whenever I got to Slideshow > Export I get the following error:

Failed to launch the encoder!
Failed to execute child process "ffmpeg" (No such file or directory).

ffmpeg was removed from the repositories on Ubuntu 14.04. Is there a way to make Imagination use libav instead?

Related

Bugs: #78

Discussion

  • ioannis

    ioannis - 2014-06-09

    same problem here ..iam using lubuntu 14.04 ,,,what can we do to fix it ??

     
  • Giuseppe Torelli

    You can help me :) I use Mint and I can't find libav. What is the name of the executable that replaced ffmpeg?

     
  • Giuseppe Torelli

    Ok, found it. Avconv. I need to know if the syntax is the same. Can you guys help me? I will release an updated version with all the patches I received along those years.

     
  • Anonymous

    Anonymous - 2014-07-15

    is there any update on this as imagination - Mint17 still doesnt work
    still receive the child process error - does anyone no how to make it work with avconv

     
  • Andy Wade

    Andy Wade - 2014-07-16

    I'm having the same problem: "Failed to execute child process "ffmpeg" (No such file or directory)."

    Ubuntu 14.04 plugins and program up to date.
    Imagination 3.10-R1

    Installed and re-installed program and plug-ins to no avail.

     

    Last edit: Andy Wade 2014-07-16
  • Giuseppe Torelli

    Please guys stop complaining. I know about the bug.

    As I wrote above can anyone tell me what are the equivalent switches for avconv to be used the same as ffmpeg?

    This way I can release a new version in a few days.

    Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.

     
    • hellocatfood

      hellocatfood - 2014-07-16

      What switches do you usually use when exporting video using ffmpeg? I can help convert it to avconv

       
  • Giuseppe Torelli

     
    • hellocatfood

      hellocatfood - 2014-07-18

      From what I can tell you should be able to replace ffmpeg with avconv.

      However, there's one switch you use that isn't explained in the comments:

      "%s " / ffmpeg option /

      What does this do?

       
    • Theppitak Karoonboonyanan

      My workaround was to create /usr/bin/ffmpeg -> avconv symlink and it works for VOB and FLV exports. So, I just replace ffmpeg with avconv in the source with the attached patch, and it works so.

      Exceptions are OGV and 3GP exports with libav-tools 10.2 on Debian.

      For OGV, the message on the terminal says:
      ---8<---
      avconv version 10.2-6:10.2-2, Copyright (c) 2000-2014 the Libav developers
      built on Jul 20 2014 19:01:23 with gcc 4.9 (Debian 4.9.1-1)
      [image2pipe @ 0xd71f00] Estimating duration from bitrate, this may be inaccurate
      Input #0, image2pipe, from 'pipe:':
      Duration: N/A, bitrate: N/A
      Stream #0.0: Video: ppm, rgb24, 640x480, 30 fps, 30 tbn
      [flac @ 0xd7c060] max_analyze_duration reached
      Input #1, flac, from '/tmp/img_audio_fifo':
      Duration: 00:03:07.97, bitrate: N/A
      Stream #1.0: Audio: flac, 44100 Hz, stereo, s16
      [libvorbis @ 0xd9fac0] encoder setup failed
      Output #0, ogg, to '/home/thep/test.ogv':
      Stream #0.0: Video: libtheora, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 1024 kb/s, 90k tbn, 30 tbc
      Stream #0.1: Audio: libvorbis, 44100 Hz, stereo, fltp, 1024 kb/s
      Stream mapping:
      Stream #0:0 -> #0:0 (ppm -> libtheora)
      Stream #1:0 -> #0:1 (flac -> libvorbis)
      Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
      ---8<---

      And the exporting dialog progresses til the end, with the zero-byte test.ogv output.

      For 3GP, the message says:
      ---8<---
      avconv version 10.2-6:10.2-2, Copyright (c) 2000-2014 the Libav developers
      built on Jul 20 2014 19:01:23 with gcc 4.9 (Debian 4.9.1-1)
      [image2pipe @ 0x1751f20] Estimating duration from bitrate, this may be inaccurate
      Input #0, image2pipe, from 'pipe:':
      Duration: N/A, bitrate: N/A
      Stream #0.0: Video: ppm, rgb24, 704x576, 25 fps, 25 tbn
      [flac @ 0x175bfc0] max_analyze_duration reached
      Input #1, flac, from '/tmp/img_audio_fifo':
      Duration: 00:03:07.97, bitrate: N/A
      Stream #1.0: Audio: flac, 44100 Hz, stereo, s16
      Unknown encoder 'libfaac'
      ---8<---

      And there is no output file at all.

       
      • Theppitak Karoonboonyanan

        The problem can be solved for 3GP by using either 'aac' or 'libvo_aacenc' acodec, as 'libfaac' codec has been disabled in Ubuntu/Debian, as answered here:

        http://stackoverflow.com/questions/19774975/unknown-encoder-libfaac-ubuntu-12-04-and-ruby-on-rails-3

        I've tried both, and they both work. So, I just pick the experimental 'aac' arbitrarily.

        The updated patch is attached. The problem left is for OGV export.

         
        • Theppitak Karoonboonyanan

          OK. The problem with OGV is that it tries to encode audio with the same bitrate as video. So, libvorbis fails to setup. Distinguishing it with ":v" prefix helps.

          Updated patch is attached. All formats work now.

           
          • Theppitak Karoonboonyanan

            Note: This patch may not be necessary for Debian, as FFmpeg may be reintroduced to the distribution. See the (long) discussion here:
            http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729203

            Having studied more about this issue, I find myself deceived by Debian's transition to LibAV that FFmpeg had been renamed, while it was actually forked. That's why my patch appears so aggressive. The port should be more complicated than that.

             
  • Andy Wade

    Andy Wade - 2014-07-21

    Sorry to be ignorant on this issues, but how do I go about replacing ffmpeg with avconv in the source with the attached patch? I've downloaded the patch, now what? Thanks for your help.

     
    • Theppitak Karoonboonyanan

      • Get imagination 3.0 source tarball and extract it.
      • Apply the patch:
        $ cd imagination-3.0
        $ patch -p1 < /path/to/30_avconv_port.patch
      • Build it.

      Alternatively, I've built debs for Debian sid amd64 here:
      http://people.debian.org/~thep/

       
  • Giuseppe Torelli

    Too much time has passed! I can't figure out how to compile imagination on Mint 17. I got an error from the linker I didn't get with Ubuntu:

    /usr/bin/ld: imagination-support.o: undefined reference to symbol 'g_module_symbol'
    //usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0: error adding symbols: DSO missing from command line

    Any clue? I want to release 3.1 finally!

     
    • andrewsomething

      andrewsomething - 2014-08-07

      Giuseppe, this should do it...

       
  • eppgarcia

    eppgarcia - 2014-08-29

    This might be able to help ...

    In my case I was able to make the export run properly by installing avconv. Attempts to run avconv in terminal gave this message:

    The program 'avconv' is currently not installed. You can install it by typing:
    sudo apt-get install libav-tools

    I simply followed the message and Imagination was able to export to VOB thereafter.

    btw, I am on Ubuntu 14.04. and the Imagination version that I got (3.0-r1) was looking already for avconv (not ffmpeg)

     

    Last edit: eppgarcia 2014-08-29
  • Giuseppe Torelli

    Hey guys, Ubuntu Imagination package should work as it was patched. I think this bug can be closed now.

     
  • Giuseppe Torelli

    I added avconv support to ffmpeg by using the above patch. The problem is that the quality is very low by using avconv. I tried VOB. I got an email from an user complaining about the same problem.

    I guess he used Imagination's Ubuntu patched package with the above patch.

    Any idea why the quality is low?

     
    • eppgarcia

      eppgarcia - 2014-08-31

      Yes I experience low quality for VOB with avconv. However, the OGV has good
      quality.

      eppgarcia
      sent from mobile device
      On Aug 31, 2014 12:22 AM, "Giuseppe Torelli" gt67@users.sf.net wrote:

      I added avconv support to ffmpeg by using the above patch. The problem is
      that the quality is very low by using avconv. I tried VOB. I got an email
      from an user complaining about the same problem.

      I guess he used Imagination's Ubuntu patched package with the above patch.

      Any idea why the quality is low?

      Status: open
      Group: v1.0
      Created: Mon Jun 02, 2014 10:20 PM UTC by hellocatfood
      Last Updated: Fri Aug 29, 2014 03:57 PM UTC
      Owner: nobody

      I have installed Imagination 3.0-3 on Ubuntu 14.04. Whenever I got to
      Slideshow > Export I get the following error:

      Failed to launch the encoder!
      Failed to execute child process "ffmpeg" (No such file or directory).

      ffmpeg was removed from the repositories on Ubuntu 14.04. Is there a way
      to make Imagination use libav instead?


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/imagination/bugs/78/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #78

  • Giuseppe Torelli

    I meant svn revision:

    $ svn co https://svn.code.sf.net/p/imagination/code/trunk imagination

     
  • Giuseppe Torelli

    I think this bug can be closed now. Anyone contrary to this?

     
  • Giuseppe Torelli

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB