Results 1 to 6 of 6

Thread: lowering the quality (therefore filesize) of mkv files

  1. #1
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    lowering the quality (therefore filesize) of mkv files

    I have a 5 GB mkv file that I'd like to compress (as a video, not simply using a 7z archive or something to that effect) and I'm wondering if there's a straightforward way to do this. I have mkvtoolnix and mkvtoolnix-gui installed; would these be of assistance? Thanks for the help!

  2. #2
    Join Date
    Aug 2008
    Location
    Mordhaus
    Beans
    245
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: lowering the quality (therefore filesize) of mkv files

    You could try handbrake
    NEVER under ANY CIRCUMSTANCES use the commands: sudo rm -rf or rm -rf unless you know EXACTLY what you are doing! These commands will permanently erase data on your computer!

    Guitarists! Show us what you can do!

  3. #3
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: lowering the quality (therefore filesize) of mkv files

    Can handbrake work with mkv files? I know it can work with avi files, but I wasn't sure if it supported mkv files or not.

  4. #4
    Join Date
    Jul 2008
    Location
    Birmingham, England
    Beans
    2,400

    Re: lowering the quality (therefore filesize) of mkv files

    Should do, I've wrote to it before

    perhaps ffmpeg would work

  5. #5
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Beans
    925
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: lowering the quality (therefore filesize) of mkv files

    I'd use ffmpeg.
    ffmpeg -i input.mkv -vcodec libx284 -acodec libfaac -b NEWVIDEORATE -ab NEWAUDIORATE output.mkv

    Add spice for desired taste.

  6. #6
    Join Date
    Sep 2006
    Beans
    3,599

    Re: lowering the quality (therefore filesize) of mkv files

    Quote Originally Posted by michael37 View Post
    I'd use ffmpeg.
    ffmpeg -i input.mkv -vcodec libx284 -acodec libfaac -b NEWVIDEORATE -ab NEWAUDIORATE output.mkv

    Add spice for desired taste.
    This command won't work. There is no libx284 and it should be libx264, and if you are using a recent FFmpeg, you need to use a libx264 encoding preset. Compile FFmpeg and x264 from source to get the best encoding quality. Step-by-step instructions and some encoding examples:

    HOWTO: Install and use the latest FFmpeg and x264

    ...or if you don't want to compile you can use FFmpeg from the repository but you need to enable some encoders:

    HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoding in FFmpeg

    However, the link above is just slightly out of date. If you are using Karmic I recommend installing the libavcodec-extra-52 package from Medibuntu instead of the version from the Ubuntu repository. The repository libavcodec-extra-52 does not have AAC encoding and AMR encoding/decoding support.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •