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

BassPig
23rd January 2012, 07:54
I found another problem with the BD I made this evening using tsMuxer, this time to fuse a Dolby Surround file with the associated video stream (that Encore demoted to stereo, hence why I'm using tsMuxer to replace the defective audio): although the discs play ok if you simply put them in the player and watch from start to end, any attempt to navigate via chapter advance, or fast forward, results in playback freezing for about a minute, before resuming playback. The disc images I made in Encore that I did NOT touch with tsMuxer, fast forward and chapter advance like a normal commercial BD, with barely any lag. Uh-oh. Houston, I think we have a problem here...

Edit:
Apparently it's just the 640kbps Dolby surround track that causes this. Fusion with the 512kbps Dolby surround track is okay. I guess not a problem with the muxing, but a problem with Blu-ray player being able to handle 640kbps ac3 file.

craftech
27th January 2012, 19:27
I am trying to mux to .m2ts an .m2v file edited in Sony Vegas with an .ac3 file edited in Vegas. TsMuxer handles it just fine if I leave it at VBR default settings.

However, the original renders were 1920 x 1080 / 60i m2v at a CBR of 21,000 kbps. I want to keep it that way.

But when I change the VRR in TsMuxer to a CBR of 21,000 kbps and try to mux, it gives continuous VBV Buffer Overflow errors until finally terminating the mux indicating too many overflow errors. Tried to mux to .ts and same thing occurs.

I have tried more than 10 different settings for VBV buffer size and all cause the same problem.

Anyone have a solution?

I am using tsMuxer version 1.10.6

Someone posted the same problem on VideoHelp under the download for TsMuxer

I get buffer overflow errors when trying to mux cbr--Ive changed the bit rate and changed the vbv buffer size and still getting the error--But for vbr muxing, this program rocks!

No one had an answer.

http://www.videohelp.com/tools/tsMuxeR

Thanks,

John

Capsbackup
28th January 2012, 00:34
I am trying to mux to .m2ts an .m2v file edited in Sony Vegas with an .ac3 file edited in Vegas. TsMuxer handles it just fine if I leave it at VBR default settings.


If you are using tsMuxeR to mux a file that has been edited with any program, why does it matter what the setting is? :confused: Whatever the files properties were encoded at are what they are! tsMuxeR is only muxing them. ;)
Header information will not necessarily change a files compliance.

craftech
28th January 2012, 05:10
If you are using tsMuxeR to mux a file that has been edited with any program, why does it matter what the setting is? :confused: Whatever the files properties were encoded at are what they are! tsMuxeR is only muxing them. ;)
Header information will not necessarily change a files compliance.

I tried that and when I tested the file it was indeed VBR and not CBR as was the m2v that I muxed with the ac3. TsMuxer indeed muxed the m2ts as a VBR. When I brought the file into DVD Architect to author it, DVDA wanted to recompress the m2ts file because it didn't meet the project properties parameters I specified which were CBR.

And why the buffer overflow to the point of termination if I choose CBR in TsMuxer if those settings don't mean anything?

John

Ghitulescu
31st January 2012, 11:49
What happens when the chapters list (say every 5 minutes) doesn't fit with the actual position of I-frames? Will it go to the next one, to the nearest one, or ignore it?

laserfan
31st January 2012, 14:27
IME most players will find and display the nearest PREVIOUS I-frame.

rapscallion
15th April 2012, 20:22
Wow, kind of quiet here the last few months.

Tsmuxer always works fine for me except for a strange mux today. Blu-ray mux with a h264 @ 19.8 gb + DTS-HD @ 2.9gb
Tsmuxer states completed successfully however at 87%, not 100%. The resulting mux is only 20.8gb when it should be closer to 23gb.

The movie plays completely but I'm wondering why the lower % and smaller file size ??

jdobbs
16th April 2012, 02:03
What happens when the chapters list (say every 5 minutes) doesn't fit with the actual position of I-frames? Will it go to the next one, to the nearest one, or ignore it? I think it depends on the player -- but it will have to go to an I-Frame (either before or after). The thing you have to watch carefullly is when you use large GOPs, because sometimes the nearest I-Frame might be as much as 10 seconds away.

