Doom9's Forum > General > Subtitles > srt2bmp/xsub
PDA
View Full Version : srt2bmp/xsub
ricardo.santos31st March 2005, 22:51Hi everyone.
i read the guide yesterday posted here on how to create xsub subtitles and mux them on to a avi file.
i tried it and it worked fine first time,but (there's always a but), is there any way of positioning the subtitles further "down"in the picture. im watching the divx files on a 4:3 tv and i get black bars on top and bottom.
i wanted (if possible) to put the subtitles where the the bottom bar ends and the picture starts
-----------------------------------------------------------
(here)
-----------------------------------------------------------
thanks
great guide and a great tool
vsr6th April 2005, 12:39Hi ricardo.santos,
I don't understand your question, srttobmp permit to you set the subtitle position by change the botton margin value in miscelaneous panel.
note: if you use a software player it will not work. But works fine in most of hardware player.
vsr
ricardo.santos6th April 2005, 17:52thanks vsr.
everytime i use the xsub tool i position the subtitles at the very bottom of the picture, but when viewing it with divxplayer 2.6 they appear a bit up on the screen.
i tought i was doing something wrong, but you just said its the software player problem and they should work fine on a dvd/divx player.
sorry about my english,i'm from portugal!
I磍l try to improve my written english
thanks
vsr6th April 2005, 18:27Originally posted by ricardo.santos
sorry about my english,i'm from portugal!
I磍l try to improve my written english
So your english is like mine, I'm from Brasil!
but when viewing it with divxplayer 2.6 they appear a bit up on the screen.
I suspect that, the software player resizes the bitmap to movie size. "thefluffy" says something about it here (http://forum.doom9.org/showthread.php?s=&threadid=89718&perpage=20&pagenumber=1).
vsr
ricardo.santos6th April 2005, 19:23So your english is like mine, I'm from Brasil!
Small world isnt it?
Vsr can you tell me if there's any player outhere that will properly reproduce the position of the subtitles?
im asking you this because im muxing some files and i just want to know if they are being put correctly in the avi before burnig the avi into a dvd and watch it on a compatible dvd/divx player.
VIVA O PORTUGU蔛
vsr6th April 2005, 19:49Small world isnt it?
As we say here in Brazil "pequeno demais" (= too small).
Vsr can you tell me if there's any player outhere that will properly reproduce the position of the subtitles?
Saddly no.
im asking you this because im muxing some files and i just want to know if they are being put correctly in the avi before burnig the avi into a dvd and watch it on a compatible dvd/divx player.
I do the same. I'm write the bmp2srt to do this easier. I made a lot of tests before the first release of this tool and the position of sub when I watch the movie in hardware player is very "close" to the position in preview mode (at least in my player a dvp642k/78).
vsr
ricardo.santos6th April 2005, 20:25thanks VSR for all your advices.
keep up with the good work you're doing in this area.
take care
mgh18th April 2005, 10:16The first part of srttobmp works fine for me.
But the make xsub button does not work for me.
I could make xsub with bmps and sub file geberated by srttobmp using
bmptoxsub.
That's fine for English.
For an experiment, i created a srt file for a one minute video with 12 subtitles-made the bmp and sub file.
I have local language fonts.
First converted the srt to ssa-then in substation alpha-formatted with local language font-converted back to srt-retained formatting info. Unfortunately after using fuse the formatting information along with text in english alphabet( not in local alphabet)showed up when playing back the video.
Used following avisynth script to load into virtualdub.
BlankClip( length=1198,width=720,height=576,fps=25,color =$202020) .converttoyv12()
Textsub("F:\trial\video.srt")
mask=dedgemask().inflate()
mask=binarize(mask,upper=false).greyscale().levels(0,255,1,32,255)
return mask
Took screen shots of the twelve subtitles-converted to 4 bit-the process changed the background color slightly-modified sub file in text editor as below
[PALETTE]
0 (24, 24, 24)
1 (0, 0, 0)
2 (255, 255, 255)
3 (255, 255, 0)
[LIST]
video00001.bmp 00:00:00.465 00:00:02:465 720 576 000 000
replaced bmps generated by srttobmp with ny own-ran bmptoxsub with modified sub file and changed bitmaps-used the xsub with fuse-beautiful subtitles in local alphabet
Rather elaborate process.
Must be a simpler way.:)
vsr18th April 2005, 13:52Originally posted by mgh
...
Must be a simpler way.:)
You can enter a Custom color in "Background Color". Click in BackGround ComboBox, select "Custom..." change the RGB values (24, 24, 24 - in your case). Click in OutLine change the value to Black (RGB 0,0,0) then you must get bmps with following palette:
0 (24, 24, 24)
1 (0, 0, 0)
2 (255, 255, 255)
3 (255, 255, 0)
Cheers, vsr.
mgh18th April 2005, 15:45Originally posted by vsr
You can enter a Custom color in "Background Color". Click in BackGround ComboBox, select "Custom..." change the RGB values (24, 24, 24 - in your case). Click in OutLine change the value to Black (RGB 0,0,0) then you must get bmps with following palette:
0 (24, 24, 24)
1 (0, 0, 0)
2 (255, 255, 255)
3 (255, 255, 0)
Cheers, vsr.
Reduces the problem somewhat.
I still need to change image size for all bitmaps to 720x576 and their location to 000x000 in the sub file as i have shown for the first bitmap.
Fuse has an avi option for subtitle-easiest for me would be to use that. But how does one make a suitable avi? We could also overlay some graphics that way.
vsr18th April 2005, 18:04Originally posted by mgh
Reduces the problem somewhat.
I still need to change image size for all bitmaps to 720x576 and their location to 000x000 in the sub file as i have shown for the first bitmap.
There was a bug in version 1.0.4.13 to generate full bmps download build 1.0.4.14 (ftp://200.136.190.108/srttobmp-1.0.4.14.rar) uncheck "Clip BMPs", check "PAL TV" and you have 720x576 bitmaps.
vsr
mgh19th April 2005, 03:51Thanks, i will try it out later today.:)
Edit: Checked it out. Works for my purpose-but has a bug-the video size cannot be adjusted to 720x576 (though the bmps and sub file are created for that size)-max height possible is 480-so the subtitles are too high for a PAL video.
Anyway, DivX seems to wish to stamdardize on 640 width for SD and 1280 width for HD-going by their Last Man Syanding Sample-so practically should be OK.
Thanx a lot
muito obrigado:)
vBulletin® v3.8.11, Copyright ©2000-2023, vBulletin Solutions Inc.
|