View Full Version : TsRemux v0.21.2: Transport Stream De/Re-muxer
Momber
10th May 2007, 15:42
XP SP2. .NET 2.0 is present. I'll check for updates.
S.
P.S. Already installed: .NET 2.0 language pack, as well as Hotfixes KB917283 and KB922770
Momber
10th May 2007, 16:14
There are no further updates or service packs for me to download. I still get the message "insufficient system resources to run the desired service" (or something to that effect - translated) when trying to open any EVO.
S.
dmz01
10th May 2007, 16:29
There are no further updates or service packs for me to download. I still get the message "insufficient system resources to run the desired service" (or something to that effect - translated) when trying to open any EVO.
S.
According to Task Manager TsRemux uses around 117MB of memory. Yeah, I know its a memory hog, so someday, I might rewrite it in native code. Make sure you have around 128MB or more free. On my XP SP2 I have 1GB of memory total and the program runs fine.
The_Keymaker
10th May 2007, 16:42
I am able to run TsRemux on a memory starved Vista system (1GB) with no problem.
PS, I will try Version 0.0.4 today and see if it successfully remuxes the audio stream from EVO files.
Pookie
10th May 2007, 16:56
v.0.0.4 is a big improvement, dmz01. Well done. Keep up the good work.:)
I'll throw in a request (or 2) for future versions:
Ability to specify output PIDs (remap)
Command line version
The_Keymaker
10th May 2007, 18:20
Tried V 0.0.4 today during lunch. Still not able to remux audio stream from an EVO.
Has anyone been successful at Remuxing an EVO to TS or M2TS using (with DD+ audio stream) TsRemux yet?
I'm just trying to see if there something wrong on my end or if it is a limitation of the program.
Thanks for your efforts Dmz01
dmz01
10th May 2007, 18:25
Has anyone been successful at Remuxing an EVO to TS or M2TS using (with DD+ audio stream) TsRemux yet?
With 0.0.4 I and a couple of others were successfully able to remux the Paramount demo EVO which contains DD+ into a perfectly working M2TS. Which splitter and audio decoder do you use for M2TS? Nero splitter and audio decoder seem to work the best for me.
b_squared
10th May 2007, 18:54
If you can add matroska input support and the result works on my PS3 for AVC+AC3 files, I'll be one happy camper!
I have some AVCHD example files here and can serve as a beta tester as well.
The_Keymaker
10th May 2007, 19:52
Hello DMZ01, thanks for the response.
I don't think it is a playback issue.
TsRemux correctly shows the elementary streams in the source EVO file, but there is no audio stream present in the M2TS file TsRemux produces. I can determine this by dropping the file into Graphedit OR by playing the file in Zoomplayer: they both show there is no audio stream present in the M2TS file.
Somehow, the audio stream is not getting "remuxed" by TsRemux. Are the splitter and audio decoder important in the remux process?
I believe I have one Paramount HD-DVD and I will try and remux the demo EVO using TsRemux. I'm also curious If you can remux the Unilogo.EVO file from a Universal HD-DVD.
Thanks again for your patience.
Momber
10th May 2007, 19:53
On my XP SP2 I have 1GB of memory total and the program runs fine.
I have 1 gig of memory, too, of which 500-600 MB are free.
S.
LuemmelBS
10th May 2007, 21:17
.NET framework version? You need to have the latest 2.0 with all the fixes from windows update. Also what OS do you have? XP or Vista?
Still same here. XP SP2, .NET 2.0, all fixes. Doing a lot of stuff in C++ with VC++ and never had this awkward message.
I've 4GB RAM so there's definitely something wrong in the code.
Trying Vista Business ... let's see.
Rectal Prolapse
10th May 2007, 22:13
Some Blu-ray discs have the main feature split over several m2ts files, and also use seamless branching between them. I believe the Nine Inch Nails Blu-ray and Deja Vu Blu-ray titles do this. It would be nice if there was a tool that can handle this and spit out a remuxed single m2ts file, or a series of demuxed streams that are one file each.
Could this remuxer handle this in the future? Thanks!
dmz01
10th May 2007, 22:29
Still same here. XP SP2, .NET 2.0, all fixes. Doing a lot of stuff in C++ with VC++ and never had this awkward message.
I've 4GB RAM so there's definitely something wrong in the code.
Trying Vista Business ... let's see.
Well, it's all pure managed code, no fancy interops, unsafe code or things of that sort. I wonder where the issue is?
LuemmelBS
11th May 2007, 09:12
Well, it's all pure managed code, no fancy interops, unsafe code or things of that sort. I wonder where the issue is?
Mh, are you doing things to the Registry or open up a socket? Is the error handling ok? I'm a programmer myself and sometimes these things have unwanted side effects. Don't know if you're willing to share the source. I could give it a go and debug it on my machine. Just an offer to get this problem solved.
Btw. It works under Vista but I'm not going to change my OS because of that :)
mattmarsden
11th May 2007, 09:30
I was trying to remux my casino royale m2ts blu-ray rip to get rid of the unwanted soundtracks and it got about half way through and stopped, reporting that there was no sync byte (i think) found. Could this be an anomly in the layer change or something perhaps? The version was 0.03 by the way.
dmz01
11th May 2007, 15:40
I was trying to remux my casino royale m2ts blu-ray rip to get rid of the unwanted soundtracks and it got about half way through and stopped, reporting that there was no sync byte (i think) found. Could this be an anomly in the layer change or something perhaps? The version was 0.03 by the way.
Version 003 had some nasty bugs. 004 should be way better. :) If you get his error with 004, it means that you have a small corruption in the middle of your file. Right now the program doesn't handle any corruption in the stream. (and yes, it does work on casino royale. :D) Layer changes do not matter, as they're physical and are not exposed at the software level.
deakorn
11th May 2007, 16:45
@Rectal Prolapse
I agree, it would be nice to find a program that combines the m2ts files seamlessly so the whole file can be read. I am having problems after using the copy /b . Only first m2ts is being recognized. Video is AVC. Lets hope dmz can implement it into tsremux
dmz01
11th May 2007, 17:15
@Rectal Prolapse
I agree, it would be nice to find a program that combines the m2ts files seamlessly so the whole file can be read. I am having problems after using the copy /b . Only first m2ts is being recognized. Video is AVC. Lets hope dmz can implement it into tsremux
I can implement it as long as I can get two sample files that exhibit this behavior - not all M2TS files do. Or if someone explains to me why this behavior happens on some but not all streams. PM me if you can help.
:thanks:
enantiomer
11th May 2007, 17:18
Layer changes do not matter, as they're physical and are not exposed at the software level.
That's not quite true. Many MPEG2 BD50 discs break up the movie into two different files that reside on different layers. The MPEG2 end sequence code is written at the end of each m2ts file. Merging two files together without removing the end sequence code at the end of the first file can result in unpredictable behavior from the MPEG2 decoder.
To my knowledge, I have not found a tool that will search an MPEG2 stream and remove mid-file end sequence codes. If you can build this into your remuxing tool, it would be a huge help to us MPEG2 Blu-ray fanboys. :) Regardless, thanks for this nice tool.
dmz01
11th May 2007, 18:26
To my knowledge, I have not found a tool that will search an MPEG2 stream and remove mid-file end sequence codes. If you can build this into your remuxing tool, it would be a huge help to us MPEG2 Blu-ray fanboys. :)
That's doable. I need to know what the end sequence code looks like for MPEG2, VC-1, and AVC.
Momber
11th May 2007, 20:11
The MPEG2 end sequence code is written at the end of each m2ts file.
Exactly right.
S.
dmz01
11th May 2007, 23:21
Exactly right.
S.
Ok, so what is it? There are many, many bytes at the end of the stream...
enantiomer
12th May 2007, 00:17
Sorry, I don't have a spec available. All I know is that it resides in the video elementary stream. Maybe hank315 can lend us a hand, since he has written his own MPEG2 encoder (that writes the end sequence).
LuemmelBS
12th May 2007, 09:24
Long time ago when I wrote an MPEG2 cutter I used some specs from neuron2's site.
http://neuron2.net/library/mpeg2/iso13818-2.pdf has information on the sequence end code.
Hope that helps.
dmz01
12th May 2007, 18:08
Long time ago when I wrote an MPEG2 cutter I used some specs from neuron2's site.
http://neuron2.net/library/mpeg2/iso13818-2.pdf has information on the sequence end code.
Hope that helps.
This is exactly what I needed for MPEG-2 :) :thanks:
All I need to finish this is AVC and VC-1 sequence end codes. :) Anybody has those?
darc87
12th May 2007, 18:27
I am also getting "insufficient resources" error.
XP Pro
.net 2.0
latest updates
darc87
dmz01
12th May 2007, 20:05
I am also getting "insufficient resources" error.
XP Pro
.net 2.0
latest updates
darc87
LuemmelBS added code to have an option to turn off asynchronous I/O. His changes should fix this problem for most. They will be incorporated into the next version.
drmpeg
13th May 2007, 10:53
This is exactly what I needed for MPEG-2 :) :thanks:
All I need to finish this is AVC and VC-1 sequence end codes. :) Anybody has those?
The ITU-T standards are now free to download.
http://www.itu.int/rec/T-REC-H.264-200503-I/en
http://www.itu.int/rec/T-REC-H.264-200606-I!Amd1/en
Ron
dmz01
13th May 2007, 16:21
:thanks:
madshi
14th May 2007, 14:00
Hey,
just found this on Haali's page:
http://haali.cs.msu.ru/mkv/MatroskaParser.zip
Ready to use C sources to access all tracks of a Matroska file. Might make adding mkv support a lot easier... :)
Core parser library
This is the core library that is used in the splitter and utilities, it's written in plain C and is higly portable. In the archive there are MatroskaParser.c and MatroskaParser.h, these files are the library itself, and the demo app dumptrack.c that demonstrates how to open a Matroska file and dump all track contents to stdout.
dmz01
16th May 2007, 21:46
New version: 0.0.5
This is mostly bug fixes, no new features yet:
Includes code from LuemmelBS to disable Async I/O if you get the "Insufficient Resources" error.
Adds smarts to deal with corrupted streams where only a portion of a TS packet exist in a middle of a stream.
Fixes PTS/DTS/PCRs that are out of sync due to combining multiple EVOs or M2TSs into a single file. (end-of-sequence removal not yet implemented)
Still on the to do list in no particular order:
end-of-sequence removal
mkv input support
adding (inmuxing) SUP streams
b_squared
16th May 2007, 22:17
:thanks: Anxiously waiting for the coming features, this seems to be coming along nicely!
Do you have any plans to open-source your tool? It might speed up development. Might be the first step to build a set of open-source tools for authoring Blu-ray.
1. Is it possible to adding additonal soundtrack into ts/m2ts?
2. Could you add a output split option by capacity.
Thanks to your great job.
Momber
17th May 2007, 17:33
Hi!
With v. 005 I don't get the "insufficient..." message anymore. Instead, only a split second after clicking "remux" I get the error message "Object reference not set to an instance of an object" and TsRemux quits.
S.
SeeMoreDigital
17th May 2007, 18:35
Sadly, whenever I feed an MPEG-2.TS source into with v.0.0.5, I obtain the following error message: -
[img]http://img341.imageshack.us/img341/6623/tsremuxsy6.png[img]
The same source works fine when fed into with v.0.0.4....
Cheers
dmz01
17th May 2007, 18:54
Sadly, whenever I feed an MPEG-2.TS source into with v.0.0.5, I obtain the following error message: -
[img]http://img341.imageshack.us/img341/6623/tsremuxsy6.png[img]
The same source works fine when fed into with v.0.0.4....
Cheers
That was "copy and paste" issue with an early version of v.0.0.5. Try the current one.
trilko
18th May 2007, 11:16
New version: 0.0.5
Still on the to do list in no particular order:
end-of-sequence removal
mkv input support
adding (inmuxing) SUP streams
Great tool!
Would it be possible to also include MP4 as an input? Or maybe there is already any tool that converts MP4 to transport stream?
Thanx!!
mattmarsden
18th May 2007, 12:25
With 0.0.5 I get exactly the same "Object reference not set to an instance of an object" message as momber when trying to remux casino royale after it get about 2 gigs in, havnt tried any other files yet
SeeMoreDigital
18th May 2007, 14:46
That was "copy and paste" issue with an early version of v.0.0.5. Try the current one.Thanks... I've done that but now I obtain the following error message: -
http://img253.imageshack.us/img253/407/snap2qj4.png
And a file with "0 bytes" is produced :(
Cheers
dmz01
18th May 2007, 19:27
Thanks... I've done that but now I obtain the following error message:
And a file with "0 bytes" is produced :(
Cheers
I most likely fixed that bug already. If you can be patient, please wait until the next version. The issue there was that a PES packet was longer than 0xffff so the packet lenght field overflowed.
dmz01
18th May 2007, 19:31
Great tool!
Would it be possible to also include MP4 as an input? Or maybe there is already any tool that converts MP4 to transport stream?
Thanx!!
See this post. (http://forum.doom9.org/showthread.php?p=1000937#post1000937)
madshi
18th May 2007, 21:37
Great tool!
Would it be possible to also include MP4 as an input? Or maybe there is already any tool that converts MP4 to transport stream?
Thanx!!
Once MKV input support is implemented, you can do MP4 -> MKV (mkvtoolnix does that very comfortably) and then use the Transport Stream Remuxer to finally create a transport stream.
dmz01
19th May 2007, 00:32
New version 0.0.6 - bug fixes for the issues mentioned here as well as preliminary support for adding subtitle (presentation graphics) streams. The streams must be in the format that SUPreader recognises as blu-ray subtitles. (You can generate those by demuxing a SUP stream in TsMuxer for example)
Kurtnoise
19th May 2007, 11:06
Hey,
1/ When I load some TS files, I've this error msg : "Sync byte missing". How to resolve this ?
2/ Once, I've got this : "l'index se trouve en dehors des limites du tableau" --> "Index figures outside the tab limits". Sounds like a NULL missing for a pointer.
dmz01
19th May 2007, 14:46
Hey,
1/ When I load some TS files, I've this error msg : "Sync byte missing". How to resolve this ?
2/ Once, I've got this : "l'index se trouve en dehors des limites du tableau" --> "Index figures outside the tab limits". Sounds like a NULL missing for a pointer.
Those usually occur with corrupted files. If you can make samples available to me I can add robustness for those.
Kurtnoise
19th May 2007, 17:03
Corrupted files ? Well...those samples play well.
btw, for #1 here (http://kurtnoise.free.fr/index.php?dir=samples/&file=h264%20%2B%20dts%20%2B%20ac3.ts) and for #2 there (http://kurtnoise.free.fr/index.php?dir=samples/&file=test_hd.ts).
raeldor
19th May 2007, 20:04
Hi,
On version 0.0.6 when trying to remux I get the 'object reference not set to an instance of an object' error.
Would be great to get this working, as I am having trouble playing my TS stream that has DTS embedded with PureVideo.
Thanks!
dmz01
19th May 2007, 20:39
Corrupted files ? Well...those samples play well.
btw, for #1 here (http://kurtnoise.free.fr/index.php?dir=samples/&file=h264%20%2B%20dts%20%2B%20ac3.ts) and for #2 there (http://kurtnoise.free.fr/index.php?dir=samples/&file=test_hd.ts).
By "corrupted" I mean that there are one or more sections that have missing bytes, usually due to drop-outs etc. It can still play fine with most decoders but you migth be able to see a missing frame or two during playback. Downloading samples now. Thanks!
dmz01
19th May 2007, 20:49
Hi,
On version 0.0.6 when trying to remux I get the 'object reference not set to an instance of an object' error.
Would be great to get this working, as I am having trouble playing my TS stream that has DTS embedded with PureVideo.
Thanks!
If you make a sample available to me that reproduces the problem, I will fix it. :) You can always PM me the link.
SeeMoreDigital
19th May 2007, 20:52
By "corrupted" I mean that there are one or more sections that have missing bytes, usually due to drop-outs etc. It can still play fine with most decoders but you migth be able to see a missing frame or two during playback. Downloading samples now. Thanks!I was only able to get TSremux to open both TS samples after running them thru' MPEG2Repair first....
That said, I was unable to generate a re-mux with v0.0.6. Only v0.0.4 works for me!
Cheers
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.