Log in

View Full Version : smartLabs tsMuxeR: Transport Stream 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

roman76r
25th January 2008, 01:25
Supported output formats:
- TS
- M2TS
- Blu-ray

Supported video codecs:
- H.264
- VC-1
- MPEG2

Supported audio codecs:
- AAC
- AC3 / E-AC3(DD+)
- Dolby True HD (for streams with AC3 core only)
- DTS/ DTS-HD
- LPCM

Supported subtitles:
- M2TS Presentation graphic stream
- SRT text subtitles

Supported containers and formats:
- elementary stream
- Transport stream TS and M2TS
- Program stream EVO/VOB/MPG
- Matroska MKV/MKA

Additional features currently implemented:
* Ability to set muxing fps manually and automatically
* Ability to change level for H.264 streams
* Ability to shift a audio and subtitle tracks
* Ability to extract DTS core from DTS-HD
* Ability to extract AC3 core from Dolby True HD
* Ability to join files.
* Ability to change fps for a subtitle tracks.
* Ability to convert between Blu-ray LPCM format and WAVE files.
* Writing language information to the Blu-ray disk and to the TS/M2TS language descriptor.
* Ability to cut source files
* Ability to split output file
* Ability to detect audio delay for TS/M2TS/MPG/VOB/EVO sources
* Ability to remove pulldown info from stream
* Ability to open Blu-ray playlist (MPLS) files
* Ability to convert SRT subtitles to PGS

Current Version 1.8.4(b)

Version 1.8.4(b) - Windows (http://www.smlabs.net/tsMuxer/tsMuxeR_1.8.4(b).zip)
Version 1.7.3(b) - Linux (console only) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.7.3(b).tar)

History
* Version 1.8.4(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.8.4(b).zip)
- Ability to convert SRT to PGS added.
- Some minor bugfixes.
* Version 1.7.6(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.7.6(b).zip)
- Ability to open Blu-ray playlist (MPLS) files added. Also, when MPLS file is opened, chapters list automatically imported.
When MPLS is processed, "Clean Break" for connection_condition=5 correctly processed. It is actually for large playlists (10 M2TS files and more).
- bug fixed: some H.264 streams in version 1.7.1/2/3 did not work in PS3. It is the same problem it was corrected in version 1.7.3. Fixed again.
- bug fixed: Issue with muxing PGS stream from several source files (i.e. append mode) fixed.
* Version 1.7.3(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.7.3(b).zip)
- Improved M2TS splitting in Blu-ray mode
- bug fixed: some H.264 streams in version 1.7.1/1.7.2 did not work.
* Version 1.7.2(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.7.2(b).zip)
- Issue with demuxing PGS to SUP format fixed.
* Version 1.7.1(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.7.1(b).zip)
- Bug fixed: Now pulldown info correctly processed.
- Ability to remove pulldown info from stream added. All video codecs are supported: H.264, VC-1, MPEG2.
- Some small bug fixes and improvements. Also tsMuxeR package size is decreased and dependings to other libraries have been removed.
* Version 1.6.3(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.6.3(b).zip)
-Bug fixed: PTS/DTS timing for MPEG2 streams without GOP headers filled wrong
-Bug fixed: CBR muxing mode since version 1.6 worked wrong
-Bug fixed: trim function did not work for minutes measure unit
-Ability to detect audio delay for TS/M2TS/MPG/VOB/EVO sources added
-Drag&drop for GUI added
* Version 1.6.1(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.6.1(b).zip)
- Option to split output file added.
- Option to cut source files added.
- Bug fixed: TS PTS/DTS timing filled wrong for some progressive H.264 streams, if frame data was ahead SPS/PPS data in source stream.
* Version 1.5.1(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.5.1(b).zip)
- Issue with TRUE-HD tracks demuxing fixed.
* Version 1.5.0(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.5.0(b).zip)
- Added LPCM support
* Version 1.4.6(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.4.6(b).zip)
- Fixed a bug with synchronization of a H.264 stream and audio. This bug was appear on some streams only. When there was this bug, In a log were printed many messages "B-pyramid level 2 detected","B-pyramid level 3 detected" e.t.c.
* Version 1.4.5(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.4.5(b).zip)
- Fixed blu-ray folders names
- Added chapters for Blu-ray muxing
* Version 1.4.4(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.4.4(b).zip)
- Added Blu-ray muxing mode
- Added demuxing mode
- Added Presentation Graphic stream support
- Added language descriptor support
* Version 1.2.9 (http://www.smlabs.net/tsMuxer/tsMuxeR_1.2.9.zip)
- Fixed MKV parsing module. Some MKV files did not work (lace sice invalid detected for xiph laces, this cause access violation error)
* Version 1.2.8 (http://www.smlabs.net/tsMuxer/tsMuxeR_1.2.8.zip)
- Fixed AC3 stream detection. Some AC3 streams were not recognized (broken in version 1.2.6 only)
* Version 1.2.6 (http://www.smlabs.net/tsMuxer/tsMuxeR_1.2.6.zip)
- Added Dolby True HD support
- Added MPEG audio layer 1/2/3 support
- Fixed a bug in the M2TS parsing module. Sometimes TS frames were lost.
- Fixed a bug in the Matroska parsing module. Short NAL unit len codes for H.264 tracks did not work.
* Version 1.2.0: (http://www.smlabs.net/tsMuxer/tsMuxeR_1.2.0.zip)
- Added M2TS muxing
- Fixed stream type detection function (sometimes some audio/video streams were not found)

* Version 1.1.5 (http://www.smlabs.net/tsMuxer/tsMuxeR_1.1.5.zip)
- The first release

tyee
25th January 2008, 02:12
Looks nice, Roman. I'll have to give it a try! Thanks!

You are the author I assume!!

yonta
25th January 2008, 09:14
This is the muxer I've been looking for!
Thank you.

a quick test result with EVO/M2TS to TS remuxing

1. DTS/DTS-HD tracks in EVO are not recognized.
2. some DTS tracks in EVO are recognized as mono AAC 96 KHz.
3. DTS/DTS-HD in m2ts is correctly recognized and processed.
4. VC-1 in m2ts is not recognized.

I will test more with elementary stream muxing and report the result.

roman76r
25th January 2008, 10:23
This is the muxer I've been looking a quick test result with EVO/M2TS to TS remuxing

1. DTS/DTS-HD tracks in EVO are not recognized.
2. some DTS tracks in EVO are recognized as mono AAC 96 KHz.
3. DTS/DTS-HD in m2ts is correctly recognized and processed.
4. VC-1 in m2ts is not recognized.


My tests EVO/M2TS files work fine. Can you give me example (30-50Mb) of your problem M2TS and EVO file?

Atak_Snajpera
25th January 2008, 11:19
Where can I find documentation in english? Provided readme.txt is in russian.

BTW. It would be awesome if we could mux directly to M2TS :)

yonta
25th January 2008, 12:16
My tests EVO/M2TS files work fine. Can you give me example (30-50Mb) of your problem M2TS and EVO file?

please check your pm.

hm10
25th January 2008, 15:15
we can to add subtitles?
or you can add support in subs

thx

fbd
25th January 2008, 16:59
:thanks:roman76r

Could you send me readme.txt in english please?

I have mux some mkv files with h264/ac3 and works fine:)

:thanks:
Regards
Franck

The1n
25th January 2008, 17:01
@Roman
I nearly love u ... this is the tool lots of people have been waiting for THANK YOU!!

The1n
Norway

Zow
25th January 2008, 19:12
Thanks roman76r!

Is there a way to do subtitles with this?

If not, any chance of implementing it sometime soon?

menlvd
25th January 2008, 23:26
Great tool :)

The1n
26th January 2008, 00:08
*wrong post* sry

roman76r
26th January 2008, 00:11
Zow
Is there a way to do subtitles with this?
If not, any chance of implementing it sometime soon?

I plan to add a subtitles, m2ts muxing, output file splitting and stream demuxing at nearest time.

Atak_Snajpera
26th January 2008, 00:26
m2ts muxing should be implemented in first place. Whole PS3 scene is waiting for this :) BTW Excellent tool! You are a hero!

klas
26th January 2008, 00:33
It its possible to convert to bluray and to see in ps3?

The1n
26th January 2008, 00:47
Zow


I plan to add a subtitles, m2ts muxing, output file splitting and stream demuxing at nearest time.

This is very promising. Hopefully we'll see muxing of lpcm, dolby true hd in the future.

Olebrumm71
26th January 2008, 01:05
Hello!

I just tried to use this new 'tsMuxer' application to mux a H.264/AVC elementary stream (made using HRD patched X264) with a 1536kbit/sec DTS audio track.

The resulting TS file plays well on my computer.

I then ran this TS file through TSRemux 0.18 creating a BluRay output. The resulting .m2ts file (in the STREAM folder) also plays well on my PC.

I then transfer this .m2ts file (renaming it though to .mpg ) to the HD of my PS3. When playing this file on the PS3 the video is perfect, but there is NO audio at all. The control panel in the PS3 XMB video player shows no audio codec at all for the file?

And I think that I have seen other people have reported that the PS3 is capable of playing back MPEG-2 transport streams with H.264/AVC video streams and DTS audio-tracks? (or is this limited to MPEG-2 transport streams with MPEG-2 video and DTS audio tracks ? )

roman76r
26th January 2008, 01:11
This is very promising. Hopefully we'll see muxing of lpcm, dolby true hd in the future.
Yes.

Atak_Snajpera
m2ts muxing should be implemented in first place
OK. :)
Tomorrow I shall make updating with m2ts support.

Atak_Snajpera
26th January 2008, 01:12
I then transfer this .m2ts file (renaming it though to .mpg )

Renaming is not necessary!

When playing this file on the PS3 the video is perfect, but there is NO audio at all.

Audio must be transcoded to AC3!

Tomorrow I shall make updating with m2ts support.
Oh my god! You are really fast!

survivant001
26th January 2008, 02:04
did someone try this feature ?

Ability to change level for H.264 streams

I think we should still continue to generate a h264 4.1 and mux it with this tool.

Guest
26th January 2008, 04:11
Here is my translation of the readme.txt.
-----

How to use tsmuxer from the command line:

It is necessary to create a file with the extension '.meta'. In this file are listed the streams that are to be multiplexed into the transport stream, the type of each stream, and additional parameters delimited by commas. Each additional parameter is specified by a name and value. Here is an example of the contents of a .meta file:

V_MPEG4/ISO/AVC, D:\media\test\stream.h264, fps=25
A_AC3, D:\media\test\stream.ac3, timeshift=-10000ms

This example specifies the multiplexing of one AC3 audio stream and one H264 video stream.

Additional parameters:

fps - For H264 video it is possible to assign an fps value (see the example above). If fps is not specified, it is determined from the stream.

level - Allows for specifying the level field in H264 streams. For example, it is possible to change High@5.1 to High@4.1. One should bear in mind that this merely rewrites the field and does not recode the stream to satisfy the requirements of the lower level.

timeshift - Supports timeshifting of the audio stream. It can specify positive or negative timeshifts. The value of timeshift can be given in milliseconds ending with 'ms' (e.g., 25ms), or in seconds ending with 's' (e.g., 1s). This parameter makes it possible to shift the audio either forwards in time (positive values of the parameter) or backwards in time (negative values of the paramater).

down-to-dts - Can be used to convert DTS-HD to standard DTS.

track - Beginning from version 0.9.96 this parameter allows specifying a stream contained in a container. In this case it is necessary to specify the number of the stream inside the container. The following containers are supported:

TS/M2TS
EVO/VOB/MPG
MKV

To determine the number of a path, execute:

tsmuxer <name of the container file>

To start tsmuxer, open a Windows command window and type:

tsmuxer <name of a .meta> <name of the output TS file>

Specifiers for codecs in the .meta file:

V_MPEG4/ISO/AVC - H264
V_MS/VFW/WVC1 - VC1
V_MPEG-2 - MPEG2

A_AC3 - DD (AC3)/DD+ (E-AC3) [The subtype DD or DD+ is determined automatically]
A_AAC - AAC
A_DTS - DTS/DTS-HD

tsmuxer does not use external filters (codecs).

yonta
26th January 2008, 05:32
I played around with elementary stream muxing last night and all the samples I have seemed to work just fine!!! except one vc-1 video from Blu-ray.
My rough guess is that this 1080i@29.97fps vc-1 video(NIN Live) is probably corrupt or something because another 1080i@29.97fps vc-1 from HD DVD(Galapagos) works ok.

Looking forward to TrueHD/LPCM support!

puppydg68
26th January 2008, 07:39
Thank you so much, I've been looking for a good AVC+ac3 solution for PS3 streaming. Xmuxer/manzan and everything else let me down.. Going to try this right away!
Hope it works with ps3

update. Works great on the 2 muxes i tried so far. One thing to note, the .TS files that TSmuxer outputs is fully compatible with PS3 with full audio. No need to remux using tsremux to .M2ts. Both muxes i tried had full audio with the resulting TSmuxer file.

1) AVC+LCPM Blu-ray - demuxed using tsremux, and audio converted to .AC3 - Muxed back together with the new TSMuxer to .TS - worked 100% on ps3 streamed through tversity.
2) X264 MKV - mkvextract into elementary streams, AVC Profile converted to 4.1. Muxed back together with new TSMuxer to .TS - worked again.

Just wanted to say thanks for an awesome tool.

fbd
26th January 2008, 08:59
:thanks:neuron2

yonta
26th January 2008, 09:01
1) AVC+LCPM Blu-ray - demuxed using tsremux, and audio converted to .AC3 - Muxed back together with the new TSMuxer to .TS - worked 100% on ps3 streamed through tversity.
2) X264 MKV - mkvextract into elementary streams, AVC Profile converted to 4.1. Muxed back together with new TSMuxer to .TS - worked again.

Just for your info,
1) You don't have to demux AVC in this case.
Just load the .m2ts in tsMuxeR and uncheck LPCM track and add .AC3 converted from LPCM.

2) tsMuxeR supports Direct MKV input and on-the-fly AVC level changing.

The1n
26th January 2008, 12:23
Im seeing some strange behaviour , if im trying to remux a bluray with lpcm and ac3 tracks. When im muxing only the avc and ac3 track directly from the m2ts(bluray) file there is error messages in the gui saying that there is error in the ac3 stream and says resyncing.
With the outcome that the file is not playable on a PS3. But if i demux the ac3 track with TSmux0.19 and the directly muxes it into the original m2ts everything is fine.
This has happend for two different movies , just want to know if anyone elese experienced something similar.

Anyway as i have stated earlier I love this program.

@neuron2 thanks for transl.

puppydg68
26th January 2008, 14:57
Just for your info,
1) You don't have to demux AVC in this case.
Just load the .m2ts in tsMuxeR and uncheck LPCM track and add .AC3 converted from LPCM.

2) tsMuxeR supports Direct MKV input and on-the-fly AVC level changing.

wow, awesome, thanks for the tip.. I didn't know that. I did have a data corrupted, when trying to convert 1080 MKV files, do I need to change a profile or anything. I tried 4.1 and 5.1 for AVC level. both muxed and came out data corrupted on ps3. I was only trying on sample files so far.

The1n
26th January 2008, 15:57
wow, awesome, thanks for the tip.. I didn't know that. I did have a data corrupted, when trying to convert 1080 MKV files, do I need to change a profile or anything. I tried 4.1 and 5.1 for AVC level. both muxed and came out data corrupted on ps3. I was only trying on sample files so far.

Try to exctract the mkv with mkvexctract and mux it together with tsmuxer and never go over level 4.1 if you want it to be compatible with the ps3.

The1n

tyee
26th January 2008, 16:24
So, looking at the supported containers, like evo, has anyone tried an hd-dvd remux to .ts yet??

Hmmm.... still got to do something about that darn evo framerate of 29.97fps and get it back to 23.976 for a blu-ray .ts!

jamos
26th January 2008, 22:46
m2ts muxing should be implemented in first place. Whole PS3 scene is waiting for this :) BTW Excellent tool! You are a hero!

why do we need mt2s is it because it supports multiple streams? i thougt ps3 will not play mt2s unless its in a bd structure?

Atak_Snajpera
26th January 2008, 22:49
why do we need mt2s is it because it supports multiple streams?

No... because AVCHD uses m2ts files and I want to create mini-bluray discs :)

jamos
26th January 2008, 22:50
Try to exctract the mkv with mkvexctract and mux it together with tsmuxer and never go over level 4.1 if you want it to be compatible with the ps3.

The1n

no go with 1080p tried that..I have yet to see a 1080p mkv source work with just muxing on a ps3. Using ffmpeg to convert to mpeg2 always works for me on the ps3 and I really do not lose quality only time and space as it is a bigger file.

jamos
26th January 2008, 22:53
No... because AVCHD uses m2ts files and I want to create mini-bluray discs :)

ahh yes ive seen how to do that..good idea.

Atak_Snajpera
26th January 2008, 23:47
i thougt ps3 will not play mt2s unless its in a bd structure?

PS3 plays m2ts files without problems. PSP , DVD doesn't matter :) But video must be encoded like I mentioned before.

survivant001
27th January 2008, 00:28
my first test :

264 +ac3 = 4 384 047 406 bytes
mkv = 4 385 382 340 bytes
ts (gtom tsmuxer) = 4 512 126 900 bytes
m2ts(tsremux) = 4 622 791 872 bytes

here my command line to encode :

