View Full Version : blu-ray remuxing to mkv under linux?


JerryW
09-15-09, 08:44 AM
It seems like it should be possible to remux a blu-ray to a matroska under linux as long as the bluray does not have DTS-MA or DTS-HR audio tracks.

Right now I rip under windows and remux with eac3to under windows too, but all of my storage is on a linux server. Local disk access on the linux server is about 10 faster than over the network on the windows PC.

So I would like to be able to do as much remuxing as I can under linux in order to speed uo the process. Before I dive in and figure it all out, I was wondering if anyone else has already done it?

FWIW, when I remux I do the following:

1) Keep the main video track
2) Convert the original language lossless audio into flac (ignore any dub tracks)
3) Keep any commentary tracks, mux them in as secondary audio
3) Keep all the subtitles in their original .sup form as attachments to the mkv incase I need them later.
4) Keep all the jpegs (usually just big and small icons under the META directory) as attachments to the mkv.
5) Extract the list of chapter breaks and mux those into the mkv for easy seeking by chapter

I figure all of that, with the exception of DTS-MA/DTS-HR handling should be doable under linux already.

Also, FWIW, eac3to under wine doesn't work for me, it gets a few gigabytes into the demux step and then pukes out with a read error, and it is not at the same byte offset or anything obvious like that (I'm running 64-bit ubuntu).

tux99
09-15-09, 09:05 AM
See this thread:

http://www.avsforum.com/avs-vb/showthread.php?t=1175821

nkrumm
09-15-09, 09:21 PM
As a relative newbie to this field/science/art, I dont presume what i'm doing is the best way, or that it will work for every audio/video format out for blu-ray. but this works pretty well for me.

1. Use DumpHD to put the contents of the BD on the HD
2. use tsMuxer to demux the .m2ts file into whatever video/audio tracks you want. it is helpful to have the basic output of eac3to here in order to know which tracks you want to keep, and this functionality does usually work with wine. but there are other methods out there, including using an mplayer frontend (eg, smplayer) to check out the tracks.
3. use mkvtoolnix/mkvmerge gui (http://www.bunkus.org/videotools/mkvtoolnix/) to put it all back together into one MKV. I have not included extras such as Jpgs, but I think this is possible.

For me, this process takes about 2 hours on my lowly Intel E5200 and WD green drive, running Ubuntu 9.04.

I cannot say that this works perfectly for me just yet, however, as I always seem to have a ~80ms video delay (audio ahead of video). More experimentation is needed, however. I know that this is not due to the delays sometimes encoded into BDs, but I think it is present even when playing the .m2ts file directly. If anyone has ideas now, i'm happy to hear them, otherwise Ill be posting this on its own soon!

hope this helps?