Cannot export video on Ubuntu 14.04
Brought to you by:
gt67
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?
same problem here ..iam using lubuntu 14.04 ,,,what can we do to fix it ??
You can help me :) I use Mint and I can't find libav. What is the name of the executable that replaced ffmpeg?
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.
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
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
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.
What switches do you usually use when exporting video using ffmpeg? I can help convert it to avconv
Thank you dude for your efforts:
https://sourceforge.net/p/imagination/code/HEAD/tree/trunk/src/export.c#l1189
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?
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.
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.
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.
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.
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.
$ cd imagination-3.0
$ patch -p1 < /path/to/30_avconv_port.patch
Alternatively, I've built debs for Debian sid amd64 here:
http://people.debian.org/~thep/
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!
Giuseppe, this should do it...
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
Hey guys, Ubuntu Imagination package should work as it was patched. I think this bug can be closed now.
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?
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:
Related
Bugs:
#78I meant svn revision:
$ svn co https://svn.code.sf.net/p/imagination/code/trunk imagination
I think this bug can be closed now. Anyone contrary to this?