x264.exe --pass 2 --bitrate 7200 --stats ".stats" --progress --keyint 14 --bframes 3 --qpmin 7 --qpmax 51 --mixed-refs --trellis 1 --ref 3 --filter 0,0 --subme 6 --direct auto --vbv-bufsize 12000 --vbv-maxrate 26000 --me umh --level 4.1 --weightb --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --threads auto --thread-input --aud --nal-hrd --sar 1:1 --output "movie.264" "movie.avs"


the playback is fine.. can ff and rw. (take some seconds to play after a ff.. but it's work fine (maybe is Tversity)

I'm happy happy :)

Atak_Snajpera
27th January 2008, 00:39
--qpmin 7 --qpmax 51 --aud do you really need this?

264 +ac3 = 4 384 047 406 bytes
ts (gtom tsmuxer) = 4 512 126 900 bytes
m2ts(tsremux) = 4 622 791 872 bytes
It looks like my calculations were correct (3% and 5.5%)

puppydg68
27th January 2008, 01:01
wow, awesome, thanks for the tip.. I didn't know that. I did have a data corrupted, when trying to convert 1080 MKV files, do I need to change a profile or anything. I tried 4.1 and 5.1 for AVC level. both muxed and came out data corrupted on ps3. I was only trying on sample files so far.

Changing the profile level to 4.1 did not for PS3 play for me within the TSmux program. however if I convert a 5.1 to 4.1 in h264info first then mux it with tsmux, it works fine.

Still no luck getting 1080 MKV or AVC stuff working on PS3, unless the original AVC came from a blu-ray m2ts in the first place, then I'm able to convert dts to ac3 mux it with tsmux and stream to ps3 from the network.

Atak_Snajpera
27th January 2008, 01:08
Still no luck getting 1080 MKV or AVC stuff working on PS3,

This is because your mkv was encoded with b-pyramid.

survivant001
27th January 2008, 01:22
--qpmin 7 --qpmax 51 --aud do you really need this?


I think that -aud was mandatory for Encore cs3.. but don't know what it does.. but it work, so I'll let it there until I figure what it really does :)

for --qpmax 51 it useless
for --qpmin 7 (the default is 10), I change it to 7 because with the bitrate that I have to file size was 3.6 gigs instead of 4.x and in the stats, I had 60+ % at qp 10, I just change it to 7 to fit the target size.

most of the time.. I don't have to change it. it's a anime my movie.. always the same one that give me so much trouble :)

I got a PRSN of 0.9976 I think

survivant001
27th January 2008, 01:28
@Atak_Snajpera

will you update ripbot264 for adding the output ts or m2ts (when it will be available) using tsremux (command line) ?

and change the x264 build.

roman76r
27th January 2008, 02:18
M2TS muxing is ready. Look the first post.

The1n
27th January 2008, 02:28
M2TS muxing is ready. Look the first post.

Great stuff, but im only getting a 404 when trying to download.

Thx

The1n

The1n
27th January 2008, 02:31
Now it worked... thank you Roman.

survivant001
27th January 2008, 02:33
@roman76r

next step is the subtitle or avchd output, chapters ?

really nice of you for your program. Didn't took you so long to add m2ts feature.

oh ya.. you can add the feature : multiple sources in the input text box. instead of choosing the video, after that choosing the audio

puppydg68
27th January 2008, 02:39
This is because your mkv was encoded with b-pyramid.

can a b-pyramid encode be converted losslessly to work on ps3, or does it require a totally new encode?

Guest
27th January 2008, 02:50
It requires a new encode.

The1n
27th January 2008, 02:58
It requires a new encode.

Correct me if i am wrong but x264 from version 721 onwards does work with b-pyramid for dxva and ps3 ?

The1n

The1n
27th January 2008, 03:11
@roman

Any idea why your program says "AC3 bad frame detected. Resync stream." when im trying to remux a bluray m2ts, it works if i demux the ac3 track first and mux it into the avc stream.

The1n

jamos
27th January 2008, 03:49
M2TS muxing is ready. Look the first post.

works great for the ps3 using ts. the 4.1 lvl set does not seem to work correctly though I had to use h264info on the elementary stream first but no big deal. After that remuxed the 4.1 elementary video and audio streams into a ts file. really quick program muxed 4.6 gig in like 5 minutes. Plays fine on ps3 with ff/rw working. PS3 owners should love ya Roman!

Now with m2ts support we can make mini bluray discs also :) using dvds that will play on the ps3..

Bigmango
27th January 2008, 04:00
works great for the ps3 using ts. the 4.1 lvl set does not seem to work correctly though I had to use h264info on the elementary stream first

Same problem here.