Log in

View Full Version : TsRemux v0.21.2: Transport Stream De/Re-muxer


Pages : 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

dchard
26th June 2007, 16:49
I like to demux the LPCM track of DéJá Vu Blu-Ray, and convert it to mono wavs.

The problem is, that the film was splitted to many .m2ts parts.

If I concatenate all of them, I can demux the LPCM track with xport (got a 5400MB output file), and I can transcode it with sox to multichannel wav, but its more than a half hour longer, than the movie itself. So somewhere, there is a problem.

The method I used:

1. Concatenated ALL .m2ts in the stream folder with copy /b method.

2. used "xport -h input.m2ts 1 7 1" to demux the LPCm track.

3. Used "sox -B -r48000 -t .raw -c 6 -2 -s bits0001.mpa file.wav" to get the multichannel wav from the demuxed track.

4. Used wavewizard to get 6 mono wavs.

I don't know where am I mistaken.

Thank you for the help!

Dchard

dorati
26th June 2007, 21:33
25 fps is legal in .m2ts, but it's optional for players.

Ron

While playing with TSRemux I found out some things:

The PS3 can play 25fps ! But how I mux conform m2st ??

I make this test:

a 100 MB orginal m2ts-File (23,976) from Blu-Ray Disc plays fine.
Remux with TSRemuxer plays fine too.

demux this file with XMuxer, i get AVC-Video and AC3-Audio. This files are ok.
Then I mux this two files with XMuxer to TS-Stream.
PS3 says "Not supportet Data". PowerDVD plays fine.
Remux with TSRemuxer (shows me the correct elementary Streams). PS3 says "corrupt Data". PowerDVD plays fine.

With my 25fps-Recording I create with Nerovision a AVCHD. The Programm makes a transcoding, but so I get a m2ts-File with 25fps, that is Playing in PS3.

The Rest is like before. Demuxing - Muxing. The file is not playing.

So, how I can mux m2ts from elementary-streams, that are ok ??

neoteo
27th June 2007, 09:16
Most likely a bug.

domz01.
Can you fix this problem

oldpainless
27th June 2007, 13:37
Dmz01

I can see you are hard at work at the mo....but thought I ask how the MKV input is comming along?

Kevin

madshi
27th June 2007, 13:42
Come on, guys, don't push so hard. Remember: You're all getting this for free! So have a little patience, please...

oldpainless
27th June 2007, 13:46
Come on, guys, don't push so hard. Remember: You're all getting this for free! So have a little patience, please...

Agreed...

K

dmz01
27th June 2007, 14:36
While playing with TSRemux I found out some things:

The PS3 can play 25fps ! But how I mux conform m2st ??

I make this test:

a 100 MB orginal m2ts-File (23,976) from Blu-Ray Disc plays fine.
Remux with TSRemuxer plays fine too.

demux this file with XMuxer, i get AVC-Video and AC3-Audio. This files are ok.
Then I mux this two files with XMuxer to TS-Stream.
PS3 says "Not supportet Data". PowerDVD plays fine.
Remux with TSRemuxer (shows me the correct elementary Streams). PS3 says "corrupt Data". PowerDVD plays fine.

With my 25fps-Recording I create with Nerovision a AVCHD. The Programm makes a transcoding, but so I get a m2ts-File with 25fps, that is Playing in PS3.

The Rest is like before. Demuxing - Muxing. The file is not playing.

So, how I can mux m2ts from elementary-streams, that are ok ??

If you make both - the original and the xmuxer output samples available to me I might be able to compare them and see if anything can be done in TsRemux.

dmz01
27th June 2007, 14:37
Dmz01

I can see you are hard at work at the mo....but thought I ask how the MKV input is comming along?

Kevin

Slowly. :) Remember that family/job come first. :) But don't worry, it is advancing.

dmz01
27th June 2007, 14:39
domz01.
Can you fix this problem

Not without a sample that reproduces this issue. Make a sample available to me and I'll see what I can do. :)

dmz01
27th June 2007, 14:54
Here's a sample of the full original with all streams in it.
http://www.sendspace.com/file/udyzd9

Seems to work okay here.
Ron

Same here. I get a fully working DTS track.

dmz01
27th June 2007, 14:57
Dear dmz, First of all, many thanks for your TSRemux tool. I have been looking for a way to stream HD movies from my PC to an XBox (which I haven't bought yet!). My first approach was to rip, demux and encode HD-DVD EVO contents to WMV HD, but that process takes forever! Then, I went looking for a way to stream my .avs, i.e. AviSynth, files using VLC360. Unfortunately, it seems that VLC360 is designed for Windows XP and doesn't support .avs! This is where TSRemux comes into play. I have successfully played the video of a .ts file created with TSRemux using SMPlayer, but not the audio. It doesn't play in VLC though. However, strangely enough, the audio plays in TSConverter, but not the video! Also, I was not able to select DVR-MS output in TSConverter.

I am fairly new to all this and must be missing something! I thought you'd be able to guide me in the right direction.

Just in case, please find below the EVO sample I used:
http://www.mydatabus.com/public/aeonflux/part0001.evo

Thanks again!

Hmm, I'm not that familiar with SMPlayer ot TSConverter. Do those tools support the advanced A/V codecs. Sounds to me like SMPlayer doesn't like DDPlus and TSConverter doesn't like VC-1.

Roscoe62
27th June 2007, 20:28
I may have missed it in this ever growing thread, but is tsremux able to remux a 5.1/7.1 LPCM audio track into a .ts file?

Again, thank you to dmz01 for your dedication!

dmz01
28th June 2007, 01:28
I may have missed it in this ever growing thread, but is tsremux able to remux a 5.1/7.1 LPCM audio track into a .ts file?

Again, thank you to dmz01 for your dedication!

Mux? No, Remux? Yes. Muxing involves stuffing elementary streams into a container by generating timestamps appropriate for that container. Remuxing is simply changing the container by re-using existing timestamps.

crapz0rs
28th June 2007, 19:49
I like to demux the LPCM track of DéJá Vu Blu-Ray, and convert it to mono wavs.

The problem is, that the film was splitted to many .m2ts parts.

If I concatenate all of them, I can demux the LPCM track with xport (got a 5400MB output file), and I can transcode it with sox to multichannel wav, but its more than a half hour longer, than the movie itself. So somewhere, there is a problem.

The method I used:

1. Concatenated ALL .m2ts in the stream folder with copy /b method.The m2ts order for deja vu is:
48-49-35-37-39-61-32-34-46-36-38-40-41

dade49
28th June 2007, 22:17
The m2ts order for deja vu is:
48-49-35-37-39-61-32-34-46-36-38-40-41

You are awesome. I've been working on this for a few days now. Can you explain how you read that? I tried using BDedit, but I couldn't figure it out. Deja Vu is definately the trickiest BDMV I've seen so far.

crapz0rs
28th June 2007, 22:40
It was playlist 30 or something, can't recall exactly :-)

dade49
28th June 2007, 22:48
It was playlist 30 or something, can't recall exactly :-)

Thanks.... I'm learning something new all the time. I'll look at those playlists closer next time. That is one sneaky playlist order.

kabanero
29th June 2007, 03:19
dmz,

I ran into problem with TSremux today. This is what I am trying to do.

I have a bunch of TS files. I split those files with Null Packet Saver and archived them on DVD+RW disks. Today I put to TS files from two disks back to my hard drive and joined them back with Null Packet Saver into one TS file. Then I tried to remux it with TSremusx with Blu-ray option. But I got the error message:

Index was outside the bounds of the array.

What does this error mean?

I also tried to join those two TS files back with HDTVtoMPEG2, but I still get the same error.

Joined TS file play fine on PC in Media Player Classic.

This error happens at the split/join point.

dorati
29th June 2007, 07:13
If you make both - the original and the xmuxer output samples available to me I might be able to compare them and see if anything can be done in TsRemux.

Yes. But before I test something, I get from Elecard Support.

dmz01
29th June 2007, 14:28
dmz,

I ran into problem with TSremux today. This is what I am trying to do.

I have a bunch of TS files. I split those files with Null Packet Saver and archived them on DVD+RW disks. Today I put to TS files from two disks back to my hard drive and joined them back with Null Packet Saver into one TS file. Then I tried to remux it with TSremusx with Blu-ray option. But I got the error message:

Index was outside the bounds of the array.

What does this error mean?

I also tried to join those two TS files back with HDTVtoMPEG2, but I still get the same error.

Joined TS file play fine on PC in Media Player Classic.

This error happens at the split/join point.

If you extract a sample around the split/join point and make it available to me I can fix it in the next version. :)

