Recently when running some remotion jobs I've been getting an ffmpeg error at the very end of processing: Command failed with EBADF. Though remotion reports all frames have been rendered and encoded my final video.mp4 file isn't there.
Bug Report 🐛
I'm running remotion 3.3.100 on macOS 12.5.1 Monterey and ffmpeg 6.0. I haven't yet put together a minimal project that still gets this error in the hopes that this is a simple fix that might not have anything to do with remotion since it seems like the remotion part of actually rendering and encoding the video is succeeding.
Additionally, the /var/folders/jr/dbp0prg11g7_vsmyhys2p66h0000gn/T/remotion-v3-3-100-assetsb70v685s8f/remotion-assets-dir/08187108230777085.wav file that seems to be the cause of this error doesn't exist after the command finishes, and neither does the /var/folders/jr/dbp0prg11g7_vsmyhys2p66h0000gn/T/remotion-v3-3-100-assetsb70v685s8f parent directory.
Here's a little more context from my zsh shell:
$ /Users/cgenco/projects/multicam/node_modules/.bin/remotion render src/index.ts multicam --timeout 1000000 --props={} '/Users/cgenco/videos/2023-05-25 asia 05/video.mp4'
(1/3) ╭───────────────────╮ Bundled code 5630ms
+ ╭───────────────────╮ Copying public dir 4873ms
Entry point = src/index.ts (argument passed - found in cwd), Composition = multicam (Passed as argument), Codec = h264 (derived from out name), Output = /Users/cgenco/videos/2023-05-25 asia 05/video.mp4
(2/3) ╭───────────────────╮ Rendered frames (5x) 12529374ms
+ ╭───────────────────╮ Downloading 2 files
(3/3) ╭───────────────────╮ Encoding video 91157/91157
An error occurred:
Error: Command failed with EBADF: ffprobe -v error -show_entries stream=channels:format=duration -of default=nw=1 /var/folders/jr/dbp0prg11g7_vsmyhys2p66h0000gn/T/remotion-v3-3-100-assetsb70v685s8f/remotion-assets-dir/08187108230777085.wav
spawn EBADF
at ChildProcess.spawn (node:internal/child_process:420:11)
at Object.spawn (node:child_process:757:9)
at execa (/Users/cgenco/projects/multicam/node_modules/execa/index.js:83:26)
at getAudioChannelsAndDurationUnlimited (/Users/cgenco/projects/multicam/node_modules/@remotion/renderer/dist/assets/get-audio-channels.js:23:44)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
I'd love any help in debugging this! If putting together a minimal failing project would help I can do that but it'd be some work I'd like to avoid if possible.
Recently when running some remotion jobs I've been getting an ffmpeg error at the very end of processing:
Command failed with EBADF. Though remotion reports all frames have been rendered and encoded my finalvideo.mp4file isn't there.Bug Report 🐛
I'm running remotion
3.3.100on macOS 12.5.1 Monterey and ffmpeg 6.0. I haven't yet put together a minimal project that still gets this error in the hopes that this is a simple fix that might not have anything to do with remotion since it seems like the remotion part of actually rendering and encoding the video is succeeding.Additionally, the
/var/folders/jr/dbp0prg11g7_vsmyhys2p66h0000gn/T/remotion-v3-3-100-assetsb70v685s8f/remotion-assets-dir/08187108230777085.wavfile that seems to be the cause of this error doesn't exist after the command finishes, and neither does the/var/folders/jr/dbp0prg11g7_vsmyhys2p66h0000gn/T/remotion-v3-3-100-assetsb70v685s8fparent directory.Here's a little more context from my
zshshell:$ /Users/cgenco/projects/multicam/node_modules/.bin/remotion render src/index.ts multicam --timeout 1000000 --props={} '/Users/cgenco/videos/2023-05-25 asia 05/video.mp4' (1/3) ╭───────────────────╮ Bundled code 5630ms + ╭───────────────────╮ Copying public dir 4873ms Entry point = src/index.ts (argument passed - found in cwd), Composition = multicam (Passed as argument), Codec = h264 (derived from out name), Output = /Users/cgenco/videos/2023-05-25 asia 05/video.mp4 (2/3) ╭───────────────────╮ Rendered frames (5x) 12529374ms + ╭───────────────────╮ Downloading 2 files (3/3) ╭───────────────────╮ Encoding video 91157/91157 An error occurred: Error: Command failed with EBADF: ffprobe -v error -show_entries stream=channels:format=duration -of default=nw=1 /var/folders/jr/dbp0prg11g7_vsmyhys2p66h0000gn/T/remotion-v3-3-100-assetsb70v685s8f/remotion-assets-dir/08187108230777085.wav spawn EBADF at ChildProcess.spawn (node:internal/child_process:420:11) at Object.spawn (node:child_process:757:9) at execa (/Users/cgenco/projects/multicam/node_modules/execa/index.js:83:26) at getAudioChannelsAndDurationUnlimited (/Users/cgenco/projects/multicam/node_modules/@remotion/renderer/dist/assets/get-audio-channels.js:23:44) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) error Command failed with exit code 1.I'd love any help in debugging this! If putting together a minimal failing project would help I can do that but it'd be some work I'd like to avoid if possible.