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

drmpeg
28th February 2008, 00:43
Are these compliance issues only evident in CBR mode? Is the normal (vbr) ts produced by tsMuxer ok?
The Blu-ray specification requires T-STD compliance of .m2ts streams. An .m2ts stream is really a CBR stream with the stuffing packets removed and an arrival_time_stamp added to each packet. On commercial Blu-ray discs, the CBR rate is 48 Mbps. You can dump the difference between successive arrival_time_stamps with xport.

C:\xfer>xport -pshe 00052head.m2ts 1 1 1
xport Transport Stream Demuxer 1.01
program = 1, video channel = 1, audio channel = 1
arrival_time_stamp delta = 311011800
Program Number = 0 (0x0000), Program Map PID = 31 (0x001f)
Program Number = 1 (0x0001), Program Map PID = 256 (0x0100)
arrival_time_stamp delta = 846
program descriptor = 0x05, 0x04, 0x48, 0x44, 0x4d, 0x56
program descriptor = 0x88, 0x04, 0x0f, 0xff, 0xff, 0xfc
Video PID = 4113 <0x1011>, type = 0x1b
ES descriptor for stream type 0x1b = 0x05, 0x08, 0x48, 0x44, 0x4d, 0x56, 0xff, 0x1b, 0x61, 0x3f
Audio PID = 4352 <0x1100>, type = 0x80
ES descriptor for stream type 0x80 = 0x05, 0x08, 0x48, 0x44, 0x4d, 0x56, 0xff, 0x80, 0x61, 0xff
ES descriptor for stream type 0x81 = 0x05, 0x04, 0x41, 0x43, 0x2d, 0x33
ES descriptor for stream type 0x81 = 0x81, 0x04, 0x06, 0x48, 0x0e, 0x00
ES descriptor for stream type 0x81 = 0x05, 0x04, 0x41, 0x43, 0x2d, 0x33
ES descriptor for stream type 0x81 = 0x81, 0x04, 0x06, 0x48, 0x0e, 0x00
ES descriptor for stream type 0x81 = 0x05, 0x04, 0x41, 0x43, 0x2d, 0x33
ES descriptor for stream type 0x81 = 0x81, 0x04, 0x06, 0x48, 0x0e, 0x00
ES descriptor for stream type 0x81 = 0x05, 0x04, 0x41, 0x43, 0x2d, 0x33
ES descriptor for stream type 0x81 = 0x81, 0x04, 0x06, 0x29, 0x04, 0x00
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
0 frames before first I-frame
High Profile
Level = 4.1
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 7614
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 16920
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 10152
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 2538
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 2538
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 2538
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846
arrival_time_stamp delta = 2538
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 2538
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 2538
arrival_time_stamp delta = 3384
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 16920
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 16920
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 1692
arrival_time_stamp delta = 43992
arrival_time_stamp delta = 846
arrival_time_stamp delta = 846

846 is the number of 27 MHz ticks between packets at 48 Mbps.

1/48000000 * 188 * 8 * 27000000 = 846

Note that all the deltas are multiples of 846. The arrival_time_stamp is showing the number of stuffing packets that would have been in the fixed rate 48 Mbps stream between the two time stamps. That is, 846 = 0, 1692 = 1, 2538 = 2, etc.

Ron

adalbertoma
28th February 2008, 03:27
Roman,

Still no go with the AAC soundtrack inside the MKV file as of 1.3.6.

Here's the sample again:

http://rapidshare.com/files/46131223/300.2006.nHD.720p.x264.AAC.Sample.NhaNc3.mkv

There are a number of movies with these AAC tracks which tsmuxer don't recognize.

It does load them if I extract them to individual files with mkvextract though.

Thanks a lot!



Oh, and I've just tried playing the encoded file with the AAC source audio on the PS3 and I got no audio... :(

n0mag!c
28th February 2008, 08:35
when demuxing through GUI with multiple "append"ed TS-files tsmuxer attempts to create elementary stream files with "+" in their names and fails.

n0mag!c
28th February 2008, 09:20
Are these compliance issues only evident in CBR mode? Is the normal (vbr) ts produced by tsMuxer ok?
as I report in this thread before, this issue very noticeable with any MPEG-2 video stream, especially with 29.97 fps, especially with 3:2 pulldown. Video stutters playing on PC and PS3. (But when the same elementary streams muxed with "sonic scenarist bda", result plays flawlessly.)

wallaceram
28th February 2008, 11:29
not with all the movies, but some of them.

i've tested with two movies. the movies are similar (non standard resolution,audio ac3, i check the level change to 4.1 checkbox)...

Any clue??

thanks everybody for testing and my best wishes for roman76

jamos
28th February 2008, 14:29
not with all the movies, but some of them.

i've tested with two movies. the movies are similar (non standard resolution,audio ac3, i check the level change to 4.1 checkbox)...

