wonderunit / storyboarder

✏️ Storyboarder makes it easy to visualize a story as fast you can draw stick figures.
https://wonderunit.com/storyboarder
3.19k stars 298 forks source link

Export Error: ffmpeg reports "No such file or directory" when exporting video #1316

Open akahomebody opened 6 years ago

akahomebody commented 6 years ago

I'm getting these error's when trying to export my 16 board scene to video:

"Could not export. An error occured."

"Error: Could not use ffmpeg. Failed with error 1"

All other Storyboarder files I've tried are working fine.

audionerd commented 6 years ago

Do any of the boards have audio?

akahomebody commented 6 years ago

The first board did. I just removed it to see if it would render, but it still failed, showing the same errors.

audionerd commented 6 years ago

Can you send us a ZIP of the entire Storyboarder project? We can take a look.

akahomebody commented 6 years ago

Sweet, thanks!

Flinch_MFAT_GlobalWarming_Storyboard_V3_02.zip

audionerd commented 6 years ago

Hmm, that's odd. I was able to export a video with no errors.

Flinch_MFAT_GlobalWarming_Storyboard_V3_02 Exported 2018-08-14 04.40.23.zip

Could you try again, and open the Developer Tools (View > Toggle Developer Tools) and let us know what you see there while trying to export? There should be a log similar to the error (e.g.: "Error: Could not use ffmpeg. Failed with error 1") and some context above explaining why. A screenshot or two should be helpful.

audionerd commented 6 years ago

Is this on a Mac or PC?

akahomebody commented 6 years ago

This is what I get inside of the console. I'm on PC.

1 2

audionerd commented 6 years ago

OK thanks. That is helpful.

The "No such file or directory" problem is the bug.

I think something in Storyboarder's code is causing it to either have problems with files on windows with spaces in their names, or possibly with long directory names, or possibly across drives (C vs E).

You could try making a copy in C: with a shorter folder name and try exporting from there?

I'll mark this as a bug.

akahomebody commented 6 years ago

Nice! Worked a charm. Thanks for the quick responses! App is 11/10.

Just while I'm here, do you have any intentions on porting it to ipad? Would be amazing to have a good, portable storyboarding app.

audionerd commented 6 years ago

Glad to help! Do you know if the problem was C vs E drive? or just the long directory name?

Re: iPad, we've been working on an iPad version, but nothing released publicly yet. Thanks for the feedback.

akahomebody commented 6 years ago

Oh sorry, a long directory was the issue.

audionerd commented 6 years ago

Thanks. Good to know!

setpixel commented 6 years ago

Could be spaces in paths. I had this problem on script assistant.

On Tue, Aug 14, 2018, 6:26 PM Eric Skogen notifications@github.com wrote:

Thanks. Good to know!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wonderunit/storyboarder/issues/1316#issuecomment-413035907, or mute the thread https://github.com/notifications/unsubscribe-auth/AAa7HXDyLMDaHj8mFnhAswalR3PsrnBMks5uQ05_gaJpZM4V7nFd .

Kjghltrtszg commented 5 years ago

Hello guys!!! I have the exact same error even if the storyboarder files are on the root of the c: drive. I run windows 10. Any ideas how to get it to work??

Error exporting images and audio for output … C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:179

C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:180 writing video.ffconcat C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:181 ffconcat version 1.0

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-1-4M8BU.png duration 2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-2-GSZCF.png duration 1.8

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-2-3J60G.png duration 3.1

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-3-LIFDU.png duration 4.5

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-4-9R1IW.png duration 0.2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-5-0LX4L.png duration 0.5

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-6-BK9GU.png duration 1

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-7-7E3AO.png duration 0.2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-9-7EVGQ.png duration 0.2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-10-RIPE5.png duration 0.5

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-10-6ZTSG.png duration 0.2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-9-BGBEC.png duration 0.2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-9-Z9YAR.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-10-SEM99.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-11-RWEYL.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-14-ZXF6J.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-14-OQ85K.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-15-7YSWK.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-15-X8C5G.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-16-THEE6.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-17-CJAG3.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-18-SDF7O.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-21-8IL0N.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-22-M15HW.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-23-EHZFK.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-26-REHFO.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-21-24JR0.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-25-T6OYT.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-23-Q14YU.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-25-PSVQI.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-26-5Z8OI.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-28-0FIA8.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-34-WB6SD.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-35-J06OV.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-36-601H0.png duration 0.03

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-12-RDIIQ.png duration 0.8

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-37-5Q7SI.png duration 2

file C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\board-37-5Q7SI.png duration 2 C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:183

C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:185