maya
30th June 2007, 02:21
I would like to play my MPEG4 and VC-1 blu ray rips on my Tvix 4100, but it will only accept MPEG2 rips in an m2ts container. Will tsremux or anything else help me here?

AtomicStryker
30th June 2007, 16:24
Yay THANKS A TON

Finally something to make my .MTS files work with Premiere - demuxed em to TS and finally the blast program works with them

It shows the Dolby Digital Sound Data in the Stream, too, but it can't demux that - it returns a file few KB big

dorati
30th June 2007, 20:41
@dmz01: When I use your TsRemux and select for output;Blu-Ray - you generated a file 00001.m2ts. You can change this to 00000.m2ts?? Why? I found this great solution, but I must rename some files and use a Hexeditor:

I don't have a Blu-Ray Burner.
I write the generated BDMV-Folder to DVD in all different formats, but my PS3 never wan't to play this DVD (Mini-BluRay).

But you can create HighDefinition DVD's using the AVCHD-Format.
The only Programm I found witch can write this format was NeroVision 4.
But always - you create a Projekt, the Video is Transcoding and it is not Possible for 23,975fps (only 25fps and 29,97).

But how to burn without transcoding?

I found a way, that is a little tricky - but it works --))

Start Nerovision and create a AVCHD Projekt.
Add some valid Videoclips (30 Sek. or so) and burn the Projekt on a DVD-RW. It is importand to burn and not to cancel. If cancel, all Tempdata are erased. Later Burn DON'T close the aplikation

Now, in Dokumente und Einstellungen\User\Lokale Einstellungen\Temp\NeroHDDVDxxxxxx (on German XP) you found a BDMV-Folder.
Nero generated a 00000.m2ts.
I change this with the 00001.m2ts from TSRemux (renamed).
Then I change in CLIPINF the 00000.clpi with the one of TSRemux (renamed). And at last in PLAYLIST the 00000.mpls. But in this 00000.mpls I changed with a HexEditor the 00001.m2ts in 00000.m2ts (For Play the right file).

Now you say in NeroVision Burn again and Nero is burning the updated Data.

All is playing fine on my PS3. Subtitle, AC3-Output.

So, you can split the orginal HD-Movie on 2 DVD-DL.

Now I test to transcode to 720p and use the same trick.

Thank you for your great program - i beginn to like this Blu-Ray --))

trilko
2nd July 2007, 14:45
[LIST]
Still working on MKV support


How does it look right now? Hardly waiting for it to test :))

oldpainless
2nd July 2007, 16:38
Yeah I tried just about everything...It seems I can get 720p MKV (most of the time) to TS or AVI in sync, but 1080p....forget it...I can get about 2 out of 6 files done in sync....looks (i might be wrong?) that 720p MKV's most of the time are CFR, but 1080p MKV appear to be VFR (x.264 VFR codec?). So with most 1080p (and some 720p) MKV's, the timestamps are in the MKV container to maintain sync. So, the moment you demux....your buggered (with current tool sets anyway).

So, now it's time for me to wait for our good chap to work his magic...

Kevin

oldpainless
2nd July 2007, 17:10
PS to my above post...I'd be glad to be talking outta my behind on this one...cus it means I can feel safe knowing that someone who knows more is on the case!

Regards

Kevin

dmz01
3rd July 2007, 05:05
Looks like I might have a test version ready next weekend. Sorry, but I only have time on weekends nowadays. :)