Ulf
19th April 2012, 13:03
When executing tsMuxer in cmd line mode, is there any way to capture what tsMuxer writes to stdout?

Command line:

tsMuxeR.exe "C:\out\MUXOPT.meta" "C:\out"


Info written to stdout:

SmartLabs tsMuxeR. Version 1.10.6 http://www.smlabs.net
Decoding H264 stream (track 1): Profile: High@4.2 Resolution: 1920:1080p Frame rate: 50
H.264 stream does not contain fps field. Muxing fps=50
0.3% complete
Decoding AC3 stream (track 2): Bitrate: 256Kbps Sample Rate: 48KHz Channels: 2
Processed 720 video frames
100.0% complete
Demux complete.
Demuxing time: 0 sec


I want to write this information to a file.

I have tried the following:

tsMuxeR.exe "C:\out\MUXOPT.meta" "C:\out" > "C:\out\info.txt"


but redirection doesn't work (and neither does demuxing in this case).

Midzuki
19th April 2012, 16:36
When executing tsMuxer in cmd line mode, is there any way to capture what tsMuxer writes to stdout?

We still are allowed to select and copy the text that is written on the CLI window...

but redirection doesn't work (and neither does demuxing in this case).

Probably that's a limitation which comes from the source-code itself :(

setarip_old
19th April 2012, 18:47
@rapscallion

Hi! Blu-ray mux with a h264 @ 19.8 gb + DTS-HD @ 2.9gb
Tsmuxer states completed successfully however at 87%, not 100%. The resulting mux is only 20.8gb when it should be closer to 23gb.

The movie plays completely but I'm wondering why the lower % and smaller file size ?? Is it possible that you selected to use only the core of the DTS audio?

Ulf
19th April 2012, 21:40
We still are allowed to select and copy the text that is written on the CLI window...


That's quite obvious. Exactly what I have done. The question how to capture the information to a file. I'm trying to automate a process where I need info on the number of video frames processed.

tebasuna51
20th April 2012, 11:16
I have tried the following:

tsMuxeR.exe "C:\out\MUXOPT.meta" "C:\out" > "C:\out\info.txt"

but redirection doesn't work (and neither does demuxing in this case).
Works for me, demux and info.txt (XP SP3)

idbirch2
23rd April 2012, 15:35
If you're writing a script and trying to capture TSMuxer output, you could also attach to the STDOUT stream of cmd.exe to read the current output. I wrote an AutoIt script a while ago to remux MKV into TS which does just that which may serve as a good example: http://pastebin.com/EM6Y3q54. Lines 424 - 443 show the method of launching a TSMuxer command and monitoring the output.

quartex
25th April 2012, 16:49
scenario: output BD using original usa video and foreign audio tracks and subs.
I noticed that sometimes subtitles don't work wells. In some points they didn't show and after some seconds I see them at super fast speed.
Usually using eac3to to demux sup and then remux using tsmuxer fix this issue. But recently I experienced this problem adding subtitles demuxed with eac3to too.
Anyone know why this happens? thanks

laz305
26th April 2012, 02:44
I had tsmuxer installed with mkv2vob and it was crashing when trying to use multiAVCHD. Will this one solve that problem for me?

EDIT: nm I was not ripping my BD first lol

Ulf
1st May 2012, 13:50
Works for me, demux and info.txt (XP SP3)

You are quite right. I was using "%~dp1" in a script for the output folder. That translates to:


tsMuxeR.exe "C:\out\MUXOPT.meta" "C:\out\" > "C:\out\info.txt"


which doesn't work.

rapscallion
7th May 2012, 22:17
@rapscallion

Hi! Is it possible that you selected to use only the core of the DTS audio?
Hey setarip, I never got a mail re your resonse, so I'm seeing your post for the first time today. No, I didn't do just the core, but if I had, tsmuxer should complete at 100%, not 87%.

The frame count was a match to Megui's log @ 157,725 frames and I've muxed this probably 5 times already with the exact same result. So very puzzled.

I don't see anything in megui's log that would indicate a cause either (video only).

