View Full Version : tsMuxer Open Source
spotter
7th April 2020, 16:45
I'm wondering if someone here can help me, not quite a tsmuxer issue, but figure people here might know.
I'm doing a project where I'm using libbluray to take a bluray playlist and turn it into a single m2ts (well a bit more complicated, meant for streaming, but that's close enough for a first approximation). What I realize is that in doing this, it loses the language metadata (i.e. the langauge for audio and subtitle tracks) as this data seems to only be in the clip info files so isn't in the "m2ts" stream I'm reading from libbluray. Is there anyway to edit this into a pure m2ts stream? (either editing the stream on the fly or appending a packet of sorts to the start), or is this simply impossible in the m2ts format?
iSeries
7th April 2020, 17:09
are you sure your original file was SRT format because PGS from bluray disc does work properly?
Last two builds (didnt try more) definitely render black subtitles when the source has SRT subs.
2020-03-30--02-11-36.zip & 2020-04-07--02-11-14.zip
Yep was SRT
imhh11
7th April 2020, 17:44
Yep was SRT
Well, I can reproduce the bug in MPC-BE with the 2 last versions. Not only with DV but with any files.
I only tried the latest version on my x700 though.
sample: https://drive.google.com/file/d/1oTQu6DVcwwtF_oqcMKrBdAyOz-4RexsO/view?usp=sharing
SeeMoreDigital
7th April 2020, 19:06
Well, I can reproduce the bug in MPC-BE with the 2 last versions. Not only with DV but with any files.
I only tried the latest version on my x700 though.
sample: https://drive.google.com/file/d/1oTQu6DVcwwtF_oqcMKrBdAyOz-4RexsO/view?usp=sharingNice work with the .TS muxed files...
On my [2016] LG television, the Dolby Vision encoded video and EAC3 audio work perfectly. Sadly my TV does not support PGS subtitles.
On my OPPO, the Dolby Vision encoded video and EAC3 audio work perfectly too. But as others have reported the PGS subtitles are black. And they are huge ;)
B1gD4ddy
7th April 2020, 20:00
Nice work with the .TS muxed files...
On my [2016] LG television, the Dolby Vision encoded video and EAC3 audio work perfectly. Sadly my TV does not support PGS subtitles.
do you mean your lgs usb media player?
if yes then...ehm lol...my 2019 lg c9 usb media player loads a sec then says file not supported....
kind regards
SeeMoreDigital
7th April 2020, 20:34
do you mean your lgs usb media player?
if yes then...ehm lol...my 2019 lg c9 usb media player loads a sec then says file not supported....
I transferred imhh11's Mandalorian sample onto a USB flash-drive, and used the TV's built-in 'Photo & Video' media player app to play it....
a5180007
7th April 2020, 20:53
Nice work with the .TS muxed files...
On my [2016] LG television, the Dolby Vision encoded video and EAC3 audio work perfectly. Sadly my TV does not support PGS subtitles.
On my OPPO, the Dolby Vision encoded video and EAC3 audio work perfectly too. But as others have reported the PGS subtitles are black. And they are huge ;)
@SeeMoreDigital so this is confirmation that DV works on TVs if we remove the HDMV descriptor -but do not work anymore on the Bluray players, which is kind of logical...
I have pushed the commit to reinstate the HDMV descriptor for DV tracks. I still believe that the HDMV descriptors should be present only for m2ts and not for ts. Anyway... I'll work on an option for manual selection of the HDMV descriptors when I have time -after 2.7.0.
As for the srt... no clear if it was already there with 30/03 version, let's see if the reinstatement of the hdmv descriptor fixes the issue.
B1gD4ddy
7th April 2020, 21:04
I transferred imhh11's Mandalorian sample onto a USB flash-drive, and used the TV's built-in 'Photo & Video' media player app to play it....
nice...2016 is in some cases more capable/unrestrictive than 2019... fu lg
@SeeMoreDigital so this is confirmation that DV works on TVs if we remove the HDMV descriptor.
ehm nope, not on all, like i said c9 cant even open the file from googledrive.
and like already mentioned every dv (m2)ts created from uhd by tsmuxer only triggers hdr on c9 instead of dv.
no idea what magic seemoredigitals 2016 lg does...
kind regards
SeeMoreDigital
7th April 2020, 21:14
@SeeMoreDigital so this is confirmation that DV works on TVs if we remove the HDMV descriptor -but do not work anymore on the Bluray players, which is kind of logical... Actually, imhh11's Mandalorian sample also works on my OPPO via USB flash-drive and when played from my network connected NAS, via UPnP and SMB. But I'm not entirely sure if it makes the player unstable...
"I have spoken"...
SeeMoreDigital
7th April 2020, 21:16
ehm nope, not on all, like i said c9 cant even open the file from googledrive.
GogleDrive is pants!!! I suggest you try playing the sample file from a USB flash-drive instead...
B1gD4ddy
7th April 2020, 21:18
googledrive is pants!!! I suggest you try playing the sample file from a USB flash-drive instead...
i did of course, downloaded it, put on usb drive, put that in tv and then happened what i already described.
kind regards
imhh11
7th April 2020, 21:22
nice...2016 is in some cases more capable/unrestrictive than 2019... fu lg
ehm nope, not on all, like i said c9 cant even open the file from googledrive.
and like already mentioned every dv (m2)ts created from uhd by tsmuxer only triggers hdr on c9 instead of dv.
no idea what magic seemoredigitals 2016 lg does...
kind regards
mmm the sample i posted should work on your C9.. this is not a dual layer profile 7 TS which never worked (in DV)on any TV. The sample is a real profile 05.06 and play fine on my C8
imhh11
7th April 2020, 21:24
As for the srt... no clear if it was already there with 30/03 version, let's see if the reinstatement of the hdmv descriptor fixes the issue.
yes the bug is present with 30-03 version.
EDIT: might be my source file after all because I tried with other samples and I can't reproduce it now
SeeMoreDigital
7th April 2020, 21:31
mmm the sample i posted should work on your C9.. this is not a dual layer profile 7 TS which never worked (in DV)on any TV. The sample is a real profile 05.06 and play fine on my C8With regard to PGS subtitles... I wonder if genuine PGS subtitles (extracted from a 4K UHD disc) will work better with your Mandalorian sample?!
B1gD4ddy
7th April 2020, 21:32
mmm the sample i posted should work on your C9.. this is not a dual layer profile 7 TS which never worked (in DV)on any TV. The sample is a real profile 05.06 and play fine on my C8
i redownloaded and retried. does not work.
c9 is able to show preview thumbnail pics but when i click on the file the c9 loads a sec and then gives me a german error message which translated to english says something like "this file is not recognized. back to list."
firmware is newest from some days ago, 4.71.25.
kind regards
imhh11
7th April 2020, 21:35
i redownloaded and retried. does not work.
c9 is able to show preview thumbnail pics but when i click on the file the c9 loads a sec and then gives me a german error message which translated to english says something like "this file is not recognized. back to list."
firmware is newest from some days ago, 4.71.25.
kind regards
Very strange that the C6 and C8 can play it but not the C9.
With regard to PGS subtitles... I wonder if genuine PGS subtitles (extracted from a 4K UHD disc) will work better with your Mandalorian sample?!
Yes pure pgs subtitles should work. I'll try when i get home in a few hours.
EDIT. pgs works just fine when i remux uhd-bd to dual layer TS. But there is no Mandalorian UHD-BD yet, my sample is a downloaded/untouched stream from Disney+. That's why i have to deal with SRT for that profile 05.06 sample.
Complete name : D:\srt bug.ts
Format : MPEG-TS
File size : 119 MiB
Duration : 1 min 1 s
Overall bit rate mode : Variable
Overall bit rate : 16.2 Mb/s
Maximum Overall bit rate : 35.5 Mb/s
Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@High
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : 36
Duration : 1 min 1 s
Bit rate : 14.7 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.074
Stream size : 107 MiB (90%)
Color range : Full
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : 135
Duration : 1 min 1 s
Bit rate mode : Constant
Bit rate : 768 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 5.61 MiB (5%)
Language : English
Service kind : Complete Main
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
Text
ID : 4768 (0x12A0)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Delay relative to video : 1 s 793 ms
a5180007
7th April 2020, 22:49
I'm doing a project where I'm using libbluray to take a bluray playlist and turn it into a single m2ts (well a bit more complicated, meant for streaming, but that's close enough for a first approximation). What I realize is that in doing this, it loses the language metadata (i.e. the langauge for audio and subtitle tracks) as this data seems to only be in the clip info files so isn't in the "m2ts" stream I'm reading from libbluray. Is there anyway to edit this into a pure m2ts stream? (either editing the stream on the fly or appending a packet of sorts to the start), or is this simply impossible in the m2ts format?
@spotter you just need to mux the playlist in tsMuxer in non-bluray mode. Although some problems on Linux have been reported, cf. issue #166 (https://github.com/justdan96/tsMuxer/issues/166).
Can someone help me? So i create the blu ray folders after adding some audio and subtitles to a m2ts and everything works fine except the subtitles that have a huuge delay after muxing not before :(
imhh11
7th April 2020, 23:21
Ok, the SRT bug seems to be related to my PC(Win10 64x) at work because using the same file and the same tsMuxer here with my PC at home(Win10 64x), no more problem....
how is that possible?
sample with working subtitles (converted from SRT): https://drive.google.com/file/d/1VCxlt-hZIHD5QUzpf2AgjDoX_c5G8QTm/view?usp=sharing
subs, atmos and DV works on x700
C8= atmos + DV but no subs
Shield= Atmos + DV but no subs (plex fault here i think)
sorry for the confusion.
spotter
8th April 2020, 08:27
@spotter you just need to mux the playlist in tsMuxer in non-bluray mode. Although some problems on Linux have been reported, cf. issue #166 (https://github.com/justdan96/tsMuxer/issues/166).
the nice thing about libbluray is that it creates a seekable "file handle", What I'm trying to do is store blurays locally and enable them to be streamed on demand to myself via http (including being able to seek into the stream). Don't want to remux and store (time and storage consumng). I'm wondering if its possible to use tsmuxer in library form.
SeeMoreDigital
8th April 2020, 10:32
sample with working subtitles (converted from SRT): https://drive.google.com/file/d/1VCxlt-hZIHD5QUzpf2AgjDoX_c5G8QTm/view?usp=sharing
subs, atmos and DV works on x700
C8= atmos + DV but no subs
Shield= Atmos + DV but no subs (plex fault here i think)
I can confirm the same playback results with my OPPO and LG TV... Very well done :)
mattmarsden
8th April 2020, 15:08
Could anyone tell me what version I need to remux to dual layer m2ts to work on my Oppo 203? All the versions I've tried just play in HDR10.
SeeMoreDigital
8th April 2020, 16:31
Could anyone tell me what version I need to remux to dual layer m2ts to work on my Oppo 203? All the versions I've tried just play in HDR10.As you are an OPPO player owner you can use the muxers 'Blu-ray Folder' output option. And after TSmuxer has finished, you place the 'BDMV' and 'CERTIFICATE' folders within an 'AVCHD' folder (which you have to manually create). Then place the AVCHD folder (including its contents), within another folder named after your movie.
I have several movies with Dolby Vision on my NAS and I can confirm the OPPO plays them perfectly via SMB (including chapter navigation). They also play perfectly via a directly connected USB HDD.
mattmarsden
8th April 2020, 16:44
As you are an OPPO player owner you can use the muxers 'Blu-ray Folder' output option. And after TSmuxer has finished, you place the 'BDMV' and 'CERTIFICATE' folders within an 'AVCHD' folder (which you have to manually create). Then place the AVCHD folder (including its contents), within another folder named after your movie.
I have several movies with Dolby Vision on my NAS and I can confirm the OPPO plays them perfectly via SMB (including chapter navigation). They also play perfectly via a directly connected USB HDD.
Thanks for that, I've actually got a modded Oppo that can play iso/blu-ray folder but was wondering if it was possible to play DV directly from a m2ts as that allows resuming on the oppo and iso/blu-ray folder doesn't. Also it would allow me to add them to plex for my other players. The m2ts taken directly from a retail UHD blu-ray folder does play in DV btw.
SeeMoreDigital
8th April 2020, 16:57
The m2ts taken directly from a retail UHD blu-ray folder does play in DV btw.Sadly such .m2ts files are full of foreign language audio and subtitle tracks I don't need. And you don't get chapter navigation ;)
mattmarsden
8th April 2020, 17:09
Sadly such .m2ts files are full of foreign language audio and subtitle tracks I don't need. And you don't get chapter navigation ;)
Exactly, which is why I was hoping Tsmuxer could create m2ts files that play the same.
imhh11
8th April 2020, 17:34
Exactly, which is why I was hoping Tsmuxer could create m2ts files that play the same.
tsMuxer does create Dolby Vision m2ts/ts , you just lose the chapters.
I'm not using the latest versions but this is the version I've been using for a while now. DV, Atmos and subtitles works just fine on the Sony x700 and will certainly work on the oppo as well.
https://drive.google.com/file/d/1ulf9fI7xXfUdt-_s-HYv_q0tGv_m-FuZ/view?usp=sharing
a5180007
8th April 2020, 17:57
the nice thing about libbluray is that it creates a seekable "file handle", What I'm trying to do is store blurays locally and enable them to be streamed on demand to myself via http (including being able to seek into the stream). Don't want to remux and store (time and storage consumng). I'm wondering if its possible to use tsmuxer in library form.
@spotter If you want to stream m2ts only then either your streaming service is able to seek the info into the mpls/clpi, or you have to remux to include the language descriptors (in the PMT packets, every 100ms max).
wackopath
8th April 2020, 20:27
As you are an OPPO player owner you can use the muxers 'Blu-ray Folder' output option. And after TSmuxer has finished, you place the 'BDMV' and 'CERTIFICATE' folders within an 'AVCHD' folder (which you have to manually create). Then place the AVCHD folder (including its contents), within another folder named after your movie.
I have several movies with Dolby Vision on my NAS and I can confirm the OPPO plays them perfectly via SMB (including chapter navigation). They also play perfectly via a directly connected USB HDD.
...if you select "Force BD-ROM V3 format" in tsmuxer "bluray" tab
when you mux with "Blu-ray Folder" you won't need to make a AVCHD folder for 1080p blu-rays with OPPO, in my case is the UDP203. Now i have tried this with USB attached hdd/usb mem. haven't tried through network yet...
mattmarsden
9th April 2020, 08:08
Has there been any progress for X700 corruption after playing a DV m2ts?
staina
9th April 2020, 08:29
Sorry @staina, your query seems lost in translation... Maybe somebody in the community could clarify ?
I have asked why are files CLPI and M2TS at output Bluray ISO and Bluray folder different compared to previous version and whether the error be as consequential that the would Bluray ISO created older version tsMuxeR not to need to some machinery work?
MastaG
9th April 2020, 11:00
So is it possible to remux dual layer dolby vision (profile 7) into .ts container and play it back on LG tv's now?
spotter
9th April 2020, 12:53
@spotter If you want to stream m2ts only then either your streaming service is able to seek the info into the mpls/clpi, or you have to remux to include the language descriptors (in the PMT packets, every 100ms max).
you wouldn't happen to have pointers on how to do that? (example code or what not?).
when you say max ever 100ms, could it conceptually just be once at the beginning of the stream?
What I'm trying to do is enable emby to stream my blurays without requiring me to remux them into mkv or something else (I'd rather keep them as ISOs). While fmpeg can remux into mkv on the fly (have that working to as an http endpoint) that doesn't work as well (at least right now) for seeking (i.e. for another http connections to be made with a range request)
emby can stream http m2ts files just fine (I have that working, drop a strm file in an emby library directory that is basically http://localhost/file=some.iso?playlist=number and it will stream that playlist via libbluray output, bd_read() to http response body essentially).
emby works great as it picks up all the audio and subtitle tracks, but without the metadata as mentioned). If I can figure out how to mix / edit in those pmt packets to set the audio / subtitle language that libbluray has in bd_title_info I'd be all set.
staina
15th April 2020, 16:18
Version w64-nightly-2020-03-25--01-12-53 tsMuxeR Gui git-99b4679
Size ISO file: 56 563 728 384 byte
Size M2TS file: 56 561 418 240 byte
Version w64-nightly-2020-04-07--02-11-14 tsMuxeR Gui git-f6ac3b1
Size ISO file: 56 563 728 384 byte
Size M2TS file: 56 561 418 240 byte
Version w64-nightly-2020-04-14--02-13-14 tsMuxeR Gui git-f6ac3b1
Size ISO file: 56 214 224 896 byte
Size M2TS file: 56 211 978 240 byte
Last version w64-nightly-2020-04-16--02-12-23 tsMuxeR Gui git-ac9b47c
Size ISO file: 56 563 728 384 byte
Size M2TS file: 56 561 418 240 byte
Version w64-nightly-2020-04-07--02-11-14 and Last version w64-nightly-2020-04-16--02-12-23 have the same result.
Was any bug in version Version w64-nightly-2020-04-14--02-13-14?
On attachment are CLPI files.
Why are at these version different M2TS and CLPI files?
Why is the same name build at version w64-nightly-2020-04-07--02-11-14 and w64-nightly-2020-04-14--02-13-14.
Can someone write description these changes and which version for creation ISO files UHD Bluray use and why?
Thank for answers Staina
a5180007
17th April 2020, 08:46
@staina you can see merges done on 24/03, 06/04 and 15/04 (i.e. the day before the nightly version) on https://github.com/justdan96/tsMuxer/commits/master.
The bintray version w64-nightly-2020-04-14--02-13-14 tsMuxeR Gui git-f6ac3b1 shouldn't exist, no idea how it got there.
staina
17th April 2020, 16:25
@staina you can see merges done on 24/03, 06/04 and 15/04 (i.e. the day before the nightly version) on https://github.com/justdan96/tsMuxer/commits/master.
The bintray version w64-nightly-2020-04-14--02-13-14 tsMuxeR Gui git-f6ac3b1 shouldn't exist, no idea how it got there.
Still have not answers to why are you files CLPI and M2TS different and how so can affect their later playback?
Here are downloadable all version:
https://bintray.com/justdan96/tsMuxer/tsMuxerGUI-Nightly#files
CapricornX10X
18th April 2020, 13:15
Something very strange suddenly started in the srt subtitle. That's what he appears to me. And when I play the movie and choose the subtitle.
Just nothing appears. very strange. So far it has not happened to me
SeeMoreDigital
18th April 2020, 14:49
@CapricornX10X,
Forum file/image attachments can take a while to be approved. Which git-build version are you using that does not work with srt subtitles?
imhh11
18th April 2020, 16:17
Something very strange suddenly started in the srt subtitle. That's what he appears to me. And when I play the movie and choose the subtitle.
Just nothing appears. very strange. So far it has not happened to me
I wonder if you are having the same issue I have with SRT subs with my pc at my work-place. They appear black and if they are positioned in the black bars, you can't see them.
Strangely my other PC here at home doesn't have that issue with basically the same setup.
CapricornX10X
18th April 2020, 16:32
@CapricornX10X,
Forum file/image attachments can take a while to be approved. Which git-build version are you using that does not work with srt subtitles?
git-f6ac3b1
CapricornX10X
18th April 2020, 16:37
I wonder if you are having the same issue I have with SRT subs with my pc at my work-place. They appear black and if they are positioned in the black bars, you can't see them.
Strangely my other PC here at home doesn't have that issue with basically the same setup.
Yes very strange. It didn't happen to me until yesterday. And I've worked with the software on loads of movies and I've never had a problem.
I downloaded the latest version yesterday and since then the problems started to seem to me. (Or version before last)
I just don't know what software version I used when everything was working properly
I don't know about it like you mentioned. But I choose the subtitle (srt) I want and just nothing appears. strange
CapricornX10X
18th April 2020, 17:07
I did a test after what you mentioned to me. And right you are right for some reason the srt subtitles were in black so I did not see them. I have no idea how in the software they appeared in black. I changed to white and everything is fine now.
a5180007
19th April 2020, 16:01
Something very strange suddenly started in the srt subtitle. That's what he appears to me. And when I play the movie and choose the subtitle.
Just nothing appears. very strange. So far it has not happened to me
@CapricornX10X please PM me the srt file. I will check whether it is fully UTF-8 compliant.
CapricornX10X
19th April 2020, 19:47
@CapricornX10X please PM me the srt file. I will check whether it is fully UTF-8 compliant.
Even in the software according to the picture I sent, this is a problem.
The problem for me is solved, the subtitles appear to me at the moment. tsmuxer made me the blu ray file with a black subtitle. So I didn't see anything (because the subtilte in the black part of the screen below)
Why I still have a problem alert I have no idea. But I checked with more movies and subtitles. And every srt file has this problem.
CapricornX10X
19th April 2020, 19:53
By the way we are already discussing the subtitle issue lol.
When I do demux for a Blu-ray movie. And I take away specific subtitles I want.
This time of course in pgs format. And then I take those subtitles and put them in the Blu-ray movie I want and then I do muxsr to blu-ray folder.
Will I have a synchronization problem at times? Between the subtitles and the audio?
Because I did this a while ago and had a real time sync problem
no-one
21st April 2020, 22:19
When i take subtitle from demux of version 2020-04-19--02-12-02 to open with bdsub2sup, it gets problem.
Subtitle not show 2 lines from the end.
a5180007
24th April 2020, 15:37
@no-one I've demuxed PGS subtitles from various blu-rays with the latest version without problems: I can't reproduce the bug.
meihuaxiao
27th April 2020, 03:09
4K video downloaded from the Internet, import tsMuxeR_2.6.15, select Blu-ray folder for output, then split with BD Demuxer Pro 3D UHD v3.2, and import split 00000_1_01.hevc into Scenarist UHD prompt:
Error: Value of Chroma_loc_info_present_flag is not supported in the BD standard.
Unable to import.
How can I solve it? Thank you! !
a5180007
27th April 2020, 06:18
4K video downloaded from the Internet, import tsMuxeR_2.6.15, select Blu-ray folder for output, then split with BD Demuxer Pro 3D UHD v3.2, and import split 00000_1_01.hevc into Scenarist UHD prompt:
Error: Value of Chroma_loc_info_present_flag is not supported in the BD standard.
Unable to import.
How can I solve it? Thank you! !
@meihuaxiao to correct the choma_loc no other solution than to re-encode.
meihuaxiao
27th April 2020, 08:55
@a5180007 Thanks for guidance
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.