oldpainless
3rd July 2007, 06:48
Looks like I might have a test version ready next weekend. Sorry, but I only have time on weekends nowadays. :)

Great if you can man.Look forward to testing it for you.

Kevin

Usul
3rd July 2007, 07:38
Looks like I might have a test version ready next weekend. Sorry, but I only have time on weekends nowadays. :)

You are so awesome!!:)

Is there anyway that we all can donate by paypal to you for you awesome efforts??

Thanx again in advance,, can't wait for MKV ... Just awesome..:)

musicman2311
4th July 2007, 16:32
Hi this is a great tool,

i tested with all codecs in blu ray (vc1, mpeg, avc).

However I also tested .ts streams and .evo.

Unfortunately none of them plays correctly on ps3 after running through tsremux.

are you still working on this ?

what support do you need ?

thanks

robena
4th July 2007, 18:11
Hi,

TSRemux is quite a work done so fast.

TSRemux has some issues with UK Sky HD caps. It sees their AC3 stream as a True HD one.

When you select this stream and remux, the output is somehow not audio compliant: a TVIX 4100 for example is not able to use it, and XMUXER Pro does not see the audio PID that TSREmux has created at all.

That's very likely because TSRemux flags that audio output as a True HD track also, so players don't recognize it as an AC3 track.

It would be a tremendous help if you could fix this issue, so here is a sample:


http://www.verzend.be/v/371416/SkyHDCap.ts.html


Thanks.


Edit: with other caps, TSRemux sees the AC3 track as lossless audio. Here is a second sample that shows that problem:

http://www.verzend.be/v/2237653/SkyHDCap2.ts.html

Adbear
4th July 2007, 21:33
Hi this is a great tool,

i tested with all codecs in blu ray (vc1, mpeg, avc).

However I also tested .ts streams and .evo.

Unfortunately none of them plays correctly on ps3 after running through tsremux.

are you still working on this ?

what support do you need ?

thanks

Evo files won't work as a direct conversion due to the audio, you need to convert the audio to ac3 then remux it with the video and then build a bdmv folder in tsremux. Have done it with quite a few of my evo files

jagaskywalker
5th July 2007, 11:23
...All is playing fine on my PS3. Subtitle, AC3-Output.
--))

This is very interesting information. Can you give us some more details on the source format ? (was it AVC/H264, or does it also work with mpeg2 ?)

Maybe it won't be difficult for TSRemux to use the same "template" and generate AVCHD "disk structures".......

What about your 720p tests ?

Thanks

PS: I think Pinnacle 11.1 does output now to AVCHD disks, so it might be another option

colinhunt
5th July 2007, 12:27
Evo files won't work as a direct conversion due to the audio, you need to convert the audio to ac3 then remux it with the video and then build a bdmv folder in tsremux. Have done it with quite a few of my evo files
Could you please throw in some additional information regarding the process, such as what tools were used etc.? Thanks.

jcar
5th July 2007, 13:14
@dmz01: When I use your TsRemux and select for output;Blu-Ray - you generated a file 00001.m2ts. You can change this to 00000.m2ts?? Why? I found this great solution, but I must rename some files and use a Hexeditor:

I don't have a Blu-Ray Burner.
I write the generated BDMV-Folder to DVD in all different formats, but my PS3 never wan't to play this DVD (Mini-BluRay).

But you can create HighDefinition DVD's using the AVCHD-Format.
The only Programm I found witch can write this format was NeroVision 4.
But always - you create a Projekt, the Video is Transcoding and it is not Possible for 23,975fps (only 25fps and 29,97).

But how to burn without transcoding?

I found a way, that is a little tricky - but it works --))

Start Nerovision and create a AVCHD Projekt.
Add some valid Videoclips (30 Sek. or so) and burn the Projekt on a DVD-RW. It is importand to burn and not to cancel. If cancel, all Tempdata are erased. Later Burn DON'T close the aplikation

Now, in Dokumente und Einstellungen\User\Lokale Einstellungen\Temp\NeroHDDVDxxxxxx (on German XP) you found a BDMV-Folder.
Nero generated a 00000.m2ts.
I change this with the 00001.m2ts from TSRemux (renamed).
Then I change in CLIPINF the 00000.clpi with the one of TSRemux (renamed). And at last in PLAYLIST the 00000.mpls. But in this 00000.mpls I changed with a HexEditor the 00001.m2ts in 00000.m2ts (For Play the right file).

Now you say in NeroVision Burn again and Nero is burning the updated Data.

All is playing fine on my PS3. Subtitle, AC3-Output.

So, you can split the orginal HD-Movie on 2 DVD-DL.

Now I test to transcode to 720p and use the same trick.

Thank you for your great program - i beginn to like this Blu-Ray --))


When I made a AVCHD with nero, I remember I just copied the .mts file to a USB drive and played it directly from the PS3, without the need of the disc... the file would play just fine.

What's the advantage of playing it from a disc, apart from the menus and such things?

jagaskywalker
5th July 2007, 13:28
When I made a AVCHD with nero, I remember I just copied the .mts file to a USB drive and played it directly from the PS3, without the need of the disc... the file would play just fine.

What's the advantage of playing it from a disc, apart from the menus and such things?

Playing it from the XMB (e.g. from USB drive) downmixes audio to 2.0 .... (who knows why)

J

robena
5th July 2007, 17:28
Hi,

Here:

http://www.verzend.be/v/9501946/IndexOutOfBouds.ts.html

is a file which generates an "index out of bound" message when remuxing.

Thanks for looking into it.

dmz01
6th July 2007, 04:01
Thanks for looking into it.

Thanks for the samples Robert. Will be fixed in the next version.

jagaskywalker
6th July 2007, 08:49
This is very interesting information. Can you give us some more details on the source format ? (was it AVC/H264, or does it also work with mpeg2 ?)


To answer myself, I tried it yesterday and it worked perfectly with a mpeg2 m2ts directly ripped from a BD. It seems PS3 can handle AVCHDs with 1080p mpeg2... (is that part of the AVCHD spec ?)

Good news anyway :)

UPDATE ! .... I tried right now to burn the BR disk structure created with TSRemux on a DVD, using UDF 2.6 and IT WORKED in the PS3 ! My source was a BR trailer from Terminator 2 BR (MPEG2, AC3) and it is recognised in the PS3 as a BDMV disk on a DVD. It plays perfectly. I have firmware 1.5, could somebody test it with the latest fw version (1.82) and/or with other sources (AVC/H264, VC1) ?

Once we have mkv support this is going to be amazing....

[According to the wikipedia, BD-9 is a red laser DVD with BD contents on. This disc should be rotated at 3x speed or more to satisfy the minimum transfer rate of 30.24 Mbit/s.... I do not know if the DVD I created plays at that speed.. I did not notice any lag or problem while reproducing the video, and it reached at least 20 Mb/s...]

dorati
7th July 2007, 07:18
This is very interesting information. Can you give us some more details on the source format ? (was it AVC/H264, or does it also work with mpeg2 ?)

Maybe it won't be difficult for TSRemux to use the same "template" and generate AVCHD "disk structures".......

What about your 720p tests ?

Thanks

PS: I think Pinnacle 11.1 does output now to AVCHD disks, so it might be another option

The Source was always AVC/H264. MPEG2 i have not testet.

It works fine with 1280x720p(23,97) 1920x1080p(23,97) and 1440x1080i(25fps). You must change in Clipinf and Playlist the Byte for the Resulution. If you don't know, with it is, I can look later at home. Here I don't have my paper. You can check with BD-Edit if the settings are ok.
I don't know, if other Resuluton works - like 1080i and 25fps (German TV) because I don't know, how to generate the m2ts-Stream. The only program I found is Scenarist and only accept InputStreams witch are Blu-Ray Spezifikation.

But I think!!, all Resulution explaint in this List will work:
http://www.emedialive.com/articles/readarticle.aspx?articleid=11397

zeropc
7th July 2007, 09:37
i can't open the app. everytime i try it, it just crashes. any ideas?

