View Full Version : tsMuxer Open Source


Pages : 1 [2]

Emulgator
2nd January 2021, 21:09
Happy new year to you, a5180007 and BloodyRipper , and many thanks for your continued work !

von Suppé
6th January 2021, 10:23
It's come to my attention that latest nightly build e6b1ed8 is having problems with importing (blu-ray compliant) m2ts files and mpls files from blu-ray discs. On several occasions I get error: "Track 0 was not recognized and ignored. File name:..." etc.
Several previous versions of tsMuxer don't throw these errors. Tracks concerned are MVC and H264, the latter from both 2D and 3D discs.

Has a bug sneaked in?

KingLir
8th January 2021, 17:38
On the AppleTV, all you will get out of TrueHD is LPCM right? no bitstreaming.
if you can't find the edited tsMuxer version., you can demux the atmos track to lpcm and remux in a profile 5 MP4. this should work as well.
https://mrmc.tv/forum/viewtopic.php?f=15&t=4171&sid=66e9881b0a0b18a334658ac1c2f33776&start=310

Thanks! The lpcm path worked well on Apple TV 4K.

Regarding different colorspace for profile DV 7 converted to profile 5, can you (or anyone reading this) explain more or pinpoint me to where to read about it ?
I wasn't able to detect the issue, so I am eager to figure what I am missing.

yannick92
10th January 2021, 19:25
It's come to my attention that latest nightly build e6b1ed8 is having problems with importing (blu-ray compliant) m2ts files and mpls files from blu-ray discs. On several occasions I get error: "Track 0 was not recognized and ignored. File name:..." etc.
Several previous versions of tsMuxer don't throw these errors. Tracks concerned are MVC and H264, the latter from both 2D and 3D discs.

Has a bug sneaked in?

Hi, same problems for me.

thx

von Suppé
12th January 2021, 16:19
I can confirm that with version 00caad0, the issues with H264 and MVC streams not being recognized, is solved.

:thanks:

cogira
15th January 2021, 22:32
Hi devs,
can we hope that Dolby True HD Atmos will be recognized in Tsmuxer without the ac3 core?
:thanks:

staina
16th January 2021, 11:49
Why has the every day generate new version tsMuxer, when there are no new fixed?

SeeMoreDigital
16th January 2021, 12:39
Hi devs,
can we hope that Dolby True HD Atmos will be recognized in Tsmuxer without the ac3 core?
:thanks:This would be most useful, as Dolby TrueHD audio streams with an AC3 core is only required for generating Blu-ray spec disc's...

imhh11
16th January 2021, 16:17
I would love that too but I think they said it wasn't possible to support TrueHD stream without a core but @a5180007 thought a while ago of maybe just adding a blank ac3 core which would be a great solution IMO.
is it still something you will do @a5180007 ?

thank you

filler56789
16th January 2021, 18:19
I would love that too but I think they said it wasn't possible to support TrueHD stream without a core

I don't know what "they" said but if I am not not mistaken, ffmpeg already supports pure TrueHD in transport streams, so it would be just a matter of adapting ffmpeg's source-code to the tsMuxer executable.

a5180007
18th January 2021, 21:09
I would love that too but I think they said it wasn't possible to support TrueHD stream without a core but @a5180007 thought a while ago of maybe just adding a blank ac3 core which would be a great solution IMO.
is it still something you will do @a5180007 ?

thank you
TrueHD without AC3 is supported by TS but not by HDMV/Blu-ray.
I still plan to work on this after version 2.7 has been released :)

pacaveli420
22nd January 2021, 04:49
There may be an issue with some of the latest versions and muxing to bluray folder. I'm getting discs that aren't playable. I'm still verifying with an older version or two. Anyone else noticing this?

pacaveli420
22nd January 2021, 06:15
Alright - Official release 2.6.12 muxes a functioning disc
Both of these releases mux a disc that does not play (it just goes to stop without ever starting to play)
w64-nightly-2021-01-17.zip
w64-nightly-2021-01-21.zip
I'm not sure if there's any difference between those 2 as they both say that they're version 0076a07

Something possibly worth noting is that I had to set the SEI/VUI setting to do not change, to get a correctly playing disc.
Regardless of this being on or off (tried discs from both), the mux from the new version is not playable

If there are SEI/VUI issues, you just get playback that glitches every few seconds. I'm not sure if this setting has ever corrected anything, as it's defaulted on, but it certainly breaks things sometimes. Maybe it's better to be defaulted to do not change?

a5180007
22nd January 2021, 12:54
Alright - Official release 2.6.12 muxes a functioning disc
Both of these releases mux a disc that does not play (it just goes to stop without ever starting to play)
w64-nightly-2021-01-17.zip
w64-nightly-2021-01-21.zip
I'm not sure if there's any difference between those 2 as they both say that they're version 0076a07

@pacaveli420 my bad... Latest patch introduced a bug in the playlist numbering. I've pushed a fix which should be merged shortly by @BloodyRipper.

Edit: @BloodyRipper could we please go back to the situation where the bintray nightly occurs only when there is a change, and not every night ?

pacaveli420
22nd January 2021, 16:48
Thanks for a quick reply! I'll watch for an updated version

a5180007
22nd January 2021, 20:02
Thanks for a quick reply! I'll watch for an updated version

@pacaveli420 fix merged, please try tomorrow's nightly.

zeropc
31st January 2021, 17:52
According to the official README.md:

This ZIP file for MacOS can just be unzipped and the executables can be used after installing a couple of dependencies.
To install those run the commands below in the Terminal:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install freetype
brew install zlib

which in my not-so-humble opinion is not good enough.
I mean, why no static builds for the Mac operating system?

I have already asked this question but it went ignored

--- by justdan96 and by the "contributors" as well.

Welp, This no longer works for me. I've upgraded to Big Sur and made a clean install. Guess what, I can't use the cmd :rolleyes:

Need sudo access on macOS (e.g. the user zeropc to be an Administrator)!

I'm the admin on my computer and normal sudo works. But this cmd is a no go.

We need something solid to fix this once and for all, without the need to use terminal cmds the avarage users has no clue about. The original app didn't have this issue at all. Please make a proper make app. Thanks :)

Bgalakazam
11th February 2021, 21:43
Welp, This no longer works for me. I've upgraded to Big Sur and made a clean install. Guess what, I can't use the cmd :rolleyes:

Need sudo access on macOS (e.g. the user zeropc to be an Administrator)!

I'm the admin on my computer and normal sudo works. But this cmd is a no go.

We need something solid to fix this once and for all, without the need to use terminal cmds the avarage users has no clue about. The original app didn't have this issue at all. Please make a proper make app. Thanks :)

Just did the following on Big Sur:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

% brew --version
Homebrew 3.0.1-18-g0211ae4
Homebrew/homebrew-core (git revision d68c42; last commit 2021-02-11)

I ran the first command from my normal user, it prompted for admin password. I was also able to update my freetype and zlib.

BloodyRipper
12th February 2021, 18:28
Bintray is scheduled to shut down by the end of May, so we've switched to GitHub for distributing nightly releases. A GitHub account is not needed in order to download these. You can access the release page here (https://github.com/justdan96/tsMuxer/releases).

a5180007
15th February 2021, 19:19
@xavery thank you, good work !

jdobbs
25th February 2021, 15:18
This post isn't directly related to TSMUXER -- but since the new releases include UHD support, I thought I'd ask here.

I'm looking for a summary of the changes to the BD Basic Specifications that were introduced in version 3.00 that are associated with UHD support. I'm thinking of putting one together (or at least a start for review). But if it already exists somewhere I'd much rather just get a copy of it. I'm introducing an option to convert standard BDs to UHD-BD format using HEVC in BD Rebuilder and have encountered some issues -- I need to find out what I'm missing.

Any help would be appreciated.

Richard1485
20th March 2021, 17:45
Is there any chance that BDAV output could be added to help those authoring AVCHD 2.0 discs?

