Събрана информация
Пост на rumen в clubs.dir.bg:
Здравейте!
понеже мнозина се оплакват от проблеми при възпроизвеждането на субтитри на домашния си DivX плеър реших да дам малко
полезна информация по въпроса, защото масовия потребител понякога научава малко късно за някои полезни приложения.
От началото на годината разработчиците на DivX кодека които са обвързани с производителите на DivX плеъри пускат бета
версии на програмката Fuse, която вкарва графични субтитри в avi контейнера подобно на DVD филмите, като
цялата операция трае няколко минути. По принцип Fuse генерира от текстови субтитри srt(Subrip) субтитри във формат xsub
и ги миксира с авито. В последната версия на Fuse са отстранени някои бъгове и е добавена и поддръжка на XviD, като изключение
прави само XviD с QPel, в тази версия обаче на се получава генерирането на xsub субтитри. За сметка на това пък се появиха
две програмки създадени от ентусиасти, които генерират субтитри в този формат и всичко си идва на мястото. Плеъра автоматично
зарежда субтитрите и ги възпроизвежда при това тъй като Fuse може да миксира до 8 файла със субтитри в едно avi с бутона
subtitles от дистационното могат да се сменят субтитрите.
И така по въпроса как да си вкарате графични субтитри: Теглите си Fuse от http://download.divx.com/labs/DivXMediaConsumerSDK.zip
srttobmp от ftp://200.136.190.108/srttobmp-1.0.4.13.rar bmptoxsub от ftp://zhnujm.dyndns.org/bmptoxsub.zip
Разопаковате srttobmp-1.0.4.13.rar някъде и в същата папка пускате bmptoxsub.exe и Fuse.exe заедно с dll файловете от пакета.
Стартирате Srttobmp.exe, зареждате субтитрите(!!!ИМЕТО НА ФАЙЛА СЪС СУБТИТРИТЕ ДА БЪДЕ КРАТКО И БЕЗ ИНТЕРВАЛИ!!!)
, задавате си резолюцията на филма, избирате си фонт който ви харесва и размер като се съобразявате с най-дългия ред, позиционирате
си субтитрите по вертикала където ви хареса и натискате бутона Render BMPs. След рендирането в папката със субтитрите се появяват
много bmp картинки със субтитрите и файл с разширение sub( това е файла с таймкода ), след това натискате бутона Make XSub и
от излезналия прозорец посочвате генерирания преди това sub файл, слагате отметка на Delete BMP after creating xsub и натискате
Start в следствие на което получавате xsub файл. Следващата стъпка е миксирането, натискате бутона Mux DMF и в появилия се
прозорец посочвате филма и субтитрите xsub, след което натискате Mux и след около две три минути имате файл с разширение
divx, записвате си го да CD или DVD и си гледате филма на домашния DivX плеър.
Успех!
Още информация ТУК
--------------------------------------------------------------------------------------------------------------
Статия на The ONE в е-списание PC School брой 5 (Официален сайт на списанието)
Брой пети с полезната статия можете да свалите от тук: http://dust.data.bg/Books/PC%20School/Broi%205/PC%20School%20Broi%205.pdf
--------------------------------------------------------------------------------------------------------------
Препоръчва се също програмата TMPGEnc, чиято най-нова версия е специализирана във вграждането на субтитри.
--------------------------------------------------------------------------------------------------------------
Подробна англоезична статия със скрийншоти на адрес: http://projects.gdion.biz/guides/dmfwithxsub.html
// Update
10/10/05: Many people reading this guide couldn't understand all steps being analyzed here. So, I created a flash video of this guide.
View the Flash Video Guide
10/11/05: New version of SRT2BMP (1.0.4.20) released.
// What you need
1) SRT2BMP, BMP2XSub and Fuse.
2) Subtitle Workshop.
3) Your movie in AVI format (encoded in XViD or DiVX5/6/Helium) and your subtitles ready in SRT format, in the same folder. Also both must start with the same name, ex. "The.Interpreter.2005.AC3.XviD.CD1.avi" and "The.Interpreter.2005.AC3.XviD.CD1.EN.srt".
// Steps
1) First, install Subtitle Workshop. Then extract "srttobmp-1.0.4.18+bmp2xsub+fuse.rar" to a simple folder name in "C:\", for example "C:\SRT2XSUB". Then, open Windows Explorer and create a second folder in "C:\" called "Subs". We need this folder in order to create inside, BMPs from the subtitles and generate the final XSub.
2) Before we start working with srt2bmp, we need to check our SRT subtitle file for serious errors such as overlapping. Open Subtitle Workshop and press CTRL+O. Browse to your subtitle file and select it. Press CTRL+I. SW will check the file for errors and will display them.
When you see an overlapping error, double-click on it and SW will go to the particular line where the error is. Fix the problem manually (either fix the "Hide" time of the previous subtitle (#6 in the example) or fix the "Show" time of the overlapping subtitle (#7 in the example). Once finished, press CTRL+I again, go to the next overlapping subtitle and do the same steps until there are no overlapping errors.
3) Go to "C:\SRT2XSUB" and run "SRT2bmp.exe". Now do the following steps:
Click on "From Movie..." button. Browse to your avi file and select it.
Change the "Preview Aspect Ratio" to 16:9.
Put a check mark on "Use millisec in time code" and on "PAL TV" ONLY IF you movie is at 25fps (PAL). If else, leave it unchecked.
Click on "Open SRT..." button. Browse to your SRT subtitle file and select it.
Srt2bmp will automatically go to the longer line so you can decide easier what size your font will be so it will not go off the security bounds. A good font is Arial and a good size is 21 but if you see that your subtitles are off bounds, lower the size number. So, go to "Subtitle/Size" and put 21. If it's off bounds, lower it until it's in bounds, like the picture above.
Click on the button that it's after "Save BMP's in:" and browse to "C:\Subs" and click OK.
Click on button "Render BMPs". Srt2bmp will start making your SRT subtitle file into bitmaps (BMPs). It will take a while. You will know it has finished when the command prompt window has closed.
Click on button "Make XSub..". Click on the button that its after "SVCD Designer File" and browse to the created .SUB file at "C:\Subs", in our case "The.Interpreter.2005.AC3.XviD.CD1.EN.sub". Then put a check mark on "Delete BMP after creating XSUB" and finally click on button "Start". A command prompt window will open for a couple of seconds and then close. Don't worry, the XSub has been created. Close the window.
Click on button "Mux DMF..." which means DivX Media File (.DIVX). Now, double click on "Video" area, browse to your avi movie and select it. Then double click on "Sub #1" area, browse to the created XSub subtitle file at "C:\Subs" and select it. For audio, you don't have to select anything, Fuse will find the available audio tracks automatically, from inside the avi movie. Finally, click on button "Mux.." and Srt2bmp will start muxing your avi + the created Xsub subtitle file into a DivX Media File (.DIVX). This will take a while so be patient. When it's done, you can close the srt2bmp completely.
Our job is done. Write the created .DIVX file (in our case it's "The.Interpreter.2005.AC3.XviD.CD1.divx") to a CD-R/RW and test it to your DivX player. Now you don't have to care about your player's firmware. Your subtitles will be as they are on DVD's and for the foreign users, you don't have to care if your player supports your language's CP.
// Notes
If your avi movie is encoded in XViD with packed bitstream and your player doesn't support it, you have to unpack the avi before starting the procedure. Use MPEG4 Modifier for this job.
Every time you exit srt2bmp, it saves the settings you have changed for the particular movie. If you want to start with the defaults, just delete the file "SRT2BMP.ini" from "C:\SRT2XSUB".
-------------------------------------------------------------------------------------------
Постът е пуснат по желание на г-н Асен Божилов