[linux] mkv 720p to avi 480p
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 10 of 10
  1. #1

    Join Date
    Oct 2010
    Location
    Torrent-Invites
    Posts
    102

    Default [linux] mkv 720p to avi 480p

    Hi everyone. Today i will teach how make a BRrip with audio Mp3
    (I still can not AC3 but I'll leave the tutorial for those who want to try)

    First, we need some softwares (These steps are for centos / redhat. For other distributions is similar.):

    mkvtoolnix:

    Code:
    yum install mkvtoolnix
    mediainfo
    Code:
    yum install mediainfo libzen0 libmediainfo0
    ffmpeg
    Code:
    yum install ffmpeg ffmpeg-devel
    mencoder
    Code:
    yum install mencoder
    Now we have the tools let's start. (From here is the same for any distribution of Linux)

    I will use the release: Insidious.2010.720p.BluRay.x264.DTS-WiKi

    First with mediainfo we see the height of the video, audio format and IDs:

    Code:
    mediainfo Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv
    Output:
    Code:
    Video
    ID                               : 1
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.1
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 8 frames
    Codec ID                         : V_MPEG4/ISO/AVC
    Duration                         : 1h 42mn
    Bit rate                         : 6 134 Kbps
    Width                            : 1 280 pixels
    Height                           : 534 pixels
    Display aspect ratio             : 2.35:1
    Frame rate                       : 23.976 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.374
    
    Audio
    ID                               : 2
    Format                           : DTS
    Format/Info                      : Digital Theater Systems
    Codec ID                         : A_DTS
    Duration                         : 1h 42mn
    Bit rate mode                    : Constant
    Bit rate                         : 1 510 Kbps
    Channel(s)                       : 6 channels
    Channel positions                : Front: L C R, Side: L R, LFE
    Sampling rate                    : 48.0 KHz
    As we can see the format is DTS.

    Now we separate the video and audio.

    Video:
    Code:
    mkvextract tracks Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv 1:video.mkv;
    Audio in DTS:
    Code:
    mkvextract tracks Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv 2:audio.dts;
    AC3 audio if the video had AC3 audio instead of DTS:
    Code:
    mkvextract tracks Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv 2:audio.ac3;
    Now we will convert audio to MP3:
    Code:
    ffmpeg -i audio.dts -acodec libmp3lame -ar 48000 -ab 320k -ac 2 audio.mp3
    If you want to convert to AC3:
    Code:
    ffmpeg -i audio.dts -acodec ac3 -ac 6 -ab 448k audio.ac3;
    If you want to convert from AC3 to MP3:
    Code:
    ffmpeg -i audio.ac3 -acodec libmp3lame -ar 48000 -ab 320k -ac 2 audio.mp3

    Now we will convert video to AVI:
    Code:
    mencoder video.mkv -nosound -ovc xvid -xvidencopts fixed_quant=2 -vf scale=720:xxx -o video.nosound.avi;
    where is the xxx will put the new height, the length is always the same 720.

    To calculate the height we can use this methods:
    xxx = Original Height / 1.78947 = 534 / 1.78947 = 298 (rounded)



    This step is the most time consuming. It can last between 2hours and 3hours, or more in great movies.

    To finish merge the audio and video:

    Code:
    mencoder video.nosound.avi -ovc copy -oac copy -audiofile audio.mp3 -af volume=11 -o finalName.480p.BRRip.XviD.MP3.avi;

    Any doubts I'm here to clarify.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Apr 2011
    Posts
    319

    Default Re: [linux] mkv 720p to avi 480p

    dude, how much time does it take to convert one single movie?
    i think its easier to download 480p movies from trackers

    thanks...

  4. #3

    Join Date
    Oct 2010
    Location
    Torrent-Invites
    Posts
    102

    Default Re: [linux] mkv 720p to avi 480p

    On average it takes about 2 to 3 hours. This is for those like me who like to make rips and share.

  5. #4

    Join Date
    Oct 2011
    Location
    Argentina
    Posts
    2

    Default

    excellent, just what I was looking for.

  6. #5

    Join Date
    Jul 2011
    Location
    Honolulu
    Posts
    530

    Default

    Very nice tut J, I will give it a try later today and see how it goes for me. I think I am going to find the smallest 720p vid I can find to start out though...:P

  7. #6

    Join Date
    Oct 2011
    Location
    Lithuania
    Posts
    42

    Default

    Help how do .avi video bitrate=1500 ?

    mencoder video.mkv -nosound -ovc xvid -xvidencopts bitrate=1500 fixed_quant=2 -vf scale=720:400 -o video.nosound.avi;

    dont work
    POWER of OVH :)

  8. #7
    Aengus is offline Aengus's Avatar T-I Gatekeeper

    Join Date
    Apr 2012
    Location
    Ireland/ IRC
    Posts
    535
    Blogs
    4

    Default

    So technically it can be used on a seedbox? This could be handy if a tracker would allow you to upload in different formats and qualities like PTP
    Patience is not a gift given to you.
    It is cultivated by yourself.
    Enjoy these:
    Invictus | Rise


  9. #8

    Join Date
    May 2012
    Location
    Goa
    Posts
    730

    Default

    excelent tutorial... thanks alooot :)

  10. #9

    Join Date
    Jun 2012
    Posts
    142

    Default

    great tutorial for linux, thanks for information!!!

  11. #10

    Join Date
    Dec 2012
    Location
    California, USA
    Posts
    26

    Default

    Oh man this is great. I have been toying with using ffmpeg to convert mkv (and other formats) to XviD/Divx. XviD/DivX is getting harder to find. Which reminds me, does anybody know of some private trackers that offer (more) DivX formats? I especially love the P2P group AFG. They release 95% of what I need in the format I need, but sometimes on the private tracker I use they are late or don't come out with some of the shows I need. Anyways, I may hit you up for more help jmorris down the road.

Similar Threads

  1. Replies: 8
    Last Post: November 29th, 2011, 04:22 PM
  2. Mac: How to stream mkv files to your xbox360
    By Stryker in forum Operating Systems
    Replies: 0
    Last Post: October 26th, 2010, 04:21 PM
  3. How to Merge 2CD Releases on Linux
    By Primus Lord in forum Operating Systems
    Replies: 0
    Last Post: March 28th, 2009, 03:08 PM
  4. HOW TO BURN .avi to dvd
    By dazza1227 in forum Audio & Video
    Replies: 22
    Last Post: March 25th, 2009, 07:35 AM
  5. Best way to watch .mkv? with PS3?!
    By coolkensington in forum General Discussion
    Replies: 8
    Last Post: February 27th, 2009, 04:41 PM

Tags for this Thread

Posting Permissions

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