View Full Version : smartLabs tsMuxeR: Transport Stream muxer
hey guys
Sorry for the total noob question but how do i combine a MKV movie and SRT file? Everytime i stick them in TSMuxer i get the "Can't convert source text to UTF-32. Invalid chars sequence."
Thanks for the help. (Sorry if its been answered elsewhere)
Rodger
9th May 2009, 19:50
Did you use bluray or avchd output?
Is there BDMV\AUXDATA folder?
Reason I ask is someone confirmed that latest update for Samsung 1500 plays with BDMV/AUXDATA while all other Samsung players can't have that folder.
With any luck at all Samsung will update all their players firmware with this fix so there will be no need to ever delete empty directories. Unfortunately neither outputs in current TSMuxer follow this rule but 1.8.4 - 1.8.34 bluray output does.
See my post here, this is will answer all your questiones
http://forum.doom9.org/showthread.php?p=1276549#post1276549
roman76r
10th May 2009, 01:52
new version of tsMuxeR is available: http://www.smlabs.net/tsmuxer_en.html
Version 1.10.3:
* Added MOV/MP4 container support
* Added ability to scale PGS subtitles
* Added MPL file support
* Several minor bugs fixed
Also, I have added donate button.
coolalibaba
10th May 2009, 05:57
Thanks Roman for the new version. Is it possible to implement this feature in tsmuxer?
Put the subtitles in the black border at the bottom like dean did in MultiAVCHD when remux none standard resolution MKVs.
drpaulng
10th May 2009, 08:00
hey guys
Sorry for the total noob question but how do i combine a MKV movie and SRT file? Everytime i stick them in TSMuxer i get the "Can't convert source text to UTF-32. Invalid chars sequence."
Thanks for the help. (Sorry if its been answered elsewhere)
For fonts with more than 128 US-ASCII characters (chinese for example). tsmuxer may not be able to recognize them although being properly selected on the "Subtitles TAB" of tsMuxeR GUI. A workaround is to hack the font and change the name into "english" name that is recognized by tsMuxeR. You need the tool:
http://www.fontcreator.com/FontCreatorSetup.exe
Select through the Tools TAB,
Tools\Autorenaming\Font family name
Change the original name into english name, save the font as a new font (content not changed) and install. Select the newly named non-ASCII font in tsMuxeR now. It should work. I don't know if Roman could do something about it so that we can freely choose any font without working around.
REFERENCE:
http://www.hd.club.tw/thread-10807-1-1.html
turbojet
10th May 2009, 08:23
See my post here, this is will answer all your questiones
http://forum.doom9.org/showthread.php?p=1276549#post1276549
Thanks, looks like Samsung is changing their firmware so AUXDATA can exist. One less problem to deal with.
new version of tsMuxeR is available: http://www.smlabs.net/tsmuxer_en.html
Version 1.10.3:
* Added MOV/MP4 container support
* Added ability to scale PGS subtitles
* Added MPL file support
* Several minor bugs fixed
Also, I have added donate button.
Thanks for the new version.
Can you check this post (http://forum.doom9.org/showthread.php?p=1282576#post1282576) and at the least add back BDJO/JAR/META folders to avchd output?
Without them powerDVD and potentially Denon/Phillips players are broken. Adding them back in does not affect any players that already work.
Also I found some issues with resizing subs.
1. Resizing these colored subs (http://www.sendspace.com/file/m1t7m0) gives this error in tsmuxer 'Can't transform image to YUV: too many colors are used.'
2. The color palette of these subs (http://www.sendspace.com/file/asqg14) doesn't seem to be kept and some are white, some are black, some are in between.
3. With the same subtitles from #2 the subs position isn't quite right and sitting directly on the bottom of the screen. I don't mind it really but I could see it being a problem with some subs. See the lower right part of the 3 gui's also shows the different color palette issue described in #2
deank
10th May 2009, 08:56
tsMuxeR Version 1.10.3:
* Added MPL file support
Thanks for this feature. But the original MPLS import got broken.
Emess
10th May 2009, 09:02
Hey roman, should probably have posted this a while ago but every build post 1.7.3 has segfaulted on my system (Linux, Arch64, kernel 2.6.29, Qt 4.5.0) This happens on both the shared and full binaries. That's about all the information I can give unless you ahve something you'd like me to test.
E~
deank
10th May 2009, 09:23
Is it possible to implement this feature in tsmuxer: Put the subtitles in the black border at the bottom like dean did in MultiAVCHD when remux none standard resolution MKVs.
Have in mind that some players (like Nero and TMT) crash or not show subtitles at all when they are "moved" to the black bar. It may only work for PS3.
Dean
ExSport
10th May 2009, 09:58
Great Roman:D
One question, do you plan to support ASS subtitles(MKV container)?
Thanks for your great work and also donate button:)
Discoboy
10th May 2009, 12:08
Thanks for the new version.
Can you check this post (http://forum.doom9.org/showthread.php?p=1282576#post1282576) and at the least add back BDJO/JAR/META folders to avchd output?
Without them powerDVD and potentially Denon/Phillips players are broken. Adding them back in does not affect any players that already work.
@ turbojet,
I found that the latest PowerDVD’s players very strictly comply with AVCHD format!
Tests made TsMuxer 1.10.3 in AVCHD mode
If you burn the AVCHD ouput files to a DVD and play on PowerDVD, ALL versions of PowerDVD will play no problem and also on a SAP Panasonic BD35
If you make an ISO image of the AVCHD ouput files and mount on a virtual drive on the PC then play on PowerDVD only version 7.3.3119 or below will play it. Versions upto 9.0.1531 will NOT play it.
So it seems the latest versions of PowerDVD will only play AVCHD via DVD media
If add the following empty folders to your AVCHD output files:
BDMV: add “BDJO” + “JAR” + “META”
BDMV\BACKUP: add “BDJO”
Then make an ISO image of the AVCHD output files and mount on a virtual drive on the PC and then play on PowerDVD, ALL versions will play it
So I believe the problem is with PowerDVD very strictly complying with AVCHD format.
To prove this point a DTS 1.5Mbps sound stream is not officially supported in the AVCHD format and if used on a AVCHD burned DVD, PowerDVD’s after version 7.3.3119 will NOT play the DTS sound. If you instead make a ISO image + the missing folders with DTS sound, ALL versions of PowerDVD will play the sound
Regards
Discoboy
psxiso
10th May 2009, 16:12
So it seems the latest versions of PowerDVD will only play AVCHD via DVD media
Not true, you can choose to play AVCHD in PC by click on Select Source > Open movie file on hard drive disk.
However, it refuse to play when tsmuxer 1.8.4(b) create blu-ray disk, I must delete these empty folder (“BDJO” + “JAR” + “META”) and powerdvd9 let me play fine.
turbojet
10th May 2009, 16:21
Not true, you can choose to play AVCHD in PC by click on Select Source > Open movie file on hard drive disk.
However, it refuse to play when tsmuxer 1.8.4(b) create blu-ray disk, I must delete these empty folder (“BDJO” + “JAR” + “META”) and powerdvd9 let me play fine.
PowerDVD hasn't played from hard drive for over a year, far from the latest versions.
With 1.8.4 untouched output I can play from iso on powerDVD 9.0.1531. If I delete BDJO+JAR+META or any one of the 3 folders it says unsupported disk.
roman76r
10th May 2009, 16:58
turbojet
Can you check this post and at the least add back BDJO/JAR/META folders to avchd output?
Without them powerDVD and potentially Denon/Phillips players are broken. Adding them back in does not affect any players that already work.
Also I found some issues with resizing subs.
1. Resizing these colored subs gives this error in tsmuxer 'Can't transform image to YUV: too many colors are used.'
2. The color palette of these subs doesn't seem to be kept and some are white, some are black, some are in between.
3. With the same subtitles from #2 the subs position isn't quite right and sitting directly on the bottom of the screen. I don't mind it really but I could see it being a problem with some subs. See the lower right part of the 3 gui's also shows the
Deank
Thanks for this feature. But the original MPLS import got broken.
Fixed.
Please, test a new version 1.10.4: www.smlabs.net/tsMuxer/tsMuxeR_1.10.4.zip
P.S. When tsMuxeR scales subtitles, when parameters "bottom-offset" and "font-border" are also applicable. So, original bottom offset is not used.
deank
10th May 2009, 17:11
Thanks!
It works fine now!
turbojet
10th May 2009, 17:41
Thanks roman76r, those issues are fixed now.
i found two more issues with subs now though.
1. with these colored sups (http://www.sendspace.com/file/m1t7m0) from earlier there is an orange background that originally wasn't there and they are tough to read
2. Since every sub is sitting on the bottom border if they were originally placed anywhere else horizontally they are now sitting on the bottom. If you look at these subs (http://www.mediafire.com/download.php?0mjdmuwzmqt) between 2 and 5 minutes they are supposed to be at the top but resized they are at the bottom
Also when demuxing subs from a 1280x720 m2ts it resizes to 1920x1080 is this intended?
I would think every time you resize you lose quality and a little time.
keep up the good work
I'm using 1.10.3 GUI
For some reason muxing fails when I use a .mpls as source. The error is: Can't find .m2ts file for stream F:\Underworld_3\BDMV\STREAM\00262.m2ts
If I select the m2ts instead of the .mpls everything works.
Meta file for muxing through .mpls:
MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --custom-chapters=00:00:00.000;00:06:19.879;00:11:42.785;00:16:44.628;00:24:33.054;00:30:28.493;00:36:33.149;00:40:17.414;00:46:28.869;00:50:54.593;00:55:08.221;01:00:39.302;01:07:13.279;01:13:29.321;01:16:38.844;01:22:33.156 --vbv-len=500
V_MPEG4/ISO/AVC, "F:\Underworld_3\BDMV\STREAM\00262.m2ts", fps=23.976, insertSEI, contSPS, track=4113, mplsFile=00450
A_AC3, "F:\Underworld_3\BDMV\STREAM\00262.m2ts", track=4352, lang=eng, mplsFile=00450
Meta file for straight up .m2ts:
MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --auto-chapters=5 --vbv-len=500
V_MPEG4/ISO/AVC, "F:\Underworld_3\BDMV\STREAM\00262.m2ts", fps=23.976, insertSEI, contSPS, track=4113
A_AC3, "F:\Underworld_3\BDMV\STREAM\00262.m2ts", track=4352, lang=eng
Directories are identical in the meta files, so I can't figure out why it's not accepting it...
deank
10th May 2009, 19:03
@Mirx: You could've taken a look few posts up.
@Mirx: You could've taken a look few posts up.
Whoops, overread that one between subtitle and folder discussion...
roman76r
10th May 2009, 19:31
turbojet
Please, try new version: www.smlabs.net/tsMuxer/tsMuxeR_1.10.5.zip
Now I began to use information from Alpha channel of source PGS stream. It is solves 1-st problem. Also, I've chaned behaviour of "bottom-offset" option in scaling mode: now this options interpreted as addition vertical offset from original subs position.
Also when demuxing subs from a 1280x720 m2ts it resizes to 1920x1080 is this intended?
Try to change "Size" comboBox value in GUI.
turbojet
10th May 2009, 20:14
turbojet
Please, try new version: www.smlabs.net/tsMuxer/tsMuxeR_1.10.5.zip
Now I began to use information from Alpha channel of source PGS stream. It is solves 1-st problem. Also, I've chaned behaviour of "bottom-offset" option in scaling mode: now this options interpreted as addition vertical offset from original subs position.
The position seems fixed on those and 2 other BD's I tested on. Thanks.
As for the colored subs the orange background is gone but the letters have red spots on them which makes it hard to read
Try to change "Size" comboBox value in GUI.
Oh I see now, if video isn't selected it defaults to 1920x1080 it looks like. Is there a way for it to use the current resolution if no video is selected?
Also since there is still 1 possibly 2 players that can't have that pesky AUXDATA directory is there a chance for an option to remove CERTIFICATE/BDJO/JAR/META directories? Maybe a checkbox defaulted off to the right of demux?
roman76r
10th May 2009, 20:19
turbojet
As for the colored subs the orange background is gone but the letters have red spots on them which makes it hard to read
Are you sure that is error? I think it is special effect in this subs.
turbojet
10th May 2009, 20:25
They should be solid yellow.
The same issue came up in BDSup2Sub awhile back and I believe it had to do with Cr/Cb
One other, I think simple, feature request I had from a few weeks ago is having an input command for tsmuxergui in CLI.
Example: 'tsmuxergui test.mkv' opens tsmuxergui and loads test.mkv
My main reason for this is open with working correctly like so many other windows gui's do. Is something like this possible?
SeeMoreDigital
10th May 2009, 20:52
Out of interest... How difficult would it be to include the ability to convert DVD style "idx/sub" subtitles to Blu-ray "sup" subtitles?
Deepstar
10th May 2009, 21:06
How difficult would it be to include the ability to convert DVD style "idx/sub" subtitles to Blu-ray "sup" subtitles?
This were great! I searching for a tool that have this ability!
BlackJack1
10th May 2009, 21:38
Thanks for new version.
Is possible to include button for forcing "turn on" subtitles on standalone players in Blu-ray format please?
jefrey
11th May 2009, 00:07
whats about an option like "always subtitle on" for some forced subs or if i wanna to have some subs forced, that they stay always on (can only switched of by remote)
BlackJack1
11th May 2009, 00:49
Agree. :)
Roman
Can you do this please...
roman76r
11th May 2009, 01:28
turbojet
Now, I've find a bug with color subtitles. Please, try again:
www.smlabs.net/tsMuxer/tsMuxeR_1.10.6.zip
One other, I think simple, feature request I had from a few weeks ago is having an input command for tsmuxergui in CLI.
Added in this version.
All
I plan to add ASS/SSA and DVD subs as next feature.
psxiso
11th May 2009, 01:39
PowerDVD hasn't played from hard drive for over a year, far from the latest versions.
With 1.8.4 untouched output I can play from iso on powerDVD 9.0.1531. If I delete BDJO+JAR+META or any one of the 3 folders it says unsupported disk.
I'm playing AVCHD from hdd on powerdvd9 just fine. I assume you don't output an avchd video then put it in iso container then try to play it? because I play it by selecting the folder "BDMV", and if it playing fine such as audio sync ok and subtitle show, i'll then burn it to dvd.
There are actually 4 folders I must need to delete before powerdvd9 play output from tsmuxer 1.8.4:
BDJO+JAR+META+AUXDATA.
i'm using powerdvd 9.0.1501 ultra.
SeeMoreDigital
11th May 2009, 08:58
All
I plan to add ASS/SSA and DVD subs as next feature
You're most definitely "the man"...
microchip8
11th May 2009, 10:35
All
I plan to add ASS/SSA and DVD subs as next feature.
that's awesome. I've been waiting for DVD subs support for quite some time ;)
turbojet
11th May 2009, 10:54
turbojet
Now, I've find a bug with color subtitles. Please, try again:
www.smlabs.net/tsMuxer/tsMuxeR_1.10.6.zip
Added in this version.
All
I plan to add ASS/SSA and DVD subs as next feature.
Thanks, both work great now.
DVD subs are dvd sup files?
Is vobsub input possible?
Dp you have any thoughts on 'strict AVCHD output' option which deletes the empty directories for a few players?
Also I see vertical offset affects sup files too, this could have some unwanted results for sup files.
Would it be possible to split srt and sup vertical offsets and set sup offset to 0 by default?
I'm playing AVCHD from hdd on powerdvd9 just fine. I assume you don't output an avchd video then put it in iso container then try to play it? because I play it by selecting the folder "BDMV", and if it playing fine such as audio sync ok and subtitle show, i'll then burn it to dvd.
There are actually 4 folders I must need to delete before powerdvd9 play output from tsmuxer 1.8.4:
BDJO+JAR+META+AUXDATA.
i'm using powerdvd 9.0.1501 ultra.
Oh I wasn't aware they brought back HDD playback but you are right it will play without those directories but only LPCM\AC3 audio.
shon3i
11th May 2009, 16:05
Adding support for DVD subtitles isn't good idea, because upscaling subtitles is same as upscaling DVD to BD.
idbirch2
11th May 2009, 16:11
Adding support for DVD subtitles isn't good idea, because upscaling subtitles is same as upscaling DVD to BD.What do you mean? Surely scaling subtitles from 480p to 1080p doesn't make them unreadable? I've never tried but I'm pretty sure it wouldn't.
shon3i
11th May 2009, 16:16
What do you mean? Surely scaling subtitles from 480p to 1080p doesn't make them unreadable? I've never tried but I'm pretty sure it wouldn't.
I mean like i said, quality of upscaled subs will be awful.
roman76r
11th May 2009, 16:20
turbojet
Would it be possible to split srt and sup vertical offsets and set sup offset to 0 by default?
Yes, I also thought about this. So I'll plan to move vertical offset parameter to the "track options" tab for sup subtitles.
Dp you have any thoughts on 'strict AVCHD output' option which deletes the empty directories for a few players?
Good idea.
DVD subs are dvd sup files?
Is vobsub input possible?
I mean dvd sup. Seemingly vobsub possible too, now I need to read more about bitstream syntax of these formats.
idbirch2
11th May 2009, 16:29
I mean like i said, quality of upscaled subs will be awful.As far as I'm concerned, the quality of a subtitle only needs to be such that I can read it, can't say I'm that bothered if the edges of the letters don't blow me away with their sharpness.
If you're making custom subs, DVD subtitles are much easier to create and are more likely to have been created already by someone else saving a lot of time. OK, so the quality might not be great but who cares if it's only 10-20 captions throughout the whole film.
Also, it's just a feature, it's not like you have to use it! If you don't need it or don't like it, fine but that isn't a reason to not give others the option.
turbojet
11th May 2009, 16:56
turbojet
Yes, I also thought about this. So I'll plan to move vertical offset parameter to the "track options" tab for sup subtitles.
Good idea.
I mean dvd sup. Seemingly vobsub possible too, now I need to read more about bitstream syntax of these formats.
Oh I forgot to mention a --strict or something in mux-opt of the meta file would be useful too.
As far as I'm concerned, the quality of a subtitle only needs to be such that I can read it, can't say I'm that bothered if the edges of the letters don't blow me away with their sharpness.
If you're making custom subs, DVD subtitles are much easier to create and are more likely to have been created already by someone else saving a lot of time. OK, so the quality might not be great but who cares if it's only 10-20 captions throughout the whole film.
Also, it's just a feature, it's not like you have to use it! If you don't need it or don't like it, fine but that isn't a reason to not give others the option.
I think srt is much better suited for this task but I couldn't agree more with you on having the option as well as having the option with vobsub from dvd that will look even worse but still readable.
Sort of unrelated is there currently isn't a direct BD sup -> DVD sup tool, let alone a tool that can encode BD to something playable in DVD players. It would be very useful for enthusiasts that are planning to upgrade to BD but not quite ready and currently buying DVD because they can only play it. Or people that already own a BD player but they also want to be able to play the movie on DVD players. I realize menus are more less impossible to convert but I'm surprised there's no movie only tool yet.
SeeMoreDigital
11th May 2009, 17:12
turbojetI mean dvd sup. Seemingly vobsub possible too, now I need to read more about bitstream syntax of these formats.As far as I was aware DVD sup and VOBsub (idx/sub) are the same thing, ie: graphics based subtitles... Is this not the case?
Cheers
Kurtnoise
11th May 2009, 17:15
quite different...like srt vs ssa by example (both text formats but not the same syntax.)
On the topic of subtitles, I find something about the .srt subtitle generation a bit off. I don't know if this has already been discussed before, but tsMuxeR calculates the off-set for the subtitles from the lowest point of the subtitle instead of a constant line. This means if you have a subtitle containing the characters “g j p q y” the subtitle will be placed higher.
This means the subtitles will differ in placement height, and that is not common practice for subtitles.
I usually place the subtitles in the black bar, and if it's a dual line subtitle have the upper one in the video, and the bottom one in the black bar (this is still possible with tsMuxer, although a configurable inter-line offset might be a nice addition). In this case you clearly see the subtitle moving up and down depending on the characters in the bottom line.
As for straight up DVD->BR subs, I'm also worried a bit about subtitle quality, and about how to sync them properly. My first vibe is that I would probably still OCR them to .srt, resync them, and generate a new subtitle track for the sheer joy of the better looking subtitles, but that's just me and the outcome might suprise me and make me change my mind...
SeeMoreDigital
11th May 2009, 18:00
quite different...like srt vs ssa by example (both text formats but not the same syntax.)Please confirm....
So given that a typical DVD's "elementary" video stream is say, .M2V. And the "elementary" audio stream is say, .AC3. What is the "elementary" subtitle stream type?
Cheers mate ;)
Kurtnoise
11th May 2009, 18:05
SUP format...;)
SeeMoreDigital
11th May 2009, 18:46
SUP format...;)That's what I thought...
That said, I wonder why our old friend DVD Decrypter elected to extract DVD subtitles as .SUB and not .SUP :(
Discoboy
11th May 2009, 20:13
Hello All,
Since version 1.10.4 or higher puts back the missing directories in the AVCHD output mode.
Question: What is now the actual difference between using the Blu-ray disk and AVCHD disk output mode buttons in the GUI to the files and directories created? :confused:
Many thanks
turbojet
11th May 2009, 20:22
Hello All,
Since version 1.10.4 or higher puts back the missing directories in the AVCHD output mode.
Question: What is now the actual difference between using the Blu-ray disk and AVCHD disk output mode buttons in the GUI to the files and directories created? :confused:
Many thanks
Blu-Ray writes blu-ray type index.bdmv which is V0200 and no IDEX, it also uses V0200 in clpi/mpls files. Writing this output on DVD won't play many BD players. Theoretically the same output on a BD should work on all players except for sharp but it's not well tested and I can see reasons why it might not, empty AUXDATA instead of something always in it on retail BD's.
AVCHD uses V0100 and IDEX which plays on all but sharp players.
The only reason I believe this new blu-ray output was created is to fix an issue with Panasonic BD35 and VC-1 video. So far that hasn't been reported to work or not work but theoretically it should work. Except for this certain case I'd really suggest using avchd ouptut even on BDR as it's well tested. But then again if blu-ray output is never used for BDR it will never be well tested.
Discoboy
11th May 2009, 20:44
@ turbojet :thanks:
turbojet
11th May 2009, 21:15
On the topic of subtitles, I find something about the .srt subtitle generation a bit off. I don't know if this has already been discussed before, but tsMuxeR calculates the off-set for the subtitles from the lowest point of the subtitle instead of a constant line. This means if you have a subtitle containing the characters “g j p q y” the subtitle will be placed higher.
This means the subtitles will differ in placement height, and that is not common practice for subtitles.
I usually place the subtitles in the black bar, and if it's a dual line subtitle have the upper one in the video, and the bottom one in the black bar (this is still possible with tsMuxer, although a configurable inter-line offset might be a nice addition). In this case you clearly see the subtitle moving up and down depending on the characters in the bottom line.
Strange I never noticed this until you mentioned it but it's definitely true even if it's only about 5 lines or so.
deank
11th May 2009, 21:28
[self censored]
Sadly... There are too many stubborn people around...
I'm not surprised that some people don't "receive the attention" they'd like to in other threads.
Dean
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.