rvion / CushyStudio

🛋 The AI and Generative Art platform for everyone
https://docs.cushystudio.com/
GNU Affero General Public License v3.0
662 stars 48 forks source link

Video: Error creating video #96

Closed ricklove closed 9 months ago

ricklove commented 9 months ago
> wsl --version
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.3693
Error creating video: Command failed: ffmpeg -f concat -safe 0 -r 2 -i "D:/Projects/ai/CushyStudio/outputs/video-1701642818181-1.mp4.frames.txt" -c:v libx264 -vf "fps=60" -pix_fmt yuva420p "D:/Projects/ai/CushyStudio/outputs/video-1701642818181-1.mp4"
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200523
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  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
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[concat @ 000001c775ccaa80] Impossible to open 'D:/Projects/ai/CushyStudio/outputs/D:/Projects/ai/CushyStudio/outputs/ComfyUI_00610_.png'
D:/Projects/ai/CushyStudio/outputs/video-1701642818181-1.mp4.frames.txt: Invalid argument

However, the args seem ok, so this might be an issue with how ffmpeg works with abs paths on windows:

Creating video with command: ffmpeg -f concat -safe 0 -r 2 -i "D:/Projects/ai/CushyStudio/outputs/video-1701642989748-1.mp4.frames.txt" -c:v libx264 -vf "fps=60" -pix_fmt yuva420p "D:/Projects/ai/CushyStudio/outputs/video-1701642989748-1.mp4"
ricklove commented 9 months ago
ricklove commented 9 months ago

It doesn't like the abs path in the .text file. This works:

file 'ComfyUI_00620_.png'
file 'ComfyUI_00621_.png'
rvion commented 9 months ago

Thanks !