Phil Bull (philbull) wrote,
Phil Bull
philbull

Removing the audio track from a video file, and vice versa

To remove the audio track from an Ogg video (.ogv), leaving only the video behind, install oggz-tools and run the following command:

oggzrip -c theora input.ogv > output.ogv


Likewise, to extract the audio track from an Ogg video:

oggzrip -c vorbis input.ogv > output.ogg


Ogg is a container format, which means that it can contain several files of different types and play them at the same time. Vorbis is an audio format and Theora is a video format, so when you watch an Ogg video, it is playing back the Theora movie track at the same time as the Vorbis audio track.

The oggzrip command can be used to extract single tracks from the Ogg container. The "-c" option allows you to choose which track to extract. In the first example, "theora" is the chosen track, so only the video (without sound) is extracted and output to the file "output.ogv". In the second example, "vorbis" is the chosen track, so only the audio is extracted.

These instructions were painfully arrived at on Ubuntu Jaunty (9.04). See the oggzrip man page for more information.
Tags: audio, editing, ogg, oggz-tools, theora, video, vorbis
Subscribe

  • GNOME Docs hackfest in Brno

    A couple of weeks ago, I attended the GNOME doc sprint in Brno, which ran in parallel with the Red Hat Developer Conference. My flight came into…

  • Open Help 2011 - Cincinnati

    We live in strange times. I woke up on Saturday morning to find that I'd been magically transported to Cincinnati by a benevolent spirit. And…

  • GNOME 3; User Help hackfest

    GNOME 3.0 released Well done everyone! User Help 2011 hackfest Well, the User Help hackfest in Toronto went swimmingly! Blip tells the story.…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments