Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Italian Doom9 Staff
Join Date: Apr 2002
Location: Italy
Posts: 219
|
Alpha tools for USF subtitles, available for testing ....
Hi All,
the USF and matroska dev teams are proud to annouce, that finally the first alpha testing of tools to create, mux and play USF subtitles in/from MKV files are now being made available to the public. We encourage you to give it a shot, but also clearly give advice to not consider using these tools for final backups of your movies yet, as some minor things may still have to be changed with respect to how USF subs are best being stored in MKV files. Here is what you need : USF Editors : ChronoSub U96 Both are in pretty much alpha state still, but you will be surprised about the current status of support for SRT/SSA conversion into USF, as well as creating subs with advanced USF features already. Muxers : mkvmerge Currently only mkvmerge support muxing of USF subs, but AMG will hopefully soon offer it also. Hardcoders : PicSubU Avisynth filter to hardcode your USF subtitles into the videoclip. Playback : PixiShow Haali Splitter Based on unmei's pixifier, the first and only lib for USF rendering ( written in Delphi ), kaiousama created his USF rendering DShow filter. Expect still a number of bugs in it, but its working pretty stable already on some machines here and no major issues have been reported with it from the dev team testing it. Note that USF playback will only work correctly on DirectShow based players when both PixiShow and Haali's latest matroska splitter are being present on your system. and now ....... Happy Testing !!!
__________________
"All that we see or seem is but a dream within a dream" E.A.Poe Last edited by Kaiousama; 31st July 2005 at 21:04. |
![]() |
![]() |
![]() |
#2 | Link |
Swallowed in the Sea
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
|
First of all, great stuff Kaiousama...
![]() I've a question : I tested usf embedded into some mkv files. The playback works great if I uninstall VSFilter. If I let VSFilter + PixiShow, all dshow players crash unfortunately. ![]() Second : could you define with more details the rasterizer functions ? Thanks. Last edited by Kurtnoise; 20th June 2005 at 19:43. |
![]() |
![]() |
![]() |
#3 | Link | ||
Italian Doom9 Staff
Join Date: Apr 2002
Location: Italy
Posts: 219
|
Quote:
Please try also the new build I uploaded last evening (PixiShow_20050619), it solves a loading priority issue when concurrent loading between PixiShow and VSFilter occurr. Another known issue is that one related to Media Player Classic users, they have to deselect MPC internal matroska splitter because it forces VSFilter loading even when PixiShow is the preferred filter. Another bug-report/solving involves ffdshow settings, actually you need to enable "allow output format changes during playback" in Output section, and (probably) you have to limit output colorspace to RGB32 since it is the only colorspace supported by PixiShow at the moment (YV12 is planned). Quote:
Thank you for the feedback, and Happy testing. btw. Very nice gui your BeLight, especially when you need to teach other prople to use besweet. ![]()
__________________
"All that we see or seem is but a dream within a dream" E.A.Poe |
||
![]() |
![]() |
![]() |
#4 | Link | ||||
Swallowed in the Sea
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
|
Hi,
Quote:
Quote:
![]() ![]() Quote:
Quote:
![]() |
||||
![]() |
![]() |
![]() |
#6 | Link |
Registered User
Join Date: May 2005
Location: Russia
Posts: 18
|
I have found the reason on which at me do not work embeeded subtitles created in U96
<text alignment="TopCenter"><font color="#FFE1E1E1" size="-2">text<font color="#FFD20000">text</font></font></text> - All players crash <text alignment="TopCenter"><font color="#FFE1E1E1" size="-2">text</font><font color="#FFD20000">text</font></text> - All ok <text><i><font face="Arial" family="Arial"><font color="#FFDFDF9F">text</font></font></i></text> - All players crash <text><i><font face="Arial" family="Arial" color="#FFDFDF9F">text</font></i></text> - All ок |
![]() |
![]() |
![]() |
#7 | Link |
frying subs
Join Date: Jan 2003
Location: ch-2500
Posts: 891
|
ouch! Thanks for pointing this out, Skaarj.
I _thought_ it would work with nested tags (at least "at reasonable levels", let's say 5 deep or so), but apparently i recently broke something here. As this looks quite serious, i'll be attacking this as one of the next problem. I can't guarantee it will be fixed next week as the parser for these tags is a bit of brainkiller part of code, but i will defintly look into it.
__________________
-nyo |
![]() |
![]() |
![]() |
#8 | Link |
frying subs
Join Date: Jan 2003
Location: ch-2500
Posts: 891
|
OK, we took your text nodes and pasted them into an otherwise working sample file. It worked perfectly both on mine and kaiousama's machine.
Either the problem lies somewhere else in your file (are your files UTF-8 encoded?) or in your system (operating system? - we only use XP, it should work on W2K tho - ME is unclear) or maybe even other filter interfering (i got triple subs and flipped video - but no crash - when VSFilter has the "load external files" enabled).
__________________
-nyo |
![]() |
![]() |
![]() |
#9 | Link |
Registered User
Join Date: May 2005
Location: Russia
Posts: 18
|
I checked at myself and at friends when at embeeded subtitles there is "</font></font>" all players and graphedt too crash, in external subtitles wоrks fine.
All other my experiments have passed successfully, and I tested Embedded USF with RUBY http://usf.subforge.net/20050625.php too perfectly works. |
![]() |
![]() |
![]() |
#10 | Link |
frying subs
Join Date: Jan 2003
Location: ch-2500
Posts: 891
|
oh i didn't realize that you were specifically encountering the bug when the file is embedded. We only tested it with an external file. But this means it definitly isn't an issue in the core (*phew* for me..) but now i wonder how that would make a difference - either the usf is already truncated when muxing into USF, or kaiousama somehow doesn't pass all data to the rasterizer when he recieves the subtitle from the splitter (as opposed to him reading it from a usf file).
__________________
-nyo |
![]() |
![]() |
![]() |
#11 | Link | ||
Italian Doom9 Staff
Join Date: Apr 2002
Location: Italy
Posts: 219
|
Quote:
The problem is not unmei's renderer nor my filter, the problem arises when you mux the file into mkv with mkvmerge, probably mosu's xml reformatter commit errors during line creation, so that a line like this: <text alignment="TopCenter"><font color="#FFE1E1E1" size="-2">text<font color="#FFD20000">text</font></font></text> after being muxed in .mkv becomes like this (dumped from my filter's input pin): <text alignment="TopCenter"><font color="#FFE1E1E1" size="-2">text<font color="#FFD20000">text</font/></text> I'll report the bug to mosu as soon as possible. Quote:
__________________
"All that we see or seem is but a dream within a dream" E.A.Poe Last edited by Kaiousama; 26th June 2005 at 10:09. |
||
![]() |
![]() |
![]() |
#12 | Link |
Italian Doom9 Staff
Join Date: Apr 2002
Location: Italy
Posts: 219
|
Bug solved!
in order to mux your usf files into matroska container, please use this mkvmerge build. Thank you for the feedback.
__________________
"All that we see or seem is but a dream within a dream" E.A.Poe |
![]() |
![]() |
![]() |
#14 | Link |
Italian Doom9 Staff
Join Date: Apr 2002
Location: Italy
Posts: 219
|
Another bug squashed!
spaces between nodes inside the <text>...</text> were stripped by mkvmerge's reformatter, now they're all preserved (so be careful and don't apply pretty xml formatting to nodes inside <text>...</text> ) you can download the updated mkvmerge build from here Happy testing.
__________________
"All that we see or seem is but a dream within a dream" E.A.Poe |
![]() |
![]() |
![]() |
#15 | Link | |
Italian Doom9 Staff
Join Date: Apr 2002
Location: Italy
Posts: 219
|
Quote:
new in this build: - YUY2 color space support - UYVY color space support - Fixed a VideoInfoHeader related bug that caused acess violation when a subtitle needs to be rendered. Happy download!
__________________
"All that we see or seem is but a dream within a dream" E.A.Poe |
|
![]() |
![]() |
![]() |
#18 | Link |
frying subs
Join Date: Jan 2003
Location: ch-2500
Posts: 891
|
Skaari, in this way "no".
But USF can have embedded pictures. And even if external pictures do not yet get muxed and used, the embedded ones should IMO, since they are part of the XML data. The muxer only has to mux everyting in the USF file, the splitter to pass everything downstream and the rasteriser does all the rest. This way they don't need to know there are pictures. BUT this is not very efficient because you have to "text-encode" the pictures (base64) which makes them larger, and they will get stored in a place where it may not be appropriate to store large chunks of data (that prefixed, "inline" embedded pictures in the <image> node itself may become interesting at some time..). I committed code to use embedded pictures in USF last weekend and kaiou made a build using it. AFAIK they plan to put embedded (and probably also formerly external) pictures into the attachments on muxing, BUT i guess it won't work by you adding the picture manually to the attachment. Note that i do no muxed tests, but since i assume muxing will not throw away what is inside USF, i think this (hard) way should also already work for muxed USF: convert all pictures to base64 encoded files (i think mkvtoolnix has a tool for it, else u96 0.1.9 versions also can do it with file->inc man) and then copy those "text" files into the USF in the <embedded> node. I *thought* u96 could encode and embed the pictures in one step but unfortunately i didnt rember how to do it when i did the pixifier test last weekend (thus i now only know to do it with a text editor ![]() An example how this should look: (Assuming the base64 encoded file is the string "ABCDEFGH") <subtitles> <subtitle start=".." stop=".."> <image alignment="TopRight">mylogo.bmp</image> </subtitle> </subtitles> <embedded> <b64file filetype="image/bmp" colorkey="#FFFFFF" filename="mylogo.bmp">ABCDEFGH</b64file> </embedded> of course, the base64 encoded file will be a bit longer than only 8 characters... (typically 4/3 the size of the original picture file) also, the filetype can be "image" or a mime-type or completly left out. The colorkey attribute defined a color in the picture to be replaced with transparent - of course this is only meaningful for files without transparency - and IMO it is preferrable to use PNG pictures with alpha-transparency instread of the clumsy colorkey :Y.
__________________
-nyo |
![]() |
![]() |
![]() |
#20 | Link |
frying subs
Join Date: Jan 2003
Location: ch-2500
Posts: 891
|
not yet. I was working on it (weekends are so damn short..) but i don't know yet if it will ever work. I do not want to install the font in windows, but there is a API call to load a font just for the running process - if that turns out working, they could be implemented soon - else probably never.
Also, a sample of embedded pictures: screenshot and source usf
__________________
-nyo |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|