View Full Version : TsRemux v0.21.2: Transport Stream De/Re-muxer
Luvpeaceguru
30th January 2008, 17:10
I am seeing very strange behaviour on this disk. Having ripped with AnyDVDHD, I get the error in the attached file when I go for any of the key 3x 8.5GB m2ts files:
And I'm getting exactly the same on Hotel Babylon Disk 2.
Anyone have any ideas???
jamos
31st January 2008, 02:42
getting divide by zero error when converting any ts or m2ts file to bd structure. Anyone else getting this? happens with ver. .18 and .19.
Ok found the issue: was the source mkv elementary streams had no pps. after running them through h264info with pps enabled for every picture then muxing them into a m2ts with tsmuxer the files processed fine with tsremux and gave me a correct BD Structure.
jamos
31st January 2008, 02:44
And I'm getting exactly the same on Hotel Babylon Disk 2.
Anyone have any ideas???
anydvd has been known to corrupt m2ts files I think the latest versions fixes the issues. there is a m2ts fix program out there but do not know the name.
B4tm4n
31st January 2008, 21:50
This was posted over at www.abhdtv.net by Pate.
Hello!
I promised to write a simple guide how to hex-edit the files that result from running TSRemux and outputting to Blu-Ray format so that you get subtitles to show.
I have only tested the result with PowerDVD and with a single subtitle track, so YMMV when using a stand-alone player and/or several subtitle tracks. This should work as a starting point for experimenting, though.
You will need a hex editor, I use "HHD Software Free Hex Editor" (typing that to Google should get you the right place if you don't yet have a hex editor). This free editor can only handle very small files, but luckily that's all you need for this operation.
Step 1: Run TSRemux, and select the video stream, audio stream you wish to keep, and the subtitle stream you wish to keep. Set output to Blu-Ray, and let TSRemux do it's magic.
Step 2: Go to the BDMV\PLAYLIST directory, there should be a file called 00000.mpls. Open this with a hex editor, and you should see something like the following (without the yellow highlighted boxes.
http://memweb.newsguy.com/~paalto/Playlist.gif
Step 3: Replace the HEX values 00 90 with 12 00 on a row that shows a language code. This is the PID value of the subtitle track, which TSRemux erroneously leaves at 0090 when it should be 1200.
Step 4: Replace the HEX value 91 (stream type "Interactive Graphics") with 90 (stream type "Presentation Graphics") for this subtitle stream. The following 3 characters after the stream type is the language code of the subtitle, change this to the actual subtitle language if necessary.
My theory is the the author of TSRemux left a small bug in the code, when the code should replace the stream type 91 with 90, it erroneously overwrites the PID 1200 with 0090.
After this the subtitles should in fact work in PowerDVD, however, if the language code does not match the language code in BDMV\CLIPINF\00001.clpi, PowerDVD will show the subtitle language as "Undefined".
Step 5: Thus, hex-edit the BDMV\CLIPINF\00001.clpi file as well, changing the language on the row that shows 12 00 (PID) and 90 (stream type) to be the same as in the playlist.
http://memweb.newsguy.com/~paalto/Clipinf.gif
Step 6: All done, enjoy your remuxed Blu-Ray with subtitles!
Pate
tymoxa
31st January 2008, 23:29
Here (http://www.mediafire.com/?elt2mmdejmj) is a 2 BDMV folders (without *.m2ts) that was generated by scenarist and tsremux.
I've made a small h264 clip with 2 ac3 tracks and authored them in scenarist. The result is perfectly play by PowerDVD 7.3.3304. Then i remux *.m2ts in TSremux keeping all streams. In result - video play without sound (in playlist according to Bdedit was left only 1 audio track, but in clipinf - there is 2).
Maybe someone knows what tsremux doing wrong?
Or, maybe author look at these BDMV?
jamos
1st February 2008, 02:30
Here (http://www.mediafire.com/?elt2mmdejmj) is a 2 BDMV folders (without *.m2ts) that was generated by scenarist and tsremux.
I've made a small h264 clip with 2 ac3 tracks and authored them in scenarist. The result is perfectly play by PowerDVD 7.3.3304. Then i remux *.m2ts in TSremux keeping all streams. In result - video play without sound (in playlist according to Bdedit was left only 1 audio track, but in clipinf - there is 2).
Maybe someone knows what tsremux doing wrong?
Or, maybe author look at these BDMV?
I always have to uncheck the bypass audio alignment to get the audio to work using TSRemux to output to bluray.
jamos
1st February 2008, 02:35
This was posted over at www.abhdtv.net by Pate.
nice find! hopefully TSremux will fix this!
tymoxa
1st February 2008, 22:11
jamos
yep, that helps... but again, only 1 audio track after remux in blu-ray (according to playlist file and BD-P1400) and 2 audio tracks in reality (in *.m2ts file i mean).
with same test clip, but made in scenarist (h264+2*ac3) and burned on DVD+RW (i.e. AVCHD), i've got playback with 2 audio tracks and bd-p1400 lets me select audio track what i want to hear.
chiefj1254
4th February 2008, 06:52
I constantly get a green bar across the bottom of my videos when outputting to blu-ray structure and burning AVCHD for PS3. From the feedback I've read so far, it's because my source mkvs are non-standard video formats. Is there any way to add a feature in a future version to "pad" the video with black on top and bottom when converting to blu-ray so the video format appears as standard? This would solve a lot of people's problems, I imagine.
Either way, great tool and thanks for what you've given us so far!
Bigmango
4th February 2008, 13:09
I constantly get a green bar across the bottom of my videos when outputting to blu-ray structure and burning AVCHD for PS3. From the feedback I've read so far, it's because my source mkvs are non-standard video formats. Is there any way to add a feature in a future version to "pad" the video with black on top and bottom when converting to blu-ray so the video format appears as standard? This would solve a lot of people's problems, I imagine.
Either way, great tool and thanks for what you've given us so far!
This is caused by the removal of the balck borders prior to re-encoding the movie.
You need to put the movie back to a standard resolution, and add the black borders to keep the aspect ratio. You can do this with avisynth.
I. ex: your file is 1280x588, you need to set it back to 1280x720:
aviSource("C:\yourfile.avi", audio=true)
Lanczos4Resize(1280,720).addborders(0,66,0,66)
Save this script with a .avs extention and use it as source in your encoding app (yes you need to encode the file again).
chewdogg10
5th February 2008, 00:18
I have a Panny BD30K that will play all my discs authored with ULead, CyberLink, and Roxio, but the files are transcoded and lose quite a bit of quality. I tried writing the Blu Ray structure from tsReMuxer, but it won't play. Does anyone know how to get tsReMuxer BD structure to play in a set-top?
chewdogg10
5th February 2008, 03:46
Do I need to use BDEdit in order to get the Blu Ray Structure output from tsRemuxer to work? When I throw it in the set-top, it says BD on the display, changes to PLAY and then sits on 00:00 and sits at a black screen with "Reading..." on the screen.
Thanks for any help!
Chew
dmz01
5th February 2008, 15:29
I will fix the bug that Pate discovered and explained above in the next version of TsRemux.
Thanks!
jamos
5th February 2008, 16:23
jamos
yep, that helps... but again, only 1 audio track after remux in blu-ray (according to playlist file and BD-P1400) and 2 audio tracks in reality (in *.m2ts file i mean).
with same test clip, but made in scenarist (h264+2*ac3) and burned on DVD+RW (i.e. AVCHD), i've got playback with 2 audio tracks and bd-p1400 lets me select audio track what i want to hear.
what settings do you use to get the h264 extracted from a mkv file to work in scenarist, I am assuming your reencoding it with x264? I have had issues getting the file to load in the data part of HDMV with just setting the avc lvl to 4.1 with h264info. it creates the mui ok.
dirkr
5th February 2008, 16:24
I will fix the bug that Pate discovered and explained above in the next version of TsRemux.
Thanks!
Please fix evo bug from version 19 too and implement dts-hd downconvert to dts!!
A HUGE THANK YOU!
jamos
5th February 2008, 16:25
I will fix the bug that Pate discovered and explained above in the next version of TsRemux.
Thanks!
Looking forward to it thanks man!
XolocoTuxmaster
5th February 2008, 16:32
I will fix the bug that Pate discovered and explained above in the next version of TsRemux.
Thanks!
Great!!
It would be perfect if you fix the multiaudio track one
Ranguvar
5th February 2008, 21:41
Any hope for VC-1 demuxing? Doesn't work with current version, at least for me.
Thanks :D
Chumbo
6th February 2008, 01:30
Any hope for VC-1 demuxing? Doesn't work with current version, at least for me.
Thanks :D
Use eac3to or graphedt with the Dump filter.
Ranguvar
6th February 2008, 01:44
Use eac3to or graphedt with the Dump filter.
No, I need to actually demultiplex the VC-1 video out, not dump, which results in uncompressed video.
Ranguvar
6th February 2008, 01:48
Never mind... it feels like working today :D
jamos
6th February 2008, 03:16
This is caused by the removal of the balck borders prior to re-encoding the movie.
You need to put the movie back to a standard resolution, and add the black borders to keep the aspect ratio. You can do this with avisynth.
I. ex: your file is 1280x588, you need to set it back to 1280x720:
aviSource("C:\yourfile.avi", audio=true)
Lanczos4Resize(1280,720).addborders(0,66,0,66)
Save this script with a .avs extention and use it as source in your encoding app (yes you need to encode the file again).
how would this work with mkv sources use directshow?
also dont you mean
aviSource("C:\yourfile.avi", audio=true)
Lanczos4Resize(1280,588).addborders(0,66,0,66)
because 588+66+66=720
Hunstad
6th February 2008, 20:34
Don't resize, only AddBorders(0,66,0,66)
jamos
7th February 2008, 02:05
Don't resize, only AddBorders(0,66,0,66)
I had to resize also myself because my original was 1080p cropped.
sure wish some of these programs like megui could read the mkv and set the settings exactly like they were when original mkv was created (ie lose no quality and not gain space). If i use lossless the video gets ridiculausly big like 60 gig. I am using the HD Fast profile and it seems to work good but my size is still bigger than the mkv at 1080p was.
DVFreak
7th February 2008, 10:44
i have the Problem about an Rebuild Evo from HDDVD (Rebuild Evos with Evodemux).
The Rebuilded Evo where 2 Evos merged with evodemux i have load in Tsremux to Build an m2ts Stream Tsremux give me an Error at the Half with "Buffer Overflow" and "Sync Error"
I Think this is an Problem while 2 Evos merged in one, and at the Point or Break where the 2 Evos merged TsRemux find other Infos in the Evo Stream.
I Hope the Author understand me :)
tulkar
8th February 2008, 14:50
Well , I have get working tsremuxed streams with 2 audios and 2 subs, more details about how to modify hex mlps here:
An example
http://img233.imageshack.us/img233/1681/samplefn3.jpg
If you take a look to the shaped bytes in colors, every long shape is a stream
Use this table to better understanding
http://img169.imageshack.us/img169/7866/tablasbk5.jpg
With a sample structure like that, you can always change the video type from VC1 to Avc or mpeg2 , also audio type (AC3, DTS) , and language,use your imagination, remember also to pair the cliplist file.
jamos
8th February 2008, 15:08
Well , I have get working tsremuxed streams with 2 audios and 2 subs, more details about how to modify hex mlps here:
An example
http://img233.imageshack.us/img233/1681/samplefn3.jpg
If you take a look to the shaped bytes in colors, every long shape is a stream
Use this table to better understanding
http://img169.imageshack.us/img169/7866/tablasbk5.jpg
With a sample structure like that, you can always change the video type from VC1 to Avc or mpeg2 , also audio type (AC3, DTS) , and language,use your imagination, remember also to pair the cliplist file.
Great Info Tulkar hopefully they will add this to TSRemux so we can have multiple audio and subtitles and correct stream header info.
so if I am reading your example correctly the video would be VC1 1080p 23.976fps
audio: DTS spanish and second audio DTS english.
A spanish and A english subtitle.
yes please post about the mlps file too.
tulkar
8th February 2008, 15:35
Audios are Ac3 both of them, code 81 look in the table , 05 81 , the 05 is the lenght in bytes of the stream information, so;
05 81 61 73 70 71
5bytes Ac3 fps and frecuency char(s) char(p) char(a)
So is an Ac3 tagged like spanish
dmz01
8th February 2008, 20:42
New version 0.20:
Fixed EVO/VOB/MPG file handling
Fixed MPLS generation from above (big thanks to all contributors)
Added DTS HD to DTS in blu-ray streams
To Do: language selection for subtitles/audio streams as opposed to setting them all to english.
As usual for any issues, especially crashes a small sample is very much appreciated.
dirkr
8th February 2008, 22:50
Let me be the first to say:
THANK YOU! for hearing the wishes of us all.
maya
8th February 2008, 23:05
New version 0.20:
Fixed EVO/VOB/MPG file handling
Fixed MPLS generation from above (big thanks to all contributors)
Added DTS HD to DTS in blu-ray streams
To Do: language selection for subtitles/audio streams as opposed to setting them all to english.
As usual for any issues, especially crashes a small sample is very much appreciated.
Just wanted to say thanks as well.
The1n
9th February 2008, 01:32
Thank you for a great program dmz01.
jamos
9th February 2008, 07:34
Audios are Ac3 both of them, code 81 look in the table , 05 81 , the 05 is the lenght in bytes of the stream information, so;
05 81 61 73 70 71
5bytes Ac3 fps and frecuency char(s) char(p) char(a)
So is an Ac3 tagged like spanish
you are correct I got the wrong column.
jamos
9th February 2008, 07:37
New version 0.20:
Fixed EVO/VOB/MPG file handling
Fixed MPLS generation from above (big thanks to all contributors)
Added DTS HD to DTS in blu-ray streams
To Do: language selection for subtitles/audio streams as opposed to setting them all to english.
As usual for any issues, especially crashes a small sample is very much appreciated.
nice DMZ is there any current way to load raw h264 streams and audio streams? I would love just to use this program from extracted mkvs. currently i have to use tsmuxer to remux them into a m2ts file. tsmuxer has some bugs currently.
thanks!
yaksplat
9th February 2008, 14:48
What is the process of going from evo files to an mpeg-2?
I used the new version of HD-dvd decrypter to rip the evo files. Then i used HD-DVD EVO demux to join the evo files with the streams that I wanted. Then I used TSremux to mux it into a TS.
I then tried using videoredo to convert the ts into an mpg but it said that there was no mpeg2 stream available.
Sorry I'm new to this.
Thanks
arrgh
9th February 2008, 15:40
@dmz01
really great !! Thanks
theblind
9th February 2008, 15:55
Hi !
What is the process of going from evo files to an mpeg-2?
I used the new version of HD-dvd decrypter to rip the evo files. Then i used HD-DVD EVO demux to join the evo files with the streams that I wanted. Then I used TSremux to mux it into a TS.
I then tried using videoredo to convert the ts into an mpg but it said that there was no mpeg2 stream available.
Sorry I'm new to this.
Thanks
I didn't know any HD-DVD with mpeg2hd videostream. The most of the HD-DVD have VC-1, some mpeg4 avc...
Cu.
yaksplat
9th February 2008, 16:03
I didn't know any HD-DVD with mpeg2hd videostream. The most of the HD-DVD have VC-1, some mpeg4 avc...
Like I said, I'm new at this. I'm trying to end up with a DVR-MS file for media center streaming to an extender, which I typically rip a dvd -> vob -> ->mpg -> dvr-ms.
Any recommendations?
Jim
dmz01
9th February 2008, 18:12
nice DMZ is there any current way to load raw h264 streams and audio streams? I would love just to use this program from extracted mkvs. currently i have to use tsmuxer to remux them into a m2ts file. tsmuxer has some bugs currently.
thanks!
Muxing is a lot harder than remuxing. In muxing, you have to generate all the appropriate timestamps so that video plays at the correct rate, doesn't slow down, doesn't speed up, stays in sync with audio and the packets are intertwined correctly so that none of the buffers overflow. In remuxing, I have a very easy job, I don't have to worry about all this, since the timestamps are already there and the packets are in correct intertwined order. :) I applaud Roman for writing a true muxer (which is what you need for what you want to do. :)) Give him some time. He has my source code. He'll get there.
dirkr
9th February 2008, 23:53
Hi !
I didn't know any HD-DVD with mpeg2hd videostream. The most of the HD-DVD have VC-1, some mpeg4 avc...
Cu.
Resident Evil HD-DVD (EUR) is a mpeg2-stream. Wondered by myself for 7 weeks....
jamos
9th February 2008, 23:54
Muxing is a lot harder than remuxing. In muxing, you have to generate all the appropriate timestamps so that video plays at the correct rate, doesn't slow down, doesn't speed up, stays in sync with audio and the packets are intertwined correctly so that none of the buffers overflow. In remuxing, I have a very easy job, I don't have to worry about all this, since the timestamps are already there and the packets are in correct intertwined order. :) I applaud Roman for writing a true muxer (which is what you need for what you want to do. :)) Give him some time. He has my source code. He'll get there.
cool deal..maybe combine your two programs for a one click solution guess I could write a gui front end to do that.
maya
9th February 2008, 23:58
Can anyone tell me why HD MA will sometimes be converted to DTS ES and then others to regular DTS 2 channel when using the newest version of tsremux? For example, X-MEN 3 converts to DTS ES and Planet of the Apes converts to 2 channel DTS
DanielCardenas
10th February 2008, 00:37
TSRemux v20 crashes when loading a vob file. v0.0.16 works though. Also works if I uncheck "Use async I/O". :-)
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at TsRemux.TsRemux.EnableCbxMlp()
at TsRemux.TsRemux.backgroundWorker2_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TsRemux
Assembly Version: 0.0.20.0
Win32 Version: 0.0.20.0
CodeBase: file:///E:/downloads/low/tsremux/tsremux_080209.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
dmz01
10th February 2008, 05:18
Can anyone tell me why HD MA will sometimes be converted to DTS ES and then others to regular DTS 2 channel when using the newest version of tsremux? For example, X-MEN 3 converts to DTS ES and Planet of the Apes converts to 2 channel DTS
Because there is no conversion. I only extract the core stream, whatever that maybe. Same is true for TrueHD to AC3 extraction. The decision on how much to put into the core stream is up to the original authors.
dmz01
10th February 2008, 05:21
I would need a small sample to fix this.
TSRemux v20 crashes when loading a vob file. v0.0.16 works though. Also works if I uncheck "Use async I/O". :-)
PleXuS
10th February 2008, 05:59
from what i read it still not possible to import subtittle to bluray structure with no subtitles?
where are the subtitles stored in bluray structure?
in the m2ts files?
best regards,
PleXuS
jamos
10th February 2008, 07:25
from what i read it still not possible to import subtittle to bluray structure with no subtitles?
where are the subtitles stored in bluray structure?
in the m2ts files?
best regards,
PleXuS
I think you mean tsmuxer not this program it supports subtitles if they are muxed in the m2ts. Tsmuxer currently does not support subtitles.
jamos
10th February 2008, 15:48
With TSremux .20 I am having issues with bluray. with .19 I do not have the issues. After I remux a m2ts to bluray using .20 the resulting structure will play in powerdvd or standalone
bd players but does not have audio (yes I unchecked bypass audio align). in .19 it does work in standalone players and powerdvd with audio with the Same Source. This could be just because of Tsmuxer not properly setting the dts audio correctly. I will just have to use .19 for these sources.
maya
11th February 2008, 04:21
Because there is no conversion. I only extract the core stream, whatever that maybe. Same is true for TrueHD to AC3 extraction. The decision on how much to put into the core stream is up to the original authors.
Thanks again.
dmz01
11th February 2008, 06:14
With TSremux .20 I am having issues with bluray. with .19 I do not have the issues. After I remux a m2ts to bluray using .20 the resulting structure will play in powerdvd or standalone
bd players but does not have audio (yes I unchecked bypass audio align). in .19 it does work in standalone players and powerdvd with audio with the Same Source. This could be just because of Tsmuxer not properly setting the dts audio correctly. I will just have to use .19 for these sources.
Can you provide a few seconds sample of your source?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.