stax76
27th March 2021, 12:12
2021 and high DPI still completely broken. :(

yannick92
29th March 2021, 10:13
Hello,

Small problem in the latest version of tsMuxer:
When I try to open an MP4 file in TsMuxer nothing happens, and no error message ...?

If I open this same file with tsMuxer 2.6.12, I get this error message: "moov atom not found"

Interestingly, the file opens very well with MkvToolnix, and if I make a .mkv, it then opens perfectly with tsMuxer, without error message ...

Here is the link for the file if that helps: https://uptobox.com/bo46ak1szoog

Thx a lot

Yannick

Edit: Maybe related to that? (# 388) ��
https://github.com/justdan96/tsMuxer/issues/388

tebasuna51
29th March 2021, 11:53
...When I try to open an MP4 file in TsMuxer nothing happens, and no error message ...?

Maybe because it is not a mp4 container, rename it to .ts and try.
Of course there aren't atoms in a ts container.

MediaInfo report:

Format : MPEG-TS
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty

yannick92
30th March 2021, 09:24
Maybe because it is not a mp4 container, rename it to .ts and try.
Of course there aren't atoms in a ts container.

MediaInfo report:

Format : MPEG-TS
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty


Ok great, thank you for these explanations, I did not have the reflex to change the extension of the file ... ��

Nevertheless, there would be the possibility of correcting this problem in Tsmuxer when opening a file with
incorrect extension?
Understand that the user is warned ... ��

Thx, bye.

Yannick

PS: Small suggestion: let TsMuxer open the file with incorrect extensions (as in MkvToolnix ...), but with a pre "warning box" like: Incorrect file extension, do you want to continue? Yes or no"

Ghitulescu
2nd April 2021, 06:36
If there is no Entrymark at the end of a PlayList, an interval between a last Entrymark and end point of a PlayList composes the last Chapter of the Movie Title.

Strange, I have several BD players and they react differently to the presence of lack of a final chapter mark right at the end of the playlist.
Sony and Pioneer would refuse to "skip to the end", the LGs would do it, even if the mark is missing.
Therefore I always add a dummy chapter mark 1 second before the end time.

mariner
2nd April 2021, 08:55
Strange, I have several BD players and they react differently to the presence of lack of a final chapter mark right at the end of the playlist.
Sony and Pioneer would refuse to "skip to the end", the LGs would do it, even if the mark is missing.
Therefore I always add a dummy chapter mark 1 second before the end time.
Same experience here.

MrVideo
2nd April 2021, 23:21
Strange, I have several BD players and they react differently to the presence of lack of a final chapter mark right at the end of the playlist.
Sony and Pioneer would refuse to "skip to the end", the LGs would do it, even if the mark is missing.
Therefore I always add a dummy chapter mark 1 second before the end time.
When you add the chapter mark, make sure it lands on an IDR frame.

As for the issue of the missing end chapter mark, IMHO, it is an authoring error. Players are only expected to go to existing chapter marks. Why studios author discs without a chapter mark 1-2 secs from the end is beyond me.

rickyshamilton
5th April 2021, 16:43
Hi! A few years ago I used your tool (with BD3D2MK3D) to process a number of different BlueRay 3D movies and it worked perfectly every time.

I recently bought a 3D capable projector which has rekindled my interest in 3D and so have bought a pile of good movies on 3D BlueRay to convert. I convert to side by side HD so that I can store on my iTunes server and use with my gen 3 Apple TV.

Last week I downloaded the latest version of BD3D2MK3D which carries in it toolset an up-to-date version of tsMuxeR and tried to process two movies. Both failed for the same reason. tsMuxeR crashed.

I have since tried using both the previous versions of BD3D2MK3D and tsMuxeR crashes there too. I am using the same BlueRay player, the same decryption driver (which is working perfectly). The only differences in the machine since I last used your tool are the faster processor (same generation) and a higher spec. ASUS motherboard.

Screenshots of the error messages are here:

https://files.videohelp.com/u/299032/9647B01C-D6FC-49F0-99F3-6ECD9C66B6A7.jpeg

https://files.videohelp.com/u/299032/BC7936DD-E18A-439C-9D4F-5E8C3102DC0A.jpeg

Regards and many thanks,
Richard

rickyshamilton
5th April 2021, 18:06
Hi! A few years ago I used your tool to process a number of different BlueRay 3D movies and it worked perfectly every time.

I recently bought a 3D capable projector which has rekindled my interest in 3D and so have bought a pile of good movies on 3D BlueRay to convert. I convert to side by side HD so that I can store on my iTunes server and use with my gen 3 Apple TV.

Last week I downloaded the latest version of your tool and tried to process two movies. Both failed for the same reason. Tsmuxer crashed. I was trying to process Hubble 3D and Star Trek Beyond in 3D.

I have since tried using both the previous versions of BD3D2MK3D and tsmuxer crashes there too. I am using the same BlueRay player, the same decryption driver (which is working perfectly). The only differences in the machine since I last used your tool are the faster processor (same generation) and a higher spec. ASUS motherboard.

Screenshots of the error messages are here:

https://files.videohelp.com/u/299032/9647B01C-D6FC-49F0-99F3-6ECD9C66B6A7.jpeg

https://files.videohelp.com/u/299032/BC7936DD-E18A-439C-9D4F-5E8C3102DC0A.jpeg

Regards and many thanks,
Richard

MrVideo
6th April 2021, 01:19
I convert to side by side HD so that I can store on my iTunes server and use with my gen 3 Apple TV.
You do understand that by converting to SBS 3D that you are cutting the horizontal resolution in half.

r0lZ
6th April 2021, 08:29
You do understand that by converting to SBS 3D that you are cutting the horizontal resolution in half.
I suppose that "side by side HD" means Full-SBS. Anyway, it's not the problem. tsMuxeR crashes when it demuxes the BD files, and it should not. Perhaps it's a problem with the decrypter process (before the demux), or something strange with the BD.

rickyshamilton
6th April 2021, 11:37
Thank you for the reply. Yes, I do absolutely understand that. In fact I spent some time testing the results side by side (pardon the pun) and concluded that on my display equipment I could not tell the difference.

Because you are carrying stereoscopic information, although you numerically cut the horizontal resolution in half, you do not cut the “information” in half. The brain also does a very good job of filling in what it expects to see. My conclusion was that the result was shockingly good and a negligible trade off for the convenience of storing the movie on a media server and playing through standard HD devices.

That is a little off topic however since the post was intended to report a defect in tsMuxeR that did not used to exist.

Kind regards and many thanks,
Richard

Ghitulescu
8th April 2021, 09:16
When you add the chapter mark, make sure it lands on an IDR frame.
Maybe my players are somewhat "relaxed" for I only put a simple number (like 1:30:00.000) as I have to insert it by hand :)
Since it's absurd to assume all discs have an IDR frame at that TC, I assume the player goes to the next available frame after that TC.
Never had any issue in no player I tested, and I have tested lots of them.
As for the issue of the missing end chapter mark, IMHO, it is an authoring error. Players are only expected to go to existing chapter marks. Why studios author discs without a chapter mark 1-2 secs from the end is beyond me.

That's much simpler :)
One must see the credits, like the advertisments and companies' logos at the beginning are sometimes/mosttimes unskippable (PUOs).
While the caterer receives far less money than Robert de Niro, this is the only satisfaction he might have. So the dressmakers, assistants, musicians etc.
The cleverer version is to continue the movie after the first batch of credits.
Or alternatively to put gags and other funny scenes.

MrVideo
8th April 2021, 12:43
I assume the player goes to the next available frame after that TC.
It is supposed to go to the next IDR frame.
One must see the credits, like the advertisments and companies' logos at the beginning are sometimes/most times unskippable (PUOs).
You get around that by hitting the menu key (for not being able to skip past the credits).

MrVideo
8th April 2021, 12:45
Because you are carrying stereoscopic information, although you numerically cut the horizontal resolution in half, you do not cut the “information” in half.
Actually you do. Half of the horizontal pixels are thrown away. Those pixels are information.

rickyshamilton
9th April 2021, 15:37
Thank you for the reply. Without wishing to be baited into a discussion of semantics, I feel I should clarify my intended meaning!

The discarded horizontal pixels are data. Half of the data will indeed be discarded. The data carry information and as I understand it, the basis of data compression is that the relationship between data and the information conveyed by that data is not necessarily 1:1.

The entropy of a message per bit multiplied by the length of that message is a measure of how much total information the message contains.

My point is that from my own observations and experiments, the result of a half-horizontal stereoscopic SBS arrangement is subjectively superior to that of a half horizontal 2D movie. My hypothesis is that the same amount of data (a single HD frame) contains more “information” when it carries stereoscopic elements as well.

That is all I was trying to say.

R.

MrVideo
9th April 2021, 19:53
My point is that from my own observations and experiments, the result of a half-horizontal stereoscopic SBS arrangement is subjectively superior to that of a half horizontal 2D movie. My hypothesis is that the same amount of data (a single HD frame) contains more “information” when it carries stereoscopic elements as well.
Ah, this is where your hypothesis is flawed. There aren't stereoscopic elements in a SBS 3D video. What you have is two images that are half the number of pixels for each eye. The same goes for a normal frame packed 3D movie on a Blu-ray disc. There isn't any extra info in the video. You have the full resolution for the left eye and the full resolution for the right eye. Total pixels for the left and right eye for SBS 3D is 960. For frame packed it is 1920. There is nothing that is added to 3D video.

What would be nice is if there was a spec for 4K 3D video. Then the loss of half the pixels wouldn't be as bad for a SBS 3D video, as that would have the resolution of a normal 1080p 3D video.

Because of the resolution loss for SBS, or OU, 3D video, I'll only ever deal with 3D on Blu-ray in order to get the full 1080p resolution. But, that is me. YMMV.

rickyshamilton
9th April 2021, 23:06
We’re still at crossed purposes here. I clearly have not explained myself well.

A full HD BlueRay 3D movie is encoded as a compressed left eye image with a differences file for the right eye. The compression is “lossy” but set to a high subjective quality. When unpacked this gives two full HD frames. The stereoscopic information I refer to is implicit within the pair of images by virtue of their differences from one another. This element of the “information” is not present in a 2D movie, but is decodable by the human brain.

Loss of 50% of the pixel data does not necessarily equate to a change in information entropy of 50%. The notion that cutting out 50% of the horizontal pixels translates simply into a 50% change in information entropy is simply not a correct assumption. Yes, the amount of “data” has halved, but the “information” reconstructible may not have done.

I absolutely agree that using the original BlueRay stereoscopic images at 2 x HD will be better. Of course it will - just as using lossless compression instead of lossy compression would make it better. But in a similar way as the result of a BlueRay 3D playback is, to my eye, impossible to distinguish from a losslessly compressed movie, so the 1/2 horizontal SBS is close enough in subjective quality to my eye as to be almost impossible to identify in a comparison on my equipment. It is about trading off the small difference for the convenience.

Uncompressed stereoscopic movies would be 311MB/s at 24-bit colour. A 3D BlueRay might be encoded in 35Gb of data which would amount to 4.9MB/s. The two would be very hard to tell apart subjectively yet there is 63.5 times less “data” in the BlueRay. That is what I mean by information, entropy and data being not equivalent.

MrVideo
9th April 2021, 23:23
I agree, that at smaller screen sizes, it will be tough to notice a difference. But, when starting with 100" home theater configurations, the loss of pixels should be noticeable. The 960 pixels being stretched to 1920 pixels will result in artifacts. I'm putting together a home theater setup that will have a screen a little over 100", so I want all the available pixels.

Bgalakazam
15th April 2021, 18:52
Is the last nightly from February? Or am I looking at the wrong place. Thanks.

a5180007
16th April 2021, 19:36
tsMuxeR crashes when it demuxes the BD files, and it should not. Perhaps it's a problem with the decrypter process (before the demux), or something strange with the BD.

Hi r0lZ, please give me references or links to crashing 3D muxes, I'll have a look.

r0lZ
17th April 2021, 08:49
I don't have that problem myself. My post was a reply to MrVideo to try to explain how to interpret this post:
Last week I downloaded the latest version of your tool and tried to process two movies. Both failed for the same reason. Tsmuxer crashed. I was trying to process Hubble 3D and Star Trek Beyond in 3D.
Perhaps rickyshamilton can provide a sample.
Anyway, thanks for your proposition.

von Suppé
17th April 2021, 10:56
You can try a workaround for the errors that tsMuxer sometimes throws with a 3D demux.
First, create a (3D) mkv from the bluray/ISO using MakeMKV. After, import that mkv in tsMuxer or BD3D2MK3D and try again.
This saved me a couple of times (also for 2D BTW).

zeropc
25th April 2021, 01:02
When I want to demux a video file I get the following error message

PGS fileNon standard fps value are not supported for PGS streams
SRT fileCan't find ttf file for font Arial

The font is installed on my system. If I change the font, I'll get the same error, but with the newly selected font missing info. Why should it matter what font is used on a demux?
IIRC it used to work to demux any file from a container like M2TS or MKV.
Any idea what I can do?

TSMuxer running on macOS Big Sur.

varekai
30th April 2021, 10:15
@justdan96 | a5180007 | BloodyRipper
Thanks for the update, much appreciated!
Couldn't do without this gem!

yannick92
30th April 2021, 11:57
Hello
small problem on the last version of TsMuxer: muxing stop with an error:

17751

I also noticed that TsMuxer finds a frame rate of 90000 on the file while MediaInfo tells me that it is indeed at 25000?

17752

what about it?
thank you very much, and see you very soon.

Sample link: https://uptobox.com/yb8grssa6p7i

Full link: https://uptobox.com/mj7mlqv09r6a?aff_id=4860501

Yannick

kpic
2nd May 2021, 18:55
Cannot seem to import HEVC file created by Premiere Pro (The original imports no problem). What I am doing is running the original through Premiere to lower its bitrate some for placement on BD-50 disc.

The latest Premiere is being used and I am matching the exporting from Premiere to the original version settings (H265, HDR etc.) and end up with a .mp4 compliant (according to mediainfo) file and it plays fine through MPC.

I don't think it is a file error as I made a much shorter clip using the same settings (about 1 minute) and Tsmuxer imported it fine - when I made a 4 minute clip using all the same settings (about 1.2gb in size) and try to import it in TSmuxer does nothing, I get no error message nothing.

I have tried to change its extension to no avail as well.


Using the latest nightly build from April 30

a5180007
7th May 2021, 23:07
Hello
small problem on the last version of TsMuxer: muxing stop with an error:

I also noticed that TsMuxer finds a frame rate of 90000 on the file while MediaInfo tells me that it is indeed at 25000?

@yannick92 The h264 stream vui is incorrectly stamped at 90 fps. Therefore the video and the audio get quickly desynchronized when muxed, which provokes the buffer overflow.

MediaInfo gets the 25 fps info from the mkv container.

Edit: the h264 should be repaired by simply changing fps to 25 and selecting "always rebuild SEI and VUI data".

MrVideo
10th May 2021, 02:19
Win7-64 4/30/21 nightly build

Tsmuxer doesn't like the following audio format in a M2TS file (mediainfo):
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3 MLP FBA 16-ch
Format/Info : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 3 min 58 s
Bit rate mode : Variable
Bit rate : 640 kb/s
Maximum bit rate : 5 895 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -778 ms
Stream size : 18.2 MiB (1%)
Service kind : Complete Main
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
Why?

What I wanted to do was remux the M2TS file without the DolbyVideo stream. I can't do that now because tsmuxer is not including the audio stream.

SeeMoreDigital
10th May 2021, 16:16
Tsmuxer doesn't like the following audio format in a M2TS file (mediainfo):

Why?

Are you sure the Dolby TrueHD audio stream also contains a Dolby Digital core. Which is a mandatory requirement of the Blu-ray disc specification...

MrVideo
11th May 2021, 13:25
The M2TS file originally came from a UHD Blu-ray disc. Even if it didn't it shouldn't throw away the file, as the output wasn't to a BD structure. Hell, the output wasn't even selected yet.

SeeMoreDigital
11th May 2021, 16:29
...Even if it didn't it shouldn't throw away the file, as the output wasn't to a BD structure...Hmmm...

Unless TSmuxer GUI has been updated in the last few weeks any Dolby TrueHD audio stream that has been de-muxed from an .mkv file wont be accepted, regardless of whether you're creating a Blu-ray disc compliant encode!

yannick92
11th May 2021, 17:53
@yannick92 The h264 stream vui is incorrectly stamped at 90 fps. Therefore the video and the audio get quickly desynchronized when muxed, which provokes the buffer overflow.

MediaInfo gets the 25 fps info from the mkv container.

Edit: the h264 should be repaired by simply changing fps to 25 and selecting "always rebuild SEI and VUI data".

Ok greats, many tanks, I will test this as soon as possible!

Yannick

MrVideo
11th May 2021, 21:11
Unless TSmuxer GUI has been updated in the last few weeks any Dolby TrueHD audio stream that has been de-muxed from an .mkv file wont be accepted, regardless of whether you're creating a Blu-ray disc compliant encode!
The source was not MKV, it was the original UHD M2TS.

SeeMoreDigital
11th May 2021, 21:34
The source was not MKV, it was the original UHD M2TS.So you said...

MrVideo
11th May 2021, 22:05
So you said...
Then I am confused as to why you brought up the MKV issue. I know that MKV and Dolby don't get along.

SeeMoreDigital
11th May 2021, 22:15
Perhaps some of the streams in your 4K UHD back-up have become corrupted.

I guess you could try backing up your 4K UHD disc again...

MrVideo
11th May 2021, 23:01
Perhaps some of the streams in your 4K UHD back-up have become corrupted.

This is one of those movies where the movie is split among 10 streams. I checked all 10 streams with tsmuxer. What is strange is that one of the streams was accepted by tsmuxer. Mediainfo shows the same info for the one that works and those that don't.

wackopath
12th May 2021, 09:04
Win7-64 4/30/21 nightly build

Tsmuxer doesn't like the following audio format in a M2TS file (mediainfo):
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3 MLP FBA 16-ch
Format/Info : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 3 min 58 s
Bit rate mode : Variable
Bit rate : 640 kb/s
Maximum bit rate : 5 895 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -778 ms
Stream size : 18.2 MiB (1%)
Service kind : Complete Main
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
Why?

What I wanted to do was remux the M2TS file without the DolbyVideo stream. I can't do that now because tsmuxer is not including the audio stream.


Hi, if you got the audio demuxed (.truehd track) you can use eac3to to add the Dolby Digital core track to it if for some reason it's not present and
then remux...
you can try this command:

eac3to C:\AUDIO\audio.truehd C:\AUDIO\audio.thd+ac3 -no2ndpass

modify the command to your specifications, path and audio file, run this command in the same folder as eac3to.

good luck!

vanden
13th May 2021, 15:25
PGS subtitle problem in 2D (iso 3D AVC MVC).

Reading the .mpls file we see that there is a problem with the MVC track, it is missing "3d-pg-planes: 32", the subtitles not the "plane #" option ...
https://www.hebergeur-image.com/upload/78.246.132.102-60a4fbb02cf51.png
Same in the .ssif
https://www.hebergeur-image.com/upload/78.246.132.102-60a4fbb02fc59.png
A normal 3D blu-ray
https://www.hebergeur-image.com/upload/78.246.132.102-60a4fbb0327e5.png

Is there a solution ?

yannick92
14th May 2021, 12:42
Hello,

Quick question: is it normal to have so many overlapped frames during a demuxing?
(full iso)
On the other hand, if I made an mkv with MkvToolnix before and I demux afterwards with Tsmuxer, no "overlapped frame" ...

Is it important ?

Thanks in advance to all

Yannick


And now, after making a MKV, no "overlapped frame":

worov
14th May 2021, 13:37
Hi, everyone.

I'm glad that tsmuxer has updates. It's a great program. Thank for this.

Is there any project of a Linux amd64 build ? That would be great.

Thank you again.

a5180007
15th May 2021, 00:08
This is one of those movies where the movie is split among 10 streams. I checked all 10 streams with tsmuxer. What is strange is that one of the streams was accepted by tsmuxer. Mediainfo shows the same info for the one that works and those that don't.
@MrVideo Please give a link to download one of the streams.

PGS subtitle problem in 2D (iso 3D AVC MVC).

Reading the .mpls file we see that there is a problem with the MVC track, it is missing "3d-pg-planes: 32", the subtitles not the "plane #" option ...

@vanden same, please give a link.

a5180007
15th May 2021, 00:14
Hello,

Quick question: is it normal to have so many overlapped frames during a demuxing?
(full iso)
On the other hand, if I made an mkv with MkvToolnix before and I demux afterwards with Tsmuxer, no "overlapped frame" ...


@yannick92 if your blu-ray movie is split in several m2ts, it is normal to have overlapped frames between each m2ts.

Mkvtoolnix does the same as tsMuxer, it muxes the various m2ts into one single m2ts. When you import the mkv into tsMuxer there is only one video stream so no overlapping.

Glarioo
16th May 2021, 08:36
Is this option also available for non-cropped video?
Or available in an future update?

vanden
16th May 2021, 11:09
@vanden same, please give a link.

Thanks, splitter in .m2ts but it is sufficient to test : http://vandenk.free.fr/00000.split.1.m2ts

https://www.hebergeur-image.com/upload/78.246.132.102-60a4fbb035363.png

yannick92
16th May 2021, 13:25
@yannick92 if your blu-ray movie is split in several m2ts, it is normal to have overlapped frames between each m2ts.

Mkvtoolnix does the same as tsMuxer, it muxes the various m2ts into one single m2ts. When you import the mkv into tsMuxer there is only one video stream so no overlapping.

Oh okay, thank you again for these explanations, always precise and fast from you.
I will go to bed less stupid tonight, thank you for your kindness ...

Yannick

a5180007
16th May 2021, 22:17
Thanks, splitter in .m2ts but it is sufficient to test : http://vandenk.free.fr/00000.split.1.m2ts

https://forum.doom9.org/attachment.php?attachmentid=17769&stc=1&d=1621157398
@vanden the link is invalid, your freebox is not reachable.

SeeMoreDigital
17th May 2021, 08:33
Thanks, splitter in .m2ts but it is sufficient to test : http://vandenk.free.fr/00000.split.1.m2ts

https://forum.doom9.org/attachment.php?attachmentid=17769&stc=1&d=1621157398@vanden the link is invalid, your freebox is not reachable.The link has just worked okay for me...

vanden
17th May 2021, 10:01
@vanden the link is invalid, your freebox is not reachable.

you do not arrive on my site !?
http://vandenk.free.fr/
http://vandenk.free.fr/00000.split.1.m2ts

Other link OneDrive (https://1drv.ms/v/s!AjZ2GrU1FiOpzgTSQ5d4fuq9LjPS?e=ZEfiEk) (+ download / + télécharger)

a5180007
18th May 2021, 23:15
Thanks @vanden, I have the file.
The number of offset sequences is extracted from the metadata info stored in the clpi and the m2ts.
Each offset sequence includes the direction flag and the offset value of the subtitle.
If there is no metadata in the clps or the number of offset sequences in the metadata is zero, then you cannot select any other value than "zero" in tsMuxer as there is no offset data available.

vanden
19th May 2021, 13:09
There is no way to create the metadata ?

a5180007
21st May 2021, 21:28
There is no way to create the metadata ?

@vanden definitely not with tsMuxer. Maybe with a professional authoring software.

SubJunk
3rd June 2021, 10:15
It's really great to get this open sourced. We could really use a static build for macOS though, because it currently fails to execute due to missing dependencies.
I'd be happy to test any builds

filler56789
3rd June 2021, 14:39
It's really great to get this open sourced. We could really use a static build for macOS though, because it currently fails to execute due to missing dependencies.
I'd be happy to test any builds

DISCLAIMER: I know nothing about the Mac operating system, so I can be wrong...

I *suppose* that a static build of tsmuxer could be easily made if both freetype and and zlib were compiled before tsmuxer itself and then included in it.
However justdan96 invented some lame excuse for not distributing the source codes of zlib and freetype together with tsmuxer's source code.
NOTICE: my "recipe" does work with MSYS2 on Windows, so I suppose it should also work with the default "compiling environment" (so to speak) of any Unixoid operating system.

a5180007
20th June 2021, 09:25
Hello @justdan96, when can we expect release 2.7.0 ?

thepotatoboy
28th June 2021, 07:40
Hello @justdan96, when can we expect release 2.7.0 ?

Dear,
a5180007

Hey mate. I'm trying to understand the basics of dolby vision and the mechanisms of how these programs work. I have no background in coding,tech or computer science so forgive me for my lack of knowledge.

I have an Oppo and I was playing around with a movie called nobody. I was using the tsmuxer nightly mac build latest one. I put enable HDMV descriptors( not sure if this is correct to do or not) I made the original blueray folder into the following: these movies were dvhe.07.06

.ts single track dual layer: got dolby vision + atmos
.ts dual track dual layer: got dolby vision + atmos
.m2ts single track dual layer: got dolby vision + atmos
.m2ts dual trakc dual layer: HDR + atmos

I thought, great this is working well. I tried John Wick 3
.ts single track dual layer: freeze with black screen but got atmos logo coming up
.m2ts single track dual layer: freeze with same stuff again

when I pressed INFO on the remote whilst the movie was frozen, I had a look at any issues. At the bottom on HDMI output information, it was saying the movie was outputting SDR? it also was missing some channels on the audio bit I'm pretty sure. I'm happy to take a photo of it if you need. BTW I tried doing the whole movie again with HDMV descriptors disabled, issues still occurred.

( I haven't tried .m2ts dual layer dual track but I'm assuming that'll play in HDR and haven't tried dual track .ts yet)

Can you let me know what's going on, what tsmuxer build to use to solve these issues (happy to use windows too) and in basic terms what HDMV descriptors do?

thanks mate appreciate all your hard work!

a5180007
3rd July 2021, 13:34
I made the original blueray folder into the following: these movies were dvhe.07.06

I tried John Wick 3
.ts single track dual layer: freeze with black screen but got atmos logo coming up
.m2ts single track dual layer: freeze with same stuff again

( I haven't tried .m2ts dual layer dual track but I'm assuming that'll play in HDR and haven't tried dual track .ts yet)


Hi @thepotatoboy, from DV Blu-rays, tsMuxer outputs only dual track ts/m2ts. What process do you apply to produce single tracks ?

thepotatoboy
7th July 2021, 01:40
Hi @thepotatoboy, from DV Blu-rays, tsMuxer outputs only dual track ts/m2ts. What process do you apply to produce single tracks ?

Hey! thankyou for trying to solve the problem.

I had the original BDMV folder, I made it into a single layer dual track using makemkv. I then extracted the .hevc file and I'm putting it back into tsmuxer.

The movie "nobody" is working in .ts and .m2ts singe layer dual track. But "John Wick 3 parabellum" isn't working. Any ideas why?

thanks

imhh11
8th July 2021, 23:16
Hey! thankyou for trying to solve the problem.

I had the original BDMV folder, I made it into a single layer dual track using makemkv. I then extracted the .hevc file and I'm putting it back into tsmuxer.

The movie "nobody" is working in .ts and .m2ts singe layer dual track. But "John Wick 3 parabellum" isn't working. Any ideas why?

thanks
yes, same behavior on my Sony x700. Some single-track(dual layer) profile 7 remux just won't play but any dual-track profile 7 remux (ts / m2ts / mp4) will play correctly (but then you have the green screen bug when you stop playback which the single-track dual-layer files don't suffer).

justdan96
1st September 2021, 17:11
Hello @justdan96, when can we expect release 2.7.0 ?

Sorry things have slowed down quite a bit since xavery stepped back from the project, I might just pencil in a date and call whatever code we have then the 2.7.0 release.

a5180007
5th September 2021, 17:34
I had the original BDMV folder, I made it into a single layer dual track using makemkv. I then extracted the .hevc file and I'm putting it back into tsmuxer.

The movie "nobody" is working in .ts and .m2ts singe layer dual track. But "John Wick 3 parabellum" isn't working. Any ideas why?

You should use yusesope tool to mux to single layer dual track. MakeMKV has the annoying habit of not adding -or removing- the Access Unit Delimiter NALs.

a5180007
5th September 2021, 18:21
VVC codec has been included in the latest version, as alpha release for trial purposes.
Please try muxing/demuxing some VVC files e.g. produced by Fraunhofer VVEnc or other encoders, and report any bug / provide samples.
No need to try non-compliant samples produced before the issuance of the ITU-T-Rec H.266 dd. Aug-20.

imhh11
6th September 2021, 18:39
You should use yusesope tool to mux to single layer dual track. MakeMKV has the annoying habit of not adding -or removing- the Access Unit Delimiter NALs.

if I demux the MakeMKV DV file and rebuild a dual-track dual-layer TS file with tsMuxer, does it fix the Access Unit Delimiter ?

or do I need to start over from the original disc backup?

a5180007
6th September 2021, 18:50
if I demux the MakeMKV DV file and rebuild a dual-track dual-layer TS file with tsMuxer, does it fix the Access Unit Delimiter ?

tsMuxer does not add the missing AUD for hevc yet. It is planned for after v2.7 release.
The best would still be for makemkv or mkvtoolnix to stop removing the AUD nals...

oniiz86
14th September 2021, 06:34
I was wondering if anyone could confirm if they can mux more than 8 PGS subtitles within the m2ts container? I have this file with 13 PGS subtitles & only the first 8 are present when played via my BDP-105D, my UDP-203/205 players have no such issue & all 13 are present.

Emulgator
14th September 2021, 07:59
For testing you may upload your mux to wetransfer (free below 2GB)

oniiz86
14th September 2021, 16:04
For testing you may upload your mux to wetransfer (free below 2GB)

I've compressed it quite a bit, it's just over 2GB, it should be accessible from here https://1drv.ms/u/s!AmgVmKyn3jL-gQlJJjQJsLcQU9l9?e=R4FoHL

I did try another file & it seems it is a bug with the M2TS container on the earlier OPPOs, strange that it was overlooked by the engineers.

Emulgator
15th September 2021, 23:44
OneDrive wants me to open an account, not willing to do that for that one shot.
Reexport a shorter project just below 2GB and wetransfer ?
What firmware on the BDP-105D ?
Lots of multi-language Blu-rays would have been affected, hard to imagine...

oniiz86
16th September 2021, 09:57
OneDrive wants me to open an account, not willing to do that for that one shot.
Reexport a shorter project just below 2GB and wetransfer ?
What firmware on the BDP-105D ?
Lots of multi-language Blu-rays would have been affected, hard to imagine...

I have the mkv file just under 2GB, perhaps you could quickly mux it to m2ts to test, here is the link https://we.tl/t-dIqkY0VBCo

The m2ts came just over 2GB & could not add it to wetransfer, the file is heavily compressed as it is but if a member has an OPPO BDP-103/105 they should be able to see the bug of only 8 subtitles when the file actually has 13, I'm on the final January 2017 83-1226 official firmware.

I understand a lot of Euro Blurays have multiple subs but I guess not many would come across this as they would prefer the mkv container due to chapter support & less overhead in the overall file size but this particular file had an issue with the non-sdh english subtitle that when muxed to m2ts was simply no longer a problem.

SeeMoreDigital
16th September 2021, 12:13
It's been a 'known issue' for some time that the OPPO BDP-10x players are unable to support more than 8no PGS subtitles within the .m2ts container... So trying to make it happen would be a waste of time!

Indeed, why anyone would even want to create a back-up of a Blu-ray disc movie for their own use with more than eight subtitle languages is beyond me...

oniiz86
16th September 2021, 14:14
Oh I didn't know that, I didn't see any reports of this known issue over at the avs forums or uk av forums, I thought the BDP-10X players were fully BDAV compliant & would have no such issues with the .m2ts container, it's funny PGS subtitles were added to the mkv container in a later firmware without this issue, maybe a carry over bug from the BDP-9X players, so it is merely a bug that was never reported to OPPO? Another quirk of the MT8580 SoC chipset I suppose as the UDP-20X players have no problems & even support external IDX/SUB VobSub subtitles unlike the BDP-10X players.

oniiz86
16th September 2021, 14:54
Is there any particular reason why during the muxing process to the .m2ts container, the PGS subtitle streams are out of order?

https://i.imgur.com/M7yIPeZ.png?1

raudi
18th September 2021, 07:59
Is there any particular reason why during the muxing process to the .m2ts container, the PGS subtitle streams are out of order?

I noticed the last days the same with one movie, i think the streams they came later in the log are the forced subtitles and they start at a later place in the movie.

I had a movie which has the forced subtitle at one place in the middle of the movie and the line for that subtitle appears at around 50% in the log.

oniiz86
18th September 2021, 08:15
I noticed the last days the same with one movie, i think the streams they came later in the log are the forced subtitles and they start at a later place in the movie.

I had a movie which has the forced subtitle at one place in the middle of the movie and the line for that subtitle appears at around 50% in the log.

In this particular instance there are no forced subtitles, just 13 foreign subtitles, none are flagged as default, I'm assuming tsMuxeR has always worked this way?

von Suppé
22nd September 2021, 13:30
Is there any particular reason why during the muxing process to the .m2ts container, the PGS subtitle streams are out of order?
Could this have something to do with an old bug from the past that would have been fixed?

IIRC, r0lZ, the creator of BD3D2MK3D found out quite some time ago. According to official BD specs, the order of subtitles in the playlist is not necessarily the same as the order of their PIDs. Where tsMuxer would assume these orders always to be the same, consequently, possibly not showing the subtitles in the correct order in the source-list. Which raised issues for correct 3D-plane assignment.

I would like if somebody can tell whether this bug in tsMuxer has been solved anyways.

r0lZ
23rd September 2021, 12:05
Yes, the subtitle order bug has been fixed. Anyway, it was present only when it displayed or demuxed the subtitle streams (and, for a 3DBD, their 3D-planes) of a commercial BD with the order of the PIDs not matching the order of the streams in the MPLS. AFAIK, when tsMuxeR muxes a BD, it creates always a MPLS with the streams in the order of their PIDs. But I don't use tsMuxeR to remux, only to demux. Therefore, I may be wrong.

r0lZ
23rd September 2021, 12:11
https://i.imgur.com/M7yIPeZ.png?1
According to the screenshot, the problem (if any) is that it shows the streams it demuxes (and possibly also muxes) when it encounters them. Since the subtitle streams can start at different times, the order of the messages is not necessarily identical to the order of the streams in the source or target file.

oniiz86, have you verified the order of the streams with another program, such as MediaInfo ? Is it correct ?

von Suppé
23rd September 2021, 16:59
Yes, the subtitle order bug has been fixed. Anyway, it was present only when it displayed or demuxed the subtitle streams (and, for a 3DBD, their 3D-planes) of a commercial BD with the order of the PIDs not matching the order of the streams in the MPLS. AFAIK, when tsMuxeR muxes a BD, it creates always a MPLS with the streams in the order of their PIDs. But I don't use tsMuxeR to remux, only to demux. Therefore, I may be wrong.
Clear. Good to know. Thanks, r0lZ

oniiz86
23rd September 2021, 19:08
According to the screenshot, the problem (if any) is that it shows the streams it demuxes (and possibly also muxes) when it encounters them. Since the subtitle streams can start at different times, the order of the messages is not necessarily identical to the order of the streams in the source or target file.

oniiz86, have you verified the order of the streams with another program, such as MediaInfo ? Is it correct ?

Yes, MediaInfo has them in the correct order, it could be what you are claiming regarding the slightly shorter subtitle stream duration as 8 of them run 2 minutes shorter at 2h 18mins compared to the other 5 at the same duration as the feature at 2hrs 20mins, still it is strange when the file is added to tsMuxeR the tracks are in the correct order as MediaInfo reports, I know it probably doesn't affect anything when muxed to an .m2ts/.ts file but was curious all the same.

xledentaldj
4th October 2021, 12:54
Still waiting for a proper fix and source code/compile build
for MacOS 11.6 arm. I cant compile this correctly
on my Mac Mini M1 2020 along with the dylib dependency
errors I get on any nightly build. And no, that special
build you made still has that same dependency
issue on my Mac. I have some ability to compile,
so, if you want me to help, I can. All my home brew
is up to date, I have the dylibs installed, X-Code
is up to date and Docker installed. justdan96, lets get this fixed for
MacOS Please?

oniiz86
8th October 2021, 10:08
@justdan96 I was wondering why some muxes successfully complete at 99.8% it seems to be random too, the majority do reach 100%, just found it strange why some stop at 99.8%?

Nico8583
18th October 2021, 16:18
Hi,
Thanks for this new version ;)
Do you think you could add an option to demux (or remux) AC3/DTS core and keep TrueHD/DTS-HD ? Not only the current option to keep DTS-HD/TrueHD or DTS/AC3 core.
Thanks !

alestew
4th November 2021, 10:02
Hello everyone ... let's see if it happens to someone else.
I have the Oppo clone m9201 model and everything is great, except with some m2ts files in dolby vision.
The problem is that it only happens to me with the fulluhd with Dolby Vision that I pass to m2ts without the audios and subtitles that do not interest me and respecting the DV.
I play that movie with Dolby Vision in that m2ts format and great, I stop it and switch to the next movie, the format doesn't matter and I get this image ...

https://i.ibb.co/Lh6trvK/20211013-145500.jpg

the movie is heard in the background but it looks like this. It is only solved by restarting the player.
I have noticed that my m2ts have the 4k base and the separate Dv, with which they are joined in 1 it does not fail.

Any ideas?

von Suppé
4th November 2021, 12:17
For narrowing things down, first thing I would do is trying to determine whether it's a problem with tsMuxer or other, like firmware.
Using an untouched copy of the original m2ts file and see if the issue remains, might help.

a5180007
5th November 2021, 14:05
the movie is heard in the background but it looks like this. It is only solved by restarting the player.
I have noticed that my m2ts have the 4k base and the separate Dv, with which they are joined in 1 it does not fail.


Yes it must be the infamous "green screen bug" reported e.g. here (https://forum.doom9.org/showpost.php?p=1947102&postcount=1082). I couldn't solve and cannot carry out trials and errors as I don't have any Bluray player myself.

a5180007
5th November 2021, 14:06
Good news, updated MPEG-TS standard for VVC has been made public yesterday https://www.itu.int/rec/T-REC-H.222.0-202106-I/en

FranceBB
5th November 2021, 22:06
Good news, updated MPEG-TS standard for VVC has been made public yesterday https://www.itu.int/rec/T-REC-H.222.0-202106-I/en

Nice one. So we'll soon have muxers and decoding in software players :D

alestew
9th November 2021, 10:24
Yes it must be the infamous "green screen bug" reported e.g. here (https://forum.doom9.org/showpost.php?p=1947102&postcount=1082). I couldn't solve and cannot carry out trials and errors as I don't have any Bluray player myself.

But the film works perfectly, only when I put another one (m2ts / mkv) I get the layer in front ... Well my solution today is to create an Iso instead of m2ts and zero problems

mattl0
11th November 2021, 02:23
Two possible enhancements of tsMuxer for versions after 2.7.0:

1. TrueHD
Mpeg-ts is compatible with interleaved ac3/TrueHD frames. One solution to mux pure TrueHD would be to interleave empty 32kbit ac3 frames. Indeed not as good as transcoding an ac3+thd with eac3to, as the playing of the ac3 would be blank. Is it of any interest ?

2. Dolby Vision
Profile 7 dual tracks is supported by Blu-ray player SoCs only. For non-Blu-ray modes, tsMuxer could transmux those to profile 6 single track dual layer, deprecated but a priori compatible with most STB/TV SoCs. Is it of any interest ?


is profile 6 still happening on tsmuxer? I want to test some p6 to test on ugoos my tv and a bluray player

imhh11
11th November 2021, 21:48
+1
I would really really like those 2 enhancements to be implemented.

xledentaldj
11th November 2021, 22:48
Hello folks, I've compiled a MacOS 11.6.1 Arm/M1 build of tsmuxer 2.6.16-dev for anyone on MacOS to try:

https://mega.nz/file/JAI3DSrY#qV8ofwajoJcQzOEIzw1YDvRlSZaj5Pan5WepCVpMq8A

It still has issues making compliant 4K UHD BD ISO for my Oppo-203 (RU JB). It did successfully take my 4K BD trailer that was in an mkv container remuxed back into a BD ISO and was playable on my Oppo-203.
The tsmuxerGUI has some errors while it was compiling. Something about offsets width and qt. But it runs.

SeeMoreDigital
16th November 2021, 18:12
Out of interest....

Where are people able to download the newest 'GitHub builds' of TSmuxer GUI?

von Suppé
16th November 2021, 19:52
Here you go: https://github.com/justdan96/tsMuxer/releases

SeeMoreDigital
16th November 2021, 21:24
Many thanks :)

MrVideo
5th December 2021, 21:38
I tried creating an ISO that contained a 4K HDR video with DD+ and DD, but my Sony X800M2 UHD player refuses to play it. It does the loading, but doesn't play. Instead it just reports that it is a UHD disc. That was using an April nightly. So, I downloaded the 12/05 nightly and the same thing happens. The only difference during the ISO creation is that the file only has a DD+ audio stream. tsMuxer complains about a pure DD+ not being Blu-ray compliant. No kidding. It is a 4K video, so a UHD compliant disc does allow for DD+.

SeeMoreDigital
5th December 2021, 23:10
Was your .iso file 'unpacked' before being burned onto a UHD disc?

Just-so you know... Technically, DD+ encoded audio without a regular DD core is not Blu-ray spec compliant.

MrVideo
6th December 2021, 10:48
Was your .iso file 'unpacked' before being burned onto a UHD disc?
Burned onto a BD-RE disc.
Just-so you know... Technically, DD+ encoded audio without a regular DD core is not Blu-ray spec compliant.
Correct. But it is allowed for UHD. I'm trying to create UHD spec discs, but burned onto BD media, specifically 25GB media. My Sony player will play what BDRB creates, or if I place M2TS files on a BD-ROM.

As for BDRB, it recodes the E-AC3 to AC3 and I just replace that stream with the original E-AC3 stream. Due to a reason I do not know, doing that doesn't exactly work out. More in the BDRB thread.

SeeMoreDigital
7th December 2021, 19:52
Just-so you know... Technically, DD+ encoded audio without a regular DD core is not Blu-ray spec compliant.
Correct. But it is allowed for UHD. No it's not!

MrVideo
8th December 2021, 06:53
As noted in the BDRB thread, while it may not be officially allowed, Sony does play E-AC3 audio tracks and they are a Blu-ray consortium member.

SeeMoreDigital
8th December 2021, 10:05
Typical Sony... Not following the official specs. Not even the ones they created :eek:

MrVideo
8th December 2021, 18:08
I think I discovered why the ISO file I created did not want to play. While doing a test whereby I created a folder instead, I discovered that there was no playlist. tsMuxer complained about the E-AC3 file and said it was aborting. But it created all the other files. No playlist, no play.

MrVideo
11th December 2021, 16:29
Just how does tsMuxer support UHD? I didn't find, or missed it, an option to tell tsMuxer to make UHD compatible folder/ISO when muxing streams.

gonca
11th December 2021, 18:05
I might be wrong but
"Force BD-ROM V3 format" in the Blu-ray tab should be it.
Seems to be automatic

MrVideo
12th December 2021, 03:56
Thanks, that indeed appears to be it and automatic with HEVC video file inclusion.

SquallMX
12th December 2021, 15:42
I think I discovered why the ISO file I created did not want to play. While doing a test whereby I created a folder instead, I discovered that there was no playlist. tsMuxer complained about the E-AC3 file and said it was aborting. But it created all the other files. No playlist, no play.

Have you tried this?

1.- Creating an output Folder using a dummy Dolby Digital track.
2.- Creating an output Folder using a proper Dolby Digital Plus track.
3.- Copy the mpls from the classic output to the Plus Output
4.- Use BD EDIT to edit the mpls audio flags from DD to DD+ (You will need a newer BD EDit version).

MrVideo
13th December 2021, 07:19
I have not. Thanks for the suggestion. I will play around with it.

Update: I've tried all kinds of things regarding replacing audio, play lists, etc. Nothing has worked. I've even managed to freeze my BD player.

CapricornX10X
28th December 2021, 21:43
Hello everyone .
Where can I get a suggestion to improve tsmuxer?
I would like to be able to create a full bluray iso but with all the folders and subfolders that come with a full bluray movie like : AUXDATA, BDJO, JAR, META
will have the option to activate the menu of the Blu-ray movie

SeeMoreDigital
28th December 2021, 22:08
TSmuxer GUI does exactly what it's designed to do!

If you require working 'menu's' perhaps you should give something like BD Rebuilder Beta (https://forum.doom9.org/showthread.php?t=143716) a try...

Cheers

CapricornX10X
28th December 2021, 22:22
TSmuxer GUI does exactly what it's designed to do!

If you require working 'menu's' perhaps you should give something like BD Rebuilder Beta (https://forum.doom9.org/showthread.php?t=143716) a try...

Cheers

But tsmuxer has the ability to create iso bluray.
So what's wrong with what I suggested?

SeeMoreDigital
28th December 2021, 23:02
But tsmuxer has the ability to create iso bluray.
So what's wrong with what I suggested?TSmuxer GUI can create 'Blu-ray ISO' files for burning with say, 'ImgBurn', they just don't have menu's.

Out of interest... Why do you need to create menu's. What do you want to access?

EDIT: With regard to posting images. You're much better off using an 'off site' image hosting service. And posting a link.

CapricornX10X
28th December 2021, 23:37
TSmuxer GUI can create 'Blu-ray ISO' files for burning with say, 'ImgBurn', they just don't have menu's.

Out of interest... Why do you need to create menu's. What do you want to access?

EDIT: With regard to posting images. You're much better off using an 'off site' image hosting service. And posting a link.

I just enjoy going in and watching a movie through the menu. It's just a personal preference, it does not have much meaning. So i would love if you have any idea about this matter how to create iso to 120gb file if all folders

MrVideo
29th December 2021, 06:05
I agree that tsMuxer's job is not to create Blu-rays with menus. As suggested, use BDRebuilder to do that.

CapricornX10X
29th December 2021, 10:49
I agree that tsMuxer's job is not to create Blu-rays with menus. As suggested, use BDRebuilder to do that.

I will not argue with you the experts here. I'm just saying that tsmuxer has the feature to create bluray iso. I'm not asking him to create Bluray menus for me. They already exist! Just create the iso with all the existing folders

SeeMoreDigital
29th December 2021, 11:34
Just create the iso with all the existing foldersIt already does: -

https://i.imgur.com/0fDeVTh.png

But not with an unnecessary menu at the start ;)

CapricornX10X
29th December 2021, 13:11
It already does: -

https://i.imgur.com/0fDeVTh.png

But not with an unnecessary menu at the start ;)

I know that, I tried lol. Is there another software similar to imgburn that can do this, known?

CapricornX10X
29th December 2021, 13:13
Lol According to your comments, you're probably telling yourself who this weirdo is who wants the menu of Blueray movies

SeeMoreDigital
29th December 2021, 15:08
I know that, I tried lol. Is there another software similar to imgburn that can do this, known?
So... Are you intending to create/burn disc's? If so... What device are you playing them with?

CapricornX10X
29th December 2021, 15:19
So... Are you intending to create/burn disc's? If so... What device are you playing them with?


i use only on pc with powerdvd 21 software

SeeMoreDigital
29th December 2021, 15:25
i use only on pc with powerdvd 21 software
Why do you need to even create .ISO (image) files. Can't 'PowerDVD 21' play regular media files, stored within the .mkv or .mp4 containers?

CapricornX10X
29th December 2021, 15:37
Why do you need to even create .ISO (image) files. Can't 'PowerDVD 21' play regular media files, stored within the .mkv or .mp4 containers?

This is just a personal preference. I like to create inside the iso file an image cover of the movie. Then as I run it via powerdvd it creates a virtual disc for me with the image cover of the movie.
I just love it that way bro

I have a huge collection of movies inside my nas. And I invest a lot and love that everything works as I want perfectly.
Sorry if this sounds too weird ...

SeeMoreDigital
29th December 2021, 16:35
In future...

It's always good practice to state in your first post the reasons why you need to do what you want to do. Along with information about your playback device... It can save a lot of time!

So unfortunately no, TSmuxer GUI does not offer all the tasks/functions you would like it to do.

If you want to create an .iso file with a menu that incudes a movie poster image (which is a short video). You will need to use a software application that offers basic menu authoring.

CapricornX10X
29th December 2021, 17:09
In future...

It's always good practice to state in your first post the reasons why you need to do what you want to do. Along with information about your playback device... It can save a lot of time!

So unfortunately no, TSmuxer GUI does not offer all the tasks/functions you would like it to do.

If you want to create an .iso file with a menu that incudes a movie poster image (which is a short video). You will need to use a software application that offers basic menu authoring.

I will accept your comment with great understanding, I will take it to my attention.
And now I understood.

so...

The best software on the market is Scenarist BD? And will of course do the job I guess, for a lot of money lol

SeeMoreDigital
29th December 2021, 17:28
The best software on the market is Scenarist BD? And will of course do the job I guess, for a lot of money lol
There may be others, I personally don't know...

There may even be a way of manually inserting a short video of the movies poster image into the 'STREAM' folder and creating a link to it. I really don't know.

In days gone by, if I wanted to see a movie poster image, I simply created a .jpeg file and named it exactly the same as the .iso movie ;)

Hellboy.
3rd January 2022, 21:38
When apply Delay to subtitles in tsMuxer some subtitles lines disappear.

The only way i find was using BDSup2Sub++ v1.0.3 to apply the delay
https://github.com/amichaeltm/BDSup2SubPlusPlus

And then add the subtitles with tsMuxer.

imhh11
11th January 2022, 20:41
looks like something changed with Dolby vision in the latest tsmuxer version (Nightly build from 2022-01-10-02-10-24)
Some of my profile 8 single-layer files now show up as profile 7 dual-layer.

sample to reproduce the bug: https://www.filemail.com/d/pzfgysqpkebckkg


old tsmuxer:
Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : 36


new tsmuxer:

Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.07.0B, EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : 36

chompy
18th January 2022, 09:42
Hello,

Does tsMuxer have some kind of buffer checking while creating Blu-ray ISO/folder? I tested changing a DTS-HD audio track for an Atmos audio track in a project that crashes in Scenarist BD due to buffer underflow, but tsMuxer ends the job without any warning.

Thanks

a5180007
19th January 2022, 22:06
Does tsMuxer have some kind of buffer checking while creating Blu-ray ISO/folder?Thanks

No, tsMuxer does not have any buffer checking.

a5180007
19th January 2022, 22:10
Hi, please download this fork of tsMuxer to test the addition of pure MLP/TrueHD Codec (needs a github account):