Edit: just out of curiousity, I muxed, to Blu-ray, just the video and it completed @ 100% and the same file size as the video and audio mux. So, it appears that there's something funky with the DTS-HD track that I extracted via eac3to. I'll try demuxing the audio via tsmuxer and see what happens.

Edit_1: Yes, that was it. demuxed the audio via Tsmuxer and then muxed with the video and all was 100%. Weird.

Ghitulescu
9th May 2012, 08:30
I am stuck again on the same problem.

I had several episodes I want to put on a single BD instead of several DVDs. It appears that no matter what I do, I either go into one problem or in another.

This case is in theory simple. All streams have a 0ms delay. Yet after muxing to M2TS the delay is set to -80ms and indeed one can sense it on HW players but also on PC.

http://desmond.imageshack.us/Himg440/scaled.php?server=440&filename=tsmuxer1.png&res=landing
Muxing with 0ms delay. Apparently everything went ok, because ....

http://desmond.imageshack.us/Himg819/scaled.php?server=819&filename=tsmuxer2.png&res=landing
Reloading again the muxed file in tsmuxergui, it falsely indicate a 0ms delay, because one can sense it during play, and of course
http://desmond.imageshack.us/Himg17/scaled.php?server=17&filename=mediainfo1.png&res=landing
the exact value is mentioned by MediaInfo.


Now this is not all. As I mentioned here (http://forum.doom9.org/showthread.php?p=1573323#post1573323), it appears that in case where the delay is not 0ms but eg a positive value, the muxing procedure subtracts 80ms (or adds said -80ms, as above) from the real delay (sort of 460ms -> 380ms) and the audio is wrongly placed.

Ghitulescu
9th May 2012, 13:25
Why does tsmuxer (used with tsmuxergui) insists in rescaling my subtitles?

Is there any hidden setting I am not aware of?

Reverting to an older version, 1.9.9, appears to cure this symptom, both in "as primary video" and in "720x576" modi.

I am not expecting that the developers will somehow remember this software (tomorrow it be be 5 years since its last update :)), but at least I hope for an explanation or a good manufacturing practice.

SeeMoreDigital
9th May 2012, 16:34
Reverting to an older version, 1.9.9, appears to cure this symptom, both in "as primary video" and in "720x576" modi.

I am not expecting that the developers will somehow remember this software (tomorrow it be be 5 years since its last update :)), but at least I hope for an explanation or a good manufacturing practice.Actually, version 1.10.6 was released on Monday 11 May 2009 ;)

sreemv
2nd June 2012, 06:46
Any idea why tsmuxer crashes on various/several mkvs with no header stripping - on windows 7 64bit - even the cli version gives the same crash message "tsmuxer.exe stopped working"

http://73.imagebam.com/download/m5ocyWqeFfHJ18FNZcfcqQ/19355/193547494/tsmuxer-crash.JPG

Here is the mediainfo on the .x264 freshly enccoded via vdub:

http://64.imagebam.com/download/skKptIfuhsmEcaeLzvcRFw/19355/193549162/mediainfo-x264.JPG

Any help is appreciated!

tebasuna51
2nd June 2012, 11:53
¿mkvs?
Seems a AVI 36.7 GB with h264 video.

Try remux before to mkv wiht MkvMerge.

And Level 5.0 can be also other problem, use Level 4.1

sreemv
2nd June 2012, 19:45
Yes, figured it out by experimenting - exactly what you suggested - used mkvmerge to write mkv then in tsmuxer changed the level to 4.1 and all went well! Thanks!

rapscallion
13th July 2012, 21:35
Yes, figured it out by experimenting - exactly what you suggested - used mkvmerge to write mkv then in tsmuxer changed the level to 4.1 and all went well! Thanks!
You do realize that it doesn't actually change the level to 4.1, but tells the player that's what the level is ?
Which is not a problem.

rapscallion
13th July 2012, 21:42
As you all probably know, versions since 1.8.4b can't display subs in any color, other than white, without a greenish cast/tint.

