Log in

View Full Version : How to re-encode to smaller size + subtitles .. simply?


kie
5th June 2005, 19:27
Could I ask some advice?

I have avi files that I want to re-encode so that I can watch them on my handheld.

I want to crop the picture from 640 x 480 to 320x 240.
The final file size should be less than 400MB.
I also want to add in hard subs.

At the moment I can do this but in two stages (resize and then add subs).

Is there a way to do this simply in one step?

Thanks for any help.

ChronoCross
5th June 2005, 20:17
Could I ask some advice?

I have avi files that I want to re-encode so that I can watch them on my handheld.

I want to crop the picture from 640 x 480 to 320x 240.
The final file size should be less than 400MB.
I also want to add in hard subs.

At the moment I can do this but in two stages (resize and then add subs).

Is there a way to do this simply in one step?

Thanks for any help.

I'm assuming you already have the subs separate from the main file? If so then you can use a script like this to

AVISOURCE("clip1.avi")
textsub("subs.ssa") //Subs have to be built for 640x480 else switch these last two steps
LanczosResize(320,240)


Then just choose your xvid or divx or nero settings and encode the file.

kie
5th June 2005, 22:11
would that work with srt subs as well?

and wouldn't resizing it just give me a smaller file as opposed to a cropped file?

ChronoCross
6th June 2005, 00:01
would that work with srt subs as well?

and wouldn't resizing it just give me a smaller file as opposed to a cropped file?

I don't think srt subs will work in burning hard subs to avi. by cropped do you meant crop(). because that would cut out over half the picture. Resizing is the only way to preserve the entire picture. and make it small enough for a device.

kie
6th June 2005, 00:11
Currently I use the vobsub plugin for virtualdub - I think it's called TextSub - which will add srt subs to my avi file.

Then I crop and resize the avi so that it will show best on my handheld.
(the screen is 320 x 320 and so I resize wide screen movies to 320 x 240)

I was hoping that there would be a way to do this in one step :(

ChronoCross
6th June 2005, 00:19
Currently I use the vobsub plugin for virtualdub - I think it's called TextSub - which will add srt subs to my avi file.

Then I crop and resize the avi so that it will show best on my handheld.
(the screen is 320 x 320 and so I resize wide screen movies to 320 x 240)

I was hoping that there would be a way to do this in one step :(

use avisynth. textsub will work.

AVISOURCE("source.avi")
textsub()
crop().resize()

foxyshadis
6th June 2005, 11:27
If you're already using virtualdub and don't want to switch, what you can do is to add the vobsub filter normally, then click crop and crop it how you like. Add a resize filter (2:1 if you're going from 640x480 to 320x240, otherwise resize or one of the high-quality resize filters out there - for the resolution you're aiming for I doubt high-q is very important), encode, and you're done. Filter chaining makes life a lot easier.