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

Bad error handling in <Audio> when not passing an audio file #4054

Closed
JonnyBurger opened this issue Jul 8, 2024 · 0 comments · Fixed by #4055
Closed

Bad error handling in <Audio> when not passing an audio file #4054

JonnyBurger opened this issue Jul 8, 2024 · 0 comments · Fixed by #4055

Comments

@JonnyBurger
Copy link
Member

import {Audio, staticFile} from 'remotion';

export const HandleAudioRenderError = () => {
	return <Audio src={staticFile('balloons.json')} />;
};
Error: Command failed with exit code 1: /Users/jonathanburger/remotion/packages/compositor-darwin-arm64/ffprobe -v error -show_entries stream=channels:format=duration -of default=nw=1 /var/folders/hs/mbxg3j_55ls1b_dhn50w32t00000gn/T/remotion-v4-0-179-assetsivise0vbf2/remotion-assets-dir/7721628462895751.json
/var/folders/hs/mbxg3j_55ls1b_dhn50w32t00000gn/T/remotion-v4-0-179-assetsivise0vbf2/remotion-assets-dir/7721628462895751.json: Invalid data found when processing input
    at makeError (/Users/jonathanburger/remotion/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/jonathanburger/remotion/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getAudioChannelsAndDurationWithoutCache (/Users/jonathanburger/remotion/packages/renderer/dist/assets/get-audio-channels.js:16:18)
    at async getAudioChannelsAndDurationUnlimited (/Users/jonathanburger/remotion/packages/renderer/dist/assets/get-audio-channels.js:37:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant