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. |
29th September 2008, 20:55 | #701 | Link | |
Registered User
Join Date: Mar 2008
Posts: 2,021
|
Quote:
I guess SubtitleWorkshop4 will accept your xml. Please feedback. |
|
30th September 2008, 10:59 | #702 | Link | |
Registered User
Join Date: Sep 2008
Location: Sweden
Posts: 66
|
Quote:
Scenarist accepts the xml. I have made a batch file that makes conversion from 1080p to 720p easy: Code:
@REM Conversion of BDM XML file and PNG files to 720p. @REM Drop folder(s) with PNG files and BDN XML file in this BAT-file. @REM Use "SUPRead" to save the bitmaps as PNG from a "sup" subtitle file. @REM ImageMagick ("convert.exe") has the ability to read the tranparency data @REM stored in an indexed PNG file (saved in the tRNS chunk in a PGN file). @REM Bitmaps saved from ".sup" by "SUPread" contains the transparency, @REM but this information is disregarded by GIMP, Photoshop etc. @REM ImageMagick opens the file and uses the tranparency data to form a 32 bit @REM PNG file with variable transparency. The script below scales the image to @REM 1280x720 and saves it. Observe! "pngnq.exe" can only do a proper conversion @REM if the downscaling in ImageMagick is done by the simpler downscaling @REM command "-scale 1280" instead of "-resize 1280". @REM ImageMagick: http://www.imagemagick.org @REM "pngnq.exe" converts the PNG file to an indexed 8-bit PNG file with @REM full transparency retained (saved in the tRNS chunk). @REM "pngnq.exe" requres the following DLLs: libpng13.dll and zlib1.dll @REM pngnq: http://pngnq.sourceforge.net/ @REM libpng13.dll: http://www.cybertherial.com/pngnq/libpng13.dll @REM zlib1.dll: http://www.dll-files.com/dllindex/dll-files.shtml?zlib1 @REM "sed.exe" is the GNU sed editor. @REM sed.exe: http://sourceforge.net/projects/gnuwin32/ @REM The resulting files can be imported as BDN assets in Sonic Scenarist. @REM ------------------------------------------------------- set CONV_EXE=C:\Program Files\ImageMagick\convert.exe set PNGNQ_EXE=C:\Program Files\pngtools\pngnq.exe set SED_EXE=C:\Program Files\GnuWin32\bin\sed.exe @REM ------------------------------------------------------- set CONV_OPT=-scale 1280 set SED_OPT="10,12d;s/"1080p"/"720p"/g;s/"1920"/"1280"/g;s/"1080"/"720"/g" @REM ------------------------------------------------------- cls :NEXT IF EXIST "%~f1\_CONVERTED.txt" goto :SKIP FOR %%a IN ("%~f1\*.png") DO ( start "CONVERT" /belownormal /b /w "%CONV_EXE%" "%%a" %CONV_OPT% "%%a.png" start "PNGNQ" /belownormal /b /w "%PNGNQ_EXE%" -f "%%a.png" del /q "%%a" del /q "%%a.png" copy "%%a-nq8.png" "%%a" del /q "%%a-nq8.png" ) FOR %%a IN ("%~f1\*.xml") DO ( "%SED_EXE%" %SED_OPT% "%%a" > "%~f1\720p_subtitles.bdn.xml" ) echo Files converted to 720p > "%~f1\_CONVERTED.txt" :SKIP shift IF NOT "%1"=="" goto :NEXT @REM ------------------------------------------------------- |
|
30th September 2008, 21:34 | #705 | Link | |
Registered User
Join Date: Sep 2008
Location: Sweden
Posts: 66
|
Quote:
Do a test and compare! Beware that you have to convert the resulting PNG's to 32-bit by: convert.exe line0001.png line0001.png before you actually can compare the results in a image viewer program (Photoshop, GIMP, ...). |
|
1st October 2008, 14:10 | #706 | Link | |
Registered User
Join Date: Mar 2008
Posts: 2,021
|
Quote:
Code:
C:\>convert.exe -scale 1280 line0002.png out.png 1280*720 created by ImageMagick: Then what would be the command line to scale the whole pngs inside the folder created by SUPRead? Or shall i have to use the script you gave? _ _ _ _ _ _ Last edited by rica; 1st October 2008 at 14:26. |
|
2nd October 2008, 15:39 | #708 | Link | |
Registered User
Join Date: Mar 2008
Posts: 2,021
|
Quote:
And i belive you will find the way of using it with a free tool? Edit: I inserted libpng13.dll and zlib1.dll in the pngtools folder? Last edited by rica; 2nd October 2008 at 16:27. |
|
2nd October 2008, 18:58 | #709 | Link |
Registered User
Join Date: Sep 2008
Location: Sweden
Posts: 66
|
Well, I don't know what happened for you Rica. Have you installed the executables needed and put the right path for them in the .BAT file?
And, yes, libpng13.dll and zlib1.dll should be in the same folder as pngnq.exe. The converted files are created in the same folder that contained the original PNG's (with the same name as the originals). It works fine for me (I'm running WinXP). |
2nd October 2008, 20:52 | #710 | Link | |
Registered User
Join Date: Mar 2008
Posts: 2,021
|
Quote:
More; ex 1080p pngs have dissapeared. Tried to get an SS, maybe it gives an idea: Vista 32 ultimate btw... _ _ _ Last edited by rica; 2nd October 2008 at 22:42. |
|
4th October 2008, 00:45 | #714 | Link |
Registered User
Join Date: Mar 2008
Posts: 2,021
|
I was wondering where this xml is?
Ulf reminded me to tick "Scenarist exp" box under options of SUPread; he said otherwise xml creation doesn't work. And finally i got xml. Thanks to Ulf again. Hope it is gonna work with a free software someday. |
2nd December 2008, 05:33 | #715 | Link |
Registered User
Join Date: Jun 2008
Posts: 91
|
@ Ulf or anyone else...
If someone doesn't have access to scenarist....am I SOL right now if I want to create a .sup file for Bluray muxing with TSRemux that is downscaled/resized to 1280x720? Also, how do I get forced subtitles to work on an AVCHD disc? |
3rd December 2008, 06:57 | #718 | Link |
Registered User
Join Date: Jun 2008
Posts: 91
|
If anyone is interested and doesn't know it yet, there is a solution to this problem.
If you don't have access to Scenarist (like me), TSMuxer now accepts .srt files as input and will convert these to a Bluray compliant PGS/.sup subtitle stream. So, I rip my Bluray using eac3to, including the .sup file I want. I then ocr the .sup file with SupRip. Save as .srt. Spell check/fix ocr mistakes. Then open up TSMuxer and add your video/audio/.srt subtitle stream. Set subtitle options in the subtitls tab. I set my font to Arial at a size of 40 for 720p video, with a bottom pixel offset of 36. Set output to Create Bluray disk. That's it. Subs look great on standalones/PS3. I apologize if this is old news to anyone, but I thought I'd share what I found just in case this helps anyone that was anxiously awaiting the export .sup as 720 option in SupRead. |
3rd December 2008, 15:23 | #719 | Link | |
Aging Video Hobbyist
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
|
Quote:
I might add that this is useful also for re-positioning subs on a 'scope display i.e. if original subs bleed-into the "black bar" at the bottom, you can use Offset to re-position them for a 2.35:1 screen presentation. |
|
19th December 2008, 22:15 | #720 | Link |
Registered User
Join Date: Apr 2003
Posts: 7
|
SUPread & SupRip crashed when using .sup extracted from multiple .m2ts
Hi,
I'm trying to extract the english subtitle from BD Fearless. If I use TSmuxer or ea3to and extract the subtitle .sup from the Director's Cut version which resides in 00153.m2ts file, then SUPread and/or SupRip would read the file fine. However, if I try extracting from the Theatrical version which resides in multiple *.m2ts files (ex: 00134.m2ts+00123.m2ts+***), either program would fail when reading the new .sup file: SUPread: Access violation at address 0054EC83 in module 'SUPread.exe'. Write of address FFFFFF68. SupRip: Object reference not set to an instance of an object. Void LoadBluraySup(System.IO.FileStream) at SupRip.SubtitleFile.LoadBluraySup(FileStream fs) at SupRip.SubtitleFile.LoadFromSup(String supfile) at SupRip.SubtitleFile..ctor(String fileName) at SupRip.MainForm.LoadSubtitleFile(String fileName) Have anyone try extracting subtitle from multiple *.m2ts files? Here is the sup file generated from 2 .m2ts files (via eac3to) http://www.100megs16.com/~thlphoto/test/00134_00123.sup thx |
Tags |
supread, suprip |
Thread Tools | Search this Thread |
Display Modes | |
|
|