View Full Version : tsMuxer Open Source
SeeMoreDigital
13th March 2020, 22:04
But unless I misunderstood a5180007 that won't be useful because it's not in a .TS or .m2ts file.I'm not entirely sure that a commercial 7.1 E-AC-3 audio without an AC-3 core muxed within an transport container actually exists.
I'm yet to find one in an elementary form...
a5180007
13th March 2020, 23:08
I'm not entirely sure that a commercial 7.1 E-AC-3 audio without an AC-3 core muxed within an transport container actually exists.
I'm yet to find one in an elementary form...
@SeeMoreDigital Sample of 7_pt_1.eac3 on https://samples.ffmpeg.org/A-codecs/AC3/eac3/
Maybe somebody on doom9 has access to a professional TS muxer and will manage to mux this sample...
Stereodude
14th March 2020, 00:27
@SeeMoreDigital Sample of 7_pt_1.eac3 on https://samples.ffmpeg.org/A-codecs/AC3/eac3/
Maybe somebody on doom9 has access to a professional TS muxer and will manage to mux this sample...
I'm not sure they will see the request in this thread. Maybe best to start a new thread?
tymoxa
14th March 2020, 09:25
Maybe somebody on doom9 has access to a professional TS muxer and will manage to mux this sample...
This sample encoded as Secondary audio (not usable for UHD)
Anyway, it throws error, that numblkscod shall be set to 11b (6 blocks per syncframe), but actual numblkscod is set to 0
SeeMoreDigital
14th March 2020, 15:26
@SeeMoreDigital Sample of 7_pt_1.eac3 on https://samples.ffmpeg.org/A-codecs/AC3/eac3/
Maybe somebody on doom9 has access to a professional TS muxer and will manage to mux this sample...Very nice find...
The version I downloaded from Dolby's web site way back in 2007 included an AC3 core, so it's great to have this version without a AC3 core too. Many thanks.
When the EAC3 audio stream is muxed together with a 24fps HEVC or AVC video stream into the .m2ts container, my findings are as follows: -
My LG TV detects the .m2ts file okay however, the audio stream is not recognised.
My OPPO detects the .m2ts file okay, however, the video runs at around twice normal speed. But the EAC3 audio stream plays perfectly.
By contrast, if I mux the same audio and video streams into the .mkv container, the LG TV and the OPPO plays them perfectly including the audio.
a5180007
14th March 2020, 18:53
This sample encoded as Secondary audio (not usable for UHD)
Anyway, it throws error, that numblkscod shall be set to 11b (6 blocks per syncframe), but actual numblkscod is set to 0
Thanks @tymoxa. The file is a standard 7.1 eac3 composed of a main 5.1 stream, and a dependent stream with the Lrs/Rrs channel. What's wrong in having 1 bloc per syncframe ? And do you think there is no way to have this type of 7.1 EAC3 muxed in a MPEG-TS ?
Edit: [ATSC A/52:2018 Annex G] "six blocks of audio data from every substream present in the E-AC-3 stream shall be included in the PES packet payload. As an E-AC-3 syncframe may contain fewer than six blocks of audio data, it may be necessary to group multiple syncframes to accumulate the required six blocks."
SeeMoreDigital
14th March 2020, 19:31
Don't all EAC3 audio streams as used with the Blu-ray disc format contain an AC3 core?
EDIT: Scratch the above... I've just backed-up the 'Black Panther' 4K UHD disc and it contains three 7.1 channel EAC3 tracks without an AC3 core!
a5180007
14th March 2020, 21:42
Don't all EAC3 audio streams as used with the Blu-ray disc format contain an AC3 core?
EDIT: Scratch the above... I've just backed-up the 'Black Panther' 4K UHD disc and it contains three 7.1 channel EAC3 tracks without an AC3 core!
@SeeMoreDigital I'm sceptical... I thought as well that all Blu-rays must have interweaved AC3. Could you please PM me a sample <20 MB for analysis of the descriptors ?
SeeMoreDigital
14th March 2020, 21:50
@SeeMoreDigital I'm sceptical... I thought as well that all Blu-rays must have interweaved AC3. Could you please PM me a sample <20 MB for analysis of the descriptors ?Sorry for the confusion. I've just checked again and the 7.1 channel EAC3 audio streams 'do' have an AC3 core. :o
a5180007
14th March 2020, 21:58
Is the "infamous" repeat bug fixed in the open-sourced fork? With 2.6.11, authored BluRay discs would always loop, requiring a trip to BDEdit to patch MovieObject.bdmv.
[/LIST]
@binba this has normally been fixed (as per @staina solution) in latest bintray version. Anybody could report whether this is now working as expected ?
tymoxa
14th March 2020, 23:34
And do you think there is no way to have this type of 7.1 EAC3 muxed in a MPEG-TS ?
As i can see, standard 7.1 eac3 can be muxed only as secondary audio in mpeg-ts for 1080 blu-ray only. I can do this but it's useless i think. For main audio we need "BD compatible" eac3 (BD target|eb3)
cogira
15th March 2020, 16:55
I see that there is a new gui which includes UHD-blu-ray iso and UHD.blu-ray folder, but I can't find it. Where is it for downloading? Thanks
Hellboy.
15th March 2020, 17:28
@binba this has normally been fixed (as per @staina solution) in latest bintray version. Anybody could report whether this is now working as expected ?
I tested 2 movies in PowerDVD 19 and is working. I never notice that was a bug.
The subtitles bug continue. When i remux a movie with DV to bluray folder the subtitles littler a littler go out of sync. Movies with no DV subtitles work ok.
baker99 say:
I regularly get the message "B-pyramid level 2 detected. Shift DTS to 3 frames", I think it's normal and to do with timestamps, some information here: https://bitmovin.com/docs/encoding/faqs/why-is-an-timestamp-offset-for-ts-muxings-applied-by-default
In a movie with DV i not see that message.
DV
tsMuxeR version git-11fcb24. github.com/justdan96/tsMuxer
HEVC muxing fps is not set. Get fps from stream. Value: 23.976
HEVC muxing fps is not set. Get fps from stream. Value: 23.976
Decoding TRUE-HD stream (track 3): AC3 core+TRUE-HD. Peak bitrate: 3363Kbps (core 448Kbps) Sample Rate: 48KHz Channels: 7.1
Decoding AC3 stream (track 4): Bitrate: 192Kbps Sample Rate: 48KHz Channels: 2
Decoding AC3 stream (track 5): Bitrate: 640Kbps Sample Rate: 48KHz Channels: 5.1
Decoding AC3 stream (track 6): Bitrate: 192Kbps Sample Rate: 48KHz Channels: 2
Decoding AC3 stream (track 7): Bitrate: 192Kbps Sample Rate: 48KHz Channels: 2
Decoding PGS stream (track 9): Resolution: 1920:1080 Frame rate: 23.976
Decoding PGS stream (track 10): Resolution: 1920:1080 Frame rate: 23.976
Decoding PGS stream (track 8): Resolution: 1920:1080 Frame rate: 23.976
Processed 187324 video frames
Processed 187324 video frames
Flushing write buffer
Creating Blu-ray stream info and seek index
Creating Blu-ray playlist
Mux successful complete
Muxing time: 20 min 28 sec
No DV
tsMuxeR version git-11fcb24. github.com/justdan96/tsMuxer
HEVC muxing fps is not set. Get fps from stream. Value: 23.976
Decoding TRUE-HD stream (track 2): AC3 core+TRUE-HD. Peak bitrate: 7800Kbps (core 640Kbps) Sample Rate: 48KHz Channels: 7.1
Decoding AC3 stream (track 3): Bitrate: 448Kbps Sample Rate: 48KHz Channels: 5.1
Decoding AC3 stream (track 4): Bitrate: 448Kbps Sample Rate: 48KHz Channels: 5.1
B-pyramid level 2 detected. Shift DTS to 3 frames
Decoding PGS stream (track 5): Resolution: 1920:1080 Frame rate: 23.976
Decoding PGS stream (track 6): Resolution: 1920:1080 Frame rate: 23.976
Decoding PGS stream (track 7): Resolution: 1920:1080 Frame rate: 23.976
AC3 stream (track 3): overlapped frame detected at position 00:11:53,823. Remove frame.
AC3 stream (track 4): overlapped frame detected at position 00:11:53,823. Remove frame.
Processed 146513 video frames
Flushing write buffer
Creating Blu-ray stream info and seek index
Creating Blu-ray playlist
Mux successful complete
Muxing time: 5 min 32 sec
a5180007
15th March 2020, 17:52
I see that there is a new gui which includes UHD-blu-ray iso and UHD.blu-ray folder, but I can't find it. Where is it for downloading? Thanks
@cogira this is an old GUI. V2 was former Bluray format for AVC, V3 is the newer format for HEVC/UHD. Now the V3 mode is selected automatically when HEVC is detected, and there is a checkbox option to force V3 if needed for AVC.
staina
15th March 2020, 19:24
@binba this has normally been fixed (as per @staina solution) in latest bintray version. Anybody could report whether this is now working as expected ?
Is it OK, only build w64-nightly-2020-03-14--01-12-04 has not information in About.
staina
15th March 2020, 19:36
Error in tsMuxer at following progress:
1. Add to tsMuxer UHD Bluray with HEVC and select automatically Bluray V3 format
2. Remove from tsMuxer UHD Bluray
3. Add Bluray with h.264 and Bluray V3 format is always selected (checked)
SeeMoreDigital
15th March 2020, 20:21
When the EAC3 audio stream is muxed together with a 24fps HEVC or AVC video stream into the .m2ts container, my findings are as follows: -
My LG TV detects the 'HEVC+EAC3.m2ts' file okay however, the audio stream is not recognised.
My OPPO detects the 'HEVC+EAC3.m2ts' file okay, however, the video runs at around twice normal speed. But the EAC3 audio stream plays perfectly.
By contrast, if I mux the same audio and video streams into the .mkv container, the LG TV and the OPPO plays them perfectly including the audio.As i can see, standard 7.1 eac3 can be muxed only as secondary audio in mpeg-ts for 1080 blu-ray only. I can do this but it's useless i think. For main audio we need "BD compatible" eac3 (BD target|eb3)I generated a new .m2ts file with a basic AC3 audio stream as the 'primary stream' and a the EAC3 audio stream as the 'secondary stream' and I can confirm the following: -
My LG TV detects the 'HEVC+AC3+EAC3.m2ts' file okay, and plays the AC3 audio stream perfectly. But it can't detect the EAC3 audio stream.
My OPPO detects the 'HEVC+AC3+EAC3.m2ts' file okay, and plays the AC3 audio stream perfectly. But as soon as I select the EAC3 audio stream the OPPO becomes unstable and plays the video a twice normal speed!
a5180007
15th March 2020, 21:41
@SeeMoreDigital it is normal that your version does not work with EAC3, the EAC3 patch has just been merged. Could you please carry out the test with tomorrow's bintray version. Note that 7.1 EAC3 will not work.
SeeMoreDigital
15th March 2020, 23:07
Okay... Will do...
baker99uk
19th March 2020, 22:09
From yusesope
I also took a look at the tsMuxeR code and I think I have identified the reason why your .ts files are marked with the profile dvhe.08 (the profile dvhe.04 should be the right one since dvhe.08 does not have the Enhancement Layer).
I believe the problem occurs HERE (https://github.com/justdan96/tsMuxer/blob/5e7111020630580b8166c5458e7245412a6dfb2b/tsMuxer/hevcStreamReader.cpp#L309): all Single Track Double Layer files are treated as Single Track Single Layer files.
Examples:
THIS (https://4kmedia.org/lg-dolby-comparison-uhd-4k-demo/) LG demo (dvhe.04) is remuxed in a dvhe.05 file
Joker's BL + EL + RPU raw stream that I uploaded some time ago (HERE (https://mega.nz/#!nY11SY6I!WGkaUCzQso_l7on8Mxv823MgltmeVC3WdKrZGAOZxV0)) is flagged as dvhe.08 (like your remuxes).
The choice of the profile is due to the value of "DVCompatibility"
The presence of EL should be used to distinguish a Double Layer file from a Single Layer file.
If any of you attend the tsMuxeR developer forum, could you please report it?
So they can check if I said a nonsense or not :mrgreen:
cogira
19th March 2020, 22:10
I report from :https://www.makemkv.com/forum/viewtopic.php?f=12&t=18602&sid=b104964a708038e8f84cf4ef671aa18c&start=1710 (the pre-last post by @yusesope)
According to @yusesope there is some problem with tsmuxer about correct DV profile.
Sorry I am just an ambassador.
Thanks
a5180007
20th March 2020, 18:23
From yusesope
@baker99uk @cogira yes, yusesope is correct. Patch pushed to correct profile 4.
cogira
20th March 2020, 19:13
@baker99uk @cogira yes, yusesope is correct. Patch pushed to correct profile 4.
Thanks, where can I download the corrected tsmuxer?
a5180007
20th March 2020, 19:22
Thanks, where can I download the corrected tsmuxer?
@cogira when this pull (https://github.com/justdan96/tsMuxer/pull/250) is merged, the next day it will be part of the latest bintray version.
Edit: if you're in a hurry please try this W64 fork (https://github.com/jcdr428/tsMuxer/suites/536006969/artifacts/3174130).
baker99uk
20th March 2020, 21:07
@cogira when this pull (https://github.com/justdan96/tsMuxer/pull/250) is merged, the next day it will be part of the latest bintray version.
Edit: if you're in a hurry please try this W64 fork (https://github.com/jcdr428/tsMuxer/suites/536006969/artifacts/3174130).
Excellent news thank you
cogira
20th March 2020, 21:32
@cogira wh:)en this pull (https://github.com/justdan96/tsMuxer/pull/250) is merged, the next day it will be part of the latest bintray version.
Edit: if you're in a hurry please try this W64 fork (https://github.com/jcdr428/tsMuxer/suites/536006969/artifacts/3174130).
Thank you. Going to try now.
:)
Tried M2TS Black Panther and now mediainfo reports: HDR format Dolby Vision version 1.0, dvhe 04.06, BL+EL+RPU /SMPTE ST2086, HDR10 compatible.
Dolby Vision plays perfect in Shield TV 2019 trough Plex and also triggers Dolby Atmos.
Many many thanks @a5180007
baker99uk
20th March 2020, 23:42
I get a 404 on the W64 Fork link, is it merged in the daily binaries now?
Bgalakazam
20th March 2020, 23:58
I get a 404 on the W64 Fork link, is it merged in the daily binaries now?
Log in github first.
imhh11
20th March 2020, 23:58
I get a 404 on the W64 Fork link, is it merged in the daily binaries now?
you need a Github account.
Thank's a5180007 for the new version. 04.06 remains 04.06 now.
baker99uk
21st March 2020, 00:01
Thanks Guys, I didn't realise I was logged out, oops.
cogira
21st March 2020, 00:56
Gemini man. Followed the exact same procedure as for Black Panther.
It works perfectly but mediainfo indicates a DV profile 04.09
Any reason for that?
Maybe because of 60fps?
a5180007
21st March 2020, 06:14
Gemini man. Followed the exact same procedure as for Black Panther.
It works perfectly but mediainfo indicates a DV profile 04.09
Any reason for that?
Maybe because of 60fps?
@cogira yes, 3840 x 2160 @ 60 is level 9.
http://i.imgur.com/ik2NhTrt.jpg (https://imgur.com/ik2NhTr)
cogira
21st March 2020, 12:11
@cogira yes, 3840 x 2160 @ 60 is level 9.
http://i.imgur.com/ik2NhTrt.jpg (https://imgur.com/ik2NhTr)
Thank you
:script:
a5180007
21st March 2020, 21:01
@cogira @imhh11 Could you please test pixelisation issue on x700 / Oppo with this build (https://github.com/jcdr428/tsMuxer/suites/537646676/artifacts/3204681), thanks.
imhh11
21st March 2020, 21:21
thank you.
Unfortunately, it doesn't fix the pixelization bug on the x700 :(
Also, the file is no longer recognized on the LG C8
cogira
21st March 2020, 22:01
@cogira @imhh11 Could you please test pixelisation issue on x700 / Oppo with this build (https://github.com/jcdr428/tsMuxer/suites/537646676/artifacts/3204681), thanks.
Still the same problem unfortunately.
I will try to describe better what the problem is on my 65" LG C8.
When I restart the movie I see 2 layers on the TV. The front layer is pixelation but just behind it, on the screen edges, I can see the movie correctly reproduced. It is as the two layers are reproduced separetely one on top of the other and the front one is the pixelation layer, whilst the layer just behind it is correct.
I dont know if this rough description can help.
Thanks really for your involvement in this.:)
Bgalakazam
22nd March 2020, 13:57
I think that describes it well. Not really a huge issue for me as I rarely have time to watch more than 1 movie a week nowadays.
cogira
22nd March 2020, 19:22
@a5180007
Is there any reason why, if I engage the pgs subtitles in the m2ts DV, Plex stops working?
In the shield 2019
Is it possible to add .srt subtitles in tsmuxer and keep them in .srt format?
a5180007
24th March 2020, 06:00
Is there any reason why, if I engage the pgs subtitles in the m2ts DV, Plex stops working?
In the shield 2019
@cogira from which version has it been like this ?
Is it possible to add .srt subtitles in tsmuxer and keep them in .srt format?
It is not possible to include .srt text in ts files.
cogira
24th March 2020, 16:26
@cogira from which version has it been like this ?
It is not possible to include .srt text in ts files.
Thanks for reply.
Regarding pgs subtitles I never was able to use them in any version of tsmuxer in plex. If you have any suggestion pls help
a5180007
24th March 2020, 18:09
Thanks for reply.
Regarding pgs subtitles I never was able to use them in any version of tsmuxer in plex. If you have any suggestion pls help
@cogira the problem seems to be linked with Plex not reading pgs, whatever the container. It might make more sense using mp4 with srt on Plex.
a5180007
24th March 2020, 18:30
@justdan96 is ready to release 2.7.0, so anything important to be corrected before release, please advise asap !
yannick92
24th March 2020, 19:44
Hello,
Problem with a .MKV:
On the latest version, the file does not open, with an error window that I had not yet seen ?? ...
On the other hand, on an old version (1.10.6), the file opens without problem, curious ...
Thx
17248
17249
cogira
24th March 2020, 21:05
@cogira the problem seems to be linked with Plex not reading pgs, whatever the container. It might make more sense using mp4 with srt on Plex.
Yes, but I cannot use lossless audio as Dolby Atmos or DTS X
a5180007
24th March 2020, 21:39
Problem with a .MKV:
On the latest version, the file does not open, with an error window that I had not yet seen ?? ...
On the other hand, on an old version (1.10.6), the file opens without problem, curious ...
@yannick92 Could you please send me a link to the mkv, thanks.
Edit: when you run tsMuxer in a CMD console (tsMuxer.exe pathToMetafile.meta pathToOutput.ts), what is the error message you get ?
Was the file working with previous versions and with 2.6.12 ?
Grencola
25th March 2020, 01:43
Yes, but I cannot use lossless audio as Dolby Atmos or DTS X
Hey ragico, er I mean cogira, just use subtitleedit (https://github.com/SubtitleEdit/subtitleedit/releases/download/3.5.14/SE3514.zip) and make an srt with the same name as your movie file and put them both in the same folder and play it. demux your Pgs with tsmuxer, then run cmd prompt and type subtitleedit /convert yoursub.sup srt
cogira
25th March 2020, 15:09
Hey ragico, er I mean cogira, just use subtitleedit (https://github.com/SubtitleEdit/subtitleedit/releases/download/3.5.14/SE3514.zip) and make an srt with the same name as your movie file and put them both in the same folder and play it. demux your Pgs with tsmuxer, then run cmd prompt and type subtitleedit /convert yoursub.sup srt
Thank you
yannick92
25th March 2020, 15:40
@yannick92 Could you please send me a link to the mkv, thanks.
Edit: when you run tsMuxer in a CMD console (tsMuxer.exe pathToMetafile.meta pathToOutput.ts), what is the error message you get ?
Was the file working with previous versions and with 2.6.12 ?
Ok thx :)
Here is the link for a sample of my problematic .mkv
https://uptobox.com/rgbi0wit3jqy
And no, the file does not open with 2.6.12 either..., just ok with 1.10.6
Cordially.
Yannick
yannick92
25th March 2020, 18:32
@justdan96 is ready to release 2.7.0, so anything important to be corrected before release, please advise asap !
Hello
Little things to fix before the release of 2.7?
A little glitch, and also a problem with resizing the "Source File" column when opening a file, ok on 2.6.12 but not on the latest version.
Thx a lot ;)
17250
17251
Hellboy.
25th March 2020, 22:17
@justdan96 is ready to release 2.7.0, so anything important to be corrected before release, please advise asap !
I have the problem i write before about the original PGS subtitles go out of sync with DV movies in Bluray folder. Movie is Knives Out. If someone can test to know the problem is not only my. For testing you need to remux the complete movie because the subtitles go littler a littler out of sync.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.