Avisynth: add subtitles with the new adaptive script?
Hi guys!
I have a few movies that I need to encode with subtitles since they're french. What programs do I need to extract the subtitles and what filter is needed for adding them to the new script (for AviSynth 2.5*)? An exact walkthrough would be apreciated. Sorry if I have have missed any post describing this issue, but I have looked :wink: . |
Hi audioslave,
You need Vobsub to extract the subtitles from your DVD. Then, you must add a line to your script AFTER the adaptive filters, so that the subs don't get blurred. Check the Vobsub docs regarding the use of the program. -kwag |
Thanks kwag,
I figured it out after experimenting a few minutes. I put the VobSub line absolutely last in the script and it works like a charm! I only resized the subs to 75%, both horizontal and vertical, (image scaling) and changed the alignment (origin) to X=85 and Y=73 to get it correct :wink: . I find that these things are easiest to change directly in the *.idx file... |
Where did you get VobSub for 2.5x audioslave? And could you please post the script you used? Thank you!
|
I have trouble with getting the subtitles in sync with the sound. They (the subs) seem to appear before someone actually say something :? . I have tried to change the "Time offset: 0" to "Time offset: 500" but nothing happens. The subtitles still appear on the exact same frame as they did before I changed the offset. What am I doing wrong :( ? Is there another way of delaying subtitles? I'm using VobSub to create the subs and, of course, the "VobSub()" command in the script. Please help me with this!
-audioslave |
Hi Jellygoose,
Here's the script I used: Quote:
I don't remember where I got VobSub for AviSynth 2.5x (terribly sorry :oops: !), but maybe there's a way for me to post it somewhere in this forum? I still have the original *.zip file... Perhaps I could mail it to you? -audioslave |
Quote:
|
@Boulder
Yes, that's probably true, but if I put the subs on the actual movie area they will cover too much of the movie. That's only my opinion though... I encoded "Red Dragon" with and without subs (with my previous posted "Letterbox()" parameters) and the CQ only changed ~0,2 units! Higher CQ value on the version without subs. That's quite acceptable don't you think? Anyway, now I'm using the script from June 16. The one with "GripCrop()" instead of "Letterbox()"... |
In general: Subs in movies should be avoided - but for VCD/SVCD there is no other way (that I know of).
When encoding subs: Try to put them in in a black area, as it will take up considerably less space here. The reason for this is motion estimation, which is suffering, when static text is placed on a moving background. Static text on a static background take up some space, but much less than compared to text on movie. When encoding in general: Try to avoid black borders. Even a few pixels will compress worse than a border to border picture. Again this a because of motion estimation. |
Quote:
Quote:
Code:
MPEG2Source("e:\temp\dvd-rip\python.d2v",idct=5) The results: 0 pixels: 19 979 667 bytes 8 pixels: 19 809 823 bytes 16 pixels: 18 646 548 bytes 24 pixels: 18 418 530 bytes Here we can see that even 8-pixel borders increase the compression. When the borders fill one complete macroblock (16 pixels), the compression is quite big, as would be expected. My TV crops about 24 pixels off the sides and about 20 at the top and bottom at resolutions 480x576 and higher so I use 3 overscan blocks. At smaller resolutions, 2 overscan blocks do the trick. |
@Boulder: Right! I was talking about clips with different sizes - but didn't make that clear in my post.
My point is just, that borders aren't free, if the picture size remains constant. Best compression is always achieved by compressing the smallest possible picture, without borders. If you crop off the borders from the letterboxed picture you are compressing, I'm sure you'll get smaller files. So the borders are far from "free" - however the easier compression is quite likely to outweigh the wrong motion estimation, when parts of the picture gets cropped by the borders. |
I should have thought about that too, looks like we're both in the right :wink:
Your suggestion is what MPEG-4 people have to keep in mind, right? Give DivX/XviD small borders and it will kill the quality whereas in VCD/SVCD/XVCD/KVCD encoding the borders are your friends when used correctly. |
Quote:
What about Vobsub's fade in/out feature for subs? Does it make it compress worse? |
Fading will in most cases make it harder to compress.
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.