Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio files won't make MP4s #146

Open
ArtisNegoti opened this issue Sep 29, 2022 · 19 comments
Open

Audio files won't make MP4s #146

ArtisNegoti opened this issue Sep 29, 2022 · 19 comments

Comments

@ArtisNegoti
Copy link

Hello
I am trying to make Mp4s with audio Mp3. When I run your layers_audio example, I can make GIFs and Mp4s if I set enable audio to false. If I set enable audio to true and make step3, the step3 temp file contains all the .png files to make an Mp4, but the only Mp4s that are made are for items (i.e. not pink background) that did not have a corresponding audio file. The build folder only contains Mp4s made from items that did not have audio files and just skips making any Mp4s that should have audio files. I am on a PC and new to programming.

I can make Mp4s and GIFs from all your other example files. I have successfully built another collection of 10k GIFs using the engine, so I think my environment is working.

Thanks for this! The program does amazing things-Just need the audio to work now...

The errors it throws look like:

'layers_audio\Background\Pink#100\audio.mp3': No such file or directory

./step3_generative_sheet_to_output/temp\1\output.mp3: No such file or directory

'layers_audio\Ball\Red#20\lofi.mp3': No such file or directory

all the code when I make step 3:

python3 step3_generative_sheet_to_output/build.py
Starting step 3: Converting sprite sheets to mp4
Setting up directory ./build/mp4
Directory ./build/mp4 exists, deleting directory
Creating directory ./build/mp4
Setting up directory ./build/images
Directory ./build/images exists, deleting directory
Creating directory ./build/images
Setting up directory ./step3_generative_sheet_to_output/temp
Directory ./step3_generative_sheet_to_output/temp exists, deleting directory
Creating directory ./step3_generative_sheet_to_output/temp
Setting up directory ./step3_generative_sheet_to_output/temp\0
Creating directory ./step3_generative_sheet_to_output/temp\0
Setting up directory ./step3_generative_sheet_to_output/temp\0
Converting spritesheet to mp4 for 0.png
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\0/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000002183c6b1700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 000002183c6b1700] profile High, level 3.2, 4:2:0, 8-bit
[libx264 @ 000002183c6b1700] 264 - core 164 r3099 e067ab0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=3.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to './build/mp4\0.mp4':
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1000x1000, q=2-31, 12 fps, 12288 tbn
Metadata:
encoder : Lavc libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 24 fps=0.0 q=-1.0 Lsize= 252kB time=00:00:01.75 bitrate=1179.5kbits/s speed= 6x
video:251kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.426569%
[libx264 @ 000002183c6b1700] frame I:1 Avg QP: 0.32 size: 24845
[libx264 @ 000002183c6b1700] frame P:11 Avg QP: 4.51 size: 10361
[libx264 @ 000002183c6b1700] frame B:12 Avg QP: 7.78 size: 9786
[libx264 @ 000002183c6b1700] consecutive B-frames: 16.7% 41.7% 25.0% 16.7%
[libx264 @ 000002183c6b1700] mb I I16..4: 94.8% 0.1% 5.1%
[libx264 @ 000002183c6b1700] mb P I16..4: 2.4% 0.4% 1.3% P16..4: 1.0% 0.9% 0.6% 0.0% 0.0% skip:93.4%
[libx264 @ 000002183c6b1700] mb B I16..4: 0.5% 0.0% 1.2% B16..8: 2.0% 1.0% 0.5% direct: 0.3% skip:94.5% L0:58.4% L1:38.6% BI: 2.9%
[libx264 @ 000002183c6b1700] 8x8 transform intra:3.0% inter:4.0%
[libx264 @ 000002183c6b1700] coded y,uvDC,uvAC intra: 13.7% 23.1% 22.9% inter: 1.0% 2.1% 2.1%
[libx264 @ 000002183c6b1700] i16 v,h,dc,p: 93% 7% 0% 0%
[libx264 @ 000002183c6b1700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 1% 77% 0% 1% 0% 0% 0% 1%
[libx264 @ 000002183c6b1700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 21% 25% 6% 2% 5% 3% 5% 5%
[libx264 @ 000002183c6b1700] i8c dc,h,v,p: 79% 11% 8% 3%
[libx264 @ 000002183c6b1700] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000002183c6b1700] ref P L0: 66.2% 2.0% 7.4% 24.4%
[libx264 @ 000002183c6b1700] ref B L0: 85.5% 12.6% 1.8%
[libx264 @ 000002183c6b1700] ref B L1: 99.8% 0.2%
[libx264 @ 000002183c6b1700] kb/s:1024.98
Setting up directory ./step3_generative_sheet_to_output/temp\1
Creating directory ./step3_generative_sheet_to_output/temp\1
Setting up directory ./step3_generative_sheet_to_output/temp\1
Converting spritesheet to mp4 for 1.png
Setting up directory ./step3_generative_sheet_to_output/temp\1
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\1
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\1/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\1\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\2
Creating directory ./step3_generative_sheet_to_output/temp\2
Setting up directory ./step3_generative_sheet_to_output/temp\2
Converting spritesheet to mp4 for 2.png
Setting up directory ./step3_generative_sheet_to_output/temp\2
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Ball\Red#20\lofi.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\2
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\2/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\2\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\3
Creating directory ./step3_generative_sheet_to_output/temp\3
Setting up directory ./step3_generative_sheet_to_output/temp\3
Converting spritesheet to mp4 for 3.png
Setting up directory ./step3_generative_sheet_to_output/temp\3
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\3
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\3/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\3\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\4
Creating directory ./step3_generative_sheet_to_output/temp\4
Setting up directory ./step3_generative_sheet_to_output/temp\4
Converting spritesheet to mp4 for 4.png
Setting up directory ./step3_generative_sheet_to_output/temp\4
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\4
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\4/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\4\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\5
Creating directory ./step3_generative_sheet_to_output/temp\5
Setting up directory ./step3_generative_sheet_to_output/temp\5
Converting spritesheet to mp4 for 5.png
Setting up directory ./step3_generative_sheet_to_output/temp\5
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\5
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\5/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\5\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\6
Creating directory ./step3_generative_sheet_to_output/temp\6
Setting up directory ./step3_generative_sheet_to_output/temp\6
Converting spritesheet to mp4 for 6.png
Setting up directory ./step3_generative_sheet_to_output/temp\6
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\6
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\6/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\6\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\7
Creating directory ./step3_generative_sheet_to_output/temp\7
Setting up directory ./step3_generative_sheet_to_output/temp\7
Converting spritesheet to mp4 for 7.png
Setting up directory ./step3_generative_sheet_to_output/temp\7
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\7
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\7/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\7\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\8
Creating directory ./step3_generative_sheet_to_output/temp\8
Setting up directory ./step3_generative_sheet_to_output/temp\8
Converting spritesheet to mp4 for 8.png
Setting up directory ./step3_generative_sheet_to_output/temp\8
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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
'layers_audio\Background\Pink#100\audio.mp3': No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\8
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\8/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
./step3_generative_sheet_to_output/temp\8\output.mp3: No such file or directory
Setting up directory ./step3_generative_sheet_to_output/temp\9
Creating directory ./step3_generative_sheet_to_output/temp\9
Setting up directory ./step3_generative_sheet_to_output/temp\9
Converting spritesheet to mp4 for 9.png
ffmpeg version 5.1.2-essentials_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-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
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, image2, from './step3_generative_sheet_to_output/temp\9/%d.png':
Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1000x1000, 12 fps, 12 tbr, 12 tbn
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000018ddf481700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0000018ddf481700] profile High, level 3.2, 4:2:0, 8-bit
[libx264 @ 0000018ddf481700] 264 - core 164 r3099 e067ab0 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=3.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to './build/mp4\9.mp4':
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1000x1000, q=2-31, 12 fps, 12288 tbn
Metadata:
encoder : Lavc libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 24 fps=0.0 q=-1.0 Lsize= 242kB time=00:00:01.75 bitrate=1130.7kbits/s speed=6.63x
video:240kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.441815%
[libx264 @ 0000018ddf481700] frame I:1 Avg QP: 0.32 size: 25415
[libx264 @ 0000018ddf481700] frame P:15 Avg QP: 4.51 size: 9783
[libx264 @ 0000018ddf481700] frame B:8 Avg QP: 7.84 size: 9176
[libx264 @ 0000018ddf481700] consecutive B-frames: 37.5% 50.0% 12.5% 0.0%
[libx264 @ 0000018ddf481700] mb I I16..4: 94.9% 0.2% 5.0%
[libx264 @ 0000018ddf481700] mb P I16..4: 2.0% 0.4% 1.2% P16..4: 1.0% 1.0% 0.6% 0.0% 0.0% skip:93.9%
[libx264 @ 0000018ddf481700] mb B I16..4: 0.4% 0.0% 1.1% B16..8: 1.9% 0.9% 0.5% direct: 0.3% skip:94.9% L0:59.4% L1:38.3% BI: 2.4%
[libx264 @ 0000018ddf481700] 8x8 transform intra:3.5% inter:5.5%
[libx264 @ 0000018ddf481700] coded y,uvDC,uvAC intra: 12.7% 21.2% 21.0% inter: 1.1% 2.0% 2.0%
[libx264 @ 0000018ddf481700] i16 v,h,dc,p: 93% 7% 0% 0%
[libx264 @ 0000018ddf481700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 3% 79% 1% 1% 0% 0% 0% 1%
[libx264 @ 0000018ddf481700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 21% 25% 5% 3% 4% 4% 5% 6%
[libx264 @ 0000018ddf481700] i8c dc,h,v,p: 81% 10% 7% 2%
[libx264 @ 0000018ddf481700] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000018ddf481700] ref P L0: 65.5% 3.4% 9.6% 21.5%
[libx264 @ 0000018ddf481700] ref B L0: 80.0% 20.0%
[libx264 @ 0000018ddf481700] kb/s:982.27

@jalagar
Copy link
Owner

jalagar commented Sep 30, 2022

Hi @ArtisNegoti I'll be traveling the next few days so responses may be delayed, but sorry you are having issues! However I am glad to hear you were able to generate your own GIF collections being new to coding :). I'll try to take a look in a bit thank you

@ArtisNegoti
Copy link
Author

Thanks, Jalagar!
On my end, I can try and load up the program on another computer to see if it is some computer specific issue.
I can't stress enough how awesome I think the tool is!

@jalagar
Copy link
Owner

jalagar commented Sep 30, 2022

@ArtisNegoti glad you like the tool! Hmm as I'm looking through this, the / and \ are all flipped, which to me makes it seem like this is a Windows issue. I wonder if os.path.join doesn't work on Windows...

I tried a fix on the latest code, can you try download a fresh copy and try it again?

@ArtisNegoti
Copy link
Author

Hi Jalagar
I downloaded the latest code and was able to make mp4s from the layers_audio folder example when enable audio was set to false. When I set enable audio to true, I did not generate any mp4s at all (the last time it just didn't make the ones that had audio files associated with them) I received the following errors:

python3 step3_generative_sheet_to_output/build.py
Starting step 3: Converting sprite sheets to mp4
Setting up directory ./build/mp4
Directory ./build/mp4 exists, deleting directory
Creating directory ./build/mp4
Setting up directory ./step3_generative_sheet_to_output/temp
Directory ./step3_generative_sheet_to_output/temp exists, deleting directory
Creating directory ./step3_generative_sheet_to_output/temp
Setting up directory ./step3_generative_sheet_to_output/temp\0
Creating directory ./step3_generative_sheet_to_output/temp\0
Setting up directory ./step3_generative_sheet_to_output/temp\0
Converting spritesheet to mp4 for 0.png
Traceback (most recent call last):
File "C:\Users\avanl\OneDrive\Desktop\NFT Smart Contract Test\animated-art-engine-main\step3_generative_sheet_to_output\build.py", line 410, in
main()
File "C:\Users\avanl\OneDrive\Desktop\NFT Smart Contract Test\animated-art-engine-main\step3_generative_sheet_to_output\build.py", line 396, in main
generate_output(
File "C:\Users\avanl\OneDrive\Desktop\NFT Smart Contract Test\animated-art-engine-main\step3_generative_sheet_to_output\build.py", line 319, in generate_output
convert_pngs_to_output(
File "C:\Users\avanl\OneDrive\Desktop\NFT Smart Contract Test\animated-art-engine-main\step3_generative_sheet_to_output\build.py", line 179, in convert_pngs_to_output
audio_file_paths.extend(get_audio_file_from_json(attribute_config))
File "C:\Users\avanl\OneDrive\Desktop\NFT Smart Contract Test\animated-art-engine-main\step3_generative_sheet_to_output\build.py", line 119, in get_audio_file_from_json
for folder_value in os.listdir(value_folder):
FileNotFoundError: [WinError 3] The system cannot find the path specified: '\Background'
make: *** [Makefile:12: step3] Error 1
PS C:\Users\avanl\OneDrive\Desktop\NFT Smart Contract Test\animated-art-engine-main>

@jalagar
Copy link
Owner

jalagar commented Oct 1, 2022

Hmm super weird, looking like Windows doesn't like the separators... Not sure if you're much of a coder but you can go to step3/build.py and edit line 118 to value_folder = os.path.join(layers_folder, trait_type). It'll probably take some combination of using os.sep and not using os.sep to get it to work on Windows.

Or try open a terminal in VS Code instead of using power shell which is what you're using right now. Terminal > New Terminal and then running the commands from there.

Essentially with Windows it depends on what Terminal environment you're using to run your code

@ArtisNegoti
Copy link
Author

Hi Jalagar
Thanks for continuing to work on this with me. I am already using Visual Studio Code as my terminal environment. I went to line 118 of step3/build.py and it is identical to the edit you suggest already. I don't know how to adjust combinations of using os.sep and not using os.sep, but am willing to follow instructions. :-)

Is there another terminal environment I should try?

@jalagar
Copy link
Owner

jalagar commented Oct 3, 2022

Hmm @ArtisNegoti no that should work... Are you able to join Hashlip's Discord https://discord.gg/Wg9SJkYWnD and go to #animated-art-engine, someone else was having a similar issue. Can you post the full error? Sorry again for this

@jalagar
Copy link
Owner

jalagar commented Oct 4, 2022

@ArtisNegoti try download the latest code, I think I fixed the bug

@ArtisNegoti
Copy link
Author

oh yeah, baby. I've got Mp4s with sound! thx so much!!!!

@jalagar
Copy link
Owner

jalagar commented Oct 4, 2022

Great! sorry for the bugs

@jalagar jalagar closed this as completed Oct 4, 2022
@ArtisNegoti
Copy link
Author

Jalagar
I got it to work, but there are a couple of issues:

  1. if the folder name where the audio file is stored has spaces, the system can't find the audio file. (try putting the audio file in the dark blue folder in backgrounds to reproduce error) if you call that file dark_blue, then it works.
  2. If you want to assign a trait to the folder (ie called by a different folder name in the metadata) that holds the audio file, the Mp4 is created without sound. You can't assign traits to the folder where the audio file is stored if you want the audio file to be built into the Mp4.

@ArtisNegoti
Copy link
Author

also, it looks like when you enable audio and set const shuffleLayerConfigurations = true; the generative sheets made in step2 do not match the json files being made in the build. The final build of step3 has the mp4s, but they (obviously) don't match the json files, and the sound files seem to be added randomly to the mp4 (I had two sound files that were supposed to match specific layers, and they did not match up in the final mp4.

I am running a set now where const shuffleLayerConfigurations = false; to see if it works properly. Looks like step2 generative sheets are matching json files in the build...will keep you posted.

@jalagar
Copy link
Owner

jalagar commented Oct 6, 2022

Got it sorry for the issues @ArtisNegoti, can you re-open this issue? I might have some time next few days to look into it.

@ArtisNegoti
Copy link
Author

I don't think I have the ability to reopen the closed issue.

Also, I ran a set of 800 mp4s with shuffleLayerConfigurations= false and the mp4s match the json and the audio files were inserted correctly, so it is definitely an issue of the audio functionality not playing nice with the shuffleLayerconfigurations functionality.

@jalagar
Copy link
Owner

jalagar commented Oct 6, 2022

Interesting, ok yea probably a bug with shuffleLayerConfigurations and audio files.

I re-opened this issue. Can you summarize what exact issues you have?

@jalagar jalagar reopened this Oct 6, 2022
@ArtisNegoti
Copy link
Author

to summarize, looks like three issues of audio functionality not playing nice with other functionality:

  1. the folder name where the audio file is stored cannot have spaces in the name or step3 can't find the folder. You can reproduce by putting your audio file in the dark blue folder of the enable_audio example. You can also just use an underscore instead of a space, but that makes the metadata ugly.
  2. step3 won't include an audio file if you have tried to assign a different trait to its folder in the config.js ie. { name: "example", trait: "example" }, will not be found by step3 when it inserts audio files.
  3. setting shuffleLayerConfigurations = true breaks step2 if you enable audio true.

@jalagar
Copy link
Owner

jalagar commented Oct 16, 2022

Got it, I'll try to get to this in the next few weeks @ArtisNegoti sorry for the delay

@jalagar jalagar closed this as completed Oct 16, 2022
@ArtisNegoti
Copy link
Author

no worries it will take me a while to get the art part of the project done! Thanks again for a great product.

@jalagar
Copy link
Owner

jalagar commented Oct 21, 2022

Great you'r welcome @ArtisNegoti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants