Log in

View Full Version : Convert BluRay Mpeg2 to .ts files ?


K40
13th March 2007, 22:35
Is there a program to convert decrypted mpg2 BluRay m2ts files to
.ts files with no re-encoding involved, just re-multiplexing?
So i can play them on my mediaplayer with Sigma Chip.

Pookie
14th March 2007, 18:48
Needed:

Xport (drMpeg) http://www.w6rz.net/xport.zip
Mplex (Mjpegtools) http://freenet-homepage.de/CharlesWeb/download/mjpegtools_180_P4_Win32_Muxxi.7z
Cygwin1.dll http://alloy.mit.edu/alloy30/cygwin1.dll
VideoRedo (or Womble Mpeg2VCR)
(Note: Avidemux2 has an output to TS option which seems to create a valid transport stream as well)




xport -h source.m2ts 1 1 1

ren bits0001.mpv *.m2v
ren bits0001.mpa *.ac3

mplex -f 3 -b 1900 -r 29200 muxed.mpg bits0001.m2v bits0001.ac3


Open muxed.mpg in VideoRedo

Mark Beginning and End of File. Add to save list

Save as .TS under saving options.

Run resulting .TS file through Mpeg2Repair to change PIDs to "standard" PIDs 11 and 14 (might not be required, depending on your player)

------------------
Womble might be another option - easier control over the output PIDs, and will probably let you mux the elementary m2v and ac3 directly to TS.

moshmothma
15th March 2007, 00:19
Have you tried 2 just rename to ts? Works with computer.

Pookie
15th March 2007, 01:03
packet length will be different. I don't think his player will support it.

Edit - I ran the .m2ts through TSfix.exe, specifying packet length of 188. The output almost worked - had visual data errors in it :(

K40
24th March 2007, 20:37
Thanks for the infos.
I used Xport for demuxing and Womble Mpeg2VCR for
remuxing.With the default PID values:Program Map Table =64 ,
Video Elementary Stream =32 and Audio Elementary Stream =33
i also only got a black screen and no sound.
When i changed the Video E.S. to 11 and the Audio E.S. to 14
as recommended the mpg file played with picture and sound
on my Snazio Networkplayer!
Should the value for Programm Map Table also be changed?
The file is now also working with a Cristalio 2 with Networkplayer.
The Cristalio can output 1080p24.So this should be the best way
Because the Snazio can only output 1080i60 this is only a
temporary solution.
With Xport the audio track can't be selected.
So it's only working when the demuxed audio stream is Dolby Digital and not Dts-HD.
The existing Networkplayers can't play
h.264,it's only working with Mpeg2 based BluRay Discs.

zeroprobe
26th March 2007, 20:31
HELP trying to use mplex and get 2gig size limit :( even with -S 0

Pookie
26th March 2007, 23:38
Really? I've used that version of mplex to mux files that were 6GB.

Here's a GUI version

http://www.megaupload.com/?d=4YGF52Q7

The above app will Mux HD Mpeg2. It does have a small bug - you have to manually enter the name of the .AC3 file in the audio field.

Choose the Mpeg2 settings button, and it should work for you. It has for me. You'll still need to convert back to TS, which can be done with Avidemux2.

enantiomer
29th March 2007, 23:48
With Xport the audio track can't be selected.
So it's only working when the demuxed audio stream is Dolby Digital and not Dts-HD.
The existing Networkplayers can't play
h.264,it's only working with Mpeg2 based BluRay Discs.

Xport can be used to select the audio track to demux, but you have to know the correct PID. For HDMV streams, the audio PIDs start at 0x1100 and usually ascend from there (i.e. the next audio track would be on PID 0x1101). In the case of Fox Blu-ray media, the DTS-HD stream is the only stream available, and must be transcoded to AC3 for use in the network media players. As an example, Tranzcode will decode the DTS core embedded within DTS-HD, and the resulting multichannel wav can be fed to Aften for re-encoding to AC3.

There is another problem with network media players. The Sigma based players can't support bit rates over 25 Mbps, and some titles easily top 30 Mbps peak.

The only hardware solution I have found for reliable playback of Blu-ray MPEG2 is the MyHD card (it can handle bit rates up to 40 Mbps). But there's a catch. After the m2ts file is demuxed, one must insert 3:2 pulldown with a tool like DGPulldown. If you skip this step, MyHD will stutter on playback. FYI I use a similar flow to that described above, but I add pulldown and use MP2TSMS instead of mplex for muxing.

Also, Xport, DGPulldown, MP2TSMS, and VideoReDo all work from the command line, and can be scripted for unattended batch conversion of m2ts to ts (it takes about 45 minutes to do all the processing on a typical movie). If DTS to AC3 conversion is needed, Tranzcode and Aften are also CLI friendly. :)