View Full Version : Blu Ray Encoding
donfrenchiano
13th May 2011, 02:50
I just got a BD-ROM for my PC and began using megui to encode them to mkv or avis. This works fine but i use Linux as my main OS. I could not get megui (more specifically .net 2.0) to work under wine so eventually i found a mixture of tools i could rip and encode blu rays all within linux. (Wine + DVDFab Decrypter HD and sometimes wine+eac3to to get ac3 audio files, and avidemux). avidemux has been working fine but i dont seem to have as much control over the encode. Maybe im just not looking in the right place. For instance megui would scan my source and see if it is progressive, interlaced or mixed. Ive had a few blu rays that i thought were progressive but megui found them as mixed. Not sure if megui was wrong or not but afaik avidemux doesnt have this option so i dont know if i should add a deinterlace filter. I guess my question is if anybody is encoding blu rays in linux and what tools,settings, or suggestions do you have/use. Or if you could point me to somewhere with more in depth info for linux blu ray encoding. Thanks in advance.
cord-factor
13th May 2011, 15:05
For instance megui would scan my source and see if it is progressive, interlaced or mixed
Use mediainfo (http://mediainfo.sourceforge.net/en), it shows scan type.
afaik avidemux doesnt have this option so i dont know if i should add a deinterlace filter
What option do you mean? ...anyway, it doesn't matter for subj. You can see scan type in mediainfo, and then choose, use or not to use deinterlace filter (and set the appropriate scan order, - avidemux has this option ;) ).
In general, you can limit yourself with ffmpeg, mplayer/mencoder and avidemux for BD encoding (if neglect subtitles).
donfrenchiano
13th May 2011, 23:53
Ill check out media info. Megui would tell whether a source was progressive, interlaced, or a mixture of both, can mediainfo do this? also megui automatically selected a deinterlace filter and order, i would have no idea of how to go about doing this without some help if it came up. Also nice to see some fellow gentoo users on here!
cord-factor
14th May 2011, 07:34
Look here, it is mediainfo output for HDV media file:
$ mediainfo 05.m2t
General
ID : 0 (0x0)
Complete name : 05.m2t
Format : MPEG-TS
Format_Commercial_IfAny : HDV 1080i
File size : 64.1 MiB
Duration : 20s 440ms
Overall bit rate : 26.3 Mbps
Video
ID : 68 (0x44)
Menu ID : 1 (0x1)
Format : MPEG Video
Format_Commercial_IfAny : HDV 1080i
Format version : Version 2
Format profile : Main@High 1440
Format settings, BVOP : Yes
Format settings, Matrix : Default
Format settings, GOP : M=3, N=12
Codec ID : 2
Duration : 20s 480ms
Bit rate mode : Constant
Bit rate : 25.0 Mbps
Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.643
Stream size : 60.1 MiB (94%)
Audio
ID : 69 (0x45)
Menu ID : 1 (0x1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 20s 304ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 952 KiB (1%)
Language : English
Language, more info : Hearing impaired
and this is for BD one (00004.m2ts - the biggest file in folder, so it's the movie itself):
$ mediainfo BDMV/STREAM/00004.m2ts
General
ID : 0 (0x0)
Complete name : BDMV/STREAM/00004.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 14.9 GiB
Duration : 1h 43mn
Overall bit rate : 20.7 Mbps
Maximum Overall bit rate : 48.0 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 1h 43mn
Bit rate mode : Variable
Bit rate : 17.8 Mbps
Maximum bit rate : 40.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.358
Stream size : 12.8 GiB (86%)
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Muxing mode : Stream extension
Codec ID : 134
Duration : 1h 43mn
Bit rate mode : Variable
Bit rate : 1 597 Kbps / 1 510 Kbps
Channel(s) : 8 channels / 6 channels
Channel positions : Front: L C R, Side: L R, Back: L R, LFE / Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossless / Lossy
Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 1h 43mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 331 MiB (2%)
HDV is interlaced, and BD is progressive. See?
donfrenchiano
14th May 2011, 22:43
Yeah i can see how to tell if its interlaced or not but not sure how to handle it like the field order or whatever, i don't remember what megui said when it added a deinterlace filter. Also ive got a bluray that megui says was a mix of progressive and interlace but mediainfo just says its progressive. Its currently encoding now in avidemux and i just told avidemux its progressive so well see what happens. Im not sure which is more accurate.
cord-factor
15th May 2011, 07:50
If in doubt, take some screenshoots from your 'mixed' video on dynamic scenes and look is there fields (interlacing) or it is a 'progressive photo' ;)
However, if you will encode progressive video like 'interlaced' nothing bad will happens.
boykillsworld
11th June 2011, 02:53
This is how I do it using all native linux tools. I rip using makemkv (you can use it for free for 30 days to rip blu-rays and buy it if you like it). You can use it on any OS and on as many PCs in your household you want with free upgrades so it seemed like a fair deal to me as it always has the latest in decryption.
For encoding I use handbrake. I suggest high profile if you computer has enough cpu as it gives the best quality for the bit rate. I cannot suggest which RF you should use because that of great debate but the default 20 wont steer you much off. There is also plenty of settings to tweak to your hearts content should you dislike the default profiles.
Handbrake converts the HD audio to AC3 which I don't like. I use mkvmergui to take the handbrake video and the original audio and subtitles then merge them together.
I use XBMC for all of my playback as it handles the HD Audio perfectly on my Asus EN g210 with the exception of only getting DTS core instead of DTS-MA. Some day bitsreaming will work but it looks like their getting close.
Tuxon86
13th June 2011, 18:16
This is how I do it using all native linux tools. I rip using makemkv (you can use it for free for 30 days to rip blu-rays and buy it if you like it). You can use it on any OS and on as many PCs in your household you want with free upgrades so it seemed like a fair deal to me as it always has the latest in decryption.
For encoding I use handbrake. I suggest high profile if you computer has enough cpu as it gives the best quality for the bit rate. I cannot suggest which RF you should use because that of great debate but the default 20 wont steer you much off. There is also plenty of settings to tweak to your hearts content should you dislike the default profiles.
Handbrake converts the HD audio to AC3 which I don't like. I use mkvmergui to take the handbrake video and the original audio and subtitles then merge them together.
I use XBMC for all of my playback as it handles the HD Audio perfectly on my Asus EN g210 with the exception of only getting DTS core instead of DTS-MA. Some day bitsreaming will work but it looks like their getting close.
You could convert your audio to Flac. That way you would still get the lossless audio but in a format that XBMC can process.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.