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:
mediainfoCode:yum install mkvtoolnix
ffmpegCode:yum install mediainfo libzen0 libmediainfo0
mencoderCode:yum install ffmpeg ffmpeg-devel
Now we have the tools let's start. (From here is the same for any distribution of Linux)Code:yum install mencoder
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:
Output:Code:mediainfo Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv
As we can see the format is DTS.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
Now we separate the video and audio.
Video:
Audio in DTS:Code:mkvextract tracks Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv 1:video.mkv;
AC3 audio if the video had AC3 audio instead of DTS:Code:mkvextract tracks Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv 2:audio.dts;
Now we will convert audio to MP3:Code:mkvextract tracks Insidious.2010.720p.BluRay.x264.DTS-WiKi.mkv 2:audio.ac3;
If you want to convert to AC3:Code:ffmpeg -i audio.dts -acodec libmp3lame -ar 48000 -ab 320k -ac 2 audio.mp3
If you want to convert from AC3 to MP3:Code:ffmpeg -i audio.dts -acodec ac3 -ac 6 -ab 448k audio.ac3;
Code:ffmpeg -i audio.ac3 -acodec libmp3lame -ar 48000 -ab 320k -ac 2 audio.mp3
Now we will convert video to AVI:
where is the xxx will put the new height, the length is always the same 720.Code:mencoder video.mkv -nosound -ovc xvid -xvidencopts fixed_quant=2 -vf scale=720:xxx -o video.nosound.avi;
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.









LinkBack URL
About LinkBacks
Reply With Quote









