Log in

View Full Version : tsMuxer Open Source


Pages : 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

a5180007
4th February 2020, 20:39
@yannick92 the "secondary" checkbox was already there with 2.6.12. The secondary audio is for PiP (Picture-in-Picture) videos.
Edit : secondary audio is possible only with E-AC3 and DTS Express.

Patch has been submitted for fixing the bitrate and channel.

filler56789
5th February 2020, 05:53
AT LAST! :)

In file w64-nightly-2020-02-05--01-09-49.zip

the 24-bit DTS Express "bug" in the GUI has been "fixed"
(so to speak)

:thanks:

r0lZ
5th February 2020, 10:07
As far as I know, MKVToolnix/MKVmerge doesn't process MVC (SSIF) 3D movies...it leaves out the SSIF/MVC track.
You can create the AVC+MVC MKV with MakeMKV. But I don't know if you can then use MkvToolnix to join the two parts, or cut the black section.
And, of course, if you want to recreate a 3DBD, tsMuxeR is better.

mattmarsden
5th February 2020, 18:29
Sorry to be a pain, but would there be any chance of muxing single layer Dolby Vision?

a5180007
5th February 2020, 19:49
Sorry to be a pain, but would there be any chance of muxing single layer Dolby Vision?

@mattmarsden could you please be more specific ? tsMuxer already muxes single layer DV hevc streams.