C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:187 writing to C:\3.Storyboards\storyboard\exports\storyboard Exported 2019-01-21 11.25.18.mp4 C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:188

C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:279 calling ffmpeg with args (31) ["-safe", "0", "-i", "C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\video.ffconcat", "-i", "C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\watermark.png", "-i", "C:\3.Storyboards\storyboard\images\GSZCF-Pisw Aylh_raf_mix.mp3", "-filter_complex", "[0]scale=-2:900[frame];[1]scale=-2:'min(225,ih)':f…xp, areverse,adelay=2000|2000[s2];[s2]amix=1[mix]", "-map", "[vid]:v", "-r", 24, "-vcodec", "libx264", "-acodec", "aac", "-pix_fmt", "yuv420p", "-tune", "stillimage", "-preset", "veryslow", "-map", "[mix]:a", "-movflags", "+faststart", "-n", "-stats", "C:\3.Storyboards\storyboard\exports\storyboard Exported 2019-01-21 11.25.18.mp4"] C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:280

C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:297 cleaning C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:5478 Error: Could not use ffmpeg. Failed with error 1 at ChildProcess.converter.on.code (C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:87) at ChildProcess.emit (events.js:187) at ChildProcess.cp.emit (C:\Program Files\Storyboarder\resources\app.asar\node_modules\cross-spawn\lib\enoent.js:40) at Process.ChildProcess._handle.onexit (internal/child_process.js:240) exportVideo @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:5478 _tickCallback @ internal/process/next_tick.js:68 async function (async) exportVideo @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:5464 ipcRenderer.on @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:6683 emit @ events.js:182 C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:80 ffmpeg version N-89672-g41e51fbcd9 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --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-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx libavutil 56. 7.100 / 56. 7.100 libavcodec 58. 9.100 / 58. 9.100 libavformat 58. 3.100 / 58. 3.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 8.100 / 7. 8.100 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [concat @ 0000022bb67cb600] Impossible to open 'C:UsersΣτέλιοςAppDataLocalTemptmp-3768DwFmDIVJtOClboard-1-4M8BU.png' C:\Users\Στέλιος\AppData\Local\Temp\tmp-3768DwFmDIVJtOCl\video.ffconcat: No such file or directory

audionerd commented 5 years ago

I wonder if the unicode characters Στέλιος are causing the problem?

Kjghltrtszg commented 5 years ago

Wow you're fast :) I thought of that too and then tried from the root of my second drive only to fail again. The software must be trying to write or read something on my user folder no matter where the files are, you think i have to change the username to latin characters to get it to work?

sbilochenko commented 4 years ago

Hello there! I have a similar problem with export video, Here a part of the log:

C:\Storyboarder\resources\app.asar\node_modules\electron-log\lib\transports\console.js:72 23:21:43.512 › Error: spawn C:\Storyboarder\resources\app.asar\node_modules\@ffmpeg-installer\win32-x64\ffmpeg.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)

My system is Win 10 64 Bit

audionerd commented 4 years ago

@sbilochenko That looks like a different issue, https://github.com/wonderunit/storyboarder/issues/2107, which will be fixed in the next release.

liz0920 commented 2 years ago

I'm also having issues exporting to video. I tried deleting the audios and it still doesn't let me export.

23:22:18.526 › UnhandledRejection EncodingError: Unable to decode audio data at onRejection (C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\catchErrors.js:57:18) at onRendererRejection (C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\catchErrors.js:77:5) 23:22:18.527 › UnhandledRejection: "Tone.Buffer: could not decode audio data: D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020\DOCUMENTS\URL\4° INTERCICLO\ANIMACIÓN\SB\images\9XRGY-Chips bag Sound effect-[AudioTrimmer.com].mp3" at onRejection (C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\catchErrors.js:65:17) at onRendererRejection (C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\catchErrors.js:77:5)

DevTools failed to load SourceMap: Could not parse content for file:///C:/Program%20Files/Storyboarder/resources/app.asar/src/index.js.map: Unexpected end of JSON input DevTools failed to load SourceMap: Could not parse content for file:///C:/Program%20Files/Storyboarder/resources/app.asar/src/Point.js.map: Unexpected end of JSON input

