Movie preview generation failed Output error

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.2.0
Operating system and version (eg, Ubuntu 20.04): unraid OS
Apache or nginx version (eg, Apache 2.4.25): NGINX v2.9.11
PHP version (eg, 7.4): 7.4.25

The issue you are facing:
Getting errors from Movie Preview

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it: (I don’t know how to replicate it)

The output of your Nextcloud log in Admin > Logging:

Movie preview generation failed Output: ["ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers"," built with gcc 10.3.1 (Alpine 10.3.1_git20210424) 20210424"," configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug"," libavutil 56. 70.100 / 56. 70.100"," libavcodec 58.134.100 / 58.134.100"," libavformat 58. 76.100 / 58. 76.100"," libavdevice 58. 13.100 / 58. 13.100"," libavfilter 7.110.100 / 7.110.100"," libavresample 4. 0. 0 / 4. 0. 0"," libswscale 5. 9.100 / 5. 9.100"," libswresample 3. 9.100 / 3. 9.100"," libpostproc 55. 9.100 / 55. 9.100","[mov,mp4,m4a,3gp,3g2,mj2 @ 0x14b9aa795640] moov atom not found","/tmp/oc_tmp_eNplEc: Invalid data found when processing input"]

Also here’s the screenshot of the error:
image

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'REMOVED',
    'port' => REMOVED,
  ),
  'datadirectory' => '/data',
  'instanceid' => 'REMOVED',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' => 
  array (
    0 => 'REMOVED',
    1 => 'REMOVED',
  ),
  'dbtype' => 'pgsql',
  'version' => '22.2.0.2',
  'overwrite.cli.url' => 'REMOVED',
  'dbname' => 'REMOVED',
  'dbhost' => 'REMOVED',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'REMOVED',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'app_install_overwrite' => 
  array (
    0 => 'previewgenerator',
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'REMOVED',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'default_phone_region' => 'PH',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\MarkDown',
    8 => 'OC\\Preview\\OpenDocument',
    9 => 'OC\\Preview\\Krita',
    10 => 'OC\\Preview\\Movie',
  ),
  'maintenance' => false,
);

The output of your Apache/nginx/system log in /var/log/____:

There is nothing in "error.log" on var/log/nginx

Can you help me with this error? I don’t know how to fix this.

Hi,

were you able to fix this issue? I have the same problem now…

Best!

@HHUBS think it is an error in the movie file:
java - How to add a MOOV atom in a mp4 video file - Stack Overflow
@petre Can you post your logs?

Hi @devnull

I have multiple errors like this one:

Error core Movie preview generation failed Output: {"0":"ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers","1":" built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)","2":" configuration: --prefix=/usr --extra-version=1ubuntu0.1 --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-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared","3":" libavutil 56. 31.100 / 56. 31.100","4":" libavcodec 58. 54.100 / 58. 54.100","5":" libavformat 58. 29.100 / 58. 29.100","6":" libavdevice 58. 8.100 / 58. 8.100","7":" libavfilter 7. 57.100 / 7. 57.100","8":" libavresample 4. 0. 0 / 4. 0. 0","9":" libswscale 5. 5.100 / 5. 5.100","10":" libswresample 3. 5.100 / 3. 5.100","11":" libpostproc 55. 5.100 / 55. 5.100","12":"Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/data/xxxxx/files/Images/zzzz-20190915-WA0002.mp4':","13":" Metadata:","14":" major_brand : mp42","15":" minor_version : 0","16":" compatible_brands: isommp42","17":" creation_time : 2019-09-15T09:12:19.000000Z","18":" com.android.version: 9","...":"Over 20 items, aborting normalization"}

Cheers!

i got the same error. But I noticed that if you delete a file in the trash, then go to the trash, then the preview appears on the file.
Then restore it back, and the preview will be saved. What is this bug, I do not know. But I hope there is a solution.

@petre

"12":"Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/data/xxxxx/files/Images/zzzz-20190915-WA0002.mp4':",
   "13":" Metadata:",
   "14":" major_brand : mp42",

Is it MP42 - Microsoft MPEG-4 V2?
Can you test other video formats e.g. Big Buck Bunny
Is MP42 a generell problem? Sorry i do not found something in the internet.

Hi @devnull

I also see messages that are a bit different: major_brand: qt

Movie preview generation failed Output: {“0”:“ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers”,“1”:" built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)",“2”:" configuration: --prefix=/usr --extra-version=1ubuntu0.1 --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-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared",“3”:" libavutil 56. 31.100 / 56. 31.100",“4”:" libavcodec 58. 54.100 / 58. 54.100",“5”:" libavformat 58. 29.100 / 58. 29.100",“6”:" libavdevice 58. 8.100 / 58. 8.100",“7”:" libavfilter 7. 57.100 / 7. 57.100",“8”:" libavresample 4. 0. 0 / 4. 0. 0",“9”:" libswscale 5. 5.100 / 5. 5.100",“10”:" libswresample 3. 5.100 / 3. 5.100",“11”:" libpostproc 55. 5.100 / 55. 5.100",“12”:“Guessed Channel Layout for Input Stream #0.1 : mono”,“13”:“Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘/xxx/files/Images/yyyy - Junyyy/DSCN07654.MOV’:”,“14”:" Metadata:",“15”:" major_brand : qt",“16”:" minor_version : 537331968",“17”:" compatible_brands: qt niko",“18”:" creation_time :yyy-06-19T14:47:31.000000Z","…":“Over 20 items, aborting normalization”}

I wasn’t able to get the Big Buck Bunny you linked (server issues), but I got a couple other Big Buck Bunny sample mp4 and they worked without errors.

I can share this one file that I tested a couple times and it always throws an error when I open it.

Thanks for trying to help!

Cheers,
Petre

I tested your video on four nextcloud instances and it works all fine.

One version:
folder with the video
video directly

Thanks for testing.

I am running Nextcloud 22.2.3.0 and the video is working fain for me too. It’s just the thumbnail generation error. I now see that the video has an actual thumbnail when I visit that folder, so I don’t even know what’s up with that error…

FYI, this issue is still present in a fresh NC23 install…

{"reqId":"irkVABAEX7gGG0LMhMzL","level":3,"time":"2022-03-31T22:04:48+00:00","remoteAddr":"192.168.1.254","user":"","app":"core","method":"POST","url":"/index.php/apps/occweb/cmd","message":"Movie preview generation failed Output: {\"0\":\"ffmpeg version 4.3.3-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers\",\"1\":\"  built with gcc 10 (Debian 10.2.1-6)\",\"2\":\"  configuration: --prefix=/usr --extra-version=0+deb11u1 --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-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --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-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\",\"3\":\"  libavutil      56. 51.100 / 56. 51.100\",\"4\":\"  libavcodec     58. 91.100 / 58. 91.100\",\"5\":\"  libavformat    58. 45.100 / 58. 45.100\",\"6\":\"  libavdevice    58. 10.100 / 58. 10.100\",\"7\":\"  libavfilter     7. 85.100 /  7. 85.100\",\"8\":\"  libavresample   4.  0.  0 /  4.  0.  0\",\"9\":\"  libswscale      5.  7.100 /  5.  7.100\",\"10\":\"  libswresample   3.  7.100 /  3.  7.100\",\"11\":\"  libpostproc    55.  7.100 / 55.  7.100\",\"12\":\"Guessed Channel Layout for Input Stream #0.1 : mono\",\"13\":\"Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/raid6/nextdata//files/PhotoFamille/2012-08-12 PHOTOS/PHOTOS 079.MOV':\",\"14\":\"  Metadata:\",\"15\":\"    creation_time   : 2012-06-09T16:06:08.000000Z\",\"16\":\"  Duration: 00:00:02.50, start: 0.000000, bitrate: 11198 kb/s\",\"17\":\"    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 11129 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc (default)\",\"18\":\"    Metadata:\",\"...\":\"Over 20 items, aborting normalization\"}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36","version":"23.0.3.2"}