ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Indigo on trusty: how to handle ffmpeg dependency

asked 2014-04-01 06:16:05 -0500

Fabien Spindler gravatar image

My project depends on libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev. To this end for groovy and hydro in package.xml I added a build and run dependency on ffmpeg that brings from rosdep the expected dependencies:

In https://github.com/ros/rosdistro/blob... there is:

ffmpeg:
  arch: [ffmpeg]
  debian: [ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev]
  fedora: [ffmpeg-devel]
  gentoo:
    portage:
      packages: [media-plugins/ffmpeg]
  macports: [ffmpeg]
  ubuntu: [ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev]

Now for indigo it seems that the ffmpeg debian package is not available for trusty.

We cannot change rosdep/base.yaml to the following (even if it shall work for trusty):

  debian: [libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev]
  ubuntu: [libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev]

Shall I introduce new entries for each debian package ?

libavcodec-dev:
  debian: [libavcodec-dev]
  ubuntu: [libavcodec-dev]

libavformat-dev:
  debian: [libavformat-dev]
  ubuntu: [libavformat-dev]

libavutil-dev:
  debian: [libavutil-dev]
  ubuntu: [libavutil-dev]

libswscale-dev:
  debian: [libswscale-dev]
  ubuntu: [libswscale-dev]

Any ideas ? Thanks

Fabien

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-04-01 08:55:05 -0500

ahendrix gravatar image

It looks like ffmpeg has been deprecated in Ubuntu for a while, and it's being replaced in 14.04 with lbav-tools according to http://askubuntu.com/questions/432542... .

You should probably either:

  • declare a new rosdep called avtools or similar, which contains most of the same things that ffmpeg contained. This may introduce extra maintenance for packages that will have to switch their API to depending on avtools.
  • update the existing ffmpeg dependency to silently depend on avtools on newer versions of Ubuntu. This will probably become very brittle as the avtools and ffmpeg command-line tools and APIs diverge in upcoming Ubuntu releases.
edit flag offensive delete link more
0

answered 2014-04-01 08:12:23 -0500

tfoote gravatar image

updated 2014-04-01 08:44:28 -0500

ahendrix gravatar image

No we shouldn't create separate rules for each package, but a different rule for different versions of ubuntu.

We'll need to add a updated rule for trusty and copies for all the older versions of ubuntu. Along these lines.

ffmpeg:
  ubuntu:
    precise: [ ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev]
    quantal: [ ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev]
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-01 06:16:05 -0500

Seen: 1,208 times

Last updated: Apr 01 '14