___ ___
/ ___| ___ | _ \ _ __ ___
| | _ / _ \| |_) | '__/ _ \
| |_| | (_) | __/| | | (_) |
\____|\___/|_| |_| \___/_ _
/ ___|___ _ __ ___ __ _| |_ ___ _ __ __ _| |_ ___ _ __
| | / _ \| '_ \ / __/ _` | __/ _ \ '_ \ / _` | __/ _ \| '__|
| |__| (_) | | | | (_| (_| | || __/ | | | (_| | || (_) | |
\____\___/|_| |_|\___\__,_|\__\___|_| |_|\__,_|\__\___/|_|
- GoPro video files: "GX....MP4"
- Quik app to transfer videos from the camera to your computer
- ffmpeg
- Install ffmpeg
- Ubuntu/Debian (Linux)
sudo apt update sudo apt install ffmpeg
- Fedora (Linux)
sudo dnf install ffmpeg
- CentOS/RHEL (Linux)
sudo dnf install epel-release sudo dnf install https://rpmfusion.org/free-release/rpmfusion-free-release-8.noarch.rpm sudo dnf install ffmpeg ffmpeg-devel
- Arch Linux
sudo pacman -S ffmpeg
- macOS
brew install ffmpeg
- Ubuntu/Debian (Linux)
- Transfer the videos from your GoPro camera into a folder in your computer (eg ~/Videos/), keep the originals elsewhere, just in case.
- Clone this repository and copy or download the file video_edit.sh into that same folder
- In that folder, run the script video_edit.sh:
- Ubuntu/Debian, Fedora, CentOS/RHEL, Arch, macOS
chmod +x video_edit.sh ./video_edit.sh
- You will be asked to enter a prefix name, this will be each individual video's name prefix so after they get the audio removed, they can be concatenated into a single file
Enter the final file name prefix: icd
- The file prefix will be added to the filelist.txt including a number up to the total of videos found in the folder
file 'icd_1.mp4'
file 'icd_2.mp4'
file 'icd_3.mp4'
file 'icd_4.mp4'
file 'icd_5.mp4'
file 'icd_6.mp4'
file 'icd_7.mp4'
- You will be asked to enter a final concatenated file name, this should include the ending format too
Enter the final concatenated file name (e.g., final_output.mp4): 2024_09_12.mp4
- Depending on the number of videos, this might take hours/days to complete. The script will accelerate the videos to reduce their length. Then it will remove the audio and it will be cleaning up after processing all the files
Deleting icd_1.mp4
Deleting icd_2.mp4
Deleting icd_3.mp4
Deleting icd_4.mp4
Deleting icd_5.mp4
Deleting icd_6.mp4
Deleting icd_7.mp4
Finished
- At the end, the folder should contain only the video_edit.sh script, the final concatenated file and the filelist.txt should be empty
🦆