xpra icon
Bug tracker and wiki

Opened 12 months ago

Closed 8 months ago

#1256 closed task (fixed)

private ffmpeg libraries for debian

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 1.0
Component: packaging Version: trunk
Keywords: debian ffmpeg Cc:

Description (last modified by Antoine Martin)

Let's do the same as what #613 did for RPM: ship an ffmpeg-xpra package with the same version of ffmpeg we support everywhere else.
This will remove the need for patches and all the complications associated with that and will allow us to support most distro versions with just one version of the source.

Related to #1242 (ffmpeg 3.1 API change)

Change History (6)

comment:1 Changed 12 months ago by Antoine Martin

Description: modified (diff)
Owner: changed from Antoine Martin to Smo

Done in r13010 + r13012 with some related work in r13008 + r13011.
I've built some beta packages with those changes.

The ffmpeg packaging files could be improved to download the source for the specific version being built rather than relying on it being there already (which could make us build the wrong version...) but this will have to do for now.

@smo: over to you, you will need to build and install ffmpeg-xpra on your Debian / Ubuntu build systems.

comment:2 Changed 11 months ago by Antoine Martin

  • r13179 adds swscale so we can link with just our private library rather than mixing our private library for dec_avcodec and the system one for swscale.
  • r13189 removes the old patches since we don't try to build against the system provided headers

Also means we can support much older distros like Debian Wheezy and Ubuntu Precise, without any patches! (just with r13180 for libx264 compatibility)

Last edited 11 months ago by Antoine Martin (previous) (diff)

comment:3 Changed 9 months ago by Smo

I've had a chance to try client and server with ubuntu 16.04 xenial will try debian and some older distros when I have a chance.

comment:4 Changed 8 months ago by Antoine Martin

There is a problem with yakkety: opencv links against some ffmpeg libraries which conflicts with our private ones. (at first it looked like rpath was not being honoured)
To make matters worse, the ffmpeg version in yakkety (http://packages.ubuntu.com/yakkety/libavcodec-dev - version 3.0.2) is too old so we cannot build dec_avcodec2 against it. (it is missing avcodec_send_packet / avcodec_receive_frame from ffmpeg>=3.1).
So we turn off webcam in yakkety for now: r14347. (we could enable it server-side since that doesn't use opencv at all)
Longer term, we should probably move away from opencv and use native code instead.

Also, r14345 updates to ffmpeg 3.2 (just out).

comment:5 Changed 8 months ago by Smo

Owner: changed from Smo to Antoine Martin

Tried building and installing on debian wheezy and jessie.

Needed to add some build requirements in r14399 otherwise all is good on those 2 platforms.

comment:6 Changed 8 months ago by Antoine Martin

Resolution: fixed
Status: newclosed

New beta packages posted with that change. Works for me.

Note: See TracTickets for help on using tickets.