OpenCut-app / OpenCut-app/OpenCut
[BUG] There is a problem with the exported encoding.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 89.8k
- Forks
- 8.9k
- PR merge metrics
- No merged PRs in 30d
Description
Platform
Ubuntu 14.4
Browser
Chrome Version 144.0.7559.132 (Official Build) (64-bit)
Current Behavior
I encountered an error when trying to export to WebM video format: Input audio buffer is incompatible with codec parameters.
and when i trying to export to mp4 format also encountered error: This specific encoder configuration (mp4a.40.2, 128000 bps, 2 channels, 44100 Hz) is not supported by this browser. Consider using another codec or changing your audio parameters.
Expected Behavior
i not have any expected behavior! and i just change my system from windows to linux ubuntu ?!
Recurrence Probability
Always
Steps To Reproduce
- just to open the opencut;
- and made an video;
- then i trying to export;
Anything else?
i think i can solove the question about export to WebM video format, but the mp4 format i can't:
cd the doc:
OpenCut/apps/web/src/services/renderer/scene-exporter.ts
and find this part of the code:
let audioSource: AudioBufferSource | null = null;
if (this.shouldIncludeAudio && this.audioBuffer) {
audioSource = new AudioBufferSource({
codec: this.format === "webm" ? "opus" : "aac",
bitrate: qualityMap[this.quality],
});
output.addAudioTrack(audioSource);
}
Modified to:
let audioSource: AudioBufferSource | null = null;
if (this.shouldIncludeAudio && this.audioBuffer) {
console.log("DEBUG: AudioBuffer info:", {
sampleRate: this.audioBuffer.sampleRate,
channels: this.audioBuffer.numberOfChannels
});
audioSource = new AudioBufferSource({
codec: this.format === "webm" ? "opus" : "aac",
bitrate: this.format === "webm" ? qualityMap[this.quality] : 128000,
sampleRate: this.audioBuffer.sampleRate,
numberOfChannels: this.audioBuffer.numberOfChannels,
} as any);
output.addAudioTrack(audioSource);
}
Then you can successfully export the WebM video format.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in OpenCut/apps/web/src/services/renderer/scene-exporter.ts, especially the AudioBufferSource setup used during WebM and MP4 export. Reproduce the audio export failure on Ubuntu with Chrome, then inspect the browser encoder constraints and the supplied audio buffer details. Done means exporting both formats succeeds without the reported codec errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- audio-video-rtc, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100