Any clue??

thanks everybody for testing and my best wishes for roman76

very common with 1080p videos with more than 4 frames per ref. the workaround is the reencode with x264 using 3 frames per ref.

zeroprobe
28th February 2008, 16:23
I have a problem.

SkyHD 1088i h264 with 2channel ac3. When run through TSmuxer it will play on the PS3 but audio is out of sync with video.

Solution was to use Mediainfo on the oringal TS file to get the audio delay which was something like -559 ms. I then entered this manually into TSmuxer and now it works perfectly.

Is this something TSmuxer could or should do itself? Just though I would tell you my solution.

Beastie Boy
28th February 2008, 16:32
Is the ouput of tsMuxer suitable for streaming to the PS3, as opposed to playing from optical disc, either as .ts or .m2ts?

If so, what restictions are there on the types of video/audio/subtitles that can be muxed? Streaming would probably be done using Tversity, but without transcoding.
I have read the thread explaining how to produce a BD-5/9 but was looking to move away from discs and use a media server, streaming rips of my HD-DVD/Blu-Ray collection.

Cheers, Beastie.

zeroprobe
28th February 2008, 16:56
Is the ouput of tsMuxer suitable for streaming to the PS3, as opposed to playing from optical disc, either as .ts or .m2ts?

If so, what restictions are there on the types of video/audio/subtitles that can be muxed? Streaming would probably be done using Tversity, but without transcoding.
I have read the thread explaining how to produce a BD-5/9 but was looking to move away from discs and use a media server, streaming rips of my HD-DVD/Blu-Ray collection.

Cheers, Beastie.

No VC1 or DTS I think in a TS file.

Beastie Boy
28th February 2008, 17:19
No VC1 or DTS I think in a TS file.

Thanks for the reply. So if I stick to ac3 for audio, and re-encode VC1 to .264, TS is OK for streaming. Can the .264 video be used stright from Blu-ray without re-encoding.

I know I should just test this myself, but I have only just got the PS3 and haven't quite got streaming set up yet, I'm just looking to save time when I do.

Thanks for any advice.

Cheers, Beastie.

zeroprobe
28th February 2008, 17:22
Thanks for the reply. So if I stick to ac3 for audio, and re-encode VC1 to .264, TS is OK for streaming. Can the .264 video be used stright from Blu-ray without re-encoding.

I know I should just test this myself, but I have only just got the PS3 and haven't quite got streaming set up yet, I'm just looking to save time when I do.

Thanks for any advice.

Cheers, Beastie.


Yes straight blu-ray and hd-dvd AVC will work as they are profile 4.1. Any AVC with a 4.1 profile should work.

Beastie Boy
28th February 2008, 17:23
:thanks:

gav1577
28th February 2008, 20:32
Hi can anyone confirm ffw and rew are not working correctly
on ps3 with m2ts files after using latest version of tsmuxer ?
:)

Zow
29th February 2008, 04:54
I have started to implement subtitles. Somebody can help with the documentation on a M2TS subtitles format?

I could kiss you!!! Not that you'd want me to...:-)

Thanks to Pelican9 too:-)

BucksSaddler
29th February 2008, 11:11
Hi Guys,

Sort of n00bie here (been watching, but rarely post). I've been playing around with this great app, however on converting an 2hr 30 min MKV (with H.264 and AC3) i get an appropriate sized file for the movie duration but only the 1st 29 minutes play on my PS3. Even when copying the file down to the PS3 HDD, it only copies 29 mins. Anybody else seen this?
Thanks
@gav1577 - ffw and rew work OK for me with the latest version on my PS3

n0mag!c
29th February 2008, 13:55
I've been playing around with this great app, however on converting an 2hr 30 min MKV (with H.264 and AC3) i get an appropriate sized file for the movie duration but only the 1st 29 minutes play on my PS3. Even when copying the file down to the PS3 HDD, it only copies 29 mins. Anybody else seen this?

it depends on many things. information you've presented is too few. 1st question: did you burn AVCHD disk with help of tsRemux?

else, I guess, you can only use 1st 2Gb of your file - this is FAT-filesystem limitation.

lexor
29th February 2008, 18:15
else, I guess, you can only use 1st 2Gb of your file - this is FAT-filesystem limitation.

Waah? The only FAT size limitation is 4 GB for a single file (and 2 TB total disc size, but I don't think that's the issue since last I checked single discs only went upto 1 TB), and even that doesn't apply to PS3 internal HDD, since I'm pretty sure internal drive is formatted as something other than FAT.

@BucksSaddler, did you try streaming the file with TVersity or something? Also does it playback fine on PC (with MPC or some other player)?

gav1577
29th February 2008, 18:47
thanks BucksSaddler are you using latest beta 1.3.6? have you tried
a clip from a usb flash drive? ffw and rew for me are broke if i
revert back to 1.2.10 ffw and rew are fine anyone else get this?:confused:

jamos
1st March 2008, 02:00
thanks BucksSaddler are you using latest beta 1.3.6? have you tried
a clip from a usb flash drive? ffw and rew for me are broke if i
revert back to 1.2.10 ffw and rew are fine anyone else get this?:confused:

have not tried 1.3.6 yet 1.3.5 seems to work.

gav1577
1st March 2008, 02:17
ok thanks jamos i will try 1.3.5 :)

roman76r
1st March 2008, 03:30
PSG subtitles are almost ready.
http://www.smlabs.net/tsMuxer/scrn1.PNG

Can PS3 play M2TS files with PSG subtitles?

Somebody can help with the example of a TS file with standart DVD subtitles?

jacobshek
1st March 2008, 03:44
PSG subtitles are almost ready.

Can PS3 play M2TS files with PSG subtitles?

Somebody can help with the example of a TS file with standart DVD subtitles?

PS3 can't play with subtitle in m2ts, if we want ps3 show subtitle, the m2ts must be playing in avchd. I am glad that TSMuxerR can handle PSG stream, great thanks! Where can I get 1.4.0?

adalbertoma
1st March 2008, 05:37
PSG subtitles are almost ready.


Can PS3 play M2TS files with PSG subtitles?

Somebody can help with the example of a TS file with standart DVD subtitles?

OMG you're the man!

What would I need to convert my SRT subs to PSG? Will tsmuxer do that job for me?

Thanks a lot!

Pelican9
1st March 2008, 08:13
PSG subtitles are almost ready.

Thank you!
Anyway, why do you call the PGS (Presentation Graphics Stream) to PSG?

Pelican9
1st March 2008, 08:14
What would I need to convert my SRT subs to PSG?


Try SUPread.

hm10
1st March 2008, 08:16
where i can download the new version?

hm10
1st March 2008, 08:21
Try SUPread.

what need to "v"?

Pelican9
1st March 2008, 08:29
what need to "v"?

:confused:

hm10
1st March 2008, 08:36
:confused:

i tried any opntion =\
blu-ray sup it's like psg (pgs)?

napalm-187
1st March 2008, 09:05
hi

great tool
but i have an question
i have demuxxed an true hd track from batman beginns hd dvd

smartlabs cant detect the streamtype?

what can i do

i use version 1.3.5

thx

yonta
1st March 2008, 10:15
hi

great tool
but i have an question
i have demuxxed an true hd track from batman beginns hd dvd

smartlabs cant detect the streamtype?

what can i do

i use version 1.3.5

thx

TrueHD from HD DVD is not yet supported.
Only TrueHD from Blu-ray is supported including on-the-fly DDcore extraction.

kleen
1st March 2008, 11:36
when demuxing through GUI with multiple "append"ed TS-files tsmuxer attempts to create elementary stream files with "+" in their names and fails.

Demux option is a little buggy. Sometimes it gives extension ".ts", and creates transport stream, instead separate audio and video files.

To overcome this problem it's necessary to remove file name or select target folder for the stream files.

roman76r
1st March 2008, 12:21
Pelican9
Anyway, why do you call the PGS (Presentation Graphics Stream) to PSG?
It is a typing error.

What players understand PGS format?

Pelican9
1st March 2008, 12:32
Pelican9

It is a typing error.

What players understand PGS format?

None of them.
It is a non existing format created by me and drmpeg based on the old SD sup format.
It contains
'PG', PTS, DTS, streamdata,
'PG', PTS, DTS, streamdata,
...
'PG', PTS, DTS, streamdata,
'PG', PTS, DTS, streamdata
The file extension is .SUP
The PTS and DTS values have modified (decremented) by the first video PTS.
Only tsRemux and SUPread can export this format (drmpeg has removed this function from xport :().

roman76r
1st March 2008, 12:47
Pelican9
I can add demuxing to same format.
'PG', PTS, DTS, inserted before "Presentation Composition Segment" (code 0x16) element only? Or it 10 bytes inserted before each element with different PTS/DTS values?

Atak_Snajpera
1st March 2008, 13:13
Can PS3 play M2TS files with PSG subtitles?

Subtitles must be in BluRay Structure in order to work.

Pelican9
1st March 2008, 13:42
Pelican9
I can add demuxing to same format.
'PG', PTS, DTS, inserted before "Presentation Composition Segment" (code 0x16) element only? Or it 10 bytes inserted before each element with different PTS/DTS values?
It would be great. :)
Insert this 10 bytes before every segment with different PTS/DTS (and decrement the PTS/DTS values).

oldpainless
1st March 2008, 16:05
I hope this is not off topic...is it possible to take a h.264 AC3 mkv and mux it into something and burn it to disk (dvd5/dvd9) to play in a toshiba hd-dvd player?

Cheers

K

hero88
2nd March 2008, 09:13
roman76r: Really looking forward to the new version, what I really like is that you show the language also. I have not been able to locate anything else which can do that to a m2ts file.

ultratoto14
2nd March 2008, 10:34
@Roman76r
Thanks for this really good and fast job. This is all the PS3 users were waiting for.

As the newly created ts is bigger than the original MKV, is it possible to add the ability to cut the files at DVD5/DVD9 size.

Thanks.

PS: I know that this is possible before using TSMUxer but as you put in all that we need to do the process in one pass ...

McKajVah
2nd March 2008, 14:49
Ahhh, after 5 days I can fianlly post...

Roman76r:

I have 5-6 different ts's with 1080i H264 Profile@4.0 DD5.1.

I've been using your SUPERB progam to convert them to profile@4.1 to play them on the PS3, but there seems to be a problem with audio sync...

On all of them I have to adjust the audio delay between -900 to -800 ms by using trial and error method....

Could you please look into this, or is there a better way for me to adjust the audio delay perfect.......?

If I open the original ts in MediaInfo it displays the following

General #0
ID : 1
Complete name
Format : MPEG-4 Transport
Format/Family : MPEG-4
File size : 15.6 GiB

Video #0
ID : 513 (0x201)
MenuID : 1 (0x1)
Codec : AVC
Codec/Family : AVC
Codec/Info : MPEG-4 AVC
Codec profile : Main@L4.0
Codec settings, CABAC : Yes
Width : 1920 pixels
Height : 1088 pixels
Display Aspect ratio : 16/9
Frame rate : 25.000 fps
Chroma : 4:2:0

Audio #0
ID : 661 (0x295)
MenuID : 1 (0x1)
Codec : AC3
Bit rate mode : CBR
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Rear: L R, LFE
Sampling rate : 48 KHz
Video0 delay : -33mn 51s

menlvd
2nd March 2008, 14:54
http://www.smlabs.net/tsMuxer/tsMuxeR_1.4.0_a.zip
test new ver with subs support, and remember it's alpha version

Atak_Snajpera
2nd March 2008, 15:26
Ahhh, after 5 days I can fianlly post...

Roman76r:

I have 5-6 different ts's with 1080i H264 Profile@4.0 DD5.1.

I've been using your SUPERB progam to convert them to profile@4.1 to play them on the PS3, but there seems to be a problem with audio sync...

On all of them I have to adjust the audio delay between -900 to -800 ms by using trial and error method....

Could you please look into this, or is there a better way for me to adjust the audio delay perfect.......?

Use PTSCalc (http://www.h264tscutter.de/show_artikel.php?id=4) to detect audio delay and then enter delay value in RipBot264

hm10
2nd March 2008, 15:56
http://www.smlabs.net/tsMuxer/tsMuxeR_1.4.0_a.zip
test new ver with subs support, and remember it's alpha version

how to add?
i don't see in "add" any subtitle stream option

DoomBot
2nd March 2008, 16:11
Everytime i try to use PTSCalc and click on Calc i get an error....Index was outside the bounds of the array..what am i doing wrong here?

hero88
2nd March 2008, 16:30
Roman76r:
The language detection works for m2ts not for evo files
This version doesn't handle subtitles as far as I can see.

Edit:
It detects PGS streams on on some Blu-Rays but not all, if I then select a PGS stream and say Demux, it gives this message SmartLabs tsMuxeR. Version 1.4.0(a) http://www.smlabs.net
Demux complete.
Demuxing time: 0.046403 sec

If I select a True-HD, and select Demux, it comes with these errors, AC3 bad frame detected. Resync stream.
Decoding AC3 stream (track 1): Bitrate: 640Kbps Sample Rate: 48KHz Channels

B4tm4n
2nd March 2008, 16:55
Everytime i try to use PTSCalc and click on Calc i get an error....Index was outside the bounds of the array..what am i doing wrong here?

Try mediainfo.

Atak_Snajpera
2nd March 2008, 17:00
Everytime i try to use PTSCalc and click on Calc i get an error....Index was outside the bounds of the array..what am i doing wrong here?

PTSCalc does not like large files :( There is another way. Use h264cutter and cut file on IDR-Frames. If your TS starts at Keyframe audio will be always in sync!

gav1577
2nd March 2008, 18:52
@ hero88 the bad ac3 frames you have are caused by a bug in anydvd i presume thats whats u or the person who ripped the movie used i use any dvd for decryption but dont use it to dump files instead try iso buster to dump the file or files i found this out a few days ago hope this helps anyone getting AC3 bad frame detected. Resync stream. :)

jamos
2nd March 2008, 18:54
http://www.smlabs.net/tsMuxer/tsMuxeR_1.4.0_a.zip
test new ver with subs support, and remember it's alpha version

will test with subs in bluray.