Howto extract tracks from mkv and avi

This howto requires:

  • mplayer
  • mkvtoolnix
  • your Linux box 😉

Audio from Avi files (es. Xvid + MP3):

mplayer -dumpaudio "mymovie.avi" -dumpfile mymovie_audio_track.mp3

Tracks from Matroska MKV file:

List all tracks:

mkvmerge -i mymovie.mkv

File 'mymovie.mkv': container: Matroska
Track ID 1: video (V_MS/VFW/FOURCC, XVID)
Track ID 2: audio (A_VORBIS)
Track ID 3: audio (A_VORBIS)
Track ID 4: subtitles (S_TEXT/UTF8)
Track ID 5: subtitles (S_TEXT/UTF8)

mkvextract tracks *.mkv 3:mymovie_audio_track.ogg 4:mymovie_subtitle.srt

Creates two files, mymovie_audio_track.ogg (track 3) and mymovie_subtitle.srt (track 4).

Advertisements

4 thoughts on “Howto extract tracks from mkv and avi

  1. gallagherrobby

    Besides acting as a professional Video and Audio Converter, iDealsahre VideoGo is also powerful Audio Remover which can remove audio or audio tracks from all kinds of video files on Mac or Windows

    Key Features:

    Remove audio or audio tracks from all kinds of video formats including remove audio from MP4, AVI, DivX, Xvid, WMV, WTV, MOV, MKV, ASF, RMVB, MPG, FLV, WebM, OGV, MVI, AVCHD, 3GP, DV, MOD, TOD, TS, RM and etc;
    Completely remove the audio from video to keep video-only stream instead of only muting the audio of a source video;
    Remove extra audio tracks from video file with multiple audio tracks and only keep one audio track with the video;
    Remove audio or audio tracks from video as well as keep the same video format;
    Remove audio from video as well as convert video to other video formats;
    Extract audio from video and convert to audio format; remove subtitle from video; add effect/subtitle/watermark to video; trim/crop/rotate video files and etc.

    Reply
  2. rocamilla

    I used to use a little piece of software called Faasoft Video Converter to extract tracks from MKV and AVI files, happy with it.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s