Try eg dolby-vision-amaze.mp4 (https://1drv.ms/v/s!AqRZp848Q4jUga5Fj71ZWzlwEq_kSQ?e=JABEdp) (DV Profile 5) or P81_GlassBlowing2.mp4 (https://1drv.ms/v/s!AqRZp848Q4jUga5Iye9g09Uv6EJ7jg?e=cowWIa) (DV Profile 8.1)

a5180007
5th February 2020, 21:13
Hello!

That is a good find! Thanks!
I suspected it could be a bug in easySUP.
I'm definitely gonna try bdsup2sub!
varekai

Or you could simple load the srt in tsMuxer, conversion to sup works well on Windows.
Alternatively, open the sup produced by easysup with an hexeditor:
- bytes 14-15 are width (0x0780 = 1920)
- bytes 16-17 are height (0x0438 = 1080)
- first nibble of byte 18 is fps: = (0, 23.976, 24, 25, 29.97, 30, 50, 59.94) => change from "10" to "20"

SeeMoreDigital
5th February 2020, 23:10
@mattmarsden could you please be more specific ? tsMuxer already muxes single layer DV hevc streams.

Try eg dolby-vision-amaze.mp4 (https://1drv.ms/v/s!AqRZp848Q4jUga5Fj71ZWzlwEq_kSQ?e=JABEdp) (DV Profile 5) or P81_GlassBlowing2.mp4 (https://1drv.ms/v/s!AqRZp848Q4jUga5Iye9g09Uv6EJ7jg?e=cowWIa) (DV Profile 8.1)Both of those sources crash my OPPO when muxed using the 'Blu-ray Folder' output option...

a5180007
6th February 2020, 06:24
Both of those sources crash my OPPO when muxed using the 'Blu-ray Folder' output option...

To my knowledge, standalone players don't have to be compatible with single layer DV streams. I can't see what can be changed on tsMuxer.

SeeMoreDigital
6th February 2020, 10:29
To my knowledge, standalone players don't have to be compatible with single layer DV streams. I can't see what can be changed on tsMuxer.I have a few single layer Dolby Vision test files that work fine with the OPPO.

Links: -
https://4kmedia.org/lg-earth-dolby-vision-uhd-4k-demo/ [60.000fps]
https://4kmedia.org/lg-dolby-vision-uhd-4k-demo/ [30.000fps]
https://4kmedia.org/lg-dolby-comparison-uhd-4k-demo/ [24.000fps]
https://4kmedia.org/lg-amaze-dolby-vision-uhd-4k-demo/ [60.000fps]

a5180007
6th February 2020, 11:05
I have a few single layer Dolby Vision test files that work fine with the OPPO.

Links: -
https://4kmedia.org/lg-earth-dolby-vision-uhd-4k-demo/ [60.000fps]
https://4kmedia.org/lg-dolby-vision-uhd-4k-demo/ [30.000fps]
https://4kmedia.org/lg-dolby-comparison-uhd-4k-demo/ [24.000fps]
https://4kmedia.org/lg-amaze-dolby-vision-uhd-4k-demo/ [60.000fps]

Ok, thanks @SeeMoreDigital. I'll try to see what's different from tsMuxer outputs.

koka
6th February 2020, 14:04
Attention! Starting yesterday night build w*nightly-2020-02-05*.zip, tsMuxeR requires *.meta in utf8. Previously for Windows required 8-bit encoding.

mattmarsden
6th February 2020, 19:37
@mattmarsden could you please be more specific ? tsMuxer already muxes single layer DV hevc streams.

Try eg dolby-vision-amaze.mp4 (https://1drv.ms/v/s!AqRZp848Q4jUga5Fj71ZWzlwEq_kSQ?e=JABEdp) (DV Profile 5) or P81_GlassBlowing2.mp4 (https://1drv.ms/v/s!AqRZp848Q4jUga5Iye9g09Uv6EJ7jg?e=cowWIa) (DV Profile 8.1)

So when I add a single layer DV mp4 created by DVDFab it says the track is unknown. I will try and link to a sample.

BloodyRipper
6th February 2020, 22:40
Attention! Starting yesterday night build w*nightly-2020-02-05*.zip, tsMuxeR requires *.meta in utf8. Previously for Windows required 8-bit encoding.
This will be fixed in nightly-2020-02-07. tsMuxeR will now try to interpret the file names in the meta file in the system's current 8-bit encoding if they don't appear to be encoded in UTF-8.

SeeMoreDigital
6th February 2020, 23:10
Ok, thanks @SeeMoreDigital. I'll try to see what's different from tsMuxer outputs.My pleasure and many thanks ;)

cogira
6th February 2020, 23:17
So when I add a single layer DV mp4 created by DVDFab it says the track is unknown. I will try and link to a sample.

same here with single layer dolby vision mp4 created by dvdfab.

staina
7th February 2020, 09:37
Compared I'm MPLS files created in tsMuxer and DVDFab and found out differences see. picture.

What these different bytes mean and is some problem for when are different?

Thank for answer. staina

varekai
7th February 2020, 15:45
Or you could simple load the srt in tsMuxer, conversion to sup works well on Windows.
Alternatively, open the sup produced by easysup with an hexeditor:
- bytes 14-15 are width (0x0780 = 1920)
- bytes 16-17 are height (0x0438 = 1080)
- first nibble of byte 18 is fps: = (0, 23.976, 24, 25, 29.97, 30, 50, 59.94) => change from "10" to "20"
Thanks for the input, appreciate it.
I know tsMuxer can mux to a sup from srt but is has a bug with italics.
If I remember right it has it an all earlier verions aswell including the tsMuxerGUI-Nightly-2020-02-05--01-09-49.
Look at these two screendumps:
https://imgur.com/a/OiZA8F8

Also easySUP has more subtitles alternatives.
A wet dream I have is if there was a sup creator with options like in PotPlayer.
Potplayer Font Style:
https://imgur.com/a/90h7T69

I use HxD Hex Editor 2.3 but I can't find what you are refering to?
Any advice would on this would be great!

Thanks and
Best regards
varekai

a5180007
7th February 2020, 16:28
I use HxD Hex Editor 2.3 but I can't find what you are refering to?
Any advice would on this would be great!

On your file test.sup: the two first lines (first 32 bytes) are the PGS header.
First circle is the PGS width 0x0780, followed by the height 0x0438, followed by (second circle) 1=23.976 fps. Change it to 2=24 fps.

https://i.imgur.com/wSgKPqy.jpg

a5180007
7th February 2020, 16:42
What these different bytes mean and is some problem for when are different?

The bytes 00 00 00 0F 40 00 00 00 are the "UOMaskTable (https://github.com/lerks/BluRay/wiki/UOMaskTable)".
The following nibble is the four flags RandomAccess, AudioMix, LosslessBypass, MVCBaseViewR.

On a standalone player it is a problem if some of these flags are not enabled, with V3 Blu-rays they are compulsory.

staina
7th February 2020, 16:56
The bytes 00 00 00 0F 40 00 00 00 are the "UOMaskTable (https://github.com/lerks/BluRay/wiki/UOMaskTable)".
The following nibble is the four flags RandomAccess, AudioMix, LosslessBypass, MVCBaseViewR.

On a standalone player it is a problem if some of these flags are not enabled, with V3 Blu-rays they are compulsory.

So that tsMuxer it has right and DVDFab wrong? Yes.

varekai
7th February 2020, 17:17
On your file test.sup: the two first lines (first 32 bytes) are the PGS header.
First circle is the PGS width 0x0780, followed by the height 0x0438, followed by (second circle) 1=23.976 fps. Change it to 2=24 fps.
https://i.imgur.com/wSgKPqy.jpg
Excellent! That worked like a charm! :D
Thank you so much for your help, really appreciate it!
It will be an extra step in the workflow but its well worth it.
I like a goodlooking font for my movie projects.

Many thanks and
Best regards,
varekai

a5180007
7th February 2020, 17:41
I have a few single layer Dolby Vision test files that work fine with the OPPO.

@SeeMoreDigital I've tried some changes in the TS descriptors. Please advise whether P81_GlassBlowing2.m2ts (https://1drv.ms/v/s!AqRZp848Q4jUga5QXVbb471YcGg_3w?e=3AGtN1) works with your OPPO.

So that tsMuxer it has right and DVDFab wrong? Yes.

Yes, tsMuxer has it right and DVDFab is incorrect.

FilipeAmadeuO
8th February 2020, 11:22
P81_GlassBlowing2.m2ts works on on my OPPO clone player, so most probably will also work on orginal OPPO player.

mariner
8th February 2020, 11:26
On your file test.sup: the two first lines (first 32 bytes) are the PGS header.
First circle is the PGS width 0x0780, followed by the height 0x0438, followed by (second circle) 1=23.976 fps. Change it to 2=24 fps.

https://i.imgur.com/wSgKPqy.jpg

Greetings a5180007, thank you for the herculean effort to keep tsmuxer up to date.:thanks:
A quick question regarding the resolution of 4kUHD sup subtitle: 1920x1080 or 3840x2160?
Many thanks and best regards,

SeeMoreDigital
8th February 2020, 12:09
@SeeMoreDigital I've tried some changes in the TS descriptors. Please advise whether P81_GlassBlowing2.m2ts (https://1drv.ms/v/s!AqRZp848Q4jUga5QXVbb471YcGg_3w?e=3AGtN1) works with your OPPO.
The .m2ts file plays in HDR10 only...

a5180007
8th February 2020, 13:42
The .m2ts file plays in HDR10 only...

To understand, and know if I am on the right path: so the previous P81_GlassBlowing2.m2ts was not read at all by your player, and the new sample plays but only in HDR10 ?

SeeMoreDigital
8th February 2020, 14:09
To understand, and know if I am on the right path: so the previous P81_GlassBlowing2.m2ts was not read at all by your player, and the new sample plays but only in HDR10 ?

Yes, after re-muxing the 'P81_GlassBlowing2.mp4' file using TSmuxer's Blu-ray Folder output option, it crashed my OPPO.

I have also just tried re-muxing the 'P81_GlassBlowing2.m2ts' file using TSmuxer's Blu-ray Folder output option and it crashes my OPPO too.

By the way... According to MediaInfo the original 'P81_GlassBlowing2.mp4' file does not contain any Dolby Vision meta-data: -

General
Complete name : d:\SeeMoreDigital\Downloads\P81_GlassBlowing2.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/mp41)
File size : 30.6 MiB
Duration : 18 s 35 ms
Overall bit rate : 14.2 Mb/s
Writing application : Lavf58.26.101

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@Main
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 18 s 35 ms
Bit rate : 14.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 59.940 (59940/1000) FPS
Minimum frame rate : 59.940 FPS
Maximum frame rate : 59.943 FPS
Original frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.115
Stream size : 30.6 MiB (100%)
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2
Codec configuration box : hvcC

a5180007
8th February 2020, 15:08
@SeeMoreDigital what I need to know is if your player can read the m2ts I uploaded -the patch is not included in the master. If you can read it (even in HDR10), next step is to include the DV private data in the PMT for non-bluray mixing.

To my knowledge, only DV profile 7 DV is compatible with Blu-ray. I doubt tsMuxer can produce a compatible HDMV blu-ray folder with single layer -profile 5 and 8- DV.

As for the dvvC box missing in the mp4, ffmpeg seems to be at the same stage as tsMuxer...

Edit : do you know if your OPPO is compatible with DV profile 8.1 ? If not, the fall back to HDR10 is normal.

a5180007
8th February 2020, 15:23
@SeeMoreDigital what I need to know is if your player can read the m2ts I uploaded -the patch is not included in the master. If you can read it (even in HDR10), next step is to include the DV private data in the PMT for non-bluray mixing.

To my knowledge, only DV profile 7 DV is compatible with Blu-ray. I doubt tsMuxer can produce a compatible HDMV blu-ray folder with single layer -profile 5 and 8- DV.

As for the dvvC box missing in the mp4, ffmpeg seems to be at the same stage as tsMuxer...

Edit: if your OPPO is not compatible with DV profile 8.1, the fallback to HDR10 is normal.

SeeMoreDigital
8th February 2020, 16:06
@SeeMoreDigital what I need to know is if your player can read the m2ts I uploaded -the patch is not included in the master. If you can read it (even in HDR10), next step is to include the DV private data in the PMT for non-bluray mixing.Yes my OPPO can play the 'P81_GlassBlowing2.m2ts' file...

a5180007
8th February 2020, 16:28
Yes my OPPO can play the 'P81_GlassBlowing2.m2ts' file...

Thanks! So to finish the patch I need to include the 0xB0 DoVi descriptor in the PMT. Anybody knows how to extract the DoVi profile and level info from the hevc stream ? (and not from the container m2ts or mp4)

SeeMoreDigital
8th February 2020, 17:38
Out of interest...

What tool is used to determine the profile version of a Dolby Vision video stream?

koka
8th February 2020, 19:36
Thanks to @BloodyRipper, the torment with writing .srt in UTF-8 with BOM ended. Now you can write .srt in UTF-8 without BOM or even in 8-bit active code page encoding for example, in cp1251. Look https://github.com/justdan96/tsMuxer/commit/0035efb243a72a085c67c965e1fcf9637a998593

a5180007
8th February 2020, 20:21
What tool is used to determine the profile version of a Dolby Vision video stream?

Mediainfo reports profile and level (eg dvhe.04.06) read from m2ts or mp4 metadata. What I don't know -and I need for the PMT descriptor- is how to have these from the hevc stream.

imhh11
8th February 2020, 21:53
@a5180007 I hope you can make tsmuxer to remux the single layer mp4 to TS or M2TS, that would be really awesome. It would allow Atmos + DV (Even though DVDFAB's single layer remux are probably not true DV, it's still progress.)

Also, it would be nice to have the ability to go from dual-layer mp4 to UHD structure. Now we have to demux the mp4 with dlb_mp4demux and then build the UHD structure with tsmuxer.

Thank's a lot for the great work you're doing.

ryu34
8th February 2020, 22:12
Hey wondering if there will be support for True-HD or Atmos tracks that have had their AC-3 core separated as its own track due to MKV authoring.

SeeMoreDigital
8th February 2020, 22:35
Hey wondering if there will be support for True-HD or Atmos tracks that have had their AC-3 core separated as its own track due to MKV authoring.Yes this would be handy...

From what I understand .thd+ac3 is only a mandatory requirement for Blu-ray disc authoring. The AC-3 core is not necessary when creating generic .m2ts files.

tymoxa
8th February 2020, 22:47
Thanks to @BloodyRipper, Enhancement: Add option to make a specific audio the default track and a specific subtitle track a forced track #126 works as it intended to be (at least in cli). :thanks:

outgoing
8th February 2020, 23:09
Thanks to @BloodyRipper, works as it intended to be (at least in cli). :thanks:

Is this also valid for when it is assembled in a bluray with menu?

tymoxa
8th February 2020, 23:28
Is this also valid for when it is assembled in a bluray with menu?
No. Only for remuxes

outgoing
8th February 2020, 23:48
No. Only for remuxes

:thanks:

GeorgeLucas
10th February 2020, 21:45
It would be cool if a language could be chosen as the default (Audio & Subs). Please please insert this feature...

THX

SeeMoreDigital
10th February 2020, 22:01
It would be cool if a language could be chosen as the default (Audio & Subs). Please please insert this feature...

THXI'm not sure I understand what you mean!

tymoxa
10th February 2020, 22:24
It would be cool if a language could be chosen as the default (Audio & Subs). Please please insert this feature...

It's already there, in Blu-Ray tab. Check the latest nightly build here (https://bintray.com/justdan96/tsMuxer/tsMuxerGUI-Nightly/2020-02-10--01-10-49)

GeorgeLucas
10th February 2020, 22:56
If I drag an mpls file into the tsmuxer, the German audio tracks and subtitles are only automatically marked, for example.

SeeMoreDigital
11th February 2020, 10:21
If I drag an mpls file into the tsmuxer, the German audio tracks and subtitles are only automatically marked, for example.For what Blu-ray discs? Where were they originally released?

Hart2hart
11th February 2020, 13:49
If I drag an mpls file into the tsmuxer, the German audio tracks and subtitles are only automatically marked, for example.



I believe George is asking for the ability to set a default language in TSMuxer. This default would be applied to the results of a playlist being added by TSMuxer preselecting tracks in that language and leaving others as not selected.

staina
11th February 2020, 16:50
Great work with addition setting for default audio and subtitles track. Still would it would in the same parts behind command Play PL_MK 0, GPR10 (HEX: 42 82 00 00 00 00 00 00 00 00 00 0A) change command Jump Title 1 (HEX: 21 81 00 00 00 00 00 01 00 00 00 00) to command Break (HEX: 00 02 00 00 00 00 00 00 00 00 00 00). Command Jump Title 1 playback bluray disk over and over in loop order ending playback at the end movie.

Latest nightly build tsMuxer GUI no saves position and size windows and lay-out in window see pictures.

Thanks fixed and answer, staina

Hart2hart
11th February 2020, 21:16
On Blu-ray tab, what does “Start mux time”represent?

Thank you

justdan96
13th February 2020, 13:49
@staina sorry I'm not quite sure what you are saying, is it a UI issue?