Win64 (https://github.com/jcdr428/tsMuxer/suites/4993766373/artifacts/146219352)
Win32 (https://github.com/jcdr428/tsMuxer/suites/4993766384/artifacts/146218936)
Linux (https://github.com/jcdr428/tsMuxer/suites/4993766372/artifacts/146218594)
Mac (https://github.com/jcdr428/tsMuxer/suites/4993766375/artifacts/146218716)

Use it with the usual tsMuxerGUI.
You can report issues here, I will not push until confident there is no side effect.

SeeMoreDigital
19th January 2022, 22:15
Hi, please download this fork of tsMuxer to test the addition of MLP/TrueHD Codec Have I missed a meeting... What's it supposed to do?

gonca
19th January 2022, 22:49
pure MLP/TrueHD Codec
I believe he means thd audio with no core in BD structure

gonca
19th January 2022, 23:18
Hi, please download this fork of tsMuxer to test the addition of pure MLP/TrueHD Codec (needs a github account):

Win64 (https://github.com/jcdr428/tsMuxer/suites/4993766373/artifacts/146219352)
Win32 (https://github.com/jcdr428/tsMuxer/suites/4993766384/artifacts/146218936)
Linux (https://github.com/jcdr428/tsMuxer/suites/4993766372/artifacts/146218594)
Mac (https://github.com/jcdr428/tsMuxer/suites/4993766375/artifacts/146218716)

Use it with the usual tsMuxerGUI.
You can report issues here, I will not push until confident there is no side effect.

Did a quick test
tsMuxerGUI warned about a non standard BD codec but muxed it fine.
Plays back fine if the m2ts is played, however, is I tried to play back the BD structure no sound came thru.
Used BDEdit to check the playlist and none of the entries showed up (Dolby lossless, 48khz, multi-channel,etc)
I added these values and the sound works fine when played back as a BD in a software player.

Will this work with EAC3 as well?

a5180007
19th January 2022, 23:39
Used BDEdit to check the playlist and none of the entries showed up (Dolby lossless, 48khz, multi-channel,etc)
I added these values and the sound works fine when played back as a BD in a software player.
Thanks, useful. So I'll put the same values as ac3+thd in the mpls/clpi.

Will this work with EAC3 as well?
Yes, once the trueHD job is complete I'll start working on it.

gonca
19th January 2022, 23:46
Yes, once the trueHD job is complete I'll start working on it.
Thank you

Kuler087
20th January 2022, 00:27
Use it with the usual tsMuxerGUI.
You can report issues here, I will not push until confident there is no side effect.

thanks a lot :)

gonca
20th January 2022, 01:05
@a5180007
Do you want me to burn to disc and try a hardware player?

gonca
20th January 2022, 01:55
Repeated the test.
Folder structure played fine on software player.
Burned folder to disc and it would not play on hardware player (Sony)

SeeMoreDigital
20th January 2022, 09:52
I believe he means thd audio with no core in BD structure

Very useful ;)

a5180007
20th January 2022, 18:33
Folder structure played fine on software player.
Burned folder to disc and it would not play on hardware player (Sony)

The m2ts with pure True-HD seems to be read by most software players, but the Blu-ray chips expect a compliant ac3+thd.

gonca
20th January 2022, 18:38
The m2ts with pure True-HD seems to be read by most software players, but the Blu-ray chips expect a compliant ac3+thd.

Agreed.
The warning about non-compliant codec should make users realize that the playback method matters

But it is a great feature for software based playback

a5180007
20th January 2022, 20:05
The warning about non-compliant codec should make users realize that the playback method matters

Latest version:
Linux (https://github.com/jcdr428/tsMuxer/suites/5006139590/artifacts/146948014)
Mac (https://github.com/jcdr428/tsMuxer/suites/5006139592/artifacts/146947595)
Win64 (https://github.com/jcdr428/tsMuxer/suites/5006139587/artifacts/146949189)
Win32 (https://github.com/jcdr428/tsMuxer/suites/5006139588/artifacts/146948781)

SeeMoreDigital
20th January 2022, 20:31
Agreed.
The warning about non-compliant codec should make users realize that the playback method matters

But it is a great feature for software based playbackLatest version:
Linux (https://github.com/jcdr428/tsMuxer/suites/5006139590/artifacts/146948014)
Mac (https://github.com/jcdr428/tsMuxer/suites/5006139592/artifacts/146947595)
Win64 (https://github.com/jcdr428/tsMuxer/suites/5006139587/artifacts/146949189)
Win32 (https://github.com/jcdr428/tsMuxer/suites/5006139588/artifacts/146948781)
If somebody is able to create a short 'HEVC with TrueHD' sample muxed within a 'Blu-ray Folder' set, I will test it with my OPPO ;)

gonca
20th January 2022, 21:33
Worked fine, no modification of the playlist required

gonca
20th January 2022, 21:43
If somebody is able to create a short 'HEVC with TrueHD' sample muxed within a 'Blu-ray Folder' set, I will test it with my OPPO ;)

Check your p.m.

SeeMoreDigital
20th January 2022, 22:27
Check your p.m.
Interesting....

My OPPO's 'front display' detects the audio stream as being 'TrueHD'. But it's 'on-screen' display (as seen on the TV) does not register any audio format being present.

Also, after a few seconds the file stops playing and the OPPO crashes :(

gonca
20th January 2022, 22:38
The hardware requires compliant streams, I guess.
For software or media player playback it is a good feature

SeeMoreDigital
20th January 2022, 23:08
I guess so...

Unless there are some other tweaks that can be done.


Cheers

[EDIT: Wow... This is my 12,000th post on the forum]

gonca
20th January 2022, 23:22
I guess so...

Unless there are some other tweaks that can be done.


Cheers

[EDIT: Wow... This is my 12,000th post on the forum]

Congrats
As for the tweaks, that will come later with more people trying different things
It doesn't work on two UHD players that we know, it might work on some others

Kuler087
21st January 2022, 00:28
Sony X700 = no audio with TS and bluray folder as expected.
Nvidia Shield = success.

a5180007
21st January 2022, 17:00
Unless there are some other tweaks that can be done.

Such as adding a blank 32kbps 2-channel AC3 frame before each TrueHD frame. This would allow the Blu-ray players to read the TrueHD, but it would be strange to have an empty AC3 stream in the m2ts.

gonca
21st January 2022, 17:15
Such as adding a blank 32kbps 2-channel AC3 frame before each TrueHD frame. This would allow the Blu-ray players to read the TrueHD, but it would be strange to have an empty AC3 stream in the m2ts.

As per the Github entry, that should work for hardware players (compatibility wise).
I would guess that modern equipment all support the HD versions of audio

It would re-introduce spec compliancy and so get rid of playback method issues.

It would also be a good solution to eac3 without a core.

Kuler087
21st January 2022, 18:13
Such as adding a blank 32kbps 2-channel AC3 frame before each TrueHD frame.

YES please :)

SeeMoreDigital
21st January 2022, 20:51
Such as adding a blank 32kbps 2-channel AC3 frame before each TrueHD frame. Yeah... If this means creating an low bit-rate AC3 core, then that would 'tick' all the boxes ;)

tebasuna51
22nd January 2022, 12:03
Such as adding a blank 32kbps 2-channel AC3 frame before each TrueHD frame. This would allow the Blu-ray players to read the TrueHD, but it would be strange to have an empty AC3 stream in the m2ts.

Don't need to be a empty stream, can be a downstereo recode with:

eac3to input.thd output.thd+ac3 -downStereo -32

The output is:
TrueHD/AC3, 7.1 channels, 48kHz
(embedded: AC3, 2.0 channels, 32kbps, 48kHz)

a5180007
22nd January 2022, 17:18
Don't need to be a empty stream, can be a downstereo recode with:

eac3to input.thd output.thd+ac3 -downStereo -32

Indeed that would be much better to transcode the AC3 with eac3to rather than adding a silent AC3 stream.

It would also be a good solution to eac3 without a core.

I believe that pure eac3 are already accepted by tsMuxer ?

gonca
22nd January 2022, 18:27
I believe that pure eac3 are already accepted by tsMuxer ?
I just tried the latest nightly and tsMuxeR threw an error.
Pure eac3 is not a compatible codec, aborting
Deleted the playlist fom the structure it created

I am referring to the BD folder selection

Kuler087
22nd January 2022, 18:35
Indeed that would be much better to transcode the AC3 with eac3to rather than adding a silent AC3 stream.


But wouldn't that make the whole process a lot longer?
I think I would prefer an empty core like the Atmos E-AC3 streaming services use. It works perfectly fine on my bluray player

https://i.ibb.co/8cS3Gq1/Capture.png

a5180007
23rd January 2022, 19:21
I just tried the latest nightly and tsMuxeR threw an error.

Ok, it will be fixed in tomorrow's release.

gonca
24th January 2022, 03:30
Thank you.
It works fine and will simplify my workflow on some of my media files

MrVideo
25th January 2022, 06:49
Works great in my Sony UBP-X800M2 bitstreamed to my Denon AVR-X8500H.

shroomM
25th January 2022, 14:15
But wouldn't that make the whole process a lot longer?
I think I would prefer an empty core like the Atmos E-AC3 streaming services use. It works perfectly fine on my bluray player

https://i.ibb.co/8cS3Gq1/Capture.png

+1

It would be a very nice option - if plain TrueHD is detected, add an option to generate THD+AC3 with empty core all within tsMuxer.

gonca
25th January 2022, 22:48
+1

It would be a very nice option - if plain TrueHD is detected, add an option to generate THD+AC3 with empty core all within tsMuxer.

See post 1176

shroomM
26th January 2022, 12:52
See post 1176

Oh, yeah, I know and use that already.

What I'm saying is it would be more convenient to have this within tsMuxer.

For me, eac3to takes quite some time to transcode TrueHD to AC3 for core. I assume it'd be faster to have tsMuxer generate empty frames.

In my case, I'm playing my media on an Oppo clone which passes audio to my AVR which supports TrueHD. So I'm ok with an empty core. Other users might have different use cases.

Kuler087
26th January 2022, 18:33
@shroomM exactly!

plus I don't see the point of encoding a 32kbps 2.0 core, might as well encode it at 640kbps 5.1 instead.

SeeMoreDigital
26th January 2022, 18:51
...plus I don't see the point of encoding a 32kbps 2.0 core, might as well encode it at 640kbps 5.1 instead.
While this would be preferable, it would however require the addition of an audio 'encoder' to generate the Dolby Digital core!

On the plus side (if I understand correctly), it sounds like it might be possible to create an 'Blu-ray spec compliant' empty/fake (32kbps 2-channel) core using TSmuxer alone ;)

Kuler087
26th January 2022, 19:06
empty/fake (32kbps 2-channel) core using TSmuxer alone ;)

How do you make thd+ac3 with a fake 32kbps core without re-encoding?
Last time I checked, encoding at 640 or 32kbps in eac3to takes the same time.

So if making an empty core is possible right now, i'd like to know how because I'm wasting a LOT of time re-encoding a 640 ac3 to my trueHD track from mkv files.

SeeMoreDigital
26th January 2022, 19:19
...So if making an empty core is possible right now, i'd like to know how because I'm wasting a LOT of time re-encoding a 640 ac3 to my trueHD track from mkv files.From what I understand... This is what's currently being looked into/investigated... It's not an option yet!

Kuler087
26th January 2022, 19:41
awesome, can't wait!!
Hopefully, making a single-track dual-layer TS/m2ts from DV bluray disc is next :D

a5180007
27th January 2022, 19:13
How do you make thd+ac3 with a fake 32kbps core without re-encoding?
Last time I checked, encoding at 640 or 32kbps in eac3to takes the same time.
There would be no encoding involved -only interleaving the same 128-byte silent/blank AC3 frame before the TrueHD frames.

Kuler087
27th January 2022, 20:49
There would be no encoding involved -only interleaving the same 128-byte silent/blank AC3 frame before the TrueHD frames.

Good to hear, thank you for the hard work.

von Suppé
28th January 2022, 20:42
awesome, can't wait!!
Hopefully, making a single-track dual-layer TS/m2ts from DV bluray disc is next :D
What would be the benefit compared to a dual-track dual-layer m2ts as it is now?

Kuler087
28th January 2022, 21:07
What would be the benefit compared to a dual-track dual-layer m2ts as it is now?

dual track dual layer TS/m2ts files have a nasty bug on the oppo and sony x700. You can't play two files in a row otherwise the player is locked with a green-purple screen.

https://forum.doom9.org/showthread.php?p=1931032#post1931032

I would keep both options available though because some ST-DL files won't play at all.


EDIT:. it turns out the x800m2 is not affected by this bug, it might be an x700/oppo bug after all because I read they both have the same SOC

gonca
28th January 2022, 22:45
There would be no encoding involved -only interleaving the same 128-byte silent/blank AC3 frame before the TrueHD frames.

Would it be possible to apply this solution to the no core E-AC3 tracks in order to create a "core" and make it compliant?

a5180007
29th January 2022, 21:39
Would it be possible to apply this solution to the no core E-AC3 tracks in order to create a "core" and make it compliant?

Edit: IMO it cannot be done with eac3 streams: in Blu-rays the eac3 frames are coded to be a complement of the ac3 core. The only way to change eac3 to ac3+eac3 is to reencode.
Whilst TrueHD frames are totally independent from the ac3 frames: the frames are simply interleaved in the same stream.

gonca
29th January 2022, 22:38
Edit: IMO it cannot be done with eac3 streams: in Blu-rays the eac3 frames are coded to be a complement of the ac3 core. The only way to change eac3 to ac3+eac3 is to reencode.
Whilst TrueHD frames are totally independent from the ac3 frames: the frames are simply interleaved in the same stream.

Fair enough, and thanks for your efforts so far

von Suppé
25th February 2022, 10:52
In case of importing TrueHD+Atmos or EAC3 JOC, it would be nice if tsMuxer GUI's track info would show such information.
Any chance this can be implemented?

von Suppé
27th February 2022, 08:18
Wow, that's quick, thanks. Can you do this for E-AC3 JOC too?

a5180007
27th February 2022, 16:44
Wow, that's quick, thanks. Can you do this for E-AC3 JOC too?

@von Suppé True-HD was easy: if there are four substreams, the fourth is deemed to be Atmos.
It is more complicated for EAC3 JOC: from what I can gather all audio frame and blocks need to be fully parsed before arriving to the auxiliary data, so as to test the presence of Atmos metadata.

von Suppé
28th February 2022, 10:13
Thanks for clarifying, a5180007.

videoh
4th March 2022, 00:13
Hey guys, want to play around with my new utility (thdmerge) that combines a THD stream (without embedded AC3) and an AC3 stream? These two are obtained from demuxing a bluray THD stream (splitting THD and the embedded AC3) using DGDemux or DGIndexNV. This is required if you want to get a combined THD stream with seamless branching gaps correction on both the THD and AC3 streams. The resulting combined stream can then be muxed using tsmuxer. It may be useful elsewhere, for example, to convert MKVs carrying separated streams back to merged bluray format. Let me know what other related utilities I can make to help you out with THD.

http://rationalqm.us/board/viewtopic.php?f=16&p=15406#p15406

Feel free to use this wherever you want without restriction. If no issues come to light I'll publish the source code. Honestly, it wasn't very hard to make this.

Hat tip von Suppé for pushing me to find a way to make a combined THD with gaps correction.

xledentaldj
6th March 2022, 00:57
videoh, this needs a MacOS (Arm) binary/build and a GUI. Gettin tired of the command line tools I have (ffmpeg, USeac3toGUI, dovi_tool, mp4muxer_mac, tsmuxer). Im the Mac mini M1 (Arm) person who helped with the tsmuxer compiling errors with justdan96 and xavery. Thanks.

Kuler087
6th March 2022, 18:20
http://rationalqm.us/board/viewtopic.php?f=16&p=15406#p15406


OMG thank you so much. this is much faster than eac3to to convert THD MKV to THD+ac3 TS since it doesnt have to re-encode a core. This will save me a lot of time.

videoh
7th March 2022, 01:41
Glad you find it useful and thank you for your testing. I will release it formally with source code tomorrow. There will be an option to choose what to do if the two audio streams are not the same duration: truncate the longer one or do not truncate it.

videoh
7th March 2022, 01:44
videoh, this needs a MacOS (Arm) binary/build and a GUI. Gettin tired of the command line tools I have (ffmpeg, USeac3toGUI, dovi_tool, mp4muxer_mac, tsmuxer). Im the Mac mini M1 (Arm) person who helped with the tsmuxer compiling errors with justdan96 and xavery. Thanks. Can't test MAC/ARM so you'll have to compile your own. If you want a GUI you'll have to do that yourself as well. Should be easy for you.

The code will be integrated into DGDemux and DGIndexNV so it will be transparent there, i.e., no need to invoke it manually.

Kuler087
7th March 2022, 20:32
just to let you know that I made a 64kbps silent ac3 core and used your tool to merge it with trueHD and it works fine on my Sony x800m2. :D
I hope it will be implemented in tsmuxer soon

videoh
8th March 2022, 16:58
Great, thank you for the update.

Version 1.1 is now released with source code. See the file thdmerge.zip contained in the DGDemux distribution:

http://rationalqm.us/dgdemux/binaries/DGDemux_1.0.0.59.zip

Right click and 'Save link as...'.

von Suppé
9th March 2022, 12:53
@videoh:

In the UsEac3to thread I learned about the -t switch for truncating a longer audiotrack.
Are there more parameters possible in thdmerge command line?

videoh
9th March 2022, 14:12
Only -t is there now. Feel free to ask for anything else you need.

schorman
9th March 2022, 20:53
Thanks so much for thdmerge! I very much appreciate it.

I've done a few attempts to reconstruct a .thd+ac3 from the separate tracks, and it seems that the merged versions don't exactly match the thd+ac3 tracks that I rip directly from disc.

I would assume that reconstructing the .thd+ac3 from individual tracks should produce a file that is identical to one created by demuxing from the disc structure directly with TS muxer.

To be clear, I'm not using tracks that are subject to seamless branching for this comparison.

All the data seems to match, but it seems like the ac3 frames are inserted at different points in the thd track. Is there a reason for this difference? Does it matter?

videoh
9th March 2022, 21:57
I don't think it matters. I try to keep audio sync as close as possible, i.e., the THD and AC3 frames for a given time are always close to each other in the combined stream. The bluray spec does not specify how the streams are to be interleaved. I did look at a couple bluray combined streams and there didn't seem to be much rhyme or reason to it so I didn't try to match things. I suppose if it works we can be happy.

yannick92
19th March 2022, 13:47
Thanks for TrueHD/Atmos detection!

What a pleasure to no longer have an error message when opening a file... ;)

However, would it be possible to have the choice to keep the "pure ThrHD" tracks (without the AC3 core) separately?

Something like this:

18063

THX

videoh
19th March 2022, 14:35
yannick92, can you please upload that image somewhere and give a link? Attachments here can take ages, and people often don't keep checking for approval and soon your post is forgotten, or it gets lost in subsequent posts. Thank you.

yannick92
19th March 2022, 18:35
yannick92, can you please upload that image somewhere and give a link? Attachments here can take ages, and people often don't keep checking for approval and soon your post is forgotten, or it gets lost in subsequent posts. Thank you.

Ok THX>>>>> https://uptobox.com/b7i4sj39rrwb

videoh
19th March 2022, 21:11
Ha ha, now I get:

This page is not allowed in the US

tebasuna51
19th March 2022, 22:16
However, would it be possible to have the choice to keep the "pure ThrHD" tracks (without the AC3 core) separately?


For what soft is your request?

This thread is for tsMuxer.

yannick92
20th March 2022, 02:02
For what soft is your request?

This thread is for tsMuxer.

Yes I know, but maybe I misunderstood myself, I just wanted to know if we could have this type of choice in TsMuxer as in MKVToolnix?
My apologies if the capture was too much...

SeeMoreDigital
20th March 2022, 11:23
Yes I know, but maybe I misunderstood myself, I just wanted to know if we could have this type of choice in TsMuxer as in MKVToolnix?Errr... No!

The Blu-ray disc specification requires a mandatory Dolby Digital core within the TrueHD stream. Which has been the main point of discussion for the last few months!

Indeed, it could be argued that if the Matroska developers had created a way of keeping the Dolby Digital core within the TrueHD stream, we wouldn't have been in this mess in the first place :eek:

tebasuna51
20th March 2022, 11:35
In MKVToolnix it is not a choice because mkv don't support thd+ac3 and automatically split the thd+ac3 in 2 tracks.

In tsMuxer when you mux to m2ts for BD's you need the thd with ac3, a lonely thd is not supported, but you have the option of include (or extract) the ac3 only.

To split thd+ac3 tracks you have mkvextract, eac3to and the DG tools.

[EDIT]SeeMoreDigital is fast than me.

von Suppé
24th March 2022, 12:07
Is it possible to add files with .eac3 and .truehd+ac3 extension to the "All supported media files" ?
It would be nice when they would show by default in tsMuxer's browsing windows.

medikoo
28th March 2022, 20:32
Thanks to tsMuxer I'm capable to mux UHD discs and burn them on BD-R media.

Still, I found that my player (Panasonic DP-UB9000) while supporting UHD written on BD-R DL discs, occasionally stutters when playing them, as if the discs were slow (or the player not reading them at needed speeds).

I wonder whether it can be a media issue (I use Verbatim M-DISC BD-R DL), and can be improved by trying some other BD-R DL disc (?) or is it something related to how this player reads BD-R DL discs, potentially capping them to the certain speed limit, and that's not solvable with given player.

Did anyone try to burn and play UHD on BD-R DL with success? Note I mux discs simply to replace audio files (to get a version in my language for my kids), I do not do any size squashing and I'm not interested in that.

SeeMoreDigital
28th March 2022, 20:38
@medikoo,

Which 'git' version of TSmuxer GUI are you using?

a5180007
3rd April 2022, 21:08
Still, I found that my player (Panasonic DP-UB9000) while supporting UHD written on BD-R DL discs, occasionally stutters when playing them, as if the discs were slow (or the player not reading them at needed speeds).
Test the read speed of your discs. With 128 mbps UHD you need a read speed of 4x throughout the BD-R.

von Suppé
4th April 2022, 14:54
:thanks: for eac3 and thd showing up in the browsing windows

medikoo
4th April 2022, 22:13
Which 'git' version of TSmuxer GUI are you using?

It's git-aed1949 (but I don't think it's related to the problem)

Test the read speed of your discs. With 128 mbps UHD you need a read speed of 4x throughout the BD-R.

I tested and tried two different BD-R DL media, and read goes as 16MB/s at start, but shortly after settles on 20Mb/s+ for rest of a disc. It's what I get with LG Drive on macOS system.

UHD at highest moment may need 144Mbp/s (18MB/s), so that should be fine.

I suspect that Panasonic player reads it unconditionally at x2.

And seeing that maximum standard rotation for BD DL BD-ROM media is x2 (http://www.hughsnews.ca/faqs/authoritative-blu-ray-disc-bd-faq/8-recording-and-reading-speed) I assume that's very likely :/

Pity it doesn't support BD XL at UHD reading speeds, that would solve it.

von Suppé
15th April 2022, 11:13
Is it possible to add files with .eac3 and .truehd+ac3 extension to the "All supported media files" ?
It would be nice when they would show by default in tsMuxer's browsing windows.
I haven't checked since what version, but latest nightly build does show .ac3+thd extension, where .thd+ac3 don't show by default in browser window. Can you fix it please?
Thanks in advance

filler56789
16th April 2022, 08:57
SUGGESTION:
give to the periodical official releases better names than the unimaginative and unhelpful
mac.zip lnx.zip w32.zip w64.zip.

After many years of the infamous vcredist_x86.exe and vcredist_x64.exe I thought that everybody would have already learned the lesson.
Sadly I was wrong. :)

gonca
19th April 2022, 23:57
For LPCM tracks, would it be possible to demux to W64 to avoid splitting larger tracks?

von Suppé
20th April 2022, 06:56
Nice to see both .thd+ac3 and .ac3+thd files are showing up in the browser windows.
:thanks: for the fix.

varekai
21st April 2022, 12:50
Thanks for the update and the continued impressive work with this one of a kind absolutely necessary tool!:thanks:

d3rd3vil
22nd April 2022, 19:35
Whats the problem when converting a Dolby Vision mkv to m2ts leads to gray bars (instead of black ones)?

SeeMoreDigital
22nd April 2022, 20:23
Whats the problem when converting a Dolby Vision mkv to m2ts leads to gray bars (instead of black ones)?What are your playback display device/eqipment?

d3rd3vil
22nd April 2022, 21:01
Its a 2016 Oled with an Oppo 203. Sometimes it works/worked with black bars but nowadays its usually grey bars :(

Kuler087
22nd April 2022, 23:02
Its a 2016 Oled with an Oppo 203. Sometimes it works/worked with black bars but nowadays its usually grey bars :(

your content is probably cropped and it's not a tsmuxer issue.
The oppo and sony x700/x800m2 will produce grey letterbox if you play a DV video that was encoded without black bars (3840X1600).

d3rd3vil
23rd April 2022, 12:29
Well ok then what a shame. Any way to get the black bars back with tsmuxer or makemkv or sth? Or does it have to be encoded again:mad:

Kuler087
23rd April 2022, 13:37
Or does it have to be encoded again:mad:
yes :(

I use my TV internal PLEX app for cropped DV video.

varekai
24th April 2022, 10:18
Well ok then what a shame. Any way to get the black bars back with tsmuxer or makemkv or sth? Or does it have to be encoded again:mad:
I use PotPlayer (displaying subtitles below cropped areas) when playing cropped mkv's and also on an OPPO95.
But, text subtitles do not, sadly, render well on the OPPO...
Someone (Groucho2004) a very skilled person in this forum, presented this bat file for me some years ago and it works like a charm.
I use this bat script, using ffmpeg, for adding black bars on top and bottom for mkv.
There are several guides how to setup ffmpeg.
To test if you got the ffmpeg setup right open a command prompt and type ffmpeg -version.
Use 2 HDDs, for fastest encoding, one for source and the other for target.
I think (-crf 18) is supposed to be "placebo" but I have used lower values and still not getting monstrously big outputs.
Depending on your setup it can take some time to encode, but it works like a charm!
Copy to notepad, save as .bat in the extension.

*** (script starts here exclude *** and text)
@echo off
set SOURCEPATH=X:\SOURCEPATH
set TARGETPATH=Y:\TARGETPATH

if not exist "%SOURCEPATH%" goto ErrorSource
if not exist "%TARGETPATH%" goto ErrorTarget

for %%i in ("%SOURCEPATH%\*.mkv") do (
start/b/wait/low ffmpeg -i "%%i" -vf "pad=3840:2160:(ow-iw)/2:(oh-ih)/2" -c:v libx264 -preset slow -crf 18 -c:a copy "%TARGETPATH%\%%~ni.mkv"
echo.
)
goto Exit

:ErrorSource
echo Source path "%SOURCEPATH%" does not exist.
goto :eof

:ErrorTarget
echo Target path "%TARGETPATH%" does not exist.
goto :eof

:Exit
echo Done.
echo.
*** (script ends here exclude *** and text)

d3rd3vil
24th April 2022, 13:32
Sounds interesting god bless you.
The mkv keeps the Dolby Vision? And it says nonstop "skipping NAL Unit 62". Apparently thats because ffmpeg doesnt know what to do with the DV-layer. But as long as it doesnt touch it its fine.
Lets see what will happen.
CPU-load 100%, good to grill sausages on the cooler.

varekai
24th April 2022, 13:51
I have absolutely no idea about Dolby Vision and if it's working in ffmpeg, that question may be answered by the skilled persons in the forum, and that's not me...
Yup, have the sausages close when encoding... :D

Edit: I found this and it's waaay over my head but I think ffmpeg can handle Dobly Vision, but don't take my word for it.
https://codecalamity.com/encoding-uhd-4k-hdr10-videos-with-ffmpeg/
I found the old thread where Groucho2004 helped me...
Time flies when having fun! (https://forum.doom9.org/showthread.php?t=174997#:~:text=Posts%3A%20487-,How%20to%20add%20blackbars%20to%20mkv%20files%20on%20bottom%20and%20top%3F,-Hello!%0A%0ADon%27t%20know) :D

d3rd3vil
24th April 2022, 16:22
Well ok so I've tried it. Dolby Vision is gone after the process so that doesnt work. But maybe there is another way to keep everything AND add black bars somehow. I have a feeling there could be a way with ffmpeg?!

mczuzlak
28th April 2022, 14:54
I have some 4k Bluray backups as untouched mkv remuxes (using MakeMKV) that I would like to play on my Oppo 203.
So if I play the mkv directly it works except I get only HDR but no DV. If I mux it into .ts with the latest Tsmuxer the problem is solved I get DV but there is no TrueHD only DD.
Is this the limitation of the .ts container or something related to the oppo ?

Any workaround I could use to get Lossless Audio + DV working from these mkvs remuxed again with Tsmuxer into something on my oppo 203 ?

Thanks !

SeeMoreDigital
28th April 2022, 15:25
If I mux it into .ts with the latest Tsmuxer the problem is solved I get DV but there is no TrueHD only DD.
Is this the limitation of the .ts container or something related to the oppo ?I've created a dozen or so 4K UHD back-ups that include Dolby Vision and TrueHD/Atmos using TSmuxer.

I select TSmuxer's 'Blu-ray Folder' option. And then transfer the 'BDMV and CERTIFICATE' folders within an (manually created) AVCHD folder prior to playback with my OPPO?

mczuzlak
28th April 2022, 15:29
I've created a dozen or so 4K UHD back-ups that include Dolby Vision and TrueHD/Atmos using TSmuxer.

I select TSmuxer's 'Blu-ray Folder' option. And then transfer the 'BDMV and CERTIFICATE' folders within an (manually created) AVCHD folder prior to playback?

Was your source file before using tsmuxer a full Bluray (with BDMV and CERTIFICATE folders) or an mkv remux (using Makemkv) ?

Kuler087
28th April 2022, 15:49
I have some 4k Bluray backups as untouched mkv remuxes (using MakeMKV) that I would like to play on my Oppo 203.
So if I play the mkv directly it works except I get only HDR but no DV. If I mux it into .ts with the latest Tsmuxer the problem is solved I get DV but there is no TrueHD only DD.
Is this the limitation of the .ts container or something related to the oppo ?

Any workaround I could use to get Lossless Audio + DV working from these mkvs remuxed again with Tsmuxer into something on my oppo 203 ?

Thanks !
MakeMKV split the AC3 core from TrueHD.

The trueHD track need a core to be playable on bluray players.
You can merge one with thdmerge (https://forum.doom9.org/showthread.php?p=1965067#post1965067) or encode one with eac3to (https://www.videohelp.com/software/eac3to)

yannick92
29th April 2022, 09:30
Hello

I just noticed a change for "default settings" on the latest versions:
When opening a file I now have "Do not change SEI and VUI data" and the box "Continually insert SPS/PPS" not checked??
Is this normal?
Before, and since always it seems to me, at least until version git-2f0fdbf (?), I always had by default: "insert SEI and VUI data if absent" and the box checked for "Continually insert SPS/PPS "
Should I be worried about these changes?
Will this have an impact on file playback? (Playback usb HDD mainly on a PS3 (.m2ts).
Do I have to manually reset the old settings?
I admit that I never touched these parameters because I had read in the past that it was necessary not to touch them for correct playback on a PS3?...

Thanks in advance for your clarifications.

Yannick

SeeMoreDigital
29th April 2022, 09:51
Was your source file before using tsmuxer a full Bluray (with BDMV and CERTIFICATE folders) or an mkv remux (using Makemkv) ?
I've done both...

MrVideo
30th April 2022, 05:47
For those of you looking to add black bars to 4K UHD videos, why not look at using JDobbs' NVENCCRE program? Info is here: https://forum.doom9.org/showpost.php?p=1960157&postcount=31022

As noted in the posting, you need a nVidia card that supports re-encoding. I have the GTX 1660. Get a card that supports IDR/B/P frames.

Here is my NVENCCRE.INI file:
[Paths]
WorkingPath=E:\BD-REBUILDER\WORK\
[Options]
VIDEO_CODEC=1
AUDIO_CODEC=0
USE_EXTERNAL_SUBS=0
NVENC_CAPABLE=1
VIDEO_MODE=5
HEVC_BR_VALUES=10000,12000,24000
AVC_BR_VALUES=10000,12000,24000
# 1576:
#ENCODE_CUSTOM=--vpp-pad 0,292,0,292
# 1584:
#ENCODE_CUSTOM=--vpp-pad 0,288,0,288
# 1588:
#ENCODE_CUSTOM=--vpp-pad 0,286,0,286
# 1600:
#ENCODE_CUSTOM=--vpp-pad 0,280,0,280
# 1606:
#ENCODE_CUSTOM=--vpp-pad 0,276,0,278
# 1608:
#ENCODE_CUSTOM=--vpp-pad 0,276,0,276
# 1910:
#ENCODE_CUSTOM=--vpp-pad 0,124,0,126
# 2076:
#ENCODE_CUSTOM=--vpp-pad 0,42,0,42
# 2080:
#ENCODE_CUSTOM=--vpp-pad 0,40,0,40
I uncomment the line that matches the video that needs re-coding. If it isn't in the list, just add it (manually). BTW, it is left,top,right,bottom. Be sure the comment the lines for files that don't need black added.

Fine print: I have no clue as to what happens with DV videos. My projector doesn't do DV (none do), so I try not to deal with those files.

P.S.: It is fast.

d3rd3vil
30th April 2022, 23:02
I can already see that it doesnt work with DV as it lets you select 3 quality options.
4k DV is a VERY sensitive matter not some old 1080p shit or sth.

Kuler087
1st May 2022, 01:44
you can use the DoVi_tool (https://github.com/quietvoid/dovi_tool) to inject back the metadata

MrVideo
1st May 2022, 01:55
I can already see that it doesnt work with DV as it lets you select 3 quality options.
Or you can select a bitrate, which is what I do. No idea if that will help.

d3rd3vil
1st May 2022, 13:39
Maximum bitrate with that program is 3000, thats nothing.

Well anyway maybe someone else gets this to work but I see no way for that program to even consider working on 4k DV material.
An ffmpeg copy command that keeps EVERYTHING but adds black bars sounds more realistic. Maybe....

MrVideo
1st May 2022, 13:45
Maximum bitrate with that program is 3000, thats nothing.
What gave you that idea? Did you even look at my example?

staina
2nd May 2022, 08:43
Testing I'm found out that the at some movies at demux THD stream (without embedded AC3) from MKV file behind using TSMuxer this THD stream (without embedded AC3) isn't consistent with demux THD stream (without embedded AC3) behind using MKVExtract. How find out, which of these demux THD streams (without embedded AC3) is the correct and consistent with original, when original I don't have. Eventually it is possible somehow find out why are these two demux THD streams (without embedded AC3) different? Which app then use to demux THD streams (without embedded AC3) whether TSMuxer or MKVExtract?

Thank for answers.

von Suppé
2nd May 2022, 09:30
...isn't consistent with...
What would 'consistent' be here? If you mean they aren't bit-equal to each other, both probably are ok. Or do you refer to other differences?

Demuxing streams from mkv I prefer mkvextract (via gMKVExtract GUI) as I never encountered issues.

staina
2nd May 2022, 16:29
What would 'consistent' be here? If you mean they aren't bit-equal to each other, both probably are ok. Or do you refer to other differences?

Demuxing streams from mkv I prefer mkvextract (via gMKVExtract GUI) as I never encountered issues.

Comparing files are different c. from 30 percent, else either use mkvextract (via gMKVExtract GUI), but now I'm want to use TSMuxer and comparing I'm found out that the result demux is different so I don't know which demux use and is OK.

a5180007
23rd May 2022, 20:03
@staina please provide a sample resulting in the circa 30% difference in thd demuxed size between MkvToolNix and tsMuxer.

von Suppé
26th May 2022, 11:42
Did a bug sneak in with latest version? On some (not all) imports of *.mpls with Dolby Vision video I get "Unsupported format" window, which reads: Track 1 was not recognized and ignored. File name "*\BDMV\PLAYLIST\*.mpls"
The source is full ISO-rip, no remux.

I compared against previous version git-b2e5dd3. Which gives no error.

staina
26th May 2022, 16:06
@staina please provide a sample resulting in the circa 30% difference in thd demuxed size between MkvToolNix and tsMuxer.

Latest time are THD demux same. If find different send.

von Suppé
29th May 2022, 07:55
Nice to see the import-issue solved. :thanks:

staina
29th May 2022, 09:55
Why tsMuxer at addition DTS-HD MA 7.1 stream and set delay on any value to this value in resulting ISO file add 21ms? For example delay set at -40ms is in results in ISO file -19ms. Set delay AC3 stream and THD stream with not change.

a5180007
14th June 2022, 16:22
Why tsMuxer at addition DTS-HD MA 7.1 stream and set delay on any value to this value in resulting ISO file add 21ms? For example delay set at -40ms is in results in ISO file -19ms. Set delay AC3 stream and THD stream with not change.

I can't reproduce the bug. Eg I've downloaded https://www.demolandia.net/downloads.html?id=83491561 , applied the following meta MUXOPT --no-pcr-on-video-pid --new-audio-pes --hdmv-descriptors --blu-ray --vbr --auto-chapters=5 --vbv-len=500
V_MPEG4/ISO/AVC, "C:\Users\XXX\Documents\Softwares\tsMuxer\dts-living-world-of-audio-v2-short-lossless-(www.demolandia.net).mkv", track=1, lang=eng
A_DTS, "C:\Users\XXX\Documents\Softwares\tsMuxer\dts-living-world-of-audio-v2-short-lossless-(www.demolandia.net).mkv", timeshift=-40ms, track=2, lang=eng


and the "Delay relative to video" reported by MediaInfo is -40ms as it should.

gonca
30th June 2022, 21:16
The latest nightly change
As there is a single transport stream in tsMuxer muxes and in Blurays, the transport_stream_id does not really matter. However, all blurays I've seen have transport_stream_id = 0 so applying the same makes comparisons easier.
actually fixed an issue I had with software media players and hardware media players while using tsMuxeR created structures.
Thank you
EDIT
Seems it only fixes the issue sometimes
Still
Thank you

oniiz86
1st July 2022, 06:42
The latest nightly change

actually fixed an issue I had with software media players and hardware media players while using tsMuxeR created structures.
Thank you
EDIT
Seems it only fixes the issue sometimes
Still
Thank you

@gonca I was just curious what exactly was the specific issue you were experiencing & now seems partially fixed with the latest nightly build?

Have you identified & reported the problem over here? https://github.com/justdan96/tsMuxer/issues

gonca
1st July 2022, 11:23
The issue was menu playback.
Menus created by BD_RB

a5180007
1st July 2022, 23:58
@gonca the Bluray standard states "transport_stream_id: This field has no meaning in the HDMV TS and may take any value". So not sure the commit had an effect, it might as well come from the two other commits related to the countinuity counters.

gonca
2nd July 2022, 01:34
@gonca the Bluray standard states "transport_stream_id: This field has no meaning in the HDMV TS and may take any value". So not sure the commit had an effect, it might as well come from the two other commits related to the countinuity counters.

I am getting a feeling that it was just a coincidence.
It seems to be just one of those things.
With no menus the results play perfectly every time.

a5180007
2nd July 2022, 10:43
@gonca yes the sum of those small corrections sure make a difference.
Maybe you can open an issue and describe the problem with the menus in details.

gonca
2nd July 2022, 15:07
Maybe you can open an issue and describe the problem with the menus in details.

Before I make you chase a rabbit down the hole
A video, audio, sup and chapter remux work well every time

The issue is with the menus created by BD_RB
If I burn the folder to disc it plays fine on my Sony.
If I open the folder structure with PowerDVD it plays fine
If I open the folder with J River Media Center the menu is non functional
If I open the folder in Zidoo 4K pro the menu is non functional

I am not sure if the problem is in tsMuxeR, BD_RB or its just one of those things

EDIT
All 4 play fine with the menus in commercial discs

Hellboy.
22nd July 2022, 18:39
tsMuxer have a settings file saved somewhere?

a5180007
23rd July 2022, 09:32
tsMuxer have a settings file saved somewhere?

@Hellboy. in the General tab, under "Default Output Folder" you have the option to either "use the latest output folder name", or "place output folder to a input folder".

outgoing
28th July 2022, 01:07
I am finding, regardless of the version I have tested many and it always causes the same bug, that tsMuxer (windows) pixelates the image for a second or two when I do a BD folder or m2ts mux (only movie) or any other combination without adding or removing any track from my original bluray. My original bluray is correct, there's no glitch, it's a 90,9 GB UHD, The Message. The film has a running time of 02:58:18 and the pixelation always occurs in the same sequence, 01:01:16.

Attached is an sample of the pixelation.
https://mega.nz/file/2T52QZ4Y#wkjxpmj06KKnfoPGYXR4mOl4lvp0WgkoL0fyegLO8-0

Edited: ok, it doesn't matter which program is used, it seems that this error is exactly the same regardless of the program used to reauthorise. A buddy of mine has done a test with Scenarist and got the same error. Really odd what could be the cause of this.

ocean
29th July 2022, 14:09
Hi outgoing, the original disk has no problem at 1:01:16 minutes.
Doesn't the copy obtained, once the protections have been removed, have this defect?
I ask you because it could be a protection not completely removed.

outgoing
29th July 2022, 22:30
Hi outgoing, the original disk has no problem at 1:01:16 minutes.
Doesn't the copy obtained, once the protections have been removed, have this defect?
I ask you because it could be a protection not completely removed.

Hi ocean, not at all, the original is correct, there is no error throughout the whole footage, so it is strange that different software always produce the same error at the same point in the film. It could be a correct possibility, but in the master there is no such error, so I think it is not due to the protection not being fully unlocked. But I don't rule it out either and it is perhaps the only possible cause in this.

a5180007
1st August 2022, 22:16
@outgoing could you post the same excerpt from the original m2ts (e.g. cut with an Hex editor).

outgoing
2nd August 2022, 18:30
@outgoing could you post the same excerpt from the original m2ts (e.g. cut with an Hex editor).

Sorry, there is no way, it always produces that error in any attempt to cut that segment, I have tried doing demux, iso folder... and it always keeps popping up. If I dump the image to the pc with AnydVD there is also a moment where in certain sectors it throws an error even if I end up dumping it all. Then when I view it, the error is always there.

It has nothing to do with tsmuxer, more than likely the protection is not completely broken, I guess.

SeeMoreDigital
2nd August 2022, 21:05
Probably a b0rked rip. Try ripping the disc again!

spotter
9th August 2022, 21:54
does txmuxer not respect mpls in/out marks when muxing an mpls to a ts file?

I have a playlist on a bluray that has "junk" data in the file (color bars) that are not played by a bluray player. I'm trying to remux it to mkv, but both mkvtoolnix, eac3to and makemkv have issues with it. I figured tsmuxer should be able to mux it to a ts cutting out the "crap" and then I could deal with it from there. Except it doesn't.

in tsmuxergui it shows the correct length (14:44 about). but the ts that is created when played with vlc is 15:03 (or 04). i.e. the color bars and the like are included when they shouldn't be. Am I doing something stupid? I figure it should be easy to get a ts file that has all the seamless branching combined into a single ts file with proper in/out points from the file, but I can't seem to figure it out. help?

Edit: in addition, in this case the mpls has 2 m2ts file, the first has no audio and the second does (lpcm). if I load the second m2ts by itself, tsmuxer sees the video and audio tracks. But if I load the mpls file, it only lists the video track. This is the same problem that mkvtoolnix had.

a5180007
13th August 2022, 12:03
@spotter please open an issue on github.

spotter
14th August 2022, 08:48
@spotter please open an issue on github.

ok, 2 issues added.

Hellboy.
3rd September 2022, 16:11
I found a bug. When add a UHD, tsmuxer automatically check "Force BD-ROM V3 format". When remove everything in "input files" and add a 1080p bluray "Force BD-ROM V3 format" keep checked. And when add a 1080p bluray to create a Blu-ray folder, the 1080p bluray dont work. You need to uncheck "Force BD-ROM V3 format" when everything is remove in "input files".

This is using the playlists and Blu-ray folder.

a5180007
4th September 2022, 13:20
@Hellboy. please try tomorrow's release.

Overrighter
5th September 2022, 17:31
Hello, Everybody!
I hope my post will be somewhat useful, coz I couldn't find out an answer as to how to make Sony UBP-X800M2 trigger Dolby Vision (DV) input when playing an original m2ts file from the BD 4k DV disk using a USB flashdrive. Long story short. I run the m2ts file though tsMuxeR GUI git-2c58285 ("tsMuxeR 2022-08-14 Nightly Portable Windows 64-bit") from m2ts into the same m2ts only de-clicking unnecessary audio tracks and, Bingo!, x800m2 indicates Dolby Vision as input, while for the non-modified file it indicates just HDR. It was Uncharted 4k uhd disk. tsMuxeR shows two video tracks: 4k and 1080p for both original m2ts and after remuxing. If I could feedback anything more for the purpose of developing this wonderful utility, please ask. I'll do my best.

Hellboy.
5th September 2022, 22:46
Is fixed. Thanks.

Question: What this mean? Is something bad?
H264 warn: SPS parameters is not consistent throughout a stream

a5180007
6th September 2022, 18:58
@Hellboy. It is just a warning, sometimes a Sequence Parameter Set changes throughout the stream.

von Suppé
15th October 2022, 10:56
I'm encountering issues when muxing TrueHD without embedded AC3 with elementary videostream(s) from imported 3DBD ISO.

Right from the start, tsMuxer is giving a lot of errors saying "TRUE-HD stream (track 3): bad frame detected at position... Resync stream."
Playback of resulting ISO gives major A/V sync issues. It makes no difference whether I choose to mux 3D (AVC + MVC) or 2D (AVC only).

Is this inherent to MVC-3D and supposed to be? When I mux TrueHD+AC3 track, things go without errors.

Hart2hart
22nd October 2022, 23:12
What is the overall state of tsmuxer? It’s been a historically fabulous tool and I’m still using last good version from years ago which handles all contemporary audio formats but I believe drops a subtitle on occasion. It does video up to at leafy AVC H.264 maybe H.265 . I want to move on to 4k and hdr (DV, HDR10+).

Looks of work has been completed that is highly technical. Is it in good shape to handle this snd/or is there a list of known issues/limitations? More importantly is development / core developer(s) active?

Sakura-chan
27th October 2022, 19:10
This is not really a bug, more of a question. I'm fairly new to tsmuxer.

Why do m2ts files remuxed with tsmuxer to the same format end up being smaller? For example, I grab a 5,820,604,416 bytes m2ts from a BD, containing an h264 and lpcm track (nothing complex). I remux it as is with tsmuxer to m2ts, nothing changed. I end up with a 5,806,061,568 bytes file. That's 14,542,848 bytes less than the original (13.87 MB).

Upon demuxing the tracks from both they are identical (compared checksums). So no issues, but why? I understand mkv having less overhead so the resulting remuxes will be smaller, but I expected staying in the same format would result in the same file sizes.

staina
6th November 2022, 16:20
What is that error "DTS-HD stream (track 3): bad frame detected at position02:45:07,402. Resync stream".

Why tsMuxer resync DTS-HD MA stream created in DTS HD Encoder Suite and completely DTS_HD MA stream will change? DTS HD Encoder Suite no detected bad frame.

Thank for answer

Hart2hart
29th November 2022, 15:44
What is the overall state of tsmuxer? It’s been a historically fabulous tool and I’m still using last good version from years ago which handles all contemporary audio formats but I believe drops a subtitle on occasion. It does video up to at leafy AVC H.264 maybe H.265 . I want to move on to 4k and hdr (DV, HDR10+).

Looks of work has been completed that is highly technical. Is it in good shape to handle this snd/or is there a list of known issues/limitations? More importantly is development / core developer(s) active?


Guess my answer is in but it’s not what I had hoped it would be.

Emulgator
30th November 2022, 00:00
4..5 builds per month, see github repo. I would call this a very active development.
If you find a fault you may report it and upload files to reproduce the fault.
And it has been taken care of many, many times. 125 pages of actions since 2020-12
I couldn't ask for more and give big thank you's to a5180007, justdan96, xavery, jcdr408, and of course to the original developer.

Emulgator
1st December 2022, 00:29
Why do m2ts files remuxed with tsmuxer to the same format end up being smaller?
BD muxers (Scenarist, Sony, DoStudio) have provisions to accommodate all possible streams and their combinations
which are populated only if needed, but these PID positions will lead to more container overhead even if the stream is empty.

Hart2hart
3rd December 2022, 16:16
4..5 builds per month, see github repo. I would call this a very active development.
If you find a fault you may report it and upload files to reproduce the fault.
And it has been taken care of many, many times. 125 pages of actions since 2020-12
I couldn't ask for more and give big thank you's to a5180007, justdan96, xavery, jcdr408, and of course to the original developer.


Thanks. I didn’t think to look at GitHub. The developers were very active in forum when this started so I was expecting to see them here. Specifically, I was looking to understand if an “official” release was coming that would list what was included and any issues to avoid.

Many thanks for developers’ work.

a5180007
1st February 2023, 21:48
Question for tsMuxer users: do you want the insert SPS and SEI option to be the default or not ?

Hellboy.
2nd February 2023, 14:33
What are the benefit of having "SPS and SEI".

Emulgator
2nd February 2023, 23:35
If one chooses Blu-ray ISO or Blu-ray folder, yes, (wasn't it already ?),
(can not speak for other users that want to have .ts and .m2ts untouched, but yes, to me it would be welcome)
and while we are at it:
If Blu-ray ISO or Blu-ray folder, please add preload --start-time=524250, this is vital.

P.S. Ouch, I mistyped. 524280 !

von Suppé
3rd February 2023, 10:50
If Blu-ray ISO or Blu-ray folder, please add preload --start-time=524250, this is vital.

Sorry for this noob question, but could you please explain why the 524250 value is so vital? I've never really given this any thought and always left it as is. Never encountered problems with BD muxing - as far as I know.

Thanks in advance

Kuler087
3rd February 2023, 20:46
something is broken in the latest build... I have some file that have no video in mkvtoolnix.
the last working version is Nightly build from 2023-01-02-02-15-09

https://i.ibb.co/Qrqv1nS/Capture.png

Emulgator
5th February 2023, 05:10
von Suppé:
why the 524250 value is so vital?
https://forum.doom9.org/showthread.php?p=1916110#post1916110
and following...

P.S.
Again, I mistyped, sorry. 524580 !

von Suppé
6th February 2023, 10:40
@Emulgator: Thank you!

a5180007
17th February 2023, 17:37
If one chooses Blu-ray ISO or Blu-ray folder, yes, (wasn't it already ?),
(can not speak for other users that want to have .ts and .m2ts untouched, but yes, to me it would be welcome)
and while we are at it:
If Blu-ray ISO or Blu-ray folder, please add preload --start-time=524250, this is vital.

AddSEI and AddSPS have been moved to ini settings, so it is now user's choice.
I'll look at this --start-time thing.

Emulgator
18th February 2023, 07:06
I guess this post will give the best hint: underflow of a register/counter

https://forum.doom9.org/showthread.php?p=1916192#post1916192

Looks like backwards overflow of a 32-bit counter !
(2^32 = 4294967296)

4294967296 - 4294443016 = 524280 !
There is the magic number.
What power of 2 is next ? 2^19 = 524288.

This offset indicates that somewhere 19 bits might be shifted

SquallMX
12th March 2023, 16:37
"Split by size" is broken in newest builds, only works for less than 4 GiB values, any higher value gets ignored.

Hellboy.
4th May 2023, 23:40
von Suppé:

https://forum.doom9.org/showthread.php?p=1916110#post1916110
and following...

I remux a 4k and 1080p mkv movies with "Start mux time - 45 khz clock" = 0 and when put the resulting playlist in tsMuxer, it say "0:10:00.000 y 27000000". And you recommend EDIT-524280 or more, so looks this is fixed.

The strange think was that the 1080p mkv Check by default "Force BD-ROM V3 format". I always thinks that was for 4k movies only.
EDIT: Forgot to say i checked this again and the the movie is HEVC.

varekai
13th May 2023, 05:29
Hello justdan96!

Just wanted to say thank you very much for this one-of-a-kind must-have software!
Couldn't do without it!

varekai
6th June 2023, 08:40
Thanks for updating and working on tsMuxer, much appreciated!
Question about latest pre-release "Nightly build from 2023-06-04-02-47-33".
There is no w64.zip release, yet? Maybe later?
Best regards,
varekai

hubblec4
7th June 2023, 10:21
Hi
I have some questions for demuxing.
Is there a mechanic to remove the duplicated frames for audio when the move is splitted in many small m2ts files, like eac3to or DGDemux do?
Is it possible to demux the forced sups at the same time when I demux a sup stream which contains forced sups, like DGDemux it do?

guest
11th June 2023, 02:29
Can someone help me with this command, please ?

I would like to modify this to use tsmuxer instead of ffmpeg..

"C:\ffmpeg\bin\ffmpeg.exe" -y -i "%OUTPUTFILEDIR%\%OUTPUTFILENAME%.%OUTPUTFILEEXT%" -c:v copy -c:a copy -c:s copy "c:\temp\%OUTPUTFILENAME%-test.m2ts"

Converting an .mkv with DV metadata using ffmpeg, removes the DV metadata, tsmuxer does not :)

TheEqualizer
13th June 2023, 23:43
Dear friends, I use a translator to communicate here, I admit I could not master 66 pages to find a solution to my question, especially in a translator. A couple of years ago, what I was interested in was discussed and I did not fully understand whether a solution was found, when repacking mp4 DV to TS, the file remains working on an LG OLED TV, but subtitles are converted to pgs, as I understood, special tsMuxeR assemblies were created that are able to make subtitles work on embedded TV players if this is really the case, tell me which version you need to use, preferably the latest one suitable for my task, if no solution has been found, but there is something I should know about, please write about it.

guest
14th June 2023, 02:42
Dear friends, I use a translator to communicate here, I admit I could not master 66 pages to find a solution to my question, especially in a translator. A couple of years ago, what I was interested in was discussed and I did not fully understand whether a solution was found, when repacking mp4 DV to TS, the file remains working on an LG OLED TV, but subtitles are converted to pgs, as I understood, special tsMuxeR assemblies were created that are able to make subtitles work on embedded TV players if this is really the case, tell me which version you need to use, preferably the latest one suitable for my task, if no solution has been found, but there is something I should know about, please write about it.

Even with the very latest nightly build, .srt subtitles get converted to pgs, and as also an owner of an LG TV, they don't display.

The ONLY way to get the subtitles to work is to have a separate .srt file, named exactly the same as the video file, in the same folder as the video, then they will be displayed.

I use, .m2ts....

Trust me, I have been doing a lot of these, recently.

Good Luck.

TheEqualizer
14th June 2023, 08:02
TDS, I am aware of what you have described, but it seemed to me that what I asked was discussed in this topic, it seems that a solution was even found, perhaps I am mistaken. Developers of new versions of tsmuxer can somehow fix this point and force them to forcibly add non-converted subtitles, or it is not technically possible as a container.ts can't work any other way?

cubicibo
14th June 2023, 09:23
MPEG TS are not like MKV files, they are not meant to carry SRT subtitles. You could embed SRT data in packets that uses a custom, non-reserved, PID but then you also need to customize your video player software to tell it that this PID is SRT data. So essentially you are creating a solution for yourself, out of spec.

TheEqualizer
14th June 2023, 09:32
cubicibo, this is very interesting, and you can learn more about how to do what you wrote or give a link if there is a ready-made instruction somewhere, thank you

guest
14th June 2023, 09:37
cubicibo, this is very interesting, and you can learn more about how to do what you wrote or give a link if there is a ready-made instruction somewhere, thank you

There is no way to modify the software of the embedded video player on an LG TV.

I've suggested the easiest way to do it !!!

TheEqualizer
14th June 2023, 09:45
TDS, accepted, this is a very offensive reality, thank you.
Unfortunately, the method with separate subtitles is not suitable because of the large number of them

guest
14th June 2023, 09:58
TDS, accepted, this is a very offensive reality, thank you.
Unfortunately, the method with separate subtitles is not suitable because of the large number of them

Is there more than one subtitle per video ??

If so, that could be a problem :(

TheEqualizer
14th June 2023, 10:14
TDS, уes, that's right, that's why I thought that we were already able to circumvent this restriction and forced tsmuxer to forcibly add non-converted srt subtitles to the container, but as it turned out, these are just my dreams

Kuler087
14th June 2023, 15:44
Can someone help me with this command, please ?

I would like to modify this to use tsmuxer instead of ffmpeg..

"C:\ffmpeg\bin\ffmpeg.exe" -y -i "%OUTPUTFILEDIR%\%OUTPUTFILENAME%.%OUTPUTFILEEXT%" -c:v copy -c:a copy -c:s copy "c:\temp\%OUTPUTFILENAME%-test.m2ts"

Converting an .mkv with DV metadata using ffmpeg, removes the DV metadata, tsmuxer does not :)

Tsmuxer in cli is a lot more complicated than ffmpeg because you have to specify each track ID and language in a meta file.

The DoVi_Scripts (https://drive.google.com/drive/u/1/folders/1keTxo5RoH8V_kqcZn4ZWF_J2M9DvOQRu) have a workflow that can batch mux mp4/mkv to ts. It can also automatically add a silent core to TrueHD for bluray compatibility.

d3rd3vil
7th July 2023, 12:22
Any new way to convert a cropped Dolby Vision mkv to a m2ts WITH black bars? For the Oppo 203 ofc :)

SeeMoreDigital
7th July 2023, 13:36
Any new way to convert a cropped Dolby Vision mkv to a m2ts WITH black bars? For the Oppo 203 ofc :)
Nope... And I doubt such an option will ever happen!

d3rd3vil
8th July 2023, 11:55
Ah shit then we got a problem

Balling
18th August 2023, 07:46
This is not really a bug, more of a question. I'm fairly new to tsmuxer.

Why do m2ts files remuxed with tsmuxer to the same format end up being smaller? For example, I grab a 5,820,604,416 bytes m2ts from a BD, containing an h264 and lpcm track (nothing complex). I remux it as is with tsmuxer to m2ts, nothing changed. I end up with a 5,806,061,568 bytes file. That's 14,542,848 bytes less than the original (13.87 MB).

Upon demuxing the tracks from both they are identical (compared checksums). So no issues, but why? I understand mkv having less overhead so the resulting remuxes will be smaller, but I expected staying in the same format would result in the same file sizes.

It is a bug. The ITU-T H.222 spec is not fully followed, it is hard to. See: https://github.com/justdan96/tsMuxer/issues/108

Basically, the amount of null packets should be so much more. And that will increase the overhead and thus the size.

varekai
21st August 2023, 08:21
@justdan96
Thanks for your continued work on updating an indispensable tool! Much appreciated! :)

yannick92
3rd September 2023, 15:52
Hello everyone, did you have a good holiday?

Back to my encodings after having abandoned them in the spring, I discovered an unusual error message (never seen before...), when I wanted to re-encode an AC3 track with EAC3TO, previously demuxed with TSMuxer, let me explain:

As usual, I want to reduce an E-AC3 (DD+) audio track to AC3 + demux it.
No problems with TSMuxer, no processing errors...

Then I re-encode it with EAC3TO for various reasons...
But during the processing log, I have an unusual "Warning": "The last (E-)AC3 frame is incomplete and thus gets skipped" ??...

With Last Uptade >>> git-27f1d54

18476

On the other hand, NO "Warning" after having previously Demuxed my track with TSMuxer 2.6.12:

18477

On the other hand, I don't know if there is a correlation, but after demuxing in my different tests, I don't get the same file size (pre re-encoding), either:
With "Warning" my file is: 360 370 KB
But WITHOUT "Warning" it is: 360,369 KB??

Conclusion, what do you think? Is this a Bug? or regular?

For lack of time, I could not test with less recent realese of TsMuxer, but I remember not having had this problem with the updates of the beginning of the year, see the spring...

Thank you in advance for your answers !

Sincerely

Yannick

EDIT: Seen update and fix, in my case everything is ok now!
Thanks for the work jcdr..

Balling
6th September 2023, 06:58
Why The last (E-)AC3 frame is incomplete and thus gets skipped

Is printed for a bigger file??

"E-AC3 (DD+) audio track to AC3"

That is only possible on blu-ray.



Yeah, checking this up it appears that the very last frame is Eac3 and it is not removed, otherwise it is all good and only AC3 frames are extracted. Edit: NOW FIXED.

Kuler087
13th September 2023, 21:31
Why does tsmuxer add a negative delay instead of removing frames like mkvtoolnix?

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : MLP FBA AC-3 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 1 h 49 min
Bit rate mode : Variable
Bit rate : 64.0 kb/s
Maximum bit rate : 6 840 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossless
Delay relative to video : -3 s 337 ms
Stream size : 50.2 MiB (0%)
Language : English
Service kind : Complete Main
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

Selur
14th September 2023, 11:14
(reason is probably, since it's simpler)
Does it add or simply keep the delay?

Balling
21st September 2023, 19:37
Why does tsmuxer add a negative delay instead of removing frames like mkvtoolnix?

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : MLP FBA AC-3 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 1 h 49 min
Bit rate mode : Variable
Bit rate : 64.0 kb/s
Maximum bit rate : 6 840 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossless
Delay relative to video : -3 s 337 ms
Stream size : 50.2 MiB (0%)
Language : English
Service kind : Complete Main
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

Because you are not allowed to remove frames (except for seamless branching). Removing frames from THD and AC3 will make it lossy in first case and different in the second case. And also AC3 you are not allowed to remove priming samples. Same for DTS HD and MA, in DTS HD the reference decoder will not decode it EVEN. Also, same happens with EAC3, it has delay 256 samples, usually more.

Balling
22nd September 2023, 00:53
It is a bug. The ITU-T H.222 spec is not fully followed, it is hard to. See: https://github.com/justdan96/tsMuxer/issues/108

Basically, the amount of null packets should be so much more. And that will increase the overhead and thus the size.

Actually, I am interested. How hard would it be to fix? AFAIK, no one has open source code for that.

yannick92
24th September 2023, 18:46
Good morning
I have a problem with splitting MKV into M2TS with TSMuxer (last nightly):
No error during muxing, I get my 2 parts (split in 4 GB because DD in Fat 32), in playback with VLC, split 1 ok but split 2 no image, just the sound...?
Same on PS3, Split 2 "data not compatible" so no reading at all...
Is this a bug?
THANKS

Hellboy.
25th September 2023, 17:36
Good morning
I have a problem with splitting MKV into M2TS with TSMuxer (last nightly):
No error during muxing, I get my 2 parts (split in 4 GB because DD in Fat 32), in playback with VLC, split 1 ok but split 2 no image, just the sound...?
Same on PS3, Split 2 "data not compatible" so no reading at all...
Is this a bug?
THANKS

Is better if you report the bugs you find here:
https://github.com/justdan96/tsMuxer/issues

yannick92
25th September 2023, 18:30
Is better if you report the bugs you find here:
https://github.com/justdan96/tsMuxer/issues

Ok thx, I didn't dare...

jcdr428
1st November 2023, 09:28
Hi all, I am working on the buffers management of tsMuxer.

These are the Rx leak rates from the transport buffers given by the BD-ROM Part3 V2.5 specs:

Stream:.................................10^6 bits/s
MPEG-2 Main/Main........................18
Sec. AVC Level 3.2........................9.6
LPCM 48/96 kHz...........................20
LPCM 192 kHz..............................30
DD..............................................2
DTS............................................5
DRA............................................5
All others....................................48

Can anybody advise / PM me what are the leak rates in the V3 (UHD) specs ?

Emulgator
1st November 2023, 19:16
Hi jcdr428, many thanks for your continued work !

BD-ROM V3.0 HEVC constraints (2015 06) and
BD-ROM V3.0 UHD Format Spec (2015 07 24) and
BD-ROM V3.2 UHD Format Spec (2018 01 22) agree.

"3.11 HEVC video stream Decoder Model
In case an input to TB (Transport buffer) is a HEVC video stream,
the BDAV-STD decodes the input in the same way as T-STD defined in ISO/IEC 13818-1.
For transferring the HEVC video stream data from MB (Multiplexing buffer) to EB (Elementary stream buffer),
ISO/IEC13818-1 defines two methods: the leak method and HRD.

(BDAV-STD Video Decoder Model)
It is restricted that the BDAV-STD shall use the leak method for transferring the HEVC video stream from MB to EB.
(The BDAV-STD shall not use the HRD for the transfer of data from MB to EB.)"
-----------
"3.11.1 BDAV-STD model parameter limits
Table 3-7:
Rx1 Leak rate from TB1 for HEVC video stream: 1.1*100*10^6 bits/s = 110Mbit/s
Rbx1 Leak rate from MB1 for HEVC video stream: 1.0*100*10^6 bits/s = 100Mbit/s
MB1 Multiplexing buffer for HEVC stream 73.333 bytes
EB1 Elementary stream buffer for HEVC stream 12.500.000 bytes
DPB1 Decoded picture buffer for HEVC stream 93.312.000 bytes"
----------
Good practice UHD HEVC stream encoding for 112nm pitch BD-100: VBR peak max 109, better 108Mbps.
MPEG-2TS Peak rate for 112nm pitch BD-100: 127,9Mbps
A Scenarist UHD setting screenshot showed a max. Data Transfer rate of 122,546Mbps for a 112nm pitch Triple-layer BD-100.

P.P.S Hm.
Rx1 is max. leak rate from Transport buffer TB1 into the 73kB Mux buffer MB1 (<=110Mbs)
After container overhead is stripped off (here 110/100 -> up to +10% overhead can be accommodated)
Rbx1 is max leak rate from Mux buffer MB1 into the 12,5MB EB1 (Elementary buffer). (<=100Mbps
which would imply that any HEVC CBR ES can only touch Rbx1 from underside, keeping a safety distance (99Mbps ?)
and for HEVC VBR ES the mean value of bufferlengths worth can only touch Rbx1 from underside.
(Peaks up to 109,5Mbps minus muxer overhead, Valleys to match buffersize within bufferlength).
Don't know If I am correct here, but I thought I throw this in.

jcdr428
2nd November 2023, 08:54
Thanks @Emulgator. HEVC Rx leak rate 110 x 10^6 bits/s: this is for Main10/High Tier/Level 5.1 Primary Video.

So there are no other HEVC profiles/levels or secondary video allowed in player profile 6 (UHD), is that correct ?

What happens with 64 or 81.7 Mbps discs: are they supposed to receive AVC video only ?

Emulgator
2nd November 2023, 13:55
What happens with 64 or 81.7 Mbps discs: are they supposed to receive AVC video only ?
I guess no. You just keep bitrate down and still choose the codec (following producer's taste or really following source resolution and content ;-)

Going from the Blu-ray ecosystem "We have certain SoCs, softwares and plants available,
so let's keep needed restrictions we already have researched and extend only where necessary"
there is such thing as FHD on Ultra-HD Blu-ray, allowing longer movies, series, whatever.
If all points to FHD, then 8bpc-> AVC vs. 10bpc-> HEVC

The producer would have the choice between (FHD project ? AVC or HEVC) OR (UHD project ? HEVC only)
and the encoding person in consequence following duration/complexity vouch for BD-66 or BD-100,
then have to take care and control encoder properly before attempting to mux.
(BD-ROM 66? BD-ROM 100? which pitch ? how many layers are there and which layer are we in ?
In HEVC case on selecting Disc type Scenarist would only assign and approve the lesser bitrates.
So there are no other HEVC profiles/levels or secondary video allowed in player profile 6 (UHD), is that correct ?
HEVC Profiles should be more than one allowed. Secondary video: I am not sure, will look into it.

P.S. A quick search in the HEVC video constraints paper did not find the word "secondary".
Allow secondary AVC video to be muxed in on a AVC Ultra-HD Blu-ray ?
If ressources, time and interest allow: Why not. Can be warned about later if some Oppos play and some Pannys not.

FHD Ultra-HD Blu-ray ROM:

AVC 1920x1080 is allowed in 8bpc only (no 10bit).
I would expect the following:
AVC restrictions should stand still as before, Level 4.1, VBV model, But: No more 3D MVC coding allowed.
AVC Level 4.1 Main would accommodate 1920x1080x30/1280x720x68,3fps@50Mbps

HEVC 1920x1080 is allowed in 10bpc only (no 8bit)
HDR/SDR, Buffer leak model.
There is your other HEVC Profile: HEVC Level 4.1 Main10 High would accommodate 1920x1080x64fps@50Mbps.
But I see no reason to enforce/expect such signaling on muxer-side for FHD,
since Level 5.1 Main10 High can be used all the same with less than maxed-out, so FHD bitrates.

UHD Ultra-HD Blu-ray ROM:
Mandatory HEVC 3840x2160 10bpc, Buffer leak model.
The Profile: Level 5.1 Main10 High can place 160Mbps to accommodate 3840x2160x64fps

(No AVC allowed nor possible, AVC Level 5.2 Main(8) would place 240Mbps to accommodate 3840x2160x66,8fps
and Hi10P, well out of the equation...)

From the muxer perspective I would gather that the model and leak rates shall not differ if HEVC UHD or FHD is to be muxed.
As bitrate should also not affect the muxer strategy, IMHO.
After all, it is the same hardware demuxing/decoding is running on for all legally possible stream parameters.

For completeness sake:
HEVC max number of slice segments: 34
HEVC Max number of pictures in DPB: 6 for 3840x2160 and 1920x1080
HEVC GOP duration: 1s for 3840x2160 and 1920x1080
HEVC STD delay: 1s for video stream, 60s for still picture.

Optional: For better searchability HEVC stream may contain a temporal sublayer consisting of TSA pictures...

jcdr428
2nd November 2023, 17:53
So let's say I want to compress a UHD Blu-ray to FHD HEVC to fit on a 50 GB BD-R: what HEVC leak rate and overall TS_recording_rate should I use (i.e. what min. Arrival TimeStamp interval between two 0x1011 packets) ?

Currently tsMuxer does not care about leak rates, it just calculates one ATS interval between two successive video DTS by dividing the frame duration between those two DTS by the number of packets in this duration, whatever the number of tracks or size of frames. Therefore there is a huge variation in ATS interval for e.g. I-frame vs B-frame.

cubicibo
2nd November 2023, 22:52
The leak rate is the peak bitrate of the input VBR stream (https://forum.doom9.org/showthread.php?p=1576826#post1576826), capped at the maximum rate allowed for a given elementary stream type.

Emulgator
3rd November 2023, 12:34
Good thread, cubicibo, from the beginning !
jcdr428 was at it 2020, together with drmpeg's other post
https://github.com/justdan96/tsMuxer/issues/108

From my quick glances other (disc) muxers seem to need to parse VBR elementaries before actually muxing.
No way to go for streaming of course, but there are different bitstream restriction sets in force which help on-the-fly muxing.

jcdr428
4th November 2023, 12:24
The leak rate is not really the peak rate, but rather the average reading rate for one frame from the transport buffer to the multiplexing buffer. The multiplexing buffer mustn't overflow above maximum permitted size, nor underflow (i.e. become null before end of reading of the frame). This is why the blu-rays generally have a 900ms "dwell" between the arrival time stamp and the DTS, to allow for burst bitrates than can be well above maximum permitted (cf. Super Mario Bros UHD which goes to >130 Mbps for a leak rate of 109*10^6).

Edit: and this is why there are various leak rates for H.264:
1.2*40*10^6 for level 4.1,
1.2*24*10^6 for level 4,
1.2*24*10^6 for level 3.2,
1.2*16.8*10^6 for level 3.1,
1.2*12*10^6 for level 3

It should be the same for H.265, unfortunately the WhitePaper does not give the various leak rates for the various levels that can be used.
E.g. we don't know which level and leak rate can be used on a 50GB disk which maximum reading rate is 64*10^6 bps.

Edit2: the post from drmpeg applies to .ts (not .m2ts) for which there are no arrival time stamps, so indeed the leak rate is the peak rate and filler packets are included to keep the rate constant.

jcdr428
6th November 2023, 18:32
OK the leak rates can be deducted from the H.265 standard Annex A 4.2.

Main10 High Tier would be:
1.1x160x10^6 for levels 5.1 (capped to 1.1x100 for Blu-rays),
1.1x100x10^6 for level 5.0,
1.1x50x10^6 for level 4.1,
1.1x30x10^6 for level 4.0.

Edit: so you would have to encode to level 4.1 for a 50GB BD-R disk spinning at 64 Mbps / 2x or 81.7 Mbps / 2.5x.

ryrynz
19th November 2023, 02:22
Anyone know if anything better than AC3 can be played back by my Panasonic TV whilst playing DV content after remixing to TS from MKV and how that would be achieved?

SeeMoreDigital
19th November 2023, 11:49
Anyone know if anything better than AC3 can be played back by my Panasonic TV whilst playing DV content after remixing to TS from MKV and how that would be achieved?What's your Panasonic TV's model number?

Just-so-you-know... No make and model of television is able to display Dolby Vision content stored with the .mkv container. Currently, just .mp4 and .ts/.m2ts containers are supported.

ryrynz
19th November 2023, 11:53
What's your Panasonic TV's model number?



Just-so-you-know... No make and model of television is able to display Dolby Vision content stored with the .mkv container. Currently, just .mp4 and .ts/.m2ts containers are supported.

Hey. It's a LZ980. Yeah I have to remux to TS then rename the extension to MKV so the tv sees it and bingo. But yeah no DTS MA or Dolby HD, I'm aware there's a limitation I've seen it specified before, just wondered if anything had changed on that front. Cheers.

SeeMoreDigital
19th November 2023, 12:42
...But yeah no DTS MA or Dolby HD, I'm aware there's a limitation I've seen it specified before, just wondered if anything had changed on that front. Cheers.Lossless audio formats such as DTS-HD MA and Dolby True HD (with or without Atmos) have to be bit-streamed via HDMI eARC to an supporting AVR, regardless of the TV's manufacturer.

According to pages 180 and 181 of your TV's 'eHelp' information, it would appear that lossy audio formats such as Dolby Digital and Dolby Digital Plus usually up-to 5.1 channels (with or without Atmos) are able to be decoded by the Panasonic's media player app (or be passed via HDMI ARC/eARC to an supporting AVR). Sadly, support for lossy DTS decoding is no longer mentioned.

On a more personal note, I'd be interested to know if the media player app in the 2022 (and 2023) Panasonic TV's supports playback of stereo/multi-channel FLAC, either as a .flac file or when muxed within the .mkv container with video...

Cheers

Kuler087
20th November 2023, 21:20
What's your Panasonic TV's model number?

Just-so-you-know... No make and model of television is able to display Dolby Vision content stored with the .mkv container. Currently, just .mp4 and .ts/.m2ts containers are supported.

Actually, Sony Bravia TV supports DV in an MKV container.

https://forum.makemkv.com/forum/viewtopic.php?p=134179#p134179

SeeMoreDigital
20th November 2023, 22:07
Actually, Sony Bravia TV supports DV in an MKV container.

https://forum.makemkv.com/forum/viewtopic.php?p=134179#p134179Nah, not using it's own media player app.

As far as I'm aware Matroska has not developed the required file parser yet. But I'd really like to be proved wrong!

Kuler087
20th November 2023, 23:40
Nah, not using it's own media player app.

As far as I'm aware Matroska has not developed the required file parser yet. But I'd really like to be proved wrong!

Well AFAIK PLEX supports what the TV supports internally and it cannot force support for a non-supported format.

PLEX is more practical than TVs internal app anyway, and I would be VERY happy if my C2 supported DV mkv in PLEX but it doesn't.

Balling
21st November 2023, 16:30
Nah, not using it's own media player app.

As far as I'm aware Matroska has not developed the required file parser yet. But I'd really like to be proved wrong!

Mkv dolby vision files are for Sony. You just install APK file that can play it and pass metadata.

SeeMoreDigital
21st November 2023, 17:12
Mkv dolby vision files are for Sony. You just install APK file that can play it and pass metadata.Hmmm... The APK file for what device?

ryrynz
24th November 2023, 06:08
On a more personal note, I'd be interested to know if the media player app in the 2022 (and 2023) Panasonic TV's supports playback of stereo/multi-channel FLAC, either as a .flac file or when muxed within the .mkv container with video...


Cheers. FLAC unsupported in MKV but works with stereo flac files. Multi-channel straight up froze the player and turned the TV off.

SeeMoreDigital
24th November 2023, 12:01
Cheers. FLAC unsupported in MKV but works with stereo flac files. Multi-channel straight up froze the player and turned the TV off.Thanks for doing this.

You'd think Panasonic would mention that their media player app is able to support 2-ch Flac within their TV's specifications.

By contrast, my 2016 LG televisions media player app can't play native flac files but it can play 2-ch and 6-ch flac when it's muxed within the .mkv container along with video - Neither of which is mentioned in the user manual :eek:

I'm one of those people who often uses my TV to play music files rather than switching on my amps and media streamer (OPPO)...

Balling
24th November 2023, 12:47
Hmmm... The APK file for what device?

APK file and nowadays Split "APKS" is what Android uses. As for what apk https://www.google.com/search?q=apk+for+android+sony+tvs+to+play+dolby+vision+profile+5

This one https://github.com/moneytoo/Player/releases

Or

https://emby.media/community/index.php?/topic/96083-sony-tv-app-dolby-vision/

ryrynz
25th November 2023, 06:16
Thanks for doing this.

You'd think Panasonic would mention that their media player app is able to support 2-ch Flac within their TV's specifications.


Yeah I was surprised, maybe it's a somewhat recent addition, the multichannel playback is hit and miss, 3 channel can sometimes work, 7.1 channel is a no go. Much prefer the Dolby picture overall, probably the majority of likely due to the picture profile the TV loads when playing it back.

Overrighter
24th December 2023, 14:17
Hello, Everybody!
I hope my post will be somewhat useful, coz I couldn't find out an answer as to how to make Sony UBP-X800M2 trigger Dolby Vision (DV) input when playing an original m2ts file from the BD 4k DV disk using a USB flashdrive. Long story short. I run the m2ts file though tsMuxeR GUI git-2c58285 ("tsMuxeR 2022-08-14 Nightly Portable Windows 64-bit") from m2ts into the same m2ts only de-clicking unnecessary audio tracks and, Bingo!, x800m2 indicates Dolby Vision as input, while for the non-modified file it indicates just HDR. It was Uncharted 4k uhd disk. tsMuxeR shows two video tracks: 4k and 1080p for both original m2ts and after remuxing. If I could feedback anything more for the purpose of developing this wonderful utility, please ask. I'll do my best.

Keep on using your lovely program for all this time! Recently figured out what is getting changed by the TSmuxer when I just "translate" ISO's m2ts into m2ts/ts on usb/lan folder for my sony Sony UBP-X800M2:
Original m2ts
Video #2
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : 36
Duration : 1 h 45 min
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2

m2ts recreated by TSmuxer
Video #2
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : 6
Duration : 1 h 45 min
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2

For the first file DV is not trigger on the player even though it is triggered when played with physical Blu-ray disk. Second file triggers DV perfectly. So, please, never remove this change for "HDR format" info :D

SeeMoreDigital
24th December 2023, 15:10
For the first file DV is not trigger on the player even though it is triggered when played with physical Blu-ray disk. Second file triggers DV perfectly. So, please, never remove this change for "HDR format" info :D
Which git build are you using?

Overrighter
24th December 2023, 16:15
Which git build are you using?

Always used git-f254deb. Today tried git-72d4b4e for the newer avatar 4k uhd re-release with dolby vision (collector's edition) - worked perfectly as well.

deank
26th December 2023, 13:27
Well AFAIK PLEX supports what the TV supports internally and it cannot force support for a non-supported format.

PLEX is more practical than TVs internal app anyway, and I would be VERY happy if my C2 supported DV mkv in PLEX but it doesn't.

I recently added Dolby Vision support to my version of Movian for Android and it is perfect for testing DV/HDR10+/HDR/SDR, etc. in mkv/mp4/m2ts.

Since it can also tamper with the hevc bytestream you can remove/force DV/HDR10+ like some other apps do. I'm mentioning this only because it is about Android/AndroidTV and can be used to test your TV/receiver capabilities.

Just fwiw :) and happy holidays!

p.s. You can find Movian here if you want to test: movian.deanbg.com

Emulgator
27th December 2023, 17:43
Happy holidays, deank !

cogira
25th January 2024, 19:13
What means this msg from Tsmuxer?
"Tsmuxer finished with error code 1or I (it is not clear if 1 or I)

varekai
4th April 2024, 04:01
Thanks justdan96 for new update!
Nightly build from 2024-04-04-01-54-45 (https://github.com/justdan96/tsMuxer/releases/tag/nightly-2024-04-04-01-54-45#:~:text=Nightly%20build%20from%202024%2D04%2D04%2D01%2D54%2D45)
Much appreciated!

malimuc
26th May 2024, 17:52
After remuxing movie (Bob Marley- One Love 2024) with tsmuxer Gui (from 05.12.2024) Dolby Atmos sound is not synchronized with the movie and subtitles. The sound on the Bluray disc without remux works flawlessly! Has anyone else encountered this problem?

von Suppé
27th May 2024, 15:48
I don't know what you exactly imported in tsMuxer, but when importing the proper playlist (*.mpls file from BD's native PLAYLIST folder), IME certain issues can be avoided.
You can use BDInfo to see what mpls points to what m2ts file(s).

malimuc
27th May 2024, 18:04
I import 00001.mpls in tsmuxer gui. After remuxing movie (Bob Marley- One Love 2024) with tsmuxer Gui (from 05.12.2024) Dolby Atmos sound is not synchronized with the movie and subtitles.
The sound on the Bluray disc without remux works flawlessly! Has anyone else encountered this problem?

ocean
27th May 2024, 18:48
Hi malimuc, try this test to verify the problem, extract the tracks with DGDemux then remux them with tsMuxer, adding them following the initial Bluray scheme, finally test to see if you have synchrony with Atmos audio.

https://www.rationalqm.us/dgdemux/dgdemux.html

von Suppé
28th May 2024, 09:18
Yes, DGDemux is the best BD demuxer in my book too.

Also, when using tsMuxer to mux to BD (ISO or folder structure), type value 524280 in the "45 KHz clock" window (Blu-ray tab). It's said to be vital for a proper BD mux and it indeed proofed to be working for the BD remuxes I did.
If one is interested in reading about this, see https://forum.doom9.org/showthread.php?p=1916110#post1916110

malimuc
28th May 2024, 16:16
Hi malimuc, try this test to verify the problem, extract the tracks with DGDemux then remux them with tsMuxer, adding them following the initial Bluray scheme, finally test to see if you have synchrony with Atmos audio.

https://www.rationalqm.us/dgdemux/dgdemux.html

Thx ocean. Now working sound (Dolby Atmos) like a dream after remux.

Thanks man. If there were more people like you in the world, the world would be a much better.

ocean
28th May 2024, 16:59
Yes, DGDemux is the best BD demuxer in my book too.

Also, when using tsMuxer to mux to BD (ISO or folder structure), type value 524280 in the "45 KHz clock" window (Blu-ray tab). It's said to be vital for a proper BD mux and it indeed proofed to be working for the BD remuxes I did.
If one is interested in reading about this, see https://forum.doom9.org/showthread.php?p=1916110#post1916110

Thanks von Suppé, for the very interesting information.

tandi
18th November 2024, 22:05
hello, want to ask, why tsmuxer gui can't recognized it ?

Audio #1
ID : 2
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 2 h 1 min
Bit rate mode : Variable
Bit rate : 2 761 kb/s
Maximum bit rate : 4 044 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 2.35 GiB (7%)
Title : BTM TrueHD Atmos 7.1
Language : English
Default : Yes
Forced : Yes
Source : Universal Studios Blu-ray (2024)
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

SeeMoreDigital
18th November 2024, 22:19
hello, want to ask, why tsmuxer gui can't recognized it ?

Audio #1
ID : 2
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 2 h 1 min
Bit rate mode : Variable
Bit rate : 2 761 kb/s
Maximum bit rate : 4 044 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 2.35 GiB (7%)
Title : BTM TrueHD Atmos 7.1
Language : English
Default : Yes
Forced : Yes
Source : Universal Studios Blu-ray (2024)
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

Which version of TSmuxer GUI are you using? If its an old version it probably can't accept Dolby TrueHD streams that don't include a mandatory lossy Dolby Digital 'core' (companion) stream.

tandi
19th November 2024, 03:20
it's 2.6.12 , i try with another , it's same , not recognized

Audio #1
ID : 2
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 1 h 43 min
Bit rate mode : Variable
Maximum bit rate : 7 125 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Language : English
Default : Yes
Forced : No
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

SeeMoreDigital
19th November 2024, 10:34
You need to use the newer open source 'git builds'.

See post 1 in this topic for links.

tandi
20th November 2024, 08:24
thanks it work

justdan96
21st April 2025, 11:39
I thought I'd just call out to anyone active here that tsMuxer is no longer under active development. The final build is available from here: 2.7.0 (https://github.com/justdan96/tsMuxer/releases/tag/2.7.0)

jcdr428
22nd April 2025, 18:19
Hi @justdan96, thank you for all your work.
Hopefully there will be a volunteer to maintain a fork.

SeeMoreDigital
22nd April 2025, 18:40
Many thanks to everyone who took the time to bring this wonderfull application to this level.

Personally I can't think of any improvements that can be made to it.

Very nice work indeed ;)

varekai
23rd April 2025, 05:37
Hello justdan96!

Many thanks for all the work that you and everyone involved put into this outstanding one-of-its-kind software.
It is and will be indispensable to me and probably to many others for many, many years to come.

Thank you!

Best regards,
varekai

Emulgator
23rd April 2025, 12:37
Many thanks from me too to all involved for all that effort.
Where would be be without...

tebasuna51
23rd April 2025, 17:40
Many thanks justdan96 for your work!

outgoing
24th April 2025, 06:18
Another one that adds to the thanks for all the great work done to provide us with this indispensable tool. Hopefully it can be continued in its development by others.

Thank you very much justdan96 and all the team that invested so many hours in the development!

glc650
24th April 2025, 23:05
The final build fails to open for me on macOS 15.4.1:

"tsMuxerGUI.app" is damaged and can't be opened. You should move it to the Trash.

Selur
27th April 2025, 13:29
@glc650: both command line and gui work fine here. Did you call:
xattr -rc "Path to ssMuxeRGUI.app"
to remove all those quarantine flags macOS adds when the source isn't registered/paying?
(Apples habit of telling the user something is broken, when the problem is a flag it itself added is the reason, is hilarious in a bad way.)

glc650
27th April 2025, 21:52
@glc650: both command line and gui work fine here. Did you call:
xattr -rc "Path to ssMuxeRGUI.app"
to remove all those quarantine flags macOS adds when the source isn't registered/paying?
(Apples habit of telling the user something is broken, when the problem is a flag it itself added is the reason, is hilarious in a bad way.)Never had to do that before but that did the trick, thanks.

qyot27
28th April 2025, 03:26
@glc650: both command line and gui work fine here. Did you call:
xattr -rc "Path to ssMuxeRGUI.app"
to remove all those quarantine flags macOS adds when the source isn't registered/paying?
(Apples habit of telling the user something is broken, when the problem is a flag it itself added is the reason, is hilarious in a bad way.)
Wow. That would have definitely spared a lot of time messing around with Gatekeeper while prepping the latest AviSynth+ release.

It's even worse (https://forward-in-code.blogspot.com/2024/11/sequoia-and-downloads.html):
If you unpack a tar archive which has this attribute, all the unpacked files inherit the attribute. If an unpacked file is an executable and you try to execute it, you get the message ‘Operation not permitted’ and the execution fails.

So it's good to know that there is indeed a way of fixing downloaded stuff without having to suggest users disable part of the OS' security. That's just a bad look, even if the feature in question is more frustrating than helpful for anyone that knows what they're doing.

The funniest part is that aparently curl bypasses it entirely, because it doesn't set the attribute; web browsers do, but a literal downloading application does not (although I wonder how long until Apple starts shipping a custom version which does).

Lucius Snow
25th July 2025, 11:50
Hi all,

I have this error "TRUE-HD stream (track 3): bad frame detected at position... Resync stream." when trying to mux a Dolby TrueHD MLP to make a Blu-Ray. Any ideas?

Thanks.

EDIT: The old version from 2014 doesn't display theses errors. Why?

MrVideo
27th July 2025, 04:58
Does it have a core AC3. tsMuxer doesn't support coreless Dolby TrueHD

Lucius Snow
27th July 2025, 21:41
Yes, it does.

MrVideo
31st July 2025, 01:43
Then there might be a bug, which isn't going to get fixed any time soon.

DanDare1983
5th October 2025, 18:15
I know tsmuxer isn't being updated anymore but I have a couple of simple questions hopefully someone can answer. Firstly when I add a blu-ray playlist with multiple m2ts files (seamless branched discs) when I check the resulting stream folder I only see one m2ts instead of 2 or 3. I understand that when m2ts files are joined together audio frames need to be dropped in order for the m2ts files to sync up? Does tsmuxer do this? Also I like to create a simple main movie of my blu-rays, does tsmuxer do this perfectly fine or is there any additional setting i need to check. I know that when I add an m2ts file and not a mpls tsmuxer creates chapters if I don't check the 'no chapters tab'. Finally i've noticed that when I add a movie with dolby atmos the atmos track is out of sync, to get round this I use the embedded ac3 core which is fine. Is this a known problem or is it just me? Thanks again

taurusus
5th October 2025, 22:31
Hi DanDare1983 tsmuxer can create only one m2ts file, it is not necessary to separate audio from video, it can assemble with all audio and subtitles and I did not notice any desynchronization in the Atmos track.

DanDare1983
6th October 2025, 15:26
@taurusus when you have multiple m2ts files you will get overlapping frames. Tools like eac3to and DGdemux will reduce frames in order for the m2ts files to sync up. In regards to the Atmos TrueHD track I ran it through DGdemux and the resulting audio file was in perfect sync with the video so it's obviously done something because it's now in perfect sync.

ocean
6th October 2025, 21:30
with dolby atmos the atmos track is out of sync, to get round this I use the embedded ac3 core which is fine. Is this a known problem or is it just me? Thanks again

Hi DanDare1983, I'm only replying to you about the Atmos track for seamless branched discs:

https://forum.doom9.org/showthread.php?p=2022510#post2022510

DanDare1983
6th October 2025, 21:55
Hi Ocean, just checked the link and I can confirm that by extracting the 'full' truehd track with dgdemux and adding it to tsmuxer it works fine. Just a quick question if you can help....I see options such as "Do not change SEI and VUI data" and the box "Continually insert SPS/PPS" both unchecked. Do I need to check these? I'm not sure what they're actually for?

ocean
6th October 2025, 22:16
Supplemental enhancement information (SEI) and video usability information (VUI):


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

Hellboy.
7th October 2025, 18:31
DanDare1983
What version of tsMuxer are you using? I don't see any sync problem.

DanDare1983
8th October 2025, 08:37
Hellboy
I'm using the latest 2.7.0 release. Its weird because i tried another blu-ray folder with TrueHD Dolby atmos and that one worked fine. I've also just realised that tsMuxer is no longer being developed and that the latest 2.70 release is final. Thats a shame as i think its a handy tool to have.

Hellboy.
8th October 2025, 21:12
Maybe the disk have a delay in the audio and tsMuxer doesn't see it.

DanDare1983
9th October 2025, 12:48
The actual disk in question was actually fine when i run it through dvdfab so i don't know whats wrong with it. Do you know how well the latrst version deals with UHD 4K disks? I'd like to make a simple main movie into Blu-ray folder with them too.

Columbo
9th October 2025, 16:18
Regarding your async with THD Atmos, something in the process has to correct for the gaps between the M2TS files. When you used DGDemux, it did so. Perhaps your process is using tools that don't support gaps correction for THD, which can be tricky.

DanDare1983
9th October 2025, 16:59
Hey Columbo, the disc in question only had one m2ts file and not multiple m2ts files. I can understand sync issues with movies with multiple m2ts but not one. I knew by running the THD file through dgdemux the audio would be fine. Which did confuse me was that other THD tracks work fine so i'm not sure whats going on. Whilst wer'e on the subject of multiple m2ts files and gap correction, does tsMuxer work well with them kind of discs (seamless branched discs)? I've been leaving them for the time being and focusing primarily on discs with one m2ts file.

Hellboy.
9th October 2025, 22:20
Never had any problems using tsMuxer on disks with multiple m2ts.

Columbo
10th October 2025, 15:14
Sorry, I am not familiar with tsmuxer.

DanDare1983
22nd October 2025, 13:24
Someone told me that if I create a main movie blu-ray from mpls/m2ts file I'll get identical file. However if I demux from original blu-ray folder with eac3to the ac3 track is +7ms cannot be fixed, whearas if I demux the tsmuxer made file with eac3to I get +8ms cannot be fixed. I know it's only 1ms but tsmuxer must be doing something as I expected things to be identical. I'm using the exact m2ts file so no playlists with added m2ts files.

Hellboy.
22nd October 2025, 22:26
I never demux with eac3to, especially ac3. I demux with MKVToolNix - gMKVExtractGUI or tsMuxer.

Columbo
7th November 2025, 14:46
Someone told me that if I create a main movie blu-ray from mpls/m2ts file I'll get identical file. That's not always true, because the disk structure can define in/out times for the M2TS files. If you create from only the M2TS files then these times are not honored, and the results can differ.

Overrighter
11th March 2026, 11:19
Anyone used the 2.7.1 fork from github?
https://github.com/jaminmc/tsMuxer/releases/tag/v2.7.1

MrVideo
27th March 2026, 15:43
I just tried, but it complains about d3d12.dll missing. I'm running Win7 64bit. Back to 2.7.0.

MrVideo
27th March 2026, 15:58
I installed the dll and then it complained about another one. Installed it and now it complains about an entry point not found. There are no notes about not supporting Win7, only Win-XP. Yet, Win7 appears to not have been tested.

ocean
27th March 2026, 18:14
Hi MrVideo, D3D12.dll is part of DirectX 12.

Unfortunately, Windows 7 only supports up to DirectX 11.1:

https://learn.microsoft.com/en-us/answers/questions/3292143/missing-dll-d3d12-dll

MrVideo
27th March 2026, 22:40
Ya, I noticed the d3d11.dll on the system. Why would the programmer change to DirectX 12, which Win7 doesn't support, and not indicate that Win7 is no longer supported?

DanDare1983
20th April 2026, 16:15
I've read through the tsmuxer forum and only just realised that when muxing to a BD disc it is advised that a start-time 524280 is recommended. I don't have a clue why it's recommended but apparently it's vital to set a start time of 524280 when muxing to Blu-ray. This was advised around 2020 though so has this been updated since to automatically set the start time?

Emulgator
21st April 2026, 18:42
https://forum.doom9.org/showthread.php?p=1983228&highlight=524280#post1983228
https://forum.doom9.org/showthread.php?p=1916192#post1916192
And no, this has not been implemented as default, I just used 2.7.0 yesterday and I had to input it manually.

DanDare1983
21st April 2026, 20:07
@Emulgator

When going to enter 524280 i see another number, should I change the number to 524280?

Also does this number have to be entered with just MKV or do I have to do it with Blu-ray/4K too? I'm one of these people who just likes to make a simple main movie Blu-ray disc remux.

Emulgator
22nd April 2026, 11:13
tsMuxer needs that given offset to generate a BD .m2ts mux with valid navigation.
What is that other number ? If you start typing into Start mux time field: 11.650s then the 45kHz clock tick field auto-populates with 524250.
These 524250 are just the corner case. Including that value and going down from there naviation starts to fail.
Use 524280, this has proven safe, read my derivation given in the links above.
Anything above that value will work too, 0:10:00.000, 1:00:00.000... I can not talk about MKV.
Why the 32bit negative overflow problem ?
12..15 years ago I had a suspicion going back to muxing engine comparisons, finding a similar size
between early builds of tsMuxeR vs. the licensed Sony muxer in DVD-A et al, both ~ 256k.
Since licensed pressed BDs show the same offset. Reverse-engineered and inherited maybe ?
roman76's workaround: his early versions of tsMuxeR had a hardcoded mux starting time of 0:10:00.000

DanDare1983
22nd April 2026, 17:16
The other number is 270000 which is quite a common number I see when adding a mpls file.

Emulgator
23rd April 2026, 15:25
Just mux with those 6 seconds muxing delay and report playability.

oniiz86
26th April 2026, 15:52
@MrVideo I got in touch with the developer to see if he was interested in Windows 7 support which required QT5 compiled builds & he kindly released it here https://github.com/jaminmc/tsMuxer/releases/tag/v2.7.2 but I had said that the "d3d12.dll" missing file error is still present but just in case it may be an issue on my end, perhaps you can test it to see if it may work? He said if it is an issue with his QT5 builds, he'll have to install Windows 7 on his VM to see how to fix it.

ocean
27th April 2026, 00:01
Thank you oniiz86, I confirm the error of the lack of dynamic library "d3d12.dll", tested on windows 7 Service Pack 1 - 64 bit.

JediFonger
3rd August 2026, 19:54
can this be done on the gui? or is it best for metafile only?

also, based on what i read, it only impacts remux files, but does *NOT* impact like iphone videos, correct?

tsMuxer needs that given offset to generate a BD .m2ts mux with valid navigation.
What is that other number ? If you start typing into Start mux time field: 11.650s then the 45kHz clock tick field auto-populates with 524250.
These 524250 are just the corner case. Including that value and going down from there naviation starts to fail.
Use 524280, this has proven safe, read my derivation given in the links above.
Anything above that value will work too, 0:10:00.000, 1:00:00.000... I can not talk about MKV.
Why the 32bit negative overflow problem ?
12..15 years ago I had a suspicion going back to muxing engine comparisons, finding a similar size
between early builds of tsMuxeR vs. the licensed Sony muxer in DVD-A et al, both ~ 256k.
Since licensed pressed BDs show the same offset. Reverse-engineered and inherited maybe ?
roman76's workaround: his early versions of tsMuxeR had a hardcoded mux starting time of 0:10:00.000

outgoing
4th August 2026, 13:38
Yet another fork developed by teaching-droid
https://github.com/teaching-droid/tsMuxer

JediFonger
5th August 2026, 20:35
i got a virus detected when trying to download it

Yet another fork developed by teaching-droid
https://github.com/teaching-droid/tsMuxer

JediFonger
5th August 2026, 22:16
could teaching-droid integrate your fix into the new fork of tsmuxer? it's on 13.3 right now


tsMuxer needs that given offset to generate a BD .m2ts mux with valid navigation.
What is that other number ? If you start typing into Start mux time field: 11.650s then the 45kHz clock tick field auto-populates with 524250.
These 524250 are just the corner case. Including that value and going down from there naviation starts to fail.
Use 524280, this has proven safe, read my derivation given in the links above.
Anything above that value will work too, 0:10:00.000, 1:00:00.000... I can not talk about MKV.
Why the 32bit negative overflow problem ?
12..15 years ago I had a suspicion going back to muxing engine comparisons, finding a similar size
between early builds of tsMuxeR vs. the licensed Sony muxer in DVD-A et al, both ~ 256k.
Since licensed pressed BDs show the same offset. Reverse-engineered and inherited maybe ?
roman76's workaround: his early versions of tsMuxeR had a hardcoded mux starting time of 0:10:00.000

outgoing
6th August 2026, 08:03
i got a virus detected when trying to download it

I imagine that’s when you’ve unpacked it. In my case, haven’t had any problems with detection. It’s open-source code, so you can audit everything yourself.

DanDare1983
18th August 2026, 14:21
I'd like to create a main movie blu-ray folder from my untouched original.disc folders using tsmuxer. I understand that creating a blu-ray compliant folder from the original blu-ray compliant folder is simple but there is a couple of boxes that can be checked and I'm not sure whether to check them or not
1. Sei and vui data - whether to touch this at all? 2. Continually insert ssp/pps? Also in regards to seamless branched discs I'd like to demux the raw streams with eac3to and then add them to tsmuxer as then the streams will be in sync. I just wanted to know if I'd change anything in the boxes above when using demuxed files too?