Linux Audio/Video FAQ 

http://dhost.info/kpex/guides/linux_av_faq.php

What native tools are available for general purpose encoding? 

GUI (graphical interface) Tools 

  • avidemux2: easy virtualdub-like interface, many filters, codecs, and formats are supported.
  • dvd::rip: A GUI frontend to transcode, built-in DVD ripper, supports many different codecs and output formats.
  • acidrip: a DVD encodeing frontend based on mplayer/mencoder.
  • drip: A DVD to DIVX conversion application, supports MSMPEG4, OpenDivx, XviD for video, MP3 audio, has problems with some NTSC DVDs.

CLI (command-line interface) Tools 

  • mencoder: The encoding application paired with mplayer, supports a vast amount of input formats, processing filters, and output codecs, although output container formats are currently limited to AVI and MPEG output format. See here for a tutorial on the command line interface.
  • transcode: a suite of CLI utilities for transcoding video and audio based on a modular structure. Supports many codecs and containers. See the wiki for command line help.
  • ffmpeg: a complete recording, converting and streaming solution, based on libavcodec/libavformat. Supports most of the codecs supported by mplayer as well as a few more container options.

Also see A place to get started (application links) http://forum.doom9.org/showthread.php?s=&threadid=89543

Virtualdub and VFW are great. Is there anything alike for linux? 

avidemux2 is an advanced native linux video editing and encoding tool with a GUI interface very similar to virtualdub's. It supports many video codecs and output formats. Unlike virtualdub for windows it is more difficult for codecs to be supported in avidemux, however since it is not VFW based it is free to be much more versatile as far as output formats and advanced video codecs. avidemux supports more codecs and formats with every release and is a great application to get started with encoding video under linux.

Some people have successfully gotten virtualdub working under wine; however, keep in mind that virtually all of virtualdub's tools (aside from proprietary codecs) can be used in native linux apps.

Part 4 - DVD-Video (MPEG-2) Ripping & Transcoding 

How can I rip a DVD to my hard drive under linux? 

There are several simple dvd-ripping tools available. vobcopy can be used. First you'll want to mount your dvd (assuming the mount point is /mnt/dvd and is set up in your /etc/fstab): $ mount /mnt/dvd

Then you can rip the main title using vobcopy:

vobcopy -i /mnt/dvd

This will rip the main title only, similar to IFO-mode in DVD Decrypter. if you want to rip the entire disc preserving structure, use

vobcopy -i /mnt/dvd -m

You can also use dvdbackup from the dvd-create project to rip dvds in a similar fashion.

How can I backup a DVD using fast (compressed-domain) transcoding, like DVDShrink? 

StreamDVD is a native linux application for transcoding DVDs on the fly. Its advantages are that it does not require the dvd to be ripped, demultiplexed, transcoded, and remultiplexed, rather it reads directly from the DVD and writes a valid DVD vob to standard out that can be piped to dvdauthor. It also has a good quality accurate transcoding engine. Its disadvantages are that it does not handle full discs or menus, but does single titles only. StreamDVD's usage is quite easy (as quoted from the documentation):

When using dvdauthor to build the dvd structure, you can generate a new dvd with only one step. You can pass the complete streamdvd commandline (followed by a '|') to the -f switch in dvdauthor. i.e.: lets say your dvd drive is accessable at /dev/dvd, the saving directory is /movies/movie1 and you want to backup title 1, all chapters with 1st video and 1st audio track: dvdauthor -t -o /movies/movie1 -f 'streamdvd -i /dev/dvd -t 1 -s 0xe0,0x80 |'

After that, build the missing ifo files with: dvdauthor -T -o /movies/movie1 Note that this also requires dvdauthor to be installed, available in many distributions.

At this time streamDVD does not internally support chapters or subtitles. However you can use spumux from the dvdauthor project to mux subtitles, but this will require a full copy of the DVD to your hard drive and more time. As far as chapters go if you extract the chapter points they can be specified in the dvdauthor step, but must be determined beforehand.

You can also encode with streamdvd via the lxdvdrip script.

Additionally, DVDShrink works fairly well under wine, see the section on wine and windows programs emulation for more information.

Part 7 - Advanced Container Formats 

How can I mux and playback matroska (MKV, MKA) files? 

mkvtoolnix, http://bunkus.org/videotools/mkvtoolnix/, the matroska toolkit builds natively under linux (both GUI and CLI interfaces), providing an easy way to create matroska files from many different codecs. See the mkvtoolnix homepage above for links to binaries and sources.

Playback of matroska files is supported in mplayer, VLC, and other players.

See the matroska FAQ http://forum.doom9.org/showthread.php?threadid=54306 for general matroska information.