Changing Sound in a Video File using Shotcut
If you want to replace the sound in a video file with another audio file, you can use a program called Shotcut. This article will provide a detailed guide on how to change the sound in a 250MB video file (in MKV format) using the Opus audio codec.
Installing Shotcut
Shotcut is a free, open-source video editing software available for Windows, Mac, and Linux. You can download it from the official website: https://www.shotcut.org/download/.
Preparing the Audio File
Before starting the process, make sure your audio file is in the Opus format. You can use audio editing software, such as Audacity, to convert the audio file to Opus if needed. Save the audio file in a easily accessible location on your computer.
Adding Files to Shotcut
Launch Shotcut and click on the "Open File" button to add your video and audio files. Alternatively, you can drag and drop the files into the Shotcut interface.
# Add video and audio files to Shotcut
shcut > open-file video.mkv audio.opus
Placing the Audio File on the Timeline
Once both files are added to Shotcut, place the audio file on the timeline below the video file. If the audio file is longer than the video, trim it to match the video length.
# Place audio file on the timeline
shcut > timeline-insert audio-track video-start audio.opus
# Trim audio file to match video length
shcut > set-in audio-track video-start
shcut > set-out audio-track video-end
Removing the Original Sound
Now, you need to remove the original sound from the video file. To do this, mute the video track's audio.
# Mute the video track's audio
shcut > audio-volume video-track 0
Exporting the Video
Finally, export the video with the new audio. Choose a suitable output format and settings, then click "Export File".
# Export the video with the new audio
shcut > export-file output.mkv
- Download and install Shotcut
- Add video and audio files to Shotcut
- Place the audio file on the timeline and trim it to match the video length
- Mute the video track's audio
- Export the video with the new audio