Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
12th October 2008, 15:59 | #1 | Link |
Registered User
Join Date: Jul 2008
Posts: 96
|
Making PS3-compatible BD/AVCHD (and m2ts) under Linux/MacOS X using TsRemux/Mono
Okay... Since I couldn't accept that TsMuxer's BD output was b0rked under Linux, and since there's no way to get any reaction whatsoever from Roman, I set off to try a different venue: TsRemux!
I had played around with it under Windows a bit and saw that it could do both .m2ts muxing and Bluray/AVCHD structure generation... Since it is based on .NET and since there is Mono, the opensource version of .NET, I thought I'd check it out. It seems to run fine at first, but once you do a BD mux you'll quickly notice there's a load of &$%& directories with backslashes and you can't even rearrange the files manually because some are missing (because the directories weren't there). Obviously the coder had hardcoded backslashes into TSremux. So I downloaded the TsRemux source, installed monodevelop and quickly found the culprits in Utils.cs and BlueMux.cs. Changed the backslashes to slashes, compiled and voila: it worked as intended! I verified the BD muxes to work on a PS3 and an USB-stick (renamed to 8.3 AVCHD filenames!), this means optical media should work just as well... Next stop: MacOS X. Installed the Mono Framework (no need for MonoDevelop, since I had the fixed executable already!) and while the GUI stuff is way more buggy - the file dialogues (no access to anything outside your home folder, no text entering possible, extreme flickering in directories with many files), "blind clicking" on the track selection window to set checkboxes - than under Linux, it still worked! It likes to crash rather often (a bit less so under Linux it seems!) and sometimes gives strange error-warnings, but it does work for the job intended! Find the Unix-fixed binary (called TsRemunix.exe! ;-) attached... It's based on the latest source from the TsRemux-Thread (0.21.2) So here's what you do: 1. Install mono-framework 2.0 Linux: 'sudo aptitude install libmono-winforms2.0-cil' for Debianners/Ubuntans (or download from the mono-HP) MacOS X: Download from the mono-HP and install (i tried the macports version before, but it wouldn't work!) 2.Download the attached TsRemunix.exe 3.Launch TsRemunix Linux/MacOS X: just enter 'mono TsRemunix.exe' in the shell For extra convenience Mac-Users could copy the binary e.g. to /usr/local/bin/ and then place a shellscript with a .command ending and the contents: Code:
#!/bin/bash mono /usr/local/bin/TsRemunix.exe & 4. Using it Linux: Just use it like under Windows. Colors and stuff are a bit off, but it works! MacOS X: Just have everything in your home folder, since you can't seem to access anything outside it. Important! There seems to be a refresh issue with the Mac version of Mono, so the Elementary streams don't show after you load a file! Just click around in the area directly below where it says "Select the elementary streams you want to keep:" and they will appear one by one! You need to checkbox all streams you want to mux before you can start BD-muxing! Another rather annoying bug is that you cannot enter any text in the file dialogue boxes, so you can't give your files names, you can only overwrite existing ones (.ts/.m2ts muxing) or choose existing folders/create 'new folder' (BD muxing). So do this work (creating folders for bd-muxing, creating empty files for .ts/.m2ts muxing) in the Finder! It is a pain in the neck to use, but both .m2ts muxing and BD muxing work, I've verified the files to play on the PS3! Most likely at least some of these bugs are due to the MacOS Version of mono only being 1.9.1 instead of 2.0 like the Linux version... But Version 2.0 for MacOS is due out soon, so let's hope it fixes atleast a few of these bugs! Edit: If the bugs in the crash-prone GUI piss you off too much, you can try the CLI mode of TsRemux. Just launch it with a single arg like 'mono TsRemunix.exe ?' to see what it has to offer! Now, the only problem is where to get a program that *makes* .ts streams? TsRemux does not like MKVs ("experimental" only, and MPEG2-only so far!) unfortunately. Under Linux you can always use TsMuxer, since .ts and .m2ts muxing works just fine in that (plus you can fix the levelbyte! ;-). But under MacOS X there seems to be not a single program that can mux proper .ts streams. I tried the VLC Streaming wizard, but the result was b0rked, TsRemux just said it's an AVC stream and an "unknown stream", and trying to remux it would just give a big error. Any suggestions? Update: I installed the latest Mono 2.0 Framework for OS X and the GUI bugs are gone now! ;-) Now, I would be REALLY freaking psyched if TSremux could actually read MKVs... Last edited by kaid; 20th February 2009 at 00:23. Reason: Added info on latest Mono Runtime |
16th October 2008, 07:08 | #4 | Link | |
dreamer
Join Date: Sep 2008
Posts: 33
|
Quote:
Hardi Heron 8.04 here. I'm fan of HD videos too. I use somme very stong tools in "w*indows" like MeGUI for encoding videos from m2ts to mkv for exemple. I was wondering wich program I can use under Linux NjB |
|
16th October 2008, 12:02 | #5 | Link | |
Registered User
Join Date: Jul 2008
Posts: 96
|
Quote:
See here on how to make your own encoder with mplayer and x264 on the CLI... This might also be of interest if you're working the *nix toolchain! ;-) |
|
Tags |
avchd, linux, macos, ps3, tsremux |
Thread Tools | Search this Thread |
Display Modes | |
|
|