calling ffmpeg with args (31) ["-safe", "0", "-i", "C:\Users\Usuario\AppData\Local\Temp\tmp-1656BvSDTE2VQBmA\video.ffconcat", "-i", "C:\Users\Usuario\AppData\Local\Temp\tmp-1656BvSDTE2VQBmA\watermark.png", "-i", "D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020…RGY-Chips bag Sound effect-[AudioTrimmer.com].mp3", "-filter_complex", "[0]scale=-2:900[frame];[1]scale=-2:'min(225,ih)':f…, areverse,adelay=18750|18750[s2];[s2]amix=1[mix]", "-map", "[vid]:v", "-r", 24, "-vcodec", "libx264", "-acodec", "aac", "-pix_fmt", "yuv420p", "-tune", "stillimage", "-preset", "veryslow", "-map", "[mix]:a", "-movflags", "+faststart", "-n", "-stats", "D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020…ÓN\SB\exports\SB Exported 2022-06-21 11.23.05.mp4"]

23:23:06.753 › Error: Could not use ffmpeg. Failed with error 1 at ChildProcess. (C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:85) at ChildProcess.emit (events.js:327) at ChildProcess.cp.emit (C:\Program Files\Storyboarder\resources\app.asar\node_modules\cross-spawn\lib\enoent.js:40) at Process.ChildProcess._handle.onexit (internal/child_process.js:275) setTimeout (async) consoleLog @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\transports\console.js:93 transport @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\transports\console.js:46 runTransport @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\log.js:44 runTransports @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\log.js:27 log @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\log.js:21 exportVideo @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:5674

calling ffmpeg with args (31) ["-safe", "0", "-i", "C:\Users\Usuario\AppData\Local\Temp\tmp-16562NIjnepMjL4D\video.ffconcat", "-i", "C:\Users\Usuario\AppData\Local\Temp\tmp-16562NIjnepMjL4D\watermark.png", "-i", "D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020…RGY-Chips bag Sound effect-[AudioTrimmer.com].mp3", "-filter_complex", "[0]scale=-2:900[frame];[1]scale=-2:'min(225,ih)':f…, areverse,adelay=18750|18750[s2];[s2]amix=1[mix]", "-map", "[vid]:v", "-r", 24, "-vcodec", "libx264", "-acodec", "aac", "-pix_fmt", "yuv420p", "-tune", "stillimage", "-preset", "veryslow", "-map", "[mix]:a", "-movflags", "+faststart", "-n", "-stats", "D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020…ÓN\SB\exports\SB Exported 2022-06-21 11.27.43.mp4"]0: "-safe"1: "0"2: "-i"3: "C:\Users\Usuario\AppData\Local\Temp\tmp-16562NIjnepMjL4D\video.ffconcat"4: "-i"5: "C:\Users\Usuario\AppData\Local\Temp\tmp-16562NIjnepMjL4D\watermark.png"6: "-i"7: "D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020\DOCUMENTS\URL\4° INTERCICLO\ANIMACIÓN\SB\images\9XRGY-Chips bag Sound effect-[AudioTrimmer.com].mp3"8: "-filter_complex"9: "[0]scale=-2:900[frame];[1]scale=-2:'min(225,ih)':force_original_aspect_ratio=decrease[watermark];[frame][watermark]overlay=W-w:H-h[vid];[2]areverse, afade=d=0.25:curve=exp, areverse,adelay=18750|18750[s2];[s2]amix=1[mix]"10: "-map"11: "[vid]:v"12: "-r"13: 2414: "-vcodec"15: "libx264"16: "-acodec"17: "aac"18: "-pix_fmt"19: "yuv420p"20: "-tune"21: "stillimage"22: "-preset"23: "veryslow"24: "-map"25: "[mix]:a"26: "-movflags"27: "+faststart"28: "-n"29: "-stats"30: "D:\FileHistory\BACKUP 2020-10-28\HP PAVILLION 2020\DOCUMENTS\URL\4° INTERCICLO\ANIMACIÓN\SB\exports\SB Exported 2022-06-21 11.27.43.mp4"length: 31proto: Array(0)

23:30:32.955 › Error: Could not use ffmpeg. Failed with error 1 at ChildProcess. (C:\Program Files\Storyboarder\resources\app.asar\src\js\exporters\ffmpeg.js:85) at ChildProcess.emit (events.js:327) at ChildProcess.cp.emit (C:\Program Files\Storyboarder\resources\app.asar\node_modules\cross-spawn\lib\enoent.js:40) at Process.ChildProcess._handle.onexit (internal/child_process.js:275) setTimeout (async) consoleLog @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\transports\console.js:93 transport @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\transports\console.js:46 runTransport @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\log.js:44 runTransports @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\log.js:27 log @ C:\Program Files\Storyboarder\resources\app.asar\node_modules\electron-log\src\log.js:21 exportVideo @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:5674 async function (async) exportVideo @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:5660 (anonymous) @ C:\Program Files\Storyboarder\resources\app.asar\src\js\window\main-window.js:6903 emit @ events.js:315 onMessage @ electron/js2c/renderer_init.js:91