View Full Version : tsMuxer Open Source
a5180007
24th January 2020, 19:50
Could someone check please?, TSMuxer hide subtitles when I try to replace the spa (latin) with spa (spain).
@maxibon my bad. This is a consequence of the 3d-plane patch, I've pushed the fix.
maxibon
25th January 2020, 11:22
@maxibon my bad. This is a consequence of the 3d-plane patch, I've pushed the fix.
Thank you so much @a5180007 please let me know when implemented
a5180007
26th January 2020, 15:53
Thank you so much @a5180007 please let me know when implemented
@maxibon please try latest bintray build nightly-2020-01-26--01-10-07.zip
maxibon
26th January 2020, 19:16
@maxibon please try latest bintray build nightly-2020-01-26--01-10-07.zip
Hi
I´ve tried with latest build and doesn't work yet;-(
By the way chapters doesn't work as well, doesn't keep original times
Regards
Mike-uk
27th January 2020, 16:16
Hi, Hopefully this is the correct place to ask for tsmuxer help
ive encoded a .m2ts file to a smaller H265 file ( ive tried mp4 and mkv) using handbrake with nvenc, the resulting file plays fine, I can seek to any time of the file quickly and cleanly
the problem is if I use tsmuxer to mux to m2ts, if I try and seek to any time in the file it creats a pixulated image for 2 seconds with mphc then goes back to normal ?? vlc pauses for a few seconds befor resuming, the file just doesn't feel right
any idea why
Thanks
a5180007
27th January 2020, 21:24
@Mike-uk you need to add x265 options --aud --hrd --repeat-header
Edit: --repeat-headers
Mike-uk
27th January 2020, 22:51
@Mike-uk you need to add x265 options --aud --hrd --repeat-header
Hi, adding thouse to handbrake seem to make no difference ?
a5180007
28th January 2020, 08:58
Hi, adding thouse to handbrake seem to make no difference ?
@Mike-uk Please cut the first 5 MB of the m2ts with an hex editor, and send me the link to download.
a5180007
28th January 2020, 09:08
Hi
I´ve tried with latest build and doesn't work yet;-(
By the way chapters doesn't work as well, doesn't keep original times
Regards
@maxibon please zip and send me your .meta with original and modified .mpls and .clpi.
Mike-uk
28th January 2020, 14:49
@Mike-uk Please cut the first 5 MB of the m2ts with an hex editor, and send me the link to download.
hi ive sent you the output of tsmuxer, m2ts file
a5180007
28th January 2020, 17:57
hi ive sent you the output of tsmuxer, m2ts file
@Mike-uk as suspected there is no AUD nal in your hevc stream. Please encode with x265 options --aud --hrd --repeat-headers.
If handbrake doesn't allow these options, use another frontend, or ffmpeg/x265 cli.
Mike-uk
28th January 2020, 23:18
@Mike-uk as suspected there is no AUD nal in your hevc stream. Please encode with x265 options --aud --hrd --repeat-headers.
If handbrake doesn't allow these options, use another frontend, or ffmpeg/x265 cli.
ok thanks for looking
ok handbrake should except commands to the encoder but don't see to work
glc650
29th January 2020, 22:37
Just downloaded 2020-01-28--01-08-41 for mac but whenever I try to import a video I get the following error:
https://1drv.ms/u/s!AnsGKXR_EKR0hEP-T4GYkpyG_Upz?e=A0auoI
This is after running ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null brew install freetype brew install in terminal.
Thanks,
->g.
glc650
30th January 2020, 00:19
Just downloaded 2020-01-28--01-08-41 for mac but whenever I try to import a video I get the following error:
https://1drv.ms/u/s!AnsGKXR_EKR0hEP-T4GYkpyG_Upz?e=A0auoI
This is after running ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null brew install freetype brew install in terminal.
Thanks,
->g.Never mind, for some reason the command in the readme was truncated on my system (I tried FF and Safari). Once I checked the web page's source I could see the full command.
Any plans to support TrueHD/Atmos?
filler56789
30th January 2020, 02:02
Hummm, the tsMuxeR readme.md says:
MacOS
This ZIP file for MacOS can just be unzipped and the executables can be used after installing a couple of dependencies.
I know "nothing" about MacOS, except that it is a kind of Unix, so I have to ask:
¿is it impossible to create static builds of tsMuxeR for the Mac operating system(s)?
varekai
30th January 2020, 12:20
Hello!
Thanks justdan96 for picking up the torch and continuing the development of this one-of-a-kind software.
Really appreciate it, I use it a lot for my videos and Blu-ray.
As long as I've been using it I've had this problem.
Creating a subtitle .sup file using easySUP by Mr. Dean Kasabow.
--------------------------
Using tsMuxer:
In "Input" -> "add" adding an .mpls or .m2ts (24.000 FPS) video file and adding a .sup (24.000 FPS) subtitle file.
Output to Blu-ray folder.
--------------------------
The output subtitle is out of sync, it starts OK but then gradually goes out of sync.
I can't figure out what I'm doing wrong?
Could it be a bug in tsMuxer?
If I use a mediaplayer like PotPlayer or MPC-HC and load the .sup subtitle sync is perfect.
Any input is highly appreciated.
Best regards,
varekai
Edit: Problem solved, not a tsMuxer bug... sorry...:o
koka
30th January 2020, 14:06
justdan96, in COMPILING.md add ninja for ## Windows (Msys2):
pacman -Sy --needed $MINGW_PACKAGE_PREFIX-toolchain \
$MINGW_PACKAGE_PREFIX-cmake \
$MINGW_PACKAGE_PREFIX-freetype \
$MINGW_PACKAGE_PREFIX-zlib \
$MINGW_PACKAGE_PREFIX-ninja
and instead of
cmake . --build
use
cmake --build .
Thank you for your efforts!
a5180007
30th January 2020, 17:11
I´ve tried with latest build and doesn't work yet;-(
By the way chapters doesn't work as well, doesn't keep original times
@maxibon Nothing wrong with the files you sent me. The issue is you keep the original mpls with subtitle PIDs 0x12A0, 0x12A1 etc. , whereas tsMuxer creates new mpls/clpi/m2ts with PIDs 0x1200, 0x1201 etc. If you want to keep the original mpls, you have to modify the PIDs in the mpls with e.g. BDEdit or an hex editor.
I don't get how the original chapter times could be modified if you keep the original mpls: could you please expand ?
filler56789
30th January 2020, 17:31
justdan96, in COMPILING.md add ninja for ## Windows (Msys2):
Why he (thinks he) needs "ninja" for using MSYS2 on Windows or/and for compiling tsMuxeR is beyond me.
koka
30th January 2020, 19:18
filler56789, before use:
cmake ../ -G Ninja
need install it:
pacman -S $MINGW_PACKAGE_PREFIX-ninja
mattmarsden
30th January 2020, 19:46
Is there any possibility of making this work with single layer Dolby Vision?
filler56789
30th January 2020, 20:14
filler56789, before use:
cmake ../ -G Ninja
need install it:
pacman -S $MINGW_PACKAGE_PREFIX-ninja
You don't get it.
ninja is not strictly-required by tsMuxeR's source-code, justdan96 (or someone else) simply invented that artificial need.
Much in the same way a posix-threaded compiler was not needed by tsMuxeR,
but justdan96 modified the source-code so that now it requires a posix-threaded compiler.
justdan96
30th January 2020, 23:59
@varekai: if you could provide a sample we might be able to figure out where that issue is coming from.
@koka: I'll have to review the existing documentation, thanks for the input!
koka
31st January 2020, 06:58
And how do you like this, @elonmusk?
out.meta:
MUXOPT --no-pcr-on-video-pid --demux --vbr --vbv-len=500
V_MPEG4/ISO/AVC, "D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202850 Галина Борисовна.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202912 Николай Борисович.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202929 Лена и Андрей.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203022 Нина Петровна.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203310 Галюшка.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203414 Юлечка.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203624 Таня.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203723 Саша.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203856 Алла.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 204010 Ирина.mkv", track=1
A_LPCM, "D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202850 Галина Борисовна.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202912 Николай Борисович.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202929 Лена и Андрей.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203022 Нина Петровна.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203310 Галюшка.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203414 Юлечка.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203624 Таня.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203723 Саша.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203856 Алла.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 204010 Ирина.mkv", track=2, lang=rus
S_HDMV/PGS, "D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202850 Галина Борисовна.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202912 Николай Борисович.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 202929 Лена и Андрей.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203022 Нина Петровна.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203310 Галюшка.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203414 Юлечка.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203624 Таня.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203723 Саша.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 203856 Алла.mkv"+"D:\AV\2020\20200111 ДР Аллы\film\20200111 ДР Аллы 204010 Ирина.mkv", fps=50.0, track=3, lang=rus
d:\AV\2020\20200111 ДР Аллы\film>"C:\YandexDisk\PortableApps\tsMuxeR\tsMuxeR.exe" out.meta ""
tsMuxeR version git-39bb829. github.com/justdan96/tsMuxer
Decoding H264 stream (track 1): Profile: High@4.2 Resolution: 1920:1080p Frame rate: 50
H.264 muxing fps is not set. Get fps from stream. Value: 50
Can't create output file 20200111 „ђ Ђ««л 202850 ѓ «Ё* Ѓ®аЁб®ў* +20200111 „ђ Ђ««л 202912 ЌЁЄ®« © Ѓ®аЁб®ўЁз+20200111 „ђ Ђ««л 202929 ‹Ґ* Ё Ђ*¤аҐ©+20200111 „ђ Ђ««л 203022 ЌЁ* ЏҐва®ў* +20200111 „ђ Ђ««л 203310 ѓ «оиЄ +20200111 „ђ Ђ««л 203414 ћ«ҐзЄ +20200111 „ђ Ђ««л 203624 ’ *п+20200111 „ђ Ђ««л 203723 ‘ и +20200111 „ђ Ђ««л 203856 Ђ«« +20200111 „ђ Ђ««л 204010 €аЁ* .track_1.264
The problem is not even in сyrillic, but in file name overflow when demuxing concatenating parts with long file names
justdan96, please replace in tsMuxer\singleFileMuxer.cpp
for (int i = 0; i < (int)fileList.size(); i++)
{
if (i > 0)
fileName += '+';
fileName += extractFileName(fileList[i]);
}
with
fileName = extractFileName(fileList[0]);/*
for (int i = 0; i < (int)fileList.size(); i++)
{
if (i > 0)
fileName += '+';
fileName += extractFileName(fileList[i]);
}*/
Thank you for your efforts!
koka
31st January 2020, 07:50
You don't get it.
You're right, for your repository
https://github.com/filler56789/RV-tsMuxeR
not needed
pacman -S $ MINGW_PACKAGE_PREFIX-ninja
Everything compiles fine thanks to your makefile!
But before assembly
https://github.com/justdan96/tsMuxer
need to install ninja
Thanks for the hard work!
varekai
31st January 2020, 09:00
@varekai: if you could provide a sample we might be able to figure out where that issue is coming from.
Hello!
Thanks for the quick reply, appreciate it!
Will a short clip do?
It's the same sequence as used in the screendumps.
https://workupload.com/file/mwYEsyEC
test_files.7z (19.37 MB) (test.m2ts + test.sup)
The out of sync will not show up in such a short clip.
Best regards,
varekai
Edit: Problem solved, not a tsMuxer bug... sorry...:o
justdan96
31st January 2020, 13:40
@varekai: ah, in that case with the original file can you say the length of the video and when the out of sync audio starts?
I can update documentation on build dependencies and make it more clear the user can choose the CMake output for their preference, as per cmake-generators.
filler56789
1st February 2020, 06:35
To whom this may concern...
*nightly-2020-01-28--01-08-41.zip
still has the GUI design-flaw regarding 24-bit DTS-Express
--- i.e., the secondary audio track checkbox remains greyed out.
staina
1st February 2020, 08:26
At creation Bluray from Bluray sources where MPLS includes more M2TS so tsMuxer in some frames remove from audio streams any part see:
DTS-HD stream (track 2): overlapped frame detected at position 00:42:14,666. Remove frame.
DTS stream (track 3): overlapped frame detected at position 00:42:14,666. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 00:55:05,770. Remove frame.
DTS stream (track 3): overlapped frame detected at position 00:55:05,770. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 00:57:14,687. Remove frame.
DTS stream (track 3): overlapped frame detected at position 00:57:14,687. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 01:17:11,637. Remove frame.
DTS stream (track 3): overlapped frame detected at position 01:17:11,637. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 01:59:46,101. Remove frame.
DTS stream (track 3): overlapped frame detected at position 01:59:46,101. Remove frame.
For example: MKV Toolnix or DVDFab nothing not remove and audio stream at comparing is other than from tsMuxer.
Will process tsMuxer audio stream right and MKV Toolnix and DVDFab wrong and or is in tsMuxer error?
Thank for answer Staina
varekai
1st February 2020, 12:05
@varekai: ah, in that case with the original file can you say the length of the video and when the out of sync audio starts?
I can update documentation on build dependencies and make it more clear the user can choose the CMake output for their preference, as per cmake-generators.
Hello!
Sorry for the late reply, but here goes...
Read about cmake and cmake-generators and I have to admit that's waay above my head...
I have absolutely no clue!
I'm very much dependant using on using a GUI I'm afraid.
So I can't be much of a help...
Best regards,
varekai
The video length is 02:32:10:958
Using PotPlayer's ->Adjust Subtitle Sync (ms):<- feature.
At start the video+sup, sup start is set to 500ms (faster) and sup is in sync.
Sync is off at 00:30:29
Applying 1000ms sup is in sync at 00:30:29
Sync is off at 01:03:20
Applying 2000ms sup is in sync at 02:08:32
It is really tricky to adjust timings in PotPlayer, not as correct as I hoped.
So these sup timings are very rough.
Edit: Problem solved, not a tsMuxer bug... sorry...:o
tebasuna51
1st February 2020, 12:19
@staina
You can check that with eac3to DTS extract. If is the same then tsMuxeR is right.
Some explain https://forum.doom9.org/showthread.php?p=1600694#post1600694
If MKV Toolnix or DVDFab don't remove the 5 frames you obtain 53 extra ms of duration and 5 points with possible glitches.
staina
1st February 2020, 22:15
@staina
You can check that with eac3to DTS extract. If is the same then tsMuxeR is right.
Some explain https://forum.doom9.org/showthread.php?p=1600694#post1600694
If MKV Toolnix or DVDFab don't remove the 5 frames you obtain 53 extra ms of duration and 5 points with possible glitches.
Checked I'm it via eac3to that either some warning message displayed in log and output file is not to be same with file from tsMuxer even with files from MKV Toolnix and DVDFab.
Which output file is then right?
a5180007
2nd February 2020, 06:15
Checked I'm it via eac3to that either some warning message displayed in log and output file is not to be same with file from tsMuxer even with files from MKV Toolnix and DVDFab.
Which output file is then right?
@staina could you please show eac3to log, and zip and send me mpls/clpi files.
staina
2nd February 2020, 09:17
@a5180007 Here is LOG from Eac3to:
eac3to v3.34
command line: "E:\eac3to334-UsEac3to129\eac3to.exe" "F:\Bluray\BDMV\PLAYLIST\00801.mpls" 1) 3: "E:\Test\00801.mpls_3eng.dts" -progressnumbers -log="E:\eac3to334-UsEac3to129\UsEac3To.log"
------------------------------------------------------------------------------
M2TS, 1 video track, 5 audio tracks, 14 subtitle tracks, 2:08:31, 11.988p
1: Chapters, 20 chapters
2: h265/HEVC, 2160p24 /1.001 (16:9), 10 bits
3: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
4: DTS, English, 2.0 channels, 255kbps, 48kHz
5: DTS, French, 5.1 channels, 768kbps, 48kHz
6: DTS, Czech, 5.1 channels, 768kbps, 48kHz
7: DTS, Polish, 5.1 channels, 768kbps, 48kHz
8: Subtitle (PGS), English
9: Subtitle (PGS), French
10: Subtitle (PGS), Dutch
11: Subtitle (PGS), Danish
12: Subtitle (PGS), Finnish
13: Subtitle (PGS), Norwegian
14: Subtitle (PGS), Swedish
15: Subtitle (PGS), Czech
16: Subtitle (PGS), Polish
17: Subtitle (PGS), Chinese
18: Subtitle (PGS), Modern Greek
19: Subtitle (PGS), French
20: Subtitle (PGS), Czech
21: Subtitle (PGS), Polish
[a03] Extracting audio track number 3...
[a03] Creating file "E:\Test\00801.mpls_3eng.dts"...
[a03] Audio has a gap of 31ms at playtime 0:42:15. <WARNING>
[a03] Audio has a gap of 31ms at playtime 0:46:42. <WARNING>
[a03] Audio has a gap of 31ms at playtime 0:55:06. <WARNING>
[a03] Audio has a gap of 31ms at playtime 0:57:15. <WARNING>
[a03] Audio has a gap of 31ms at playtime 0:59:42. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:05:47. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:17:12. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:18:18. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:27:34. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:30:48. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:37:16. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:38:42. <WARNING>
[a03] Audio has a gap of 31ms at playtime 1:59:47. <WARNING>
[a03] Starting 2nd pass...
[a03] Realizing DTS gaps...
[a03] Creating file "E:\Test\00801.mpls_3eng.dts"...
Video track 2 contains 184856 frames.
eac3to processing took exactly 8 minutes.
Done.
Here is LOG from tsMuxer:
tsMuxeR version git-e58b4de. github.com/justdan96/tsMuxer
HEVC muxing fps is not set. Get fps from stream. Value: 23.976
Decoding DTS-HD stream (track 2): Bitrate: 1536Kbps core + MLP data.Sample Rate: 48KHz Channels: 7.1 (DTS Master Audio 24bit)
B-pyramid level 2 detected. Shift DTS to 3 frames
DTS-HD stream (track 2): overlapped frame detected at position 00:42:14,666. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 00:55:05,770. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 00:57:14,687. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 01:05:46,783. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 01:17:11,637. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 01:27:33,589. Remove frame.
DTS-HD stream (track 2): overlapped frame detected at position 01:59:46,101. Remove frame.
Processed 184880 video frames
Flushing write buffer
Creating Blu-ray stream info and seek index
Creating Blu-ray playlist
Mux successful complete
Muxing time: 6 min 40 sec
Attach file with MPLS and CLPI files
a5180007
2nd February 2020, 19:03
@staina video frame duration is 41.708ms, whereas audio frame duration is 10.667 ms. In each m2ts, video and audio cannot stop stricly at the same time, and the last audio frame goes slightly beyond the last video frame.
eac3to gives a warning for each m2ts, whereas tsMuxer gives a warning -and omits last audio frames- only when the AV offset is greater than 1/2 audio frame ; which seems correct to me.
Note that the number of video frames reported by eac3to is incorrect : total mpls duration is 02:08:31.030 = 184880 frames.
staina
2nd February 2020, 21:04
@a5180007 Thank you, so that optimal is used tsMuxer. DVDFab and MKV Toolnix it work badly for when nothing not remove and Eac3to again that remove more than is need.
Only one more query tsMuxer the audio stream encodes only remove overflowing frame YES?
Thank for answer staina
a5180007
2nd February 2020, 22:08
@staina yes, tsMuxer removes only the overlapping frames.
And I don't think eac3to removes more than needed (code is not open source), only it issues a warning for each m2ts.
staina
3rd February 2020, 08:27
@a5180007 Why then there's not DTS file from tsMuxer same as DTS file from Eac3to? To point where with remove frame are the same and then are there differences, therefore I'm with asked at it coding.
Stay on then at tsMuxer I hope that the keep quality audio streams.
Thank for answer staina
tebasuna51
3rd February 2020, 10:27
eac3to work fine with all my test over BD's, but seems don't work with UHD ones.
The number of frames, the extrange fps 11.988p, ...
yannick92
3rd February 2020, 11:35
Good morning all.
I noticed a new option on the latest versions of Tsmuxer?
Note that this option only appears on E-AC3 tracks, because on all other audio tracks it is grayed out and cannot be used.
What is it and what can it be used for?
Thank you in advance for all your passionate work.
17186
yannick92
3rd February 2020, 11:52
Other strange things too:
The information for track E-AC3 is ok on the old 2.6.12, but not on the latest version?
I tested with several .mkv with an E-AC3 track and there is always the same error.
Why?
thank you
17187
17188
guest
3rd February 2020, 11:55
Hey guys,
I'm hoping someone here can help me...I have wasted so much time trying to get this joined properly.
So as some of you may know, some long 3D movies (eg:- The Hobbit, Titanic, etc) are in 2 parts.
Seems pretty straight forward, you just append them using tsmuxer, and in practice, it does, HOWEVER, after running it thru, if you navigate to the "join point", there is a noticeable approx 1 second of "black", then when the 2nd part starts, the audio is out of sync...the same length as the "black" section that somehow appears when joined.
Is there some way that this "black" section doesn't happen ??
a5180007
3rd February 2020, 21:08
@Pauly Dunne just to be sure, you added the mpls file in tsMuxer, rather than add the first m2ts and "append" the second m2ts file ?
a5180007
3rd February 2020, 22:25
Creating a subtitle .sup file using easySUP by Mr. Dean Kasabow.
--------------------------
Using tsMuxer:
In "Input" -> "add" adding an .mpls or .m2ts (24.000 FPS) video file and adding a .sup (24.000 FPS) subtitle file.
Output to Blu-ray folder.
--------------------------
The output subtitle is out of sync, it starts OK but then gradually goes out of sync.
I can't figure out what I'm doing wrong?
Could it be a bug in tsMuxer?
If I use a mediaplayer like PotPlayer or MPC-HC and load the .sup subtitle sync is perfect.
Screendumps here: https://imgur.com/a/lXNXMmp
@varekai not sure to understand... if your player shows the sup subtitle perfectly synced, it means it already has the images timestamps for 24fps -although the file is marked as 23.976. So when you convert from 23.976 to 24 fps with tsMuxer, it becomes out of sync.
Edit : seems to be linked to this easysup bug https://forum.doom9.org/showthread.php?p=1451113#post1451113
guest
4th February 2020, 02:50
@Pauly Dunne just to be sure, you added the mpls file in tsMuxer, rather than add the first m2ts and "append" the second m2ts file ?
Hi, I just knew someone would ask that, and tbh I should have said so !!!!
Yes, I've tried both methods, several times, same result :(
Hart2hart
4th February 2020, 05:14
Hey guys,
I'm hoping someone here can help me...I have wasted so much time trying to get this joined properly.
So as some of you may know, some long 3D movies (eg:- The Hobbit, Titanic, etc) are in 2 parts.
Seems pretty straight forward, you just append them using tsmuxer, and in practice, it does, HOWEVER, after running it thru, if you navigate to the "join point", there is a noticeable approx 1 second of "black", then when the 2nd part starts, the audio is out of sync...the same length as the "black" section that somehow appears when joined.
Is there some way that this "black" section doesn't happen ??
I posted a way to do this a few years ago. Instead of joining playlists join ssif files. The results are seamless. Only thing I had to do was to fix chapter marks on second half. I’ll see if I can locate it and post link here.
It’s post 9 in this thread
https://forum.redfox.bz/threads/3d-blu-ray-with-multiple-disks.70932/
varekai
4th February 2020, 10:48
@varekai not sure to understand... if your player shows the sup subtitle perfectly synced,
it means it already has the images timestamps for 24fps
-although the file is marked as 23.976.
So when you convert from 23.976 to 24 fps with tsMuxer, it becomes out of sync.
Edit : seems to be linked to this easysup bug https://forum.doom9.org/showthread.php?p=1451113#post1451113
Hello!
That is a good find! Thanks!
I suspected it could be a bug in easySUP.
I'm definitely gonna try bdsup2sub!
What I'm doing is I demux .sup files from a Blu-ray with tsMuxer.
Import .sup to Subtitle Edit, do some editing, and save as .srt
Opening .srt with easySUP and apply settings like font, size, style, margin, etc.
(This .sup plays in sync when playing video (.m2ts or .mpls) in PotPlayer or MPC-HC and then adding .sup.)
Then add the Blu-ray in tsMuxer, removing unwanted streams, adding one or two easySUP generated .sup files.
This is where it goes wrong.
tsMuxer auto reads (wrongly) the .sup as Frame rate: 23.976 so not anything I can control.
tsMuxer then tries to auto change the FPS .sup to 24 to match the video wich results in a out off sync .sup.
So to sum it up, tsMuxer is not the culprit... sorry... :o
Best regards,
varekai
r0lZ
4th February 2020, 11:20
... the audio is out of sync...the same length as the "black" section that somehow appears when joined.
Is there some way that this "black" section doesn't happen ??
IMO, it is possible to fix this problem with MkvMerge.
For the audio sync issue, there is probably a solution with the CLI argument --append-mode:
--append-mode <file|track>
Selects how mkvmerge calculates timestamps when
appending files.
I think that it uses track by default, and that means that it joins each track independently. If the durations of the video and audio tracks of the first part are notably different, the audio will be out of sync. I guess that using file mode may help. (I don't know if it is possible to provide this argument with the GUI. Perhaps in Input -> Properties -> Miscellaneous -> Additional Options, but I have never tried.)
Also, if there is a blank at the end of the first part, you can remove it with the option Multiplexer -> Output -> Splitting -> Split mode: After specific timestamps. With some luck, you can cut the blank just at the end of the audio, or a bit before, and the second part will be in sync (with a very small delay due to the different durations of the video and audio frames, but that delay is so short that it should not be noticeable).
guest
4th February 2020, 11:44
I posted a way to do this a few years ago. Instead of joining playlists join ssif files. The results are seamless. Only thing I had to do was to fix chapter marks on second half. I’ll see if I can locate it and post link here.
It’s post 9 in this thread
https://forum.redfox.bz/threads/3d-blu-ray-with-multiple-disks.70932/
OMG Hart2hart, that info it EXACTLY what I need, I found a post that I could have written, it spot on :)
So I can't wait to try this process, and hope I have the same success as the OP had.
edit:- unfortunately, this did not work for me, still got the black frames at the join, and hence, sync was out, after that :(
I certainly came to the right place :)
I have a couple of other 2 part 3D movies, hopefully they will go thru tsmuxer without issue, but Titanic is a problem.
Cheers
guest
4th February 2020, 11:54
IMO, it is possible to fix this problem with MkvMerge.
For the audio sync issue, there is probably a solution with the CLI argument --append-mode:
I think that it uses track by default, and that means that it joins each track independently. If the durations of the video and audio tracks of the first part are notably different, the audio will be out of sync. I guess that using file mode may help. (I don't know if it is possible to provide this argument with the GUI. Perhaps in Input -> Properties -> Miscellaneous -> Additional Options, but I have never tried.)
Also, if there is a blank at the end of the first part, you can remove it with the option Multiplexer -> Output -> Splitting -> Split mode: After specific timestamps. With some luck, you can cut the blank just at the end of the audio, or a bit before, and the second part will be in sync (with a very small delay due to the different durations of the video and audio frames, but that delay is so short that it should not be noticeable).
Hi r0lZ,
As far as I know, MKVToolnix/MKVmerge doesn't process MVC (SSIF) 3D movies...it leaves out the SSIF/MVC track.
The ONLY app that I have found that DOES, IS tsmuxer.
I'm pretty sure that there are not any black sections at the end of the 1st part, or the start of the 2nd part. If you watch the movie in question (Titanic), that is NOT a joined non 3D version, and watch it at the 2 part version join point, there are NO "black" frames at all.
However, I appreciate your reply & suggestions, that I will give it a try in the future.
Cheers
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.