toolforge / video2commons

Transfer video and audio from external sites to Commons.
https://video2commons.toolforge.org/
GNU General Public License v3.0
43 stars 24 forks source link

Fails to convert an mp4 #117

Closed acagastya closed 4 years ago

acagastya commented 4 years ago

Hi. I had been attempting to convert and upload a video interview which is in mp4 format and has a file size of 247 MB. However, after uploading, when I proceed with conversion, I get this error:

An exception occurred: TaskError: /mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffmpeg -y -i /srv/v2c/output/85b4da94a42afb54/dl.unknown_video -threads 16 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus -pass 2 -passlogfile /srv/v2c/output/85b4da94a42afb54/dl.unknown_video.vp9.webm.log /srv/v2c/output/85b4da94a42afb54/dl.unknown_video.vp9.webm Exitcode: 1

Can anyone look at the logs and fix it?

zhuyifei1999 commented 4 years ago

The output of ffmpeg is not logged. Let me see if I can just run it and see what happens.

zhuyifei1999 commented 4 years ago
zhuyifei1999@encoding06:/tmp$ /mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffmpeg -y -i 3633ae12-93fb-11ea-bf64-162e1bb092a6 -threads 16 -row-mt 1 -qmin 19 -qmax 19 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -f webm -ss 0 -ab 128000 -ar 48000 -acodec libopus -pass 2 -passlogfile 3633ae12-93fb-11ea-bf64-162e1bb092a6.vp9.webm.log 3633ae12-93fb-11ea-bf64-162e1bb092a6.vp9.webm
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.0 (Gentoo 9.2.0-r4 p5)
  configuration: --prefix=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr --libdir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64 --shlibdir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/lib64 --docdir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/doc/ffmpeg-4.2.2/html --mandir=/mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=ivybridge -mtune=native -O3 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libdav1d --disable-libfdk-aac --enable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --enable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-libtesseract --disable-lv2 --disable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-avx2 --disable-fma3 --disable-fma4 --disable-xop --cpu=ivybridge --disable-doc --disable-htmlpages --enable-manpages
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3633ae12-93fb-11ea-bf64-162e1bb092a6':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2
    creation_time   : 2020-05-12T00:00:49.000000Z
  Duration: 00:30:39.10, start: 0.000000, bitrate: 1075 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 1003 kb/s, 8 fps, 8 tbr, 10k tbn, 20k tbc (default)
    Metadata:
      creation_time   : 2020-05-12T00:00:49.000000Z
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      creation_time   : 2020-05-12T00:00:49.000000Z
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
  Stream #0:1 -> #0:1 (aac (native) -> opus (libopus))
Press [q] to stop, [?] for help
Too many packets buffered for output stream 0:1.
[libopus @ 0x5616168bc640] 1 frames left in the queue on closing
Conversion failed!

https://stackoverflow.com/a/50262835 says to use -max_muxing_queue_size 4096 Huh...

acagastya commented 4 years ago

@zhuyifei1999 So is there a way to upload the file? I really need that file on-wiki.

zhuyifei1999 commented 4 years ago

Deployed. Just restart the task.

acagastya commented 4 years ago

I am trying. Thank you so much, @zhuyifei1999. You have been helpful like always! :)