Sunday, June 7, 2015

If Video DownloadHelper in Ubuntu fails with a "Failed Aggregating" error message

(from the I Love Linux department)

Hi everyone,

I use Video DownloadHelper for Firefox in Ubuntu 12.04 LTS.

Sometimes, when trying to aggregate video, it fails with a "Failed Aggregating" message.

Specifically, you see this error:

ffmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:26:50 with gcc 4.6.3
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/media.tmp':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2015-04-22 12:53:09
  Duration: 00:07:02.96, start: 211.487256, bitrate: 64 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
    Metadata:
      creation_time   : 2015-04-22 12:53:09
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/media.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2015-04-22 13:13:56
  Duration: 00:07:02.83, start: 211.419544, bitrate: 1147 kb/s
    Stream #1.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2015-04-22 13:13:56
Unrecognized option 'c:v'
Failed to set value 'libx264' for option 'c:v'

So - what happened?  Well - by default, Video DownloadHelper is installed to work with avconv.  But - if you reset Video DownloadHelper's settings, it falls back to an older conversion method based on ffmpeg.

This normally wouldn't be a problem, except that in Ubuntu 12.04 LTS, there is no ffmpeg.  It's actually a script front-end for avconv, and doesn't take ffmpeg's arguments.  This is the error you're seeing.

The fix is simple.  Go into Video DownloadHelper's settings, and go to the Conversion setting:



Note the Converter path - it's most likely set to /usr/bin/ffmpeg.  Change this to the location of avconv, usually /usr/bin/avconv:



Now - try your file again.  It should work.  Hope this helps!

Cheers,
Paul


2 comments:

Anonymous said...

Thank you for this help! It solved my problem.

Anonymous said...

Ubuntu 16.04 does not have avconv installed by default. It can be installed as part of package libav-tools ("sudo apt-get install libav-tools"). After I had done that did your advice work perfectly. Thank you.