You can, however, use v 1.8.4b (available here: Click (http://www.videohelp.com/tools/tsMuxeR/old-versions)) and substitute the executable from v 1.10.6 (tsmuxer.exe). This way all the updates in 1.10.6 are working with the older simplified gui.

ramicio
26th July 2012, 13:53
Is there ANY program out there that doesn't remove overlaps? I thought I could get around it by not using eac3to, but now I see that tsmuxer is doing the same thing, which is royally SCREWING UP the audio. I don't believe overlap is a problem, and most of the time when these programs "fix" this overlap, it ends up messing up the audio. The studios obviously know what they are doing, and I doubt the set-top box players just skip audio samples, so why should these programs act any differently?

jdobbs
26th July 2012, 14:59
Is there ANY program out there that doesn't remove overlaps? I thought I could get around it by not using eac3to, but now I see that tsmuxer is doing the same thing, which is royally SCREWING UP the audio. I don't believe overlap is a problem, and most of the time when these programs "fix" this overlap, it ends up messing up the audio. The studios obviously know what they are doing, and I doubt the set-top box players just skip audio samples, so why should these programs act any differently?

??? As I understand it an "overlap" indicates redundant/repetitive audio packets that exist in two different streams (that are being combined). So I guess I don't understand how removing it is "royally SCREWING UP the audio"... I can tell you assuredly that failing to remove it can do so.

Please explain how the audio is being negatively affected.

ramicio
26th July 2012, 15:02
To me, it seems like an overlap is when the audio is longer than how these programs calculate the video duration. When this happens I can hear parts of a song skip forward as if a fraction of a second is missing from it. There are a bunch of titles I've copied to my hard drive that get screwed up from this overlap removal because it will do it before it decodes the audio, so it can screw up things like .dtshd which eac3to itself is not one bit aware of, and needs a 3rd party codec to decode. If you are simply ripping a .dtshd track, it's not going to even bother looking at the audio data, it just does a demux, so it is NOT aware of redundant audio data. It introduces corruption of the audio. I can't be any more descriptive than that.

jdobbs
26th July 2012, 16:16
I think you have a misunderstanding of what "overlap" is... if it isn't redundant, it isn't overlap. I can tell you that the most likely way eac3to or tsmuxer decides when something is overlapped is when you have two packets falling within with the same presentation time stamp (PTS) range... indicating it is a repeat. A program doesn't have to decode the audio in order to look at the packet or frame headers.

iSeries
26th July 2012, 16:19
To me, it seems like an overlap is when the audio is longer than how these programs calculate the video duration. When this happens I can hear parts of a song skip forward as if a fraction of a second is missing from it. There are a bunch of titles I've copied to my hard drive that get screwed up from this overlap removal because it will do it before it decodes the audio, so it can screw up things like .dtshd which eac3to itself is not one bit aware of, and needs a 3rd party codec to decode. If you are simply ripping a .dtshd track, it's not going to even bother looking at the audio data, it just does a demux, so it is NOT aware of redundant audio data. It introduces corruption of the audio. I can't be any more descriptive than that.

If eac3to sees audio overlaps when decoding it runs a second pass on the audio track to remove them after calculating where the overlaps occur. It doesn't remove the overlaps before decoding the audio.

ramicio
26th July 2012, 16:22
Except that the data, in reality, is not redundant. If I decode each m2ts's audio to individual mono WAVs, join those WAVs on end, I get zero corruption. If I let whatever program do its thing of joining stuff at the m2ts level where it does this asinine overlap correction, things get screwed up. In this example the non-corrupt hand-made file is 14,335 samples longer. Later I shall test if it has sync issues. If any of these programs at least gave how many samples it's chopping off, and of which part, it would be easy to do this by hand, but they only report in ms, and you don't know if it's chopping the end of one file or the beginning of the other.

ramicio
26th July 2012, 16:22
If eac3to sees audio overlaps when decoding it runs a second pass on the audio track to remove them after calculating where the overlaps occur. It doesn't remove the overlaps before decoding it.

It does it on tracks it's not even decoding, but simply demuxing.

Jar4ek
18th December 2012, 17:26
Hi can you update the link. Because the link is not working.

rapscallion
18th December 2012, 18:55
Wow, 1 post in 2 1/2 years. What link is it that you want?

If it's for the latest ver of Tsmuxer : http://www.digital-digest.com/software/download.php?sid=1666&ssid=0&did=1

mariner
16th February 2013, 09:38
Greetings.

1. Having problem muxing 6-channel 640kbps ac3 audio track with a tineshift greater than 4935ms. Muxing goes smoothly, but TsmuxeR can't pick up the audio track when reading the new m2ts file, and mediainfo reports completely wrong info.

Have not tested the BD in a set top player, but the m2ts clip seems to play fine on a PC.

Is this a known issue?

2. Can someone kindly explain the use of connection_condition as mentioned in the readme.txt? I don't see it in the meta file when remuxing a seamless branching BD.

http://forum.doom9.org/showthread.php?p=1209880#post1209880

Many thanks and best regards.

Ghitulescu
19th February 2013, 13:07
Log excerpt:SmartLabs tsMuxeR. Version 1.10.6 http://www.smlabs.net
MPEG-2 stream does not contain fps field. Muxing fps=25
Decoding MPEG2 stream (track 4): Profile: Main@8. Resolution: 720:576i. Frame rate: 25
Decoding PGS stream (track 5): Resolution: 720:576 Frame rate: 25
Change PGS resolution from 720:576 to 720:480. Scaling method: Bilinear interpolation
Decoding AC3 stream (track 1): Bitrate: 192Kbps Sample Rate: 48KHz Channels: 2
Why on hell is tsMuxer rescaling to NTSC (720:480) on its own volition when nothing in-there requests this?
I had this issue also with other parameters - how can one change these "default" settings?
And also why it changes the fps by demuxing?
Decoding PGS stream (track 1): Resolution: 720:480 Frame rate: 25
Change FPS from 25 to 23.976 for PGS stream #1

mariner
19th February 2013, 16:20
Seems a tsMuxeR problem not related with Delaycut or eac3to.

But you can use Delaycut or eac3to to avoid the problem.
When you add a delay here to a ac3 track, silent phisycal frames are added to the ac3 and you don't need add timeshift in audio/video containers.

If you need a delay >4935ms for a ac3 track in m2ts container, first use:

eac3to track.ac3 new_track.ac3 +4960ms

and you can now add the new_track to tsMuxeR without timeshift.

Thanks for the kind reply, tebasuna51.

I've remuxed those with timeshift >4935ms. Should I do the same for the rest?

Is tsMuxeR's timeshift parameter robust?

Nico8583
27th February 2013, 21:03
Hi :)
I have questions about TsMuxer. I think is used by BD-RB to reauthor Blu ray ?
I would like to create a Blu ray structure with 1 M2TS file (or 264 or other), 1 (or 2) audio file (AC3, DTS...) and 1 (or 2) subtitle file.
- What type of files are necessary to create a Blu ray structure ? M2TS, AC3, DTS, DTSHD, SUP, SRT... ?
- How can I make to start default 1 track ? For example, I have 2 subtitles tracks and I would like to start track 2 with the movie
Thanks !

setarip_old
9th March 2013, 23:07
@Nico8583

Hi!

tsMuxeR will accept many different formats for input. From the examples you listed, AT LEAST all of the following can be used to "ADD" via tsMuxeR to create a Blu-ray structure:"ADD" M2TS, "ADD" AC3 (or DTS) and "ADD" one or more .SUPs.

jdobbs
9th March 2013, 23:39
Hi :)
I have questions about TsMuxer. I think is used by BD-RB to reauthor Blu ray ?
I would like to create a Blu ray structure with 1 M2TS file (or 264 or other), 1 (or 2) audio file (AC3, DTS...) and 1 (or 2) subtitle file.
- What type of files are necessary to create a Blu ray structure ? M2TS, AC3, DTS, DTSHD, SUP, SRT... ?
- How can I make to start default 1 track ? For example, I have 2 subtitles tracks and I would like to start track 2 with the movie
Thanks ! You can't turn a sub on by default in TSMUXER. You'd have to edit the output with BDEDIT and add commands that turn the subtitle on in MovieObject.bdmv. It's probably best to do it in FirstPlay just before the jump to the title.

The MovieObject.bdmv output from TSMuxer can be a little confusing -- there are commands that do nothing... I think they just copied the binary image from some other disc and edited it to make it work. But it's not bad if you go in knowing that it's that way.

If you have it in an M2TS, MKV, or MP4 file, why wouldn't you just do this with BD Rebuilder? It does all the work for you -- and makes sure it is compliant.

titof
10th April 2013, 13:20
Hi,
Thanks for TSmuxer I used for a long time.
I've a question : do you plan to mux H265 into TS ?
It seems to be a major evolution

regards

SeeMoreDigital
10th April 2013, 14:27
Hi,
Thanks for TSmuxer I used for a long time.
I've a question : do you plan to mux H265 into TS ?
It seems to be a major evolution

regardsSadly the TSmuxer developer (http://forum.doom9.org/member.php?u=143149) has not been active on this forum since 11th May 2009 @ 23:34....

ccsoon
9th May 2013, 00:47
Hello,

I have something strange going on..
I just want to change the audio and the subtitles off the m2ts file. So i changed it..
I put it back in the correct folder, recode de playlist, clipinf, so that the Blu-ray player knows what kind audio or subtitle it is.

But now when i'm trying to press " play movie " just nothing happens.. i press "info" on the remote to see what it play's.. it said 51sec.. and the movie is approx. 1h30

And the strange thing is that i did exactly the same thing with another movie and that works just fine..
I tried many many time's, i add someting a removed something and nothing helps.. i don't know what to do..
The menu is adjust the playlist is adjust, the commands are changed.

But one thing, when i do nothing with the movie, add or remove something with TSmuxer it still works, because i want remove something from the playlist.. and that work but when i'm adding or remove something it crashed..

Aaargh... xD

LigH
5th June 2013, 08:51
There is an issue just reported by Selur in the german doom9/Gleitz board (http://forum.gleitz.info/showthread.php?46405-Untertitel-aus-Bluray-extrahieren-nicht-immer-so-einfach):

Extracting streams (specifically subtitles) from Blu-ray playlists with a lot of smaller file segments (in the mentioned case, 45 M2TS pieces) may exceed the maximum of 270 characters per canonical file name supported by Windows, due to the concatenating file naming convention: %05d[+%05d[...]].track_%d.sup

Will roman76r get this report here, or is there a better location to report this problem? ... Hmm, last activity: 2009. Probably not here.

jdobbs
5th June 2013, 13:17
There is an issue just reported by Selur in the german doom9/Gleitz board (http://forum.gleitz.info/showthread.php?46405-Untertitel-aus-Bluray-extrahieren-nicht-immer-so-einfach):

Extracting streams (specifically subtitles) from Blu-ray playlists with a lot of smaller file segments (in the mentioned case, 45 M2TS pieces) may exceed the maximum of 270 characters per canonical file name supported by Windows, due to the concatenating file naming convention: %05d[+%05d[...]].track_%d.sup

Will roman76r get this report here, or is there a better location to report this problem? ... Hmm, last activity: 2009. Probably not here.That issue has been around for a long time. When that happens, you have to get around it by remuxing first to a single M2TS and then extracting from that. "Toy Story 3" is an example of that problem.

maxmercy
10th July 2013, 18:54
I recently tried to mux a BD with TSMuxer which used .h264 video and .w64 6.1 channel audio. TSMuxer muxed in 7.0 audio (no LFE channel). Has anyone else had this problem?

JSS

benjyv
22nd April 2014, 11:53
I know how to extract chapter.txt from a BD or more precisely from a MPLS file.
But from a .ts file? how can I extract chapters? :helpful:
What soft should I use?
or better, what script is required?

Thx!:thanks:

Ghitulescu
22nd April 2014, 13:42
Extracting streams (specifically subtitles) from Blu-ray playlists with a lot of smaller file segments (in the mentioned case, 45 M2TS pieces) may exceed the maximum of 270 characters per canonical file name supported by Windows, due to the concatenating file naming convention: %05d[+%05d[...]].track_%d.sup
Thi8s limitation is a system one, it can't be solved.
It may be however solved if one does not use a CLI tool but a GUI (not a GUI for a CLI tool).

LigH
22nd April 2014, 13:51
Or by introducing a different syntax (e.g. a parameter which accepts a text file listing the segments, instead of a concatenated parameter; some archivers used the @ to flag that list file).