Summary
TimedMediaHandler change #803308 passes the -fpsmax option to FFmpeg. The option has been released with FFmpeg 4.4 but the Wikimedia infrastructure has 4.1.9-0+deb10u1 which leads to:
Unrecognized option 'fpsmax'. Error splitting the argument list: Option not found
It seems to happen when TimedMediaHandler is unable to retrieve the framerate from the source file, it would then passes -fpsmax to enforce a maximum framerate.
Steps to replicate the issue (include links if applicable):
- Record a video on a Canon R5 4K-D at 50.00fps
- Transcode to webm/VP9/Vorbis using handbreak "slower" encoder preset. Same result stripping out sound entirely
- Upload to commons using [[Special:upload]]
What happens?:
The various transcodes to lower quality/size throw up a massive error and don't happen.
Examples (note other than horse plowing these are loud):
*https://commons.wikimedia.org/wiki/File:Fv101_Scorpion_Gdsf_2022_56.webm
*https://commons.wikimedia.org/wiki/File:Horse_Plowing_Gdsf_2022.webm
Seems to be ok with 4K 25FPS
*https://commons.wikimedia.org/wiki/File:Jacobsen_garden_tractor_1963.webm
What should have happened instead?:
Videos should have successfully transcoded to lower size
Other information (browser name/version, screenshots, etc.):
The error message states: Unrecognized option 'fpsmax'. Error splitting the argument list: Option not found
Full error with newlines inserted for readability purposes:
/usr/bin/ffmpeg \ -nostdin -y -i '/tmp/localcopy_1a29613db174.webm' \ -fpsmax 60 \ -threads 8 -row-mt 1 -pix_fmt yuv420p -vcodec libvpx-vp9 -tile-columns '3' -auto-alt-ref 0 -lag-in-frames '0' \ -quality good -speed 4 -f webm -g '240' \ -b:v 17200000 -s 3840x2026 -max_muxing_queue_size 1024 -an \ -pass '1' -passlogfile '/tmp/transcode_2160p.vp9.webm3c3f4f63db69.webm.log' /dev/null Exitcode: 1 Memory: 4194304 ffmpeg version 4.1.9-0+deb10u1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --prefix=/usr --extra-version=0+deb10u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 Unrecognized option 'fpsmax'. Error splitting the argument list: Option not found