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.

1 Like

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"}

1 Like

Same problem in version 25.0.4

Error core Movie preview generation failed Output: [“ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers”," built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219"," configuration: --prefix=/usr --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --disable-debug"," libavutil 57. 17.100 / 57. 17.100"," libavcodec 59. 18.100 / 59. 18.100"," libavformat 59. 16.100 / 59. 16.100"," libavdevice 59. 4.100 / 59. 4.100"," libavfilter 8. 24.100 / 8. 24.100"," libswscale 6. 4.100 / 6. 4.100"," libswresample 4. 3.100 / 4. 3.100"," libpostproc 56. 3.100 / 56. 3.100",“[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f22fb0f38c0] moov atom not found”,“/mnt/ncdata/tmp/oc_tmp_EHmgFL: Invalid data found when processing input”]

Has anyone found a solution to this problem?

Hello everyone,

I just upgrade NC docker from version 27.0.1 to 28.0.4 then video thumbnail cannot generate, error:

{"reqId":"oQFTvtohVtFzPMvscEC5","level":1,"time":"2024-04-08T06:17:09+00:00","remoteAddr":"value-redacted","user":"value-redacted","app":"core","method":"GET","url":"/apps/photos/api/v1/preview/3751504?etag=e23a8f760b8af6d8b8e699d141e7ce15&x=64&y=64","message":"Movie preview generation failed Output: ffmpeg version 5.1.4-0+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers\n  built with gcc 12 (Debian 12.2.0-14)\n  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --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-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared\n  libavutil      57. 28.100 / 57. 28.100\n  libavcodec     59. 37.100 / 59. 37.100\n  libavformat    59. 27.100 / 59. 27.100\n  libavdevice    59.  7.100 / 59.  7.100\n  libavfilter     8. 44.100 /  8. 44.100\n  libswscale      6.  7.100 /  6.  7.100\n  libswresample   4.  7.100 /  4.  7.100\n  libpostproc    56.  6.100 / 56.  6.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/html/data/value-redacted/files/InstantUpload/Camera/20240309_201835.mp4':\n  Metadata:\n    major_brand     : mp42\n    minor_version   : 0\n    compatible_brands: isommp42\n    creation_time   : 2024-03-09T13:19:02.000000Z\n    location        : +10.7676+106.7844/\n    location-eng    : +10.7676+106.7844/\n    com.android.version: 12\n    com.android.capture.fps: 30.000000\n  Duration: 00:00:26.11, start: 0.000000, bitrate: 14151 kb/s\n  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 13891 kb/s, 29.91 fps, 120 tbr, 90k tbn (default)\n    Metadata:\n      creation_time   : 2024-03-09T13:19:02.000000Z\n      handler_name    : VideoHandle\n      vendor_id       : [0][0][0][0]\n    Side data:\n      displaymatrix: rotation of -90.00 degrees\n  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)\n    Metadata:\n      creation_time   : 2024-03-09T13:19:02.000000Z\n      handler_name    : SoundHandle\n      vendor_id       : [0][0][0][0]\nStream mapping:\n  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))\nError while opening decoder for input stream #0:0 : Operation not permitted","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0","version":"28.0.4.1","data":{"app":"core"},"id":"66138be6db22e"}

The docker image build from NC official image with additional packages ffmpeg imagemagick ghostscript