Thursday, December 18, 2008

How to convert DVD to 3gp proper way - 2nd part: Subtitles

Make everything from previous post, from point 1-9.

Just to explain shortly, what we'll do in the following steps. This is what we have:
And this is what we want:

The movie is again 320px * 176px, this time we'll put one line of the subtitles in the bottom black border. With this settings my Nokia movie player displays the same size video as in the previous post. And in the no-fullscreen mode the the video is not shrinked. Plus the final height 192px is multiple of 16.

This can probably be done in different ways, this is how I do it. If you think you have better/quicker solution, leave a comment.

10. Add "Null transform" filter, click "Cropping" and remove the top and the bottom black border:

11. Add "resize" filter with the following settings:

12. Add another "resize" filter with the following settings:

13. Add "Null transform" filter, click "Cropping" and remove 16px tall belt from the top :

14. Now we'll add subtitles with "VobSub 2.23" filter:

15. Select "Open", browse to the folder, where you have DVD files, select "Ifo and Vobs, for creating idx/sub" filetype, and open correct IFO file (e.g. if you selected VTS_02_1.VOB in the 3rd step, now select VTS_02_0.IFO - names can be quite confusing):

16. Select the folder, where you want to save extracted subtitles. Choose "c:\movies"

16. On the upper right window select subtitles, that you don't want, and click the second button in the middle from the top, to remove them from list. Click OK:

17. VobSub will now extract all subtitles in the chosen language, and will save them in the index file (.idx) and .sub file, which contains bitmaps of the subtitles (don't mix that with theMicro DVD Player subtitle file format):

18. Now choose the right size and the position of the subtitles. This can be quite time consuming, trial&error will probably do the trick. Set the parameters and click OK till the main VirtualDub window, use the time slider and check the position of the subtitles in the output movie:


Now go through the steps 14-17 from the previous post: set the start end the end of the movie, start frameserver, and encode the video using ffmpeg with 2 passes.



This is how the final product looks on my Nokia:

Fullscreen playback:

Edit 2008-12-23: By choosing different colors of the subtitles you can influence on the sharpness of the subtitles. In the VobSub filter settings check "Custom colors" and set the colors as you like. Maybe the self explanatory picture below will help you:

With the settings above the movie looks like this:

No comments: