Page MenuHomePhabricator

Investigate impact of switching from ffmpeg to libav (ffmpeg is not in Jessie)
Closed, ResolvedPublic

Description

From T95002#1178354

ffmpeg is not in jessie, as Debian had gone the libav way. It's now in unstable and would expect to see it in jessie-backports soon (or we could do it, of course; it should be easy enough). However, I think we depend on libav in other parts of the MW infrastructure and depending on both sounds like a bad idea. We should investigate further.

Some service is relying on ffmpeg (maybe the video thumbnailer). Debian Jessie does not provide ffmpeg but provides libav instead. We need to investigate the impact on our infrastructure and identify software/settings changes that need to be happen to be able to switch.

Details

Related Gerrit Patches:
operations/puppet : productionUse libav instead of ffmpeg on Jessie

Related Objects

StatusAssignedTask
OpenNone
ResolvedBawolff
ResolvedTheDJ
ResolvedRobH
Resolvedbrion
Declinedhashar
OpenNone
ResolvedNone
Resolvedbrion
DeclinedNone
ResolvedLegoktm
Declineddemon
ResolvedJoe
ResolvedReedy
ResolvedNone
DuplicateNone
Resolvedbrion
Resolvedbrion
Resolvedbrion
Resolvedbrion
ResolvedJoe
Resolvedbrion

Event Timeline

hashar created this task.Jun 22 2015, 12:09 PM
hashar raised the priority of this task from to Normal.
hashar updated the task description. (Show Details)
hashar added subscribers: Dzahn, gerritbot, Joe and 3 others.
Matanya set Security to None.
Matanya added a subscriber: Matanya.

The service that relies on ffmpeg/libav is video transcoding, switching from either to the other breaks video transcoding, but it is not extremely hard to fix.

Debian is considering to get back to ffmepg : https://lwn.net/Articles/607591/

and building or backporting ffmpeg is not too complicated too.

Change 222999 had a related patch set uploaded (by Hashar):
Use libav instead of ffmpeg on Jessie

https://gerrit.wikimedia.org/r/222999

For jessie I recommend we use a backport of ffmpeg 2.7.1 as current in Debian unstable instead of libav from jessie. I can't comment on the impact on the MW side, but on the ops side of things it's quite manageable (I can take care of it) and will make our video processing significantly more secure.

In Debian the Debian Multimedia maintainers have decided to move from ffmpeg to libav for multiple reasons detailed here:
https://wiki.debian.org/Debate/libav-provider/ffmpeg

The switch is not yet announced, but will be soon (https://wiki.debian.org/DebianMultimedia/FFmpeg/Statement)

brion added a subscriber: brion.Jul 6 2015, 9:09 AM

In Debian the Debian Multimedia maintainers have decided to move from ffmpeg to libav for multiple reasons detailed here:

Oops, that should have said "move from libav to ffmpeg"

Bawolff added a subscriber: Bawolff.EditedJul 6 2015, 10:26 AM

Umm, we already use libav. In debian (unless you go back far enough), the ffmpeg package is actually libav. (Or at least that was my understanding. I don't follow what software we have installed on the server very closely)

That said, I've heard second hand that of the two forks, ffmpeg is the better choice (Although I have not done any evaluation myself).

From the MediaWiki/TMH perspective, either should work. (Other than the obvious that $wgFFmpegLocation might need to change to call either avconv or ffmpeg as appropriate)

In Debian the Debian Multimedia maintainers have decided to move from ffmpeg to libav for multiple reasons detailed here:
https://wiki.debian.org/Debate/libav-provider/ffmpeg
The switch is not yet announced, but will be soon (https://wiki.debian.org/DebianMultimedia/FFmpeg/Statement)

This has now been announced:
https://lists.debian.org/debian-devel-announce/2015/07/msg00001.html

from the announcement this might land in stretch, since we were already using ffmpeg before trusty (I think) we could backport unstable's ffmpeg like @MoritzMuehlenhoff suggested and confine libav to trusty only

brion added a comment.Jul 20 2015, 1:20 PM

As long as whatever we switch to supports VP9 and Opus in the build I don't care which flavor it is... :)

As long as whatever we switch to supports VP9 and Opus in the build I don't care which flavor it is... :)

They're both supported in ffmpeg 2.7 (through libopus and libvpx)

update on this, I was talking to @MoritzMuehlenhoff and since ffmpeg will be in stretch anyway we might be better off uploading an ffmpeg version to jessie-backports in Debian, the ffmpeg transition is currently underway in testing (https://release.debian.org/transitions/html/ffmpeg-libav.html)

@brion for production we'll need to figure something else out since that's trusty (re: blocked tickets)

brion added a comment.Jul 24 2015, 7:06 PM

The state of video scaling in Trusty seems to be completely fubar if my testing in MediaWiki-Vagrant and Labs-Vagrant is any guide:

  • T106612 .webm output broken (avconv VP8 two-pass encoding is very low bitrate, looks awful)
  • T69953 .ogv output broken (ffmpeg2theora produces broken audio tracks, files don't play)
  • T55863 no VP9 in/out
  • T53313 no Opus in/out

So unless we backport avconv or ffmpeg or install a PPA package that fixes all these bugs, upgrading video scalers to Trusty is probably a bad idea anyway...

brion added a comment.Jul 24 2015, 7:18 PM

The state of video scaling in Trusty seems to be completely fubar if my testing in MediaWiki-Vagrant and Labs-Vagrant is any guide:

To clarify:

These two are regressions in Trusty compared to Precise (working in production):

  • T106612 .webm output broken (avconv VP8 two-pass encoding is very low bitrate, looks awful)
  • T69953 .ogv output broken (ffmpeg2theora produces broken audio tracks, files don't play)

These two are missing features in both Precise and Trusty:

Unknown what the state of the bugs & features in jessie's avconv is.

The state of video scaling in Trusty seems to be completely fubar if my testing in MediaWiki-Vagrant and Labs-Vagrant is any guide:

  • T106612 .webm output broken (avconv VP8 two-pass encoding is very low bitrate, looks awful)
  • T69953 .ogv output broken (ffmpeg2theora produces broken audio tracks, files don't play)
  • T55863 no VP9 in/out
  • T53313 no Opus in/out

So unless we backport avconv or ffmpeg or install a PPA package that fixes all these bugs, upgrading video scalers to Trusty is probably a bad idea anyway...

I think we could provide a backport of ffmpeg 2.7.3 to trusty with little overhead (maybe a few hours of work). Or move the video scalers to jessie.

The state of video scaling in Trusty seems to be completely fubar if my testing in MediaWiki-Vagrant and Labs-Vagrant is any guide:

  • T106612 .webm output broken (avconv VP8 two-pass encoding is very low bitrate, looks awful)
  • T69953 .ogv output broken (ffmpeg2theora produces broken audio tracks, files don't play)
  • T55863 no VP9 in/out
  • T53313 no Opus in/out

So unless we backport avconv or ffmpeg or install a PPA package that fixes all these bugs, upgrading video scalers to Trusty is probably a bad idea anyway...

I think we could provide a backport of ffmpeg 2.7.3 to trusty with little overhead (maybe a few hours of work). Or move the video scalers to jessie.

I gave this a try, so far we already backported x265 and shine in trusty-wikimedia to be able to backport ffmpeg, still missing and updated libssh needed because of a dependency upon libssh-gcrypt-dev which gets built since 0.6.3-3. The libssh dependency is more invasive than I thought but as far as I can tell we're not using/installing libssh-4

I gave this a try, so far we already backported x265 and shine in trusty-wikimedia to be able to backport ffmpeg, still missing and updated libssh needed because of a dependency upon libssh-gcrypt-dev which gets built since 0.6.3-3. The libssh dependency is more invasive than I thought but as far as I can tell we're not using/installing libssh-4

Let's just disable that in the trusty backport (it should be sufficient to simply remove the build dep and it will detect it, other force it with --disable-libssh): libssh is only needed for the sftp transport method and we don't need that on the video scalers.

We could also disable shine, that's only relevant for embedded hardware w/o an FPU.

I gave this a try, so far we already backported x265 and shine in trusty-wikimedia to be able to backport ffmpeg, still missing and updated libssh needed because of a dependency upon libssh-gcrypt-dev which gets built since 0.6.3-3. The libssh dependency is more invasive than I thought but as far as I can tell we're not using/installing libssh-4

Let's just disable that in the trusty backport (it should be sufficient to simply remove the build dep and it will detect it, other force it with --disable-libssh): libssh is only needed for the sftp transport method and we don't need that on the video scalers.

sounds good, I've disabled that and kept shine since the package is already backported anyway in our repo. Also since libav -> ffmpeg is an ABI change we'll also need to rebuild any package we want to use ffmpeg as opposed to libav in trusty. AFAICT that's only ffmpeg2theora on the video scalers

@brion @hashar I've uploaded ffmpeg 7:2.7.2-1~wmf1 to trusty-wikimedia and did some tests on the related tickets, please try it out as well!

also ffmpeg2theora has been rebuilt with ffmpeg and uploaded to trusty-wikimedia

brion added a comment.Aug 7 2015, 11:56 AM

Patch https://gerrit.wikimedia.org/r/#/c/230078/ switches MW-Vagrant's TMH from avconv to the ffmpeg package, seems working so far. :) The updated ffmpeg2theora still seems broken when it has to resample audio... :(

brion added a comment.Aug 7 2015, 12:32 PM

I'm also unable to produce VP9 WebM output with this ffmpeg build...

TMH patch adding VP9 transcodes: https://gerrit.wikimedia.org/r/#/c/229397/

Sample command line:

wget 'https://upload.wikimedia.org/wikipedia/commons/c/c8/Sneak_Preview_-_Wikipedia_VisualEditor.webm'

'/usr/bin/ffmpeg' -y -i '/srv/images/c/c8/Sneak_Preview_-_Wikipedia_VisualEditor.webm' -threads 1 -skip_threshold 0 -bufsize 6000k -rc_init_occupancy 4000 -qmin 1 -qmax 51 -vb '512000' -vcodec libvpx-vp9 -g '128' -keyint_min '128' -f webm -s 854x480 -an -pass '1' -passlogfile '/tmp/transcode_480p.vp9.webm74178037eed1-1.webm.log' /dev/null

'/usr/bin/ffmpeg' -y -i '/srv/images/c/c8/Sneak_Preview_-_Wikipedia_VisualEditor.webm' -threads 1 -skip_threshold 0 -bufsize 6000k -rc_init_occupancy 4000 -qmin 1 -qmax 51 -vb '512000' -vcodec libvpx-vp9 -g '128' -keyint_min '128' -f webm -s 854x480 -aq '2' -ar '48000' -acodec libvorbis  -pass '2' -passlogfile '/tmp/transcode_480p.vp9.webm74178037eed1-1.webm.log' /tmp/transcode_480p.vp9.webm74178037eed1-1.webm

Sample error output:

...
frame=  149 fps=3.6 q=0.0 size=     337kB time=00:00:06.33 bitrate= 435.0kbits/s    
frame=  151 fps=3.6 q=0.0 size=     339kB time=00:00:06.42 bitrate= 432.4kbits/s    
frame=  153 fps=3.5 q=0.0 size=     399kB time=00:00:06.51 bitrate= 501.7kbits/s    
ffmpeg: /build/buildd/libvpx-1.3.0/vp9/encoder/vp9_encodeframe.c:1747: rd_pick_partition: Assertion `tp_orig < *tp' failed.

I can work around it by disabling the alt reference frames with '-auto-alt-ref 0' option, but this decreases picture quality.
Didn't have this problem with a build of ffmpeg via PPA at https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media

I had a quick look at the PPA and the build embeds a local copy of libvpx 1.4.0.

1.4.0 is also in Debian unstable, so we probably only need to backport 1.4.0 to trusty-wikimedia to achieve the same results.

note that libvpx 1.4 changed SONAME from 1 to 2
though it looks like an ABI change, possibly some adjustment needed if packages are using IMG_FMT vs VPX_IMG_FMT http://www.webmproject.org/docs/webm-sdk/changelog.html

reverse deps:

$ apt-rdepends -r libvpx1 | head -40
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libvpx1
  Reverse Depends: gstreamer0.10-plugins-bad (>= 0.10.23-7.2ubuntu1)
  Reverse Depends: gstreamer1.0-plugins-good (>= 1.2.3-1ubuntu2)
  Reverse Depends: libav-tools (>= 6:9.11-2ubuntu2)
  Reverse Depends: libavcodec-extra-54 (>= 6:9.11-2ubuntu2)
  Reverse Depends: libavcodec-ffmpeg-extra56 (>= 7:2.7.2-1~wmf1)
  Reverse Depends: libavcodec-ffmpeg56 (>= 7:2.7.2-1~wmf1)
  Reverse Depends: libavcodec54 (>= 6:9.11-2ubuntu2)
  Reverse Depends: libgd3 (>= 2.1.0-3)
  Reverse Depends: libmediastreamer-base3 (>= 3.6.1-2.1build2)
  Reverse Depends: libvpx-dev (= 1.3.0-2)
  Reverse Depends: libvpx1-dbg (= 1.3.0-2)
  Reverse Depends: sludge-engine (>= 2.2-1)
  Reverse Depends: vpx-tools (= 1.3.0-2)
  Reverse Depends: xpra (>= 0.12.3+dfsg-1ubuntu1)
  Reverse Depends: xulrunner-24.0 (>= 24.8.1esr-2~deb7u1)

since we're interested in ffmpeg only and the rest doesn't seem related I think we're fine with rebuilding just ffmpeg against a newer libvpx-dev

I've uploaded a rebuilt ffmpeg 2.7.2-1~wmf2 and was able to transcode the video above, please upgrade/test !

$ '/usr/bin/ffmpeg' -y -i 'Sneak_Preview_-_Wikipedia_VisualEditor.webm' -threads 1 -skip_threshold 0 -bufsize 6000k -rc_init_occupancy 4000 -qmin 1 -qmax 51 -vb '512000' -vcodec libvpx-vp9 -g '128' -keyint_min '128' -f webm -s 854x480 -aq '2' -ar '48000' -acodec libvorbis  -pass '2' -passlogfile '/tmp/transcode_480p.vp9.webm74178037eed1-1.webm.log' /tmp/transcode_480p.vp9.webm74178037eed1-1.webm
ffmpeg version 2.7.2-1~wmf2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/usr --extra-version='1~wmf2' --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx265
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'Sneak_Preview_-_Wikipedia_VisualEditor.webm':
  Metadata:
    encoder         : Lavf54.10.100
    creation_time   : 2013-03-01 23:24:25
  Duration: 00:01:01.07, start: 0.000000, bitrate: 5440 kb/s
    Stream #0:0: Video: vp8, yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp (default)
[libvpx-vp9 @ 0xce8a80] v1.4.0
Output #0, webm, to '/tmp/transcode_480p.vp9.webm74178037eed1-1.webm':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=1-51, pass 2, 512 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
    Metadata:
      encoder         : Lavc56.41.100 libvpx-vp9
    Stream #0:1: Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp (default)
    Metadata:
      encoder         : Lavc56.41.100 libvorbis
Stream mapping:
  Stream #0:0 -> #0:0 (vp8 (native) -> vp9 (libvpx-vp9))
  Stream #0:1 -> #0:1 (vorbis (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
[libvorbis @ 0xce6580] Queue input is backward in time
frame= 1438 fps=4.1 q=0.0 Lsize=    3497kB time=00:01:00.06 bitrate= 477.0kbits/s    
video:2776kB audio:668kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 1.540391%
brion added a comment.Aug 10 2015, 5:40 PM

Ok, this gets VP9 transcodes with ffmpeg working! But ffmpeg2theora is now failing with the mysterious exit code 139 (which if I'm googling correctly indicates a library version mismatch?) when it's not failing with the audio resampling error...

Note I had to do 'apt-get dist-upgrade' to get libavcodec-ffmpeg56 and libvpx2 to update. I guess that shouldn't affect fresh installs. :D

(btw libvpx 1.4.0 is supposed to be a HUGE update over 1.3.0; they kinda forgot to make releases for a year or so while making lots of improvements to the encoder. :P)

brion added a comment.Aug 10 2015, 5:46 PM

Sample command line for VP9->ogv conversion with ffmpeg2theora:

source file: https://upload.wikimedia.org/wikipedia/commons/9/90/Snowdonia_by_drone.webm

'/usr/bin/ffmpeg2theora' '/srv/images/9/90/Snowdonia_by_drone.webm' -V '1024' -a '1' -H '44100' -c '2' --no-upscaling --keyint '128' --buf-delay '256' --width '640' --height '360' --aspect '640:360' -o '/tmp/transcode_360p.ogv00f52525fbbb-1.ogv'

Exitcode: 139
Memory: 2097152

Input #0, matroska,webm, from '/srv/images/9/90/Snowdonia_by_drone.webm':
  Metadata:
    encoder         : google
  Duration: 00:01:15.43, start: 0.000000, bitrate: 2701 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
  Pixel Aspect Ratio: 1.00/1   Frame Aspect Ratio: 1.78/1
  Resize: 1920x1080 => 640x360

  0:00:00.13 audio: 0kbps video: 665kbps, ET: 00:09:24, est. size: 6.0 MB   
  0:00:00.66 audio: 0kbps video: 1284kbps, ET: 00:01:52, est. size: 11.5 MB   
  0:00:01.20 audio: 0kbps video: 1161kbps, ET: 00:02:03, est. size: 10.4 MB   
  0:00:01.73 audio: 0kbps video: 1115kbps, ET: 00:01:25, est. size: 10.0 MB   
  0:00:02.26 audio: 0kbps video: 1077kbps, ET: 00:01:36, est. size: 9.7 MB   
  0:00:02.80 audio: 0kbps video: 1049kbps, ET: 00:01:17, est. size: 9.4 MB   
  0:00:03.33 audio: 0kbps video: 1041kbps, ET: 00:01:26, est. size: 9.4 MB   
  0:00:03.86 audio: 0kbps video: 1021kbps, ET: 00:01:14, est. size: 9.2 MB   
  0:00:04.40 audio: 0kbps video: 1028kbps, ET: 00:01:20, est. size: 9.2 MB   
  0:00:04.93 audio: 0kbps video: 1003kbps, ET: 00:01:11, est. size: 9.0 MB   
  0:00:05.46 audio: 0kbps video: 1000kbps, ET: 00:01:16, est. size: 9.0 MB   
  0:00:06.00 audio: 0kbps video: 1008kbps, ET: 00:01:09, est. size: 9.1 MB   
  0:00:06.53 audio: 0kbps video: 1009kbps, ET: 00:01:13, est. size: 9.1 MB   
  0:00:07.06 audio: 0kbps video: 1010kbps, ET: 00:01:07, est. size: 9.1 MB   
  0:00:07.60 audio: 0kbps video: 1011kbps, ET: 00:01:11, est. size: 9.1 MB   
  0:00:08.13 audio: 0kbps video: 1014kbps, ET: 00:01:06, est. size: 9.1 MB   
  0:00:08.66 audio: 0kbps video: 1029kbps, ET: 00:01:09, est. size: 9.3 MB   
  0:00:09.19 audio: 0kbps video: 1013kbps, ET: 00:01:04, est. size: 9.1 MB   
  0:00:09.73 audio: 0kbps video: 1014kbps, ET: 00:01:07, est. size: 9.1 MB   
  0:00:10.26 audio: 0kbps video: 997kbps, ET: 00:01:09, est. size: 9.0 MB   
  0:00:10.86 audio: 0kbps video: 1107kbps, ET: 00:01:11, est. size: 10.0 MB   
  0:00:11.40 audio: 0kbps video: 1112kbps, ET: 00:01:07, est. size: 10.0 MB   
  0:00:11.93 audio: 0kbps video: 1100kbps, ET: 00:01:09, est. size: 9.9 MB   
  0:00:12.46 audio: 0kbps video: 1086kbps, ET: 00:01:10, est. size: 9.8 MB   
  0:00:13.00 audio: 0kbps video: 1074kbps, ET: 00:01:12, est. size: 9.7 MB   
  0:00:13.53 audio: 0kbps video: 1065kbps, ET: 00:01:08, est. size: 9.6 MB   
  0:00:14.06 audio: 0kbps video: 1059kbps, ET: 00:01:09, est. size: 9.5 MB   
  0:00:14.60 audio: 0kbps video: 1063kbps, ET: 00:01:06, est. size: 9.6 MB   
  0:00:15.13 audio: 0kbps video: 1048kbps, ET: 00:01:07, est. size: 9.4 MB   
  0:00:15.66 audio: 0kbps video: 1043kbps, ET: 00:01:04, est. size: 9.4 MB   
  0:00:16.20 audio: 0kbps video: 1039kbps, ET: 00:01:05, est. size: 9.3 MB   
  0:00:16.73 audio: 0kbps video: 1032kbps, ET: 00:01:06, est. size: 9.3 MB   
  0:00:17.26 audio: 0kbps video: 1029kbps, ET: 00:01:04, est. size: 9.3 MB   
  0:00:17.80 audio: 0kbps video: 1022kbps, ET: 00:01:01, est. size: 9.2 MB   
  0:00:18.33 audio: 0kbps video: 1015kbps, ET: 00:01:02, est. size: 9.1 MB   
  0:00:18.93 audio: 0kbps video: 1107kbps, ET: 00:01:02, est. size: 10.0 MB   
  0:00:19.46 audio: 0kbps video: 1143kbps, ET: 00:01:00, est. size: 10.3 MB   
  0:00:20.00 audio: 0kbps video: 1138kbps, ET: 00:01:00, est. size: 10.2 MB   
  0:00:20.53 audio: 0kbps video: 1125kbps, ET: 00:00:58, est. size: 10.1 MB   
  0:00:21.06 audio: 0kbps video: 1113kbps, ET: 00:00:59, est. size: 10.0 MB   
  0:00:21.60 audio: 0kbps video: 1102kbps, ET: 00:00:57, est. size: 9.9 MB   
  0:00:22.13 audio: 0kbps video: 1091kbps, ET: 00:00:57, est. size: 9.8 MB   
  0:00:22.66 audio: 0kbps video: 1081kbps, ET: 00:00:55, est. size: 9.7 MB   
  0:00:23.20 audio: 0kbps video: 1069kbps, ET: 00:00:56, est. size: 9.6 MB   
  0:00:23.73 audio: 0kbps video: 1057kbps, ET: 00:00:54, est. size: 9.5 MB   
  0:00:24.26 audio: 0kbps video: 1049kbps, ET: 00:00:54, est. size: 9.4 MB   
  0:00:24.80 audio: 0kbps video: 1046kbps, ET: 00:00:53, est. size: 9.4 MB   
  0:00:25.33 audio: 0kbps video: 1047kbps, ET: 00:00:53, est. size: 9.4 MB   
  0:00:25.86 audio: 0kbps video: 1052kbps, ET: 00:00:51, est. size: 9.5 MB   
  0:00:26.40 audio: 0kbps video: 1047kbps, ET: 00:00:52, est. size: 9.4 MB   
  0:00:26.93 audio: 0kbps video: 1038kbps, ET: 00:00:50, est. size: 9.3 MB   
  0:00:27.50 audio: 0kbps video: 1030kbps, ET: 00:00:50, est. size: 9.3 MB   
  0:00:28.03 audio: 0kbps video: 1026kbps, ET: 00:00:49, est. size: 9.2 MB   
  0:00:28.56 audio: 0kbps video: 1024kbps, ET: 00:00:49, est. size: 9.2 MB   
  0:00:29.10 audio: 0kbps video: 1024kbps, ET: 00:00:47, est. size: 9.2 MB   
  0:00:29.63 audio: 0kbps video: 1021kbps, ET: 00:00:47, est. size: 9.2 MB   
  0:00:30.16 audio: 0kbps video: 1018kbps, ET: 00:00:46, est. size: 9.2 MB   
  0:00:30.70 audio: 0kbps video: 1019kbps, ET: 00:00:46, est. size: 9.2 MB   
  0:00:31.23 audio: 0kbps video: 1017kbps, ET: 00:00:45, est. size: 9.1 MB   
  0:00:31.80 audio: 0kbps video: 1059kbps, ET: 00:00:45, est. size: 9.5 MB   
  0:00:32.33 audio: 0kbps video: 1060kbps, ET: 00:00:43, est. size: 9.5 MB   
  0:00:32.86 audio: 0kbps video: 1055kbps, ET: 00:00:44, est. size: 9.5 MB   
  0:00:33.40 audio: 0kbps video: 1052kbps, ET: 00:00:42, est. size: 9.5 MB   
  0:00:33.93 audio: 0kbps video: 1047kbps, ET: 00:00:41, est. size: 9.4 MB   
  0:00:34.46 audio: 0kbps video: 1043kbps, ET: 00:00:41, est. size: 9.4 MB   
  0:00:35.00 audio: 0kbps video: 1040kbps, ET: 00:00:40, est. size: 9.3 MB   
  0:00:35.53 audio: 0kbps video: 1040kbps, ET: 00:00:40, est. size: 9.4 MB   
  0:00:36.06 audio: 0kbps video: 1037kbps, ET: 00:00:39, est. size: 9.3 MB   
  0:00:36.60 audio: 0kbps video: 1035kbps, ET: 00:00:39, est. size: 9.3 MB   
  0:00:37.13 audio: 0kbps video: 1033kbps, ET: 00:00:38, est. size: 9.3 MB   
  0:00:37.70 audio: 0kbps video: 1028kbps, ET: 00:00:38, est. size: 9.2 MB   
  0:00:38.23 audio: 0kbps video: 1020kbps, ET: 00:00:37, est. size: 9.2 MB   
  0:00:38.76 audio: 0kbps video: 1016kbps, ET: 00:00:36, est. size: 9.1 MB   
  0:00:39.29 audio: 0kbps video: 1015kbps, ET: 00:00:36, est. size: 9.1 MB   
  0:00:39.83 audio: 0kbps video: 1016kbps, ET: 00:00:35, est. size: 9.1 MB   
  0:00:40.36 audio: 0kbps video: 1016kbps, ET: 00:00:34, est. size: 9.1 MB   
  0:00:40.90 audio: 0kbps video: 1015kbps, ET: 00:00:34, est. size: 9.1 MB   
  0:00:41.43 audio: 0kbps video: 1014kbps, ET: 00:00:33, est. size: 9.1 MB   
  0:00:41.96 audio: 0kbps video: 1025kbps, ET: 00:00:33, est. size: 9.2 MB   
  0:00:42.50 audio: 0kbps video: 1026kbps, ET: 00:00:33, est. size: 9.2 MB   
  0:00:43.03 audio: 0kbps video: 1023kbps, ET: 00:00:32, est. size: 9.2 MB   
  0:00:43.56 audio: 0kbps video: 1022kbps, ET: 00:00:31, est. size: 9.2 MB   
  0:00:44.10 audio: 0kbps video: 1022kbps, ET: 00:00:31, est. size: 9.2 MB   
  0:00:44.63 audio: 0kbps video: 1024kbps, ET: 00:00:31, est. size: 9.2 MB   
  0:00:45.16 audio: 0kbps video: 1021kbps, ET: 00:00:30, est. size: 9.2 MB   
  0:00:45.70 audio: 0kbps video: 1021kbps, ET: 00:00:29, est. size: 9.2 MB   
  0:00:46.23 audio: 0kbps video: 1028kbps, ET: 00:00:29, est. size: 9.2 MB   
  0:00:46.76 audio: 0kbps video: 1029kbps, ET: 00:00:28, est. size: 9.3 MB   
  0:00:47.30 audio: 0kbps video: 1029kbps, ET: 00:00:28, est. size: 9.3 MB   
  0:00:47.83 audio: 0kbps video: 1029kbps, ET: 00:00:27, est. size: 9.2 MB   
  0:00:48.36 audio: 0kbps video: 1027kbps, ET: 00:00:27, est. size: 9.2 MB   
  0:00:48.90 audio: 0kbps video: 1026kbps, ET: 00:00:27, est. size: 9.2 MB   
  0:00:49.43 audio: 0kbps video: 1024kbps, ET: 00:00:26, est. size: 9.2 MB   
  0:00:49.96 audio: 0kbps video: 1023kbps, ET: 00:00:25, est. size: 9.2 MB   
  0:00:50.50 audio: 0kbps video: 1025kbps, ET: 00:00:25, est. size: 9.2 MB   
  0:00:51.03 audio: 0kbps video: 1022kbps, ET: 00:00:24, est. size: 9.2 MB   
  0:00:51.56 audio: 0kbps video: 1021kbps, ET: 00:00:24, est. size: 9.2 MB   
  0:00:52.10 audio: 0kbps video: 1024kbps, ET: 00:00:23, est. size: 9.2 MB   
  0:00:52.63 audio: 0kbps video: 1023kbps, ET: 00:00:23, est. size: 9.2 MB   
  0:00:53.16 audio: 0kbps video: 1022kbps, ET: 00:00:22, est. size: 9.2 MB   
  0:00:53.70 audio: 0kbps video: 1023kbps, ET: 00:00:22, est. size: 9.2 MB   
  0:00:54.33 audio: 0kbps video: 1031kbps, ET: 00:00:21, est. size: 9.3 MB   
  0:00:54.86 audio: 0kbps video: 1034kbps, ET: 00:00:20, est. size: 9.3 MB   
  0:00:55.40 audio: 0kbps video: 1033kbps, ET: 00:00:20, est. size: 9.3 MB   
  0:00:55.93 audio: 0kbps video: 1032kbps, ET: 00:00:19, est. size: 9.3 MB   
  0:00:56.46 audio: 0kbps video: 1030kbps, ET: 00:00:19, est. size: 9.3 MB   
  0:00:57.00 audio: 0kbps video: 1029kbps, ET: 00:00:18, est. size: 9.2 MB   
  0:00:57.53 audio: 0kbps video: 1027kbps, ET: 00:00:18, est. size: 9.2 MB   
  0:00:58.06 audio: 0kbps video: 1026kbps, ET: 00:00:17, est. size: 9.2 MB   
  0:00:58.66 audio: 0kbps video: 1023kbps, ET: 00:00:16, est. size: 9.2 MB   
  0:00:59.20 audio: 0kbps video: 1023kbps, ET: 00:00:16, est. size: 9.2 MB   
  0:00:59.73 audio: 0kbps video: 1023kbps, ET: 00:00:15, est. size: 9.2 MB   
  0:01:00.26 audio: 0kbps video: 1022kbps, ET: 00:00:15, est. size: 9.2 MB   
  0:01:00.80 audio: 0kbps video: 1028kbps, ET: 00:00:14, est. size: 9.2 MB   
  0:01:01.33 audio: 0kbps video: 1029kbps, ET: 00:00:14, est. size: 9.3 MB   
  0:01:01.86 audio: 0kbps video: 1029kbps, ET: 00:00:13, est. size: 9.2 MB   
  0:01:02.40 audio: 0kbps video: 1028kbps, ET: 00:00:13, est. size: 9.2 MB   
  0:01:02.93 audio: 0kbps video: 1032kbps, ET: 00:00:12, est. size: 9.3 MB   
  0:01:03.46 audio: 0kbps video: 1033kbps, ET: 00:00:12, est. size: 9.3 MB   
  0:01:04.00 audio: 0kbps video: 1033kbps, ET: 00:00:11, est. size: 9.3 MB   
  0:01:04.53 audio: 0kbps video: 1033kbps, ET: 00:00:10, est. size: 9.3 MB   
  0:01:05.06 audio: 0kbps video: 1029kbps, ET: 00:00:10, est. size: 9.2 MB   
  0:01:05.59 audio: 0kbps video: 1025kbps, ET: 00:00:09, est. size: 9.2 MB   
  0:01:06.13 audio: 0kbps video: 1024kbps, ET: 00:00:09, est. size: 9.2 MB   
  0:01:06.66 audio: 0kbps video: 1024kbps, ET: 00:00:08, est. size: 9.2 MB   
  0:01:07.20 audio: 0kbps video: 1022kbps, ET: 00:00:08, est. size: 9.2 MB   
  0:01:07.73 audio: 0kbps video: 1020kbps, ET: 00:00:07, est. size: 9.2 MB   
  0:01:08.26 audio: 0kbps video: 1020kbps, ET: 00:00:07, est. size: 9.2 MB   
  0:01:08.80 audio: 0kbps video: 1020kbps, ET: 00:00:06, est. size: 9.2 MB   
  0:01:09.33 audio: 0kbps video: 1014kbps, ET: 00:00:06, est. size: 9.1 MB   
  0:01:09.86 audio: 0kbps video: 1012kbps, ET: 00:00:05, est. size: 9.1 MB   
  0:01:10.40 audio: 0kbps video: 1012kbps, ET: 00:00:05, est. size: 9.1 MB   
  0:01:10.93 audio: 0kbps video: 1012kbps, ET: 00:00:04, est. size: 9.1 MB   
  0:01:11.46 audio: 0kbps video: 1014kbps, ET: 00:00:03, est. size: 9.1 MB   
  0:01:12.00 audio: 0kbps video: 1013kbps, ET: 00:00:03, est. size: 9.1 MB   
  0:01:12.53 audio: 0kbps video: 1012kbps, ET: 00:00:02, est. size: 9.1 MB   
  0:01:13.06 audio: 0kbps video: 1016kbps, ET: 00:00:02, est. size: 9.1 MB   
  0:01:13.59 audio: 0kbps video: 1014kbps, ET: 00:00:01, est. size: 9.1 MB   
  0:01:14.13 audio: 0kbps video: 1014kbps, ET: 00:00:01, est. size: 9.1 MB   
  0:01:14.66 audio: 0kbps video: 1015kbps, ET: 00:00:00, est. size: 9.1 MB   
  0:01:15.20 audio: 0kbps video: 1019kbps, ET: 00:00:00, est. size: 9.2 MB   
  0:01:15.46 audio: 0kbps video: 1020kbps, time elapsed: 00:01:15           
  0:01:15.43 audio: 0kbps video: 1020kbps, time elapsed: 00:01:15

Change 222999 abandoned by Hashar:
Use libav instead of ffmpeg on Jessie

Reason:
Per Moritz: ffmpeg will be backported.

https://gerrit.wikimedia.org/r/222999

Sample command line for VP9->ogv conversion with ffmpeg2theora:
source file: https://upload.wikimedia.org/wikipedia/commons/9/90/Snowdonia_by_drone.webm

'/usr/bin/ffmpeg2theora' '/srv/images/9/90/Snowdonia_by_drone.webm' -V '1024' -a '1' -H '44100' -c '2' --no-upscaling --keyint '128' --buf-delay '256' --width '640' --height '360' --aspect '640:360' -o '/tmp/transcode_360p.ogv00f52525fbbb-1.ogv'
Exitcode: 139
Memory: 2097152
Input #0, matroska,webm, from '/srv/images/9/90/Snowdonia_by_drone.webm':
  Metadata:
    encoder         : google
  Duration: 00:01:15.43, start: 0.000000, bitrate: 2701 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
  Pixel Aspect Ratio: 1.00/1   Frame Aspect Ratio: 1.78/1
  Resize: 1920x1080 => 640x360
  0:00:00.13 audio: 0kbps video: 665kbps, ET: 00:09:24, est. size: 6.0 MB   
  0:00:00.66 audio: 0kbps video: 1284kbps, ET: 00:01:52, est. size: 11.5 MB   
  0:00:01.20 audio: 0kbps video: 1161kbps, ET: 00:02:03, est. size: 10.4 MB   
  0:00:01.73 audio: 0kbps video: 1115kbps, ET: 00:01:25, est. size: 10.0 MB   
  0:00:02.26 audio: 0kbps video: 1077kbps, ET: 00:01:36, est. size: 9.7 MB   
  0:00:02.80 audio: 0kbps video: 1049kbps, ET: 00:01:17, est. size: 9.4 MB   
  0:00:03.33 audio: 0kbps video: 1041kbps, ET: 00:01:26, est. size: 9.4 MB   
  0:00:03.86 audio: 0kbps video: 1021kbps, ET: 00:01:14, est. size: 9.2 MB   
  0:00:04.40 audio: 0kbps video: 1028kbps, ET: 00:01:20, est. size: 9.2 MB   
  0:00:04.93 audio: 0kbps video: 1003kbps, ET: 00:01:11, est. size: 9.0 MB   
  0:00:05.46 audio: 0kbps video: 1000kbps, ET: 00:01:16, est. size: 9.0 MB   
  0:00:06.00 audio: 0kbps video: 1008kbps, ET: 00:01:09, est. size: 9.1 MB   
  0:00:06.53 audio: 0kbps video: 1009kbps, ET: 00:01:13, est. size: 9.1 MB   
  0:00:07.06 audio: 0kbps video: 1010kbps, ET: 00:01:07, est. size: 9.1 MB   
  0:00:07.60 audio: 0kbps video: 1011kbps, ET: 00:01:11, est. size: 9.1 MB   
  0:00:08.13 audio: 0kbps video: 1014kbps, ET: 00:01:06, est. size: 9.1 MB   
  0:00:08.66 audio: 0kbps video: 1029kbps, ET: 00:01:09, est. size: 9.3 MB   
  0:00:09.19 audio: 0kbps video: 1013kbps, ET: 00:01:04, est. size: 9.1 MB   
  0:00:09.73 audio: 0kbps video: 1014kbps, ET: 00:01:07, est. size: 9.1 MB   
  0:00:10.26 audio: 0kbps video: 997kbps, ET: 00:01:09, est. size: 9.0 MB   
  0:00:10.86 audio: 0kbps video: 1107kbps, ET: 00:01:11, est. size: 10.0 MB   
  0:00:11.40 audio: 0kbps video: 1112kbps, ET: 00:01:07, est. size: 10.0 MB   
  0:00:11.93 audio: 0kbps video: 1100kbps, ET: 00:01:09, est. size: 9.9 MB   
  0:00:12.46 audio: 0kbps video: 1086kbps, ET: 00:01:10, est. size: 9.8 MB   
  0:00:13.00 audio: 0kbps video: 1074kbps, ET: 00:01:12, est. size: 9.7 MB   
  0:00:13.53 audio: 0kbps video: 1065kbps, ET: 00:01:08, est. size: 9.6 MB   
  0:00:14.06 audio: 0kbps video: 1059kbps, ET: 00:01:09, est. size: 9.5 MB   
  0:00:14.60 audio: 0kbps video: 1063kbps, ET: 00:01:06, est. size: 9.6 MB   
  0:00:15.13 audio: 0kbps video: 1048kbps, ET: 00:01:07, est. size: 9.4 MB   
  0:00:15.66 audio: 0kbps video: 1043kbps, ET: 00:01:04, est. size: 9.4 MB   
  0:00:16.20 audio: 0kbps video: 1039kbps, ET: 00:01:05, est. size: 9.3 MB   
  0:00:16.73 audio: 0kbps video: 1032kbps, ET: 00:01:06, est. size: 9.3 MB   
  0:00:17.26 audio: 0kbps video: 1029kbps, ET: 00:01:04, est. size: 9.3 MB   
  0:00:17.80 audio: 0kbps video: 1022kbps, ET: 00:01:01, est. size: 9.2 MB   
  0:00:18.33 audio: 0kbps video: 1015kbps, ET: 00:01:02, est. size: 9.1 MB   
  0:00:18.93 audio: 0kbps video: 1107kbps, ET: 00:01:02, est. size: 10.0 MB   
  0:00:19.46 audio: 0kbps video: 1143kbps, ET: 00:01:00, est. size: 10.3 MB   
  0:00:20.00 audio: 0kbps video: 1138kbps, ET: 00:01:00, est. size: 10.2 MB   
  0:00:20.53 audio: 0kbps video: 1125kbps, ET: 00:00:58, est. size: 10.1 MB   
  0:00:21.06 audio: 0kbps video: 1113kbps, ET: 00:00:59, est. size: 10.0 MB   
  0:00:21.60 audio: 0kbps video: 1102kbps, ET: 00:00:57, est. size: 9.9 MB   
  0:00:22.13 audio: 0kbps video: 1091kbps, ET: 00:00:57, est. size: 9.8 MB   
  0:00:22.66 audio: 0kbps video: 1081kbps, ET: 00:00:55, est. size: 9.7 MB   
  0:00:23.20 audio: 0kbps video: 1069kbps, ET: 00:00:56, est. size: 9.6 MB   
  0:00:23.73 audio: 0kbps video: 1057kbps, ET: 00:00:54, est. size: 9.5 MB   
  0:00:24.26 audio: 0kbps video: 1049kbps, ET: 00:00:54, est. size: 9.4 MB   
  0:00:24.80 audio: 0kbps video: 1046kbps, ET: 00:00:53, est. size: 9.4 MB   
  0:00:25.33 audio: 0kbps video: 1047kbps, ET: 00:00:53, est. size: 9.4 MB   
  0:00:25.86 audio: 0kbps video: 1052kbps, ET: 00:00:51, est. size: 9.5 MB   
  0:00:26.40 audio: 0kbps video: 1047kbps, ET: 00:00:52, est. size: 9.4 MB   
  0:00:26.93 audio: 0kbps video: 1038kbps, ET: 00:00:50, est. size: 9.3 MB   
  0:00:27.50 audio: 0kbps video: 1030kbps, ET: 00:00:50, est. size: 9.3 MB   
  0:00:28.03 audio: 0kbps video: 1026kbps, ET: 00:00:49, est. size: 9.2 MB   
  0:00:28.56 audio: 0kbps video: 1024kbps, ET: 00:00:49, est. size: 9.2 MB   
  0:00:29.10 audio: 0kbps video: 1024kbps, ET: 00:00:47, est. size: 9.2 MB   
  0:00:29.63 audio: 0kbps video: 1021kbps, ET: 00:00:47, est. size: 9.2 MB   
  0:00:30.16 audio: 0kbps video: 1018kbps, ET: 00:00:46, est. size: 9.2 MB   
  0:00:30.70 audio: 0kbps video: 1019kbps, ET: 00:00:46, est. size: 9.2 MB   
  0:00:31.23 audio: 0kbps video: 1017kbps, ET: 00:00:45, est. size: 9.1 MB   
  0:00:31.80 audio: 0kbps video: 1059kbps, ET: 00:00:45, est. size: 9.5 MB   
  0:00:32.33 audio: 0kbps video: 1060kbps, ET: 00:00:43, est. size: 9.5 MB   
  0:00:32.86 audio: 0kbps video: 1055kbps, ET: 00:00:44, est. size: 9.5 MB   
  0:00:33.40 audio: 0kbps video: 1052kbps, ET: 00:00:42, est. size: 9.5 MB   
  0:00:33.93 audio: 0kbps video: 1047kbps, ET: 00:00:41, est. size: 9.4 MB   
  0:00:34.46 audio: 0kbps video: 1043kbps, ET: 00:00:41, est. size: 9.4 MB   
  0:00:35.00 audio: 0kbps video: 1040kbps, ET: 00:00:40, est. size: 9.3 MB   
  0:00:35.53 audio: 0kbps video: 1040kbps, ET: 00:00:40, est. size: 9.4 MB   
  0:00:36.06 audio: 0kbps video: 1037kbps, ET: 00:00:39, est. size: 9.3 MB   
  0:00:36.60 audio: 0kbps video: 1035kbps, ET: 00:00:39, est. size: 9.3 MB   
  0:00:37.13 audio: 0kbps video: 1033kbps, ET: 00:00:38, est. size: 9.3 MB   
  0:00:37.70 audio: 0kbps video: 1028kbps, ET: 00:00:38, est. size: 9.2 MB   
  0:00:38.23 audio: 0kbps video: 1020kbps, ET: 00:00:37, est. size: 9.2 MB   
  0:00:38.76 audio: 0kbps video: 1016kbps, ET: 00:00:36, est. size: 9.1 MB   
  0:00:39.29 audio: 0kbps video: 1015kbps, ET: 00:00:36, est. size: 9.1 MB   
  0:00:39.83 audio: 0kbps video: 1016kbps, ET: 00:00:35, est. size: 9.1 MB   
  0:00:40.36 audio: 0kbps video: 1016kbps, ET: 00:00:34, est. size: 9.1 MB   
  0:00:40.90 audio: 0kbps video: 1015kbps, ET: 00:00:34, est. size: 9.1 MB   
  0:00:41.43 audio: 0kbps video: 1014kbps, ET: 00:00:33, est. size: 9.1 MB   
  0:00:41.96 audio: 0kbps video: 1025kbps, ET: 00:00:33, est. size: 9.2 MB   
  0:00:42.50 audio: 0kbps video: 1026kbps, ET: 00:00:33, est. size: 9.2 MB   
  0:00:43.03 audio: 0kbps video: 1023kbps, ET: 00:00:32, est. size: 9.2 MB   
  0:00:43.56 audio: 0kbps video: 1022kbps, ET: 00:00:31, est. size: 9.2 MB   
  0:00:44.10 audio: 0kbps video: 1022kbps, ET: 00:00:31, est. size: 9.2 MB   
  0:00:44.63 audio: 0kbps video: 1024kbps, ET: 00:00:31, est. size: 9.2 MB   
  0:00:45.16 audio: 0kbps video: 1021kbps, ET: 00:00:30, est. size: 9.2 MB   
  0:00:45.70 audio: 0kbps video: 1021kbps, ET: 00:00:29, est. size: 9.2 MB   
  0:00:46.23 audio: 0kbps video: 1028kbps, ET: 00:00:29, est. size: 9.2 MB   
  0:00:46.76 audio: 0kbps video: 1029kbps, ET: 00:00:28, est. size: 9.3 MB   
  0:00:47.30 audio: 0kbps video: 1029kbps, ET: 00:00:28, est. size: 9.3 MB   
  0:00:47.83 audio: 0kbps video: 1029kbps, ET: 00:00:27, est. size: 9.2 MB   
  0:00:48.36 audio: 0kbps video: 1027kbps, ET: 00:00:27, est. size: 9.2 MB   
  0:00:48.90 audio: 0kbps video: 1026kbps, ET: 00:00:27, est. size: 9.2 MB   
  0:00:49.43 audio: 0kbps video: 1024kbps, ET: 00:00:26, est. size: 9.2 MB   
  0:00:49.96 audio: 0kbps video: 1023kbps, ET: 00:00:25, est. size: 9.2 MB   
  0:00:50.50 audio: 0kbps video: 1025kbps, ET: 00:00:25, est. size: 9.2 MB   
  0:00:51.03 audio: 0kbps video: 1022kbps, ET: 00:00:24, est. size: 9.2 MB   
  0:00:51.56 audio: 0kbps video: 1021kbps, ET: 00:00:24, est. size: 9.2 MB   
  0:00:52.10 audio: 0kbps video: 1024kbps, ET: 00:00:23, est. size: 9.2 MB   
  0:00:52.63 audio: 0kbps video: 1023kbps, ET: 00:00:23, est. size: 9.2 MB   
  0:00:53.16 audio: 0kbps video: 1022kbps, ET: 00:00:22, est. size: 9.2 MB   
  0:00:53.70 audio: 0kbps video: 1023kbps, ET: 00:00:22, est. size: 9.2 MB   
  0:00:54.33 audio: 0kbps video: 1031kbps, ET: 00:00:21, est. size: 9.3 MB   
  0:00:54.86 audio: 0kbps video: 1034kbps, ET: 00:00:20, est. size: 9.3 MB   
  0:00:55.40 audio: 0kbps video: 1033kbps, ET: 00:00:20, est. size: 9.3 MB   
  0:00:55.93 audio: 0kbps video: 1032kbps, ET: 00:00:19, est. size: 9.3 MB   
  0:00:56.46 audio: 0kbps video: 1030kbps, ET: 00:00:19, est. size: 9.3 MB   
  0:00:57.00 audio: 0kbps video: 1029kbps, ET: 00:00:18, est. size: 9.2 MB   
  0:00:57.53 audio: 0kbps video: 1027kbps, ET: 00:00:18, est. size: 9.2 MB   
  0:00:58.06 audio: 0kbps video: 1026kbps, ET: 00:00:17, est. size: 9.2 MB   
  0:00:58.66 audio: 0kbps video: 1023kbps, ET: 00:00:16, est. size: 9.2 MB   
  0:00:59.20 audio: 0kbps video: 1023kbps, ET: 00:00:16, est. size: 9.2 MB   
  0:00:59.73 audio: 0kbps video: 1023kbps, ET: 00:00:15, est. size: 9.2 MB   
  0:01:00.26 audio: 0kbps video: 1022kbps, ET: 00:00:15, est. size: 9.2 MB   
  0:01:00.80 audio: 0kbps video: 1028kbps, ET: 00:00:14, est. size: 9.2 MB   
  0:01:01.33 audio: 0kbps video: 1029kbps, ET: 00:00:14, est. size: 9.3 MB   
  0:01:01.86 audio: 0kbps video: 1029kbps, ET: 00:00:13, est. size: 9.2 MB   
  0:01:02.40 audio: 0kbps video: 1028kbps, ET: 00:00:13, est. size: 9.2 MB   
  0:01:02.93 audio: 0kbps video: 1032kbps, ET: 00:00:12, est. size: 9.3 MB   
  0:01:03.46 audio: 0kbps video: 1033kbps, ET: 00:00:12, est. size: 9.3 MB   
  0:01:04.00 audio: 0kbps video: 1033kbps, ET: 00:00:11, est. size: 9.3 MB   
  0:01:04.53 audio: 0kbps video: 1033kbps, ET: 00:00:10, est. size: 9.3 MB   
  0:01:05.06 audio: 0kbps video: 1029kbps, ET: 00:00:10, est. size: 9.2 MB   
  0:01:05.59 audio: 0kbps video: 1025kbps, ET: 00:00:09, est. size: 9.2 MB   
  0:01:06.13 audio: 0kbps video: 1024kbps, ET: 00:00:09, est. size: 9.2 MB   
  0:01:06.66 audio: 0kbps video: 1024kbps, ET: 00:00:08, est. size: 9.2 MB   
  0:01:07.20 audio: 0kbps video: 1022kbps, ET: 00:00:08, est. size: 9.2 MB   
  0:01:07.73 audio: 0kbps video: 1020kbps, ET: 00:00:07, est. size: 9.2 MB   
  0:01:08.26 audio: 0kbps video: 1020kbps, ET: 00:00:07, est. size: 9.2 MB   
  0:01:08.80 audio: 0kbps video: 1020kbps, ET: 00:00:06, est. size: 9.2 MB   
  0:01:09.33 audio: 0kbps video: 1014kbps, ET: 00:00:06, est. size: 9.1 MB   
  0:01:09.86 audio: 0kbps video: 1012kbps, ET: 00:00:05, est. size: 9.1 MB   
  0:01:10.40 audio: 0kbps video: 1012kbps, ET: 00:00:05, est. size: 9.1 MB   
  0:01:10.93 audio: 0kbps video: 1012kbps, ET: 00:00:04, est. size: 9.1 MB   
  0:01:11.46 audio: 0kbps video: 1014kbps, ET: 00:00:03, est. size: 9.1 MB   
  0:01:12.00 audio: 0kbps video: 1013kbps, ET: 00:00:03, est. size: 9.1 MB   
  0:01:12.53 audio: 0kbps video: 1012kbps, ET: 00:00:02, est. size: 9.1 MB   
  0:01:13.06 audio: 0kbps video: 1016kbps, ET: 00:00:02, est. size: 9.1 MB   
  0:01:13.59 audio: 0kbps video: 1014kbps, ET: 00:00:01, est. size: 9.1 MB   
  0:01:14.13 audio: 0kbps video: 1014kbps, ET: 00:00:01, est. size: 9.1 MB   
  0:01:14.66 audio: 0kbps video: 1015kbps, ET: 00:00:00, est. size: 9.1 MB   
  0:01:15.20 audio: 0kbps video: 1019kbps, ET: 00:00:00, est. size: 9.2 MB   
  0:01:15.46 audio: 0kbps video: 1020kbps, time elapsed: 00:01:15           
  0:01:15.43 audio: 0kbps video: 1020kbps, time elapsed: 00:01:15

Ok, this gets VP9 transcodes with ffmpeg working! But ffmpeg2theora is now failing with the mysterious exit code 139 (which if I'm googling correctly indicates a library version mismatch?) when it's not failing with the audio resampling error...
Note I had to do 'apt-get dist-upgrade' to get libavcodec-ffmpeg56 and libvpx2 to update. I guess that shouldn't affect fresh installs. :D

correct! fresh installs will get the latest version, FWIW did you try apt-get upgrade as well? that should have been sufficient (I think) while dist-upgrade is more aggressive

re: ffmpeg2theora we were seeing the segfault with that file, but looks like an upstream bug? see https://phabricator.wikimedia.org/T55863#1498329

brion added a comment.Aug 11 2015, 5:16 PM

Made an attempt to sidestep ffmpeg2theora by using ffmpeg for conversion and oggz-chop to add a skeleton track, but oggz-chop creates an older version of the ogg skeleton track that's missing the seeking information we need. Will see if I can fix upstream ffmpeg2theora I guess... :)

brion added a comment.Aug 11 2015, 6:59 PM

Ok I've got a provisional patch for ffmpeg2theora master, which gets a local build of ffmpeg2theora working in MediaWiki-Vagrant for me. https://bugs.launchpad.net/ffmpeg2theora/+bug/1483861

brion added a comment.Aug 13 2015, 4:31 PM

Ok closed out T69953 as the updated ffmpeg2theora gets things working. I think we're good to start testing production servers if no other regressions. :D

Maybe we can give it a shot on Beta-Cluster-Infrastructure ? Though I am not sure whether the Video scaling jobs are properly running there :-/

brion added a comment.Aug 24 2015, 4:16 PM

@hashar adding notes on T104747 for testing

brion closed this task as Resolved.Aug 28 2015, 11:32 PM
brion claimed this task.

Ok, the details of setting up the updated ffmpeg backport are on separate bugs now. I think it's safe to close this one out -- we have investigated, and decided to go with ffmpeg as everybody's going back to ffmpeg in later versions, so it's the easiest to backport. :)

hashar added a comment.Apr 6 2016, 9:35 PM

OpenStack enquired about imagemagick on Trusty requiring ffmpeg. But ffmpeg got dropped from Ubuntu so I pointed them at this task which show up we had to build ffmpeg from Debian.