memes-forever / Stable-diffusion-webui-video

156 stars 35 forks source link

Error while opening encoder for output stream #0:0 #10

Open Droopys opened 1 year ago

Droopys commented 1 year ago

Hey, I Ran your script perfectly fine once before, but when I went to use it again... I received basically the identical error you see below, I reinstalled Automatic 1111's GUI, then Re-extracted your script, but still no luck on my end to get it to produce an MP4..just images. Any ideas?

Downloading: "https://github.com/GyanD/codexffmpeg/releases/download/5.1.1/ffmpeg-5.1.1-full_build.zip" to D:\SuperStableDiffusion\stable-diffusion-webui\ffmpeg\ffmpeg-5.1.1-full_build.zip

100%|███████████████████████████████████████████████████████████████████████████████| 141M/141M [00:25<00:00, 5.82MB/s] ffmpeg version 5.1.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 Input #0, concat, from 'D:\SuperStableDiffusion\stable-diffusion-webui\outputs\img2img-videos\00325-3301527471.mp4.txt': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgb24(pc), 592x735, 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (png (native) -> h264 (libx264)) Press [q] to stop, [?] for help [concat @ 000001e8f24de680] DTS -230584300921369 < 0 out of order DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 DTS -230584300921369, next:40000 st:0 invalid dropping PTS -230584300921369, next:40000 invalid dropping st:0 [libx264 @ 000001e8f250ff40] height not divisible by 2 (592x735) Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! ffplay version 5.1.1-full_build-www.gyan.dev Copyright (c) 2003-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 Total progress: 75%|█████████████████████████████████████████▉ | 26312/35100 [8:58:25<2:59:49, 1.23s/it] [mov,mp4,m4a,3gp,3g2,mj2 @ 00000223498d3a00] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible! [mov,mp4,m4a,3gp,3g2,mj2 @ 00000223498d3a00] moov atom not found D:\SuperStableDiffusion\stable-diffusion-webui\outputs\img2img-videos\00325-3301527471.mp4: Invalid data found when processing input

duxington commented 1 year ago

I'm having the exact same issue. Tried reinstalling to no avail

TikaUnas commented 1 year ago

Same issue, if anyone figured it out

ZiAn-Su commented 1 year ago

rescale the image to x32.