Linux Tutorials

🔘 Merge Audio & Video Files

ffmpeg -i video.mp4 -i audio.m4a -c copy output.mp4

🔘 Split FLAC / CUE Files

cuebreakpoints file.cue | shnsplit -o flac file.flac

🔘 Split Video Files (MKV / AVI / MP4)

ffmpeg -i input.mkv -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output.mkv
or
ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output.avi
or
ffmpeg -i input.mp4 -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output.mp4

🔘 Extract MP3 from Video File (Single File)

ffmpeg -i input.mp4 output.mp3
(Or use Sound Converter app on Linux)

🔘 Extract MP3s from Video Files (Entire Directory)

for i in *.mp4;
do name=echo "$i" | cut -d'.' -f1
echo "$name"
ffmpeg -i "$i" "${name}.mp3"
done
(Or use Sound Converter app on Linux)

🔘 Trim Audio Files

🔘 Download Audio from YouTube Video (M4A)

youtube-dl -x video_URL

🔘 Download Audio from YouTube Video (MP3)

youtube-dl -x --audio-format mp3 video_URL

🔘 Download Audio Files from YouTube Playlist (M4A)

youtube-dl --extract-audio -o "%(title)s.%(ext)s" playlist_URL

🔘 Download Audio Files from YouTube Playlist (MP3)

youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" playlist_URL

🔘 Split Large Audio File into Smaller Audio Files Using Silence Detection

Use mp3splt-gtk app

🔘 Merge Multiple Audio Files into Single File (MP3)

mp3wrap combined.mp3 track1.mp3 track2.mp3 track3.mp3


You'll only receive email when they publish something new.

More from Stew Clegg
All posts