uclibs / scholar_uc_legacy

Source code for Scholar@UC up to version 3.x. Replaced by ucrate
Other
5 stars 1 forks source link

Video derivatives are broken #1632

Closed hortongn closed 7 years ago

hortongn commented 7 years ago

Even with ffmpeg turned on, Scholar is not creating a web-optimized derivative when a video is uploaded. I tested this on the servers and in my local environment and it appears broken in both.

This used to work, but that may have been before our Sufia->Hyrax migration.

crowesn commented 7 years ago

On local vagrant:

Error message: ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --en
able-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable
-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable
-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/vagrant/development/scholar_uc/tmp/uploads/hyrax/uploaded_file/file/6/VID_20151214_182907545.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2015-12-14 23:29:24
  Duration: 00:00:14.44, start: 0.000000, bitrate: 17554 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17328 kb/s, SAR 1:1 DAR 16:9, 23.64 fps, 23.98 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2015-12-14 23:29:24
      handler_name    : VideoHandle
      encoder         : MOTO
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2015-12-14 23:29:24
      handler_name    : SoundHandle
Unknown encoder 'libvpx'
hortongn commented 7 years ago

The ffmpeg you're using doesn't have support for libvpx compiled in. The one we're using in our server environments does. Maybe try using that.

https://github.com/uclibs/scholar_uc/wiki/Scholar-3.x-Server-Environment-Upgrade#ffmpeg

hortongn commented 7 years ago

Replaced with new issue #1645

crowesn commented 7 years ago

Sprint - Scholar 3.0 🐞🐞🐞