The Ultimate Guide To Manage Your Audio/Video Files In Linux

Have you ever come across a situation where you wanted to convert a video from one format to another in your Linux machine and you have absolutely no idea how to do it? What about playing DVD on Ubuntu or rip your favorite VCD to mpeg file?

Below, I have come up with a great list of software that you can use to handle your video/audio files in Linux. All the software listed are compatible with any of the Linux distros out there. The installation instructions and screenshots are based on Ubuntu, so if you are on a different distro, you will have to change the command accordingly.

Play VCD in Linux

Basically, most, if not all, multimedia players out there are able to play VideoCD. Personally, I would recommend using VLC since that is the only multimedia player you ever need to play all kind of audio/video files.

In Debian-based Linux distro,

Create VCD

CD burner software such as Brasero and K3b are capable of creating VCD or SVCD on the fly.

For K3b, you have to make sure that the source file is in mpeg format. There is no restriction in Brasero.

Ripping video from VCD

The easiest way to rip a VCD movie to mpeg format is via K3b.

Install K3b

Open up the K3b and go to Tools -> Rip Video CD

k3b-ripvcd

Alternatively, VLC also allows you to transcode the VCD movie into another format.

Open the VLC. Click on Media->Convert/Save.

For more detailed instruction, check out how to easily transcode media files with VLC

The command line way

If you prefer the command line way of doing thing, here is the instruction.

Insert the VCD to the CD-ROM

In the terminal, type

Note that the C in the above command is a Capital C.

This will instruct vcdxrip to rip the movie from the VCD in the CD-ROM.

Extracting audio from VCD

Using the VLC method, you can easily rip the audio file from the VCD.

Under the Convert/Save option, click on the Audio Codec tab and check the Audio box. If you are converting to mp3, select MP3 from the dropdown box, else select the format that you want to convert to. Input the file name (with the extension) and click Save.

vlc-mp3

Watching DVD in Linux (particularly Ubuntu)

Ubuntu does not allow you to play DVD movie due to legal and technical restrictions. You have to install the “ubuntu-restricted-extra” package and run the libdvdread3 installer script. Check the tutorial for detailed instruction.

Rip DVD

For ripping DVD, I personally use Handbrake. It comes with several preset profiles, including iPhone and PS3, that you can use to quickly rip the DVD into your desired format.

To install handbrake, download the deb file here.

handbrake

Another software that you can use is AcidRip. It is packed with useful features, but arranged in a messy way. I have quite a hard way navigating through the options. One good thing about this software is that it is included in the repo, so you can easily install it clicking here or by using the command:

acidrip

(Note: To rip DVD, your computer must first be able to support DVD playback. Refer to the above instruction to enable DVD playback in your Linux machine.)

Create DVD (DVD authoring)

If you are looking to create your own DVD with menu, chapters, subtitles etc, two of the best software that I have tried are DeVeDe and Mandvd. Personally I prefer ManDVD as it gives you more customization options and a detail walkthrough of the whole DVD creation process. However, if you are looking for a software that you can use quickly without much configuration, then DeVeDe is the one to go for.

To install ManDVD, download and install the deb file from GetDeb.

To install DeVeDe in the terminal:

devede

One good thing about DeVeDe is that you can also use it to create VCD as well.

Converting from one format to another

Both Handbrake and VLC are able to convert your video files from one format to another, but if you are looking for a small application just for converting videos, you might want to try out Winff. This is a small frontend GUI for the FFMPEG library and will work with most file formats.

winff

Installation instructions for the various distro can be found here.

Editing video files

Avidemux, Kino and KDEnlive are three great video editing software that are both powerful and easy to use. Avidemux is Gnome-based while Kino and KDEnlive are KDE-based.

Subtitle editor

For those who wanted to create your own subtitles for your video files, Gnome-subtitles and Aegisub are two simple software you can use to edit your own subtitles. Gnome-Subtitles is a simple and lightweight application for simple subtitles creation and editing. Aegisub provides more functionality such as  subtitles dragging, scaling and rotating. There is even a karaoke template that you can apply to your music video.

