View Full Version : BluRay Disc to 720p on Debian 5.0 console
YouDontKnowMe
21st February 2010, 14:25
well first off all I am a real n00b when it comes to linux... I just have basic skillz and to be honest I dont need really more... the thing is I couldnt find a nice solution to do this:
1. extracting .iso well how do I get the main m2ts file out of this iso?
2. how can I demux this m2ts? I wanted to have all audio streams and the video stream...
3. I know that I can use mencoder for encoding of the avc stream... but does it work with vc1 and mpeg aswell?
4. Yeah the muxing... its the same as on windows per mkvmerge...
thats how I would like to encode a bluray on my debian... can someone plz explain me the points I couldnt figure out... or recommend me tools for doing so? Maybe there is an even easier way? or a better one?
thanks in advance
edit: I just forgot to say, that I use debian 5.0 64bit... so all software needs to be in 64bit aswell :D
nm
21st February 2010, 15:08
1. extracting .iso well how do I get the main m2ts file out of this iso?
2. how can I demux this m2ts? I wanted to have all audio streams and the video stream...
MakeMKV (http://www.makemkv.com/) and mkvextract? Eac3to and tsMuxeR are also useful.
3. I know that I can use mencoder for encoding of the avc stream... but does it work with vc1 and mpeg aswell?
Sure. FFmpeg/libavcodec decodes both.
Interlaced VC-1 needs to be decoded with Microsoft's DMO codec (wvc1dmod.dll) that can also be used through MEncoder. Some distributions carry it in a codec package, or you can fetch one from the download section of MPlayer's homepage and extract to /usr/lib/win32. You'll need to install a 32-bit MPlayer or MEncoder build though, and pipe the video to x264. However, chances are that you don't have many discs with interlaced VC-1. Progressive VC-1 can be decoded with libavcodec.
YouDontKnowMe
21st February 2010, 15:11
MakeMKV (http://www.makemkv.com/) and mkvextract? Eac3to and tsMuxeR are also useful.
yeah but tsmuxer natively supports linux just 32bit... I need something for 64bit
Sure. FFmpeg/libavcodec decodes both.
Interlaced VC-1 needs to be decoded with Microsoft's DMO codec (wvc1dmod.dll) that can also be used through MEncoder. Some distributions carry it in a codec package, or you can fetch one from the download section of MPlayer's homepage and extract to /usr/lib/win32. You'll need to install a 32-bit MPlayer or MEncoder build though, and pipe the video to x264. However, chances are that you don't have many discs with interlaced VC-1. Progressive VC-1 can be decoded with libavcodec.
so I could encode all kind of video with just mencoder?
nm
21st February 2010, 15:25
yeah but tsmuxer natively supports linux just 32bit... I need something for 64bit
TsMuxeR runs just fine on a 64-bit system with 32-bit libraries installed. I use it myself that way. You can also run Windows binaries with Wine.
so I could encode all kind of video with just mencoder?
Yes, unless you are talking about encoding to VC-1 format. For that you would need to use some Windows-based tool and codecs. It may be possible to run some of them with Wine. MPEG-2 can be encoded natively with MEncoder.
YouDontKnowMe
21st February 2010, 15:44
I want to encode from vc-1 avc and mpeg to avc :D and I dont like using wine... I need some native linux tools :P
I tested tsmuxer on my debian lenny.. (64bit) and it doesnt work... a friend of mine uses debian lenny 32bit and he can run tsmuxer just fine
can I demux m2ts with mencoder or ffmpeg?
nm
21st February 2010, 16:40
I want to encode from vc-1 avc and mpeg to avc :D and I dont like using wine... I need some native linux tools :P
Well, you're free to do what you want, but there are many Windows-based video tools (like AviSynth and eac3to) that don't have equivalent native alternatives. Personally I consider Wine just one software platform among others -- it's more "native" than Java and .NET/Mono, afterall. I probably wouldn't develop new Linux apps on (lib)wine, but it's fine for running programs that I need.
I tested tsmuxer on my debian lenny.. (64bit) and it doesnt work...
Did you download the statically linked version (http://www.smlabs.net/tsMuxer/tsMuxeR_1.10.6.tar.gz)? And you have ia32-libs installed? What does the error message say?
Both the GUI and CLI binaries work on my 64-bit Debian sid.
can I demux m2ts with mencoder or ffmpeg?
Probably, but they lack some features that tsMuxeR and eac3to have. Subtitles and HD audio streams may be problematic.
RunningSkittle
21st February 2010, 18:57
I run debian "squeeze" x86_64.
My workflow: rip with MakeMKV, pipe output with mplayer to x264, use mkvtoolnix (gui) to mux in chapters and sound.
$mkfifo temp.y4m
$x264 temp.y4m --preset slow --crf 18 --level 4.1 --tune film -o <output>.mkv & mplayer <input>.mkv -vo yuv4mpeg:file=temp.y4m -nosound -benchmark -lavdopts threads=4 -really-quiet
YouDontKnowMe
22nd February 2010, 12:40
how can I demux all audio and video streams of an m2ts however it has avc vc-1 or mpeg in it? I would like to use ffmpeg for this or mencoder... anyone got an idea? if this part is done the rest is piece of cake :D
Selur
28th February 2010, 00:25
Hybrid runs on Linux without a problem and uses mencoder/ffmpeg/x264 and other native linux tools for the task, if you don't want to use for encoding it might be a help to you to create a job with the stuff you want and look it up in the jobs-tab.
When you disable 'minimize job command line' you can see all the calls you need. :)
so all software needs to be in 64bit aswell
total nonsense for a tool like tsMuxeR which is 'just' a remuxer,...
Cu Selur
RunningSkittle
3rd March 2010, 08:09
Just an update: x264 compiled with ffms2 input and the cli-filter patch, you dont even need to pipe from mplayer anymore!
x264 <in>.mkv --preset slow --crf 18 --level 4.1 --tune film --cli-filter resize:1280,720 -o <output>.mkv
Adub
6th March 2010, 00:36
Except for that small little thing called audio. But yes, other than that, the addition of lavf and ffms2 is quite fantastic.
RunningSkittle
6th March 2010, 21:42
I just mux in the AC3/DTS audio after x264 finishes encoding
Adub
9th March 2010, 19:41
Yes, I agree. In fact I pretty much do the same thing. I've been meaning to script it for quite some time, but haven't gotten around to it. Plus, after seeing Hybrid, I got a little lazy ;)
fangorn
26th March 2010, 09:54
Just for information, if it is of interest to somebody:
I provide a set of linux command line scripts to do exactly that (and more). See my Signature for the documentation and downloads.
bluray-info can display info and extract titles from BluRay directory structures. If you mount the iso with
mount -o loop <isofile> /mnt/cdrom
it should work also on ISO files (if the ISO was actually decrypted!)
blu2mkv is a script for converting HD content in about any format to 1080p or 720p.
avi2mkv is a script to transfer the results of blu2mkv (and others) into several output containers regarding presets for hardware players et. al. It muxes to Matroska (.mkv), MPEG Transport Stream (.ts,.m2ts,.avchd), ISO MPEG4 (.mp4) and OGM. It also automatically reencodes audio streams that are not appropriate for the selected output container to allowed formats. It is called automatically by blu2mkv (and others) for muxing.
@edit:
And even on Debian AMD64 there are some 32bit libs available that make tsMuxeR run. No need for a 32bit chroot. You simply wont get anywhere when ignoring the existance of tsMuxeR or neroAacEnc just because they are only 32bit.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.