View Full Version : tsMuxer Open Source
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 ?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.