robena
7th July 2007, 09:48
i can't open the app. everytime i try it, it just crashes. any ideas?

Are you using XP SP2? I know that I could not use it with SP1.

oldpainless
7th July 2007, 11:06
Just a quick one re MKV to TS...(I know you probably know, but just in case)

mkvextract can output the timecode files for both the audio and video tracks.....now I assume if both timecode files could be read as part of the muxing process...the outputs should always be in sync?

Kevin

oldpainless
7th July 2007, 11:42
Update...for info...I just ran an MKV through mkvextract, with timecode output's and then used mkvmerge to remux. Without importing the timecode files for both video and audio, the remuxed file was out of sync. However, remuxing using the timecode files for both the audio and video, the file was perfectly in sync. So, you can demux and remux an MKV, but when remuxing, you need to read both the audio and video timecode files/stamps.

Hope this helps with the MKV to TS project.

Kevin

zeropc
7th July 2007, 12:48
Are you using XP SP2?

yep. that's why i wondered that i couldn't load it up.

it is an app and not a cmd tool, right?

robena
7th July 2007, 13:24
yep. that's why i wondered that i couldn't load it up.

it is an app and not a cmd tool, right?

Right.

You also need to install .NET framework I think.

zeropc
7th July 2007, 13:46
Right.

You also need to install .NET framework I think.


that was it :D

thanks for the tip :thanks:

jcar
7th July 2007, 22:58
While playing with TSRemux I found out some things:

The PS3 can play 25fps ! But how I mux conform m2st ??

I make this test:

a 100 MB orginal m2ts-File (23,976) from Blu-Ray Disc plays fine.
Remux with TSRemuxer plays fine too.

demux this file with XMuxer, i get AVC-Video and AC3-Audio. This files are ok.
Then I mux this two files with XMuxer to TS-Stream.
PS3 says "Not supportet Data". PowerDVD plays fine.
Remux with TSRemuxer (shows me the correct elementary Streams). PS3 says "corrupt Data". PowerDVD plays fine.

With my 25fps-Recording I create with Nerovision a AVCHD. The Programm makes a transcoding, but so I get a m2ts-File with 25fps, that is Playing in PS3.

The Rest is like before. Demuxing - Muxing. The file is not playing.

So, how I can mux m2ts from elementary-streams, that are ok ??

I've tried to mux a MKV into TS.. what I did was (and forget the audio lol)
MKV to streams -> video stream to mp4 -> mp4 to TS (with xmuxer)
Then TS to M2TS (blu-ray) using TSremux

The m2ts file I get in the stream folder doesn't play on the ps3 (corrupted data)


I tried remuxing the MKV into ts or ps using VLC but when I use those files in TsRemux I get an "index out of bounds" or something error.

So my question now is, how can remux the MKV properly into something TsRemux will read, to get a "ps3 playable" bluray m2ts file?

I'm thinking that the problem is, perhaps, in Xmuxer.. could it be the PIDs and such?

jcar
8th July 2007, 00:35
A "funny" fact I would like to point out.
I remuxed a TS (1080i/p?) into Blu-Ray.

I burnt the folder structure into a UDF 2.5 disc. Upon inserting the disc on my PC, vista recognized it as "Blu-ray disc". The only option available was to explore the files, since I dont have anything install that can handle BDs.

The PS3, however, read it as a "data" disc.

Now, I burnt a new AVCHD project with Nero vision. This time, vista doesn't read it as a Blu-ray disc, and offers me the typical file options for any data disc.
However, the PS3 recognizes it as an AVCHD disc (and it plays!). Too bad I had no luck with the m2ts from TSRemux :(

dorati
8th July 2007, 06:19
Then TS to M2TS (blu-ray) using TSremux

The m2ts file I get in the stream folder doesn't play on the ps3 (corrupted data)


The Problem is XMuxer. The PS3 don't like the Mux.
I send Elecard one m2ts-File and they wan't to look, if they can fix. In the new Beta, the PS3 accept the Stream, but the Plyback is not ok. Always Stop and later 15 Sek. you must turn off/on the PS3