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

Error: Chrome Headless Shell is not available for Linux for arm64 architecture. #37

Open
Krishnakumarskr opened this issue Jan 16, 2025 · 2 comments

Comments

@Krishnakumarskr
Copy link

Image

Mac OS M1

@senthilmmurugesan
Copy link

You can change the platform by passing an argument to the docker build command, with the --platform flag.

docker build --platform linux/amd64

@GUUDIN
Copy link

GUUDIN commented Feb 4, 2025

I tried this in my M3 Mac and everything got very slow, due to the translation made from amd64 to arm64 - this lead to a timeout in execution.


✅ Image generated successfully
✅ AI images generated: 5
✅ Images fetched: 5
Adding file to ffmpeg: JORDAN_PETERSON-0.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: JOE_ROGAN-1.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: JORDAN_PETERSON-2.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: JOE_ROGAN-3.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: JORDAN_PETERSON-4.mp3
Spawned Ffmpeg with command: ffmpeg -i public/voice/JORDAN_PETERSON-0.mp3 -i public/silence.mp3 -i public/voice/JOE_ROGAN-1.mp3 -i public/silence.mp3 -i public/voice/JORDAN_PETERSON-2.mp3 -i public/silence.mp3 -i public/voice/JOE_ROGAN-3.mp3 -i public/silence.mp3 -i public/voice/JORDAN_PETERSON-4.mp3 -y -filter_complex concat=n=9:v=0:a=1 public/audio-0.mp3
Finished concatenating audio files!
Error transcribing audio (attempt 1): TypeError: fetch failed
    at node:internal/deps/undici/undici:13502:13
    at async transcribeAudio (file:///app/brainrot/transcribe.mjs:14:21)
    at async transcribeFunction (file:///app/brainrot/transcribe.mjs:131:31)
    at async main (file:///app/brainrot/localBuild.mjs:64:2)
    at async file:///app/brainrot/localBuild.mjs:94:2 {
  [cause]: HeadersTimeoutError: Headers Timeout Error
      at FastTimer.onParserTimeout [as _onTimeout] (node:internal/deps/undici/undici:6249:32)
      at Timeout.onTick [as _onTimeout] (node:internal/deps/undici/undici:2210:17)
      at listOnTimeout (node:internal/timers:581:17)
      at process.processTimers (node:internal/timers:519:7) {
    code: 'UND_ERR_HEADERS_TIMEOUT'
  }
}
Retrying in 1 second(s)...

I got this after even trying to manually add the following to the localBuild.mjs:


// Run Remotion rendering manually with Puppeteer options
	try {
		await renderMedia({
			codec: 'h264',
			outputLocation: 'out/video.mp4',
			serveUrl: './public',
			puppeteerInstance: puppeteerOptions,
		});
		console.log('Rendering completed successfully.');
	} catch (error) {
		console.error(`Rendering failed: ${error}`);
	}

	await cleanupResources();

any clues on how to get it working on arm64?

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

3 participants