aegisub

Inserting subtitles to your video files

There are two ways that you can use to insert subtitles into video files: Softsub and Hardsub.

Softsub are separate instructions, usually a specially marked up text with time stamps to be displayed during playback and it is usually controlled on the player side. Hardsub is when the subtitle text is irreversibly merged in original video frames, and so no special equipment or software is required for playback.

Quoted from Wikipedia

For Softsub, VLC has a feature that allows you to load a separate subtitles files while watching the video. In VLC, go to “Tools -> Preferences”. At the left bottom under the Show Settings, click “All”. At the left pane, go to “Video -> Subtitles/OSD”. On the right pane, input the location of the subtitles file into the field “Use Subtitles File”.

vlc-subtitles

For Hardsub, you can use Avidemux to embed the subtitles file into the video.

In Avidemux, first load the video file. Next, go to Video->FIlters. On the left pane, select Subtitles. Choose the appropriate subtitle option and add it to the Active Filter pane.

Update: On the main screen, you have to select a video encoder before the subtitle filter can take effect. Thanks to J.M for reminding.

avidemux-subtitles

Extracting Audio CD

In Gnome, the SoundJuicer does a good job in converting your audio CD to the format you want. In Ubuntu, if you want to extract your CD to MP3 or Flac format, you will have to first install the required codecs.

Alternatively, you can also use K3b to rip audio CD.

Creating audio CD

Brasero and K3b can achieve this task easily. Select the Create audio CD option and drag and drop your music files into the container. It will automatically convert them to audio CD format.

Converting audio files from one format to another

I have previously covered Sound-converter which is a great software that supports conversion to most audio formats.

Editing audio files

Needless to say, Audacity is the best candidate for this. You can also use it to convert audio files from one format to another.

What else have I left out?

13 comments

  1. I’m currently using Ubuntu so If i download the deb file and then install Handbrake. How do i remove Handbrake?

  2. FYI, Kino is GTk/Gnome, not a KDE app. You can tell because it’s so limited. ;)

    Seriously though, very nice list here. Another DVD Authoring application is QDVDAuthor, which I absolutely love. It is very powerful but also a bit too complex at times, but only when I am trying to do something complex, so its nice in that it allows me to do such things.

    • Also, Avidemux is not GNOME-based. Avidemux offers three user interfaces – GTK+ (not GNOME) UI, Qt (not KDE) UI, and a command line UI. Also, the most important thing with Avidemux was not mentioned – when you use filters, such as the Subtitler filter, you have to select a video encoder. That is, reencode the video. Otherwise you cannot add/apply video filters (the fact that you can bypass the protection using the “Video->Filters” menu instead of the Filters button is just a glitch, not the way it’s supposed to be used).

  3. Do you know if there is a tool for linux (like AVIAddXSubs for windows) that can insert X-Subs into avi files. This ensures that we can add subtitles to files to be played in a standalone device easily and without video conversion so it takes only a couple of minutes.
    I know AVIAddXSubs can be run under wine but I was looking towards a native linux solution and especially if a command line option is there so I can automate the whole things.

    • I don’t know any Linux tool for that. Generally, you should avoid using such proprietary, badly supported (and already obsolete) formats that belong to a single company. The standalone devices generally support regular .srt/.sub subtitles anyway (and there are Linux .srt editors available, or you can just use a text editor). Plus, the future is in modern, standard formats like MP4 and Matroska (they both support subtitles, and Matroska is the new format for DivX, too).

      • Actually, most standalone players don’t support srt/sub subtitles and many don’t support playing mp4. But most standalone players support playing divx and the associated subtitles format (xsub). In my case, I’m trying to use this with PS3.

        • You can count e.g. dvd players produced by big factories such as Sony, Philips etc. and only few of them support srt,sub and divx.

          But if you count huge amount of cheap dvd players, you will find that srt and sub is mostly supported.

  4. I’m looking for something to manage, organise & play my video files.
    Sort of like F-spot or picasa for videos any suggestions?

Comments are closed.

Sponsored Stories