Page MenuHomePhabricator

Specific uploaded video will not transcode in any resolution, no thumbs available (due to ffmpeg running into issues)
Open, Needs TriagePublic

Description

transcode and thumbs do not work for this video.

Steps to recreate:

  • open description page -> no preview image
  • scroll down to transcode
  • press "restart transcode" for any resolution
  • reload page
  • no thumb
  • no running transcode
  • no finished transcode

same video also in another task as example of a multiple part video

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 29 2020, 1:21 PM
TheDJ added a subscriber: TheDJ.Aug 24 2020, 8:32 PM
'/usr/bin/ffmpeg' -y -i '/tmp/localcopy_929a6463ef1e.webm' -threads 8 -row-mt 1 -pix_fmt yuv420p -crf '33' -qmin '10' -qmax '51' -vb '1280000' -vcodec libvpx-vp9 -tile-columns '1' -auto-alt-ref 1 -lag-in-frames 25 -g '240' -speed 4 -f webm -s 854x480 -max_muxing_queue_size 1024 -an -pass '1' -passlogfile '/tmp/transcode_480p.vp9.webmca878df4f1d8.webm.log' /dev/null

Exitcode: 1
Memory: 4194304

ffmpeg version 3.2.14-1~deb9u1+wmf3 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1+wmf3' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[matroska,webm @ 0x561ac5f60140] Could not find codec parameters for stream 0 (Video: vp9, none, 7680x4320): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/tmp/localcopy_929a6463ef1e.webm':
  Metadata:
    ENCODER         : Lavf58.45.100
  Duration: 00:01:13.81, start: -0.007000, bitrate: 81452 kb/s
    Stream #0:0(eng): Video: vp9, none, 7680x4320, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      HANDLER_NAME    : VideoHandle
      ENCODER         : Lavc58.91.100 libvpx-vp9
      DURATION        : 00:01:13.809000000
    Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      HANDLER_NAME    : SoundHandle
      ENCODER         : Lavc58.91.100 libopus
      DURATION        : 00:01:13.757000000
[buffer @ 0x561ac5feca20] Unable to parse option value \"-1\" as pixel format
    Last message repeated 1 times
[buffer @ 0x561ac5feca20] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:0 @ 0x561ac5feb9c0] Error applying options to the filter.
Error opening filters!

So something in the video is incorrect, ffmpeg cannot figure it out and bails.

The file was generated with ffmpeg in a batch run with identical settings together with these videos:
Dyke March Berlin 2020 002 part 1 of 2.webm
Dyke March Berlin 2020 003 part 1 of 2.webm
Dyke March Berlin 2020 003 part 2 of 2.webm
All three other videos have correct thumbs and transcodings.

If I run the above ffmpeg call on the local copy of the four files, I get the following error on all of them:

  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, matroska,webm, from 'db5-1.webm':
  Metadata:
    COM.ANDROID.VERSION: 10
    MAJOR_BRAND     : mp42
    MINOR_VERSION   : 0
    COMPATIBLE_BRANDS: isommp42
    COM.ANDROID.CAPTURE.FPS: 24.000000
    ENCODER         : Lavf58.45.100
  Duration: 00:07:15.28, start: -0.007000, bitrate: 78937 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 7680x4320, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      HANDLER_NAME    : VideoHandle
      ENCODER         : Lavc58.91.100 libvpx-vp9
      DURATION        : 00:07:14.799000000
    Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      HANDLER_NAME    : SoundHandle
      ENCODER         : Lavc58.91.100 libopus
      DURATION        : 00:07:15.278000000
Expected number for pass but found: '1'
TheDJ added a comment.Aug 27 2020, 6:01 PM

Remember that we are also on a version of ffmpeg that is probably not brand new. It might just be that there is a bug that got patched since.

Aklapper renamed this task from Uploaded video will not transcode in any resolution, no thumbs available to Specific uploaded video will not transcode in any resolution, no thumbs available (due to ffmpeg running into issues).Sep 23 2020, 3:43 PM