PDA

View Full Version : Hard Code SRT into AVI, so i can see them on Xbox 360.


kwanbis
18th May 2008, 22:43
I want to see some AVIs/DivX, with subtitles on my Xbox 360.

Unfortunately, it does not subports external SRTs, or any othere subtitle format that i know off.

So i was trying to use AVIAddXSubs to "hardcode" the subtitles into the AVI, but no luck.

Any other ideas?

J_Darnley
18th May 2008, 23:40
If you want to make hard subs then you will need to re-encode the video. Use what software you want, but one with AviSynth input, then you can use download VSFilter and use TextSub(). Other ways could be using VirtualDub(Mod), Avidemux, combination of mplayer/mencoder.

kwanbis
18th May 2008, 23:51
Is this a good guide? http://www.techenclave.com/guides-and-tutorials/hardcode-subtitles-avi-divx-pmp-s-104314.html

Adub
19th May 2008, 00:21
Yeah, that guide should work fine. In short, just embed the subtitle using vsfilter via virtualdub or avisynth and encode, again with either virtualdub or your favorite frontend.

kwanbis
19th May 2008, 01:44
As i would only be using this process to see the movie, and then delete, what would be the codec that would give me a quick output, with the best possible quality? H264 maybe?

J_Darnley
19th May 2008, 02:50
Only if you want to use a high bit rate, will H.264 be quick and good quality. I guess if you are only storing them for a while, this is fine. You could use crf mode to only need one pass.

Adub
19th May 2008, 02:54
You will always sacrifice speed for quality, and vice versa. Now, the codec that will offer the highest quality at a specific bitrate is h.264. However it might not be fast enough for you, but that is up to you. Personally I love h.264, and I don't care about speed (within reason), so I use it on everything I encode. The choice is yours. x264 or xvid.

Lastly, x264 really isn't that slow. There are some settings that are not really necessary, especially if you are just going to delete the file after watching it once. For preset profiles, check out MeGUI. If you need more help, let me know.

kwanbis
21st May 2008, 19:36
However it might not be fast enough for you, but that is up to you. Personally I love h.264, and I don't care about speed (within reason).
Yeah, i also love h264. Problem is the "within a reason" part.

For example, if i want to re-encode a 40 mins xvid, how much time should it take? I perceive it to be bearable between 40 an 80 mins tops. No more.

The choice is yours. x264 or xvid.
So lets asume i'm sold into h264. What should i do then? Any guides/tips/pointers on where to start? Thanks.

Adub
26th May 2008, 04:47
Essentially, create an avs script loading your source, and then insert Textsub with the subtitle file right afterwards. Load into your favorite encoder, mine is MeGUI, and encode to your specifications.

We have essentially told you how to do it above, but if you need more help, let me know.

kwanbis
26th May 2008, 05:27
Thanks, but it is so cryptical that it is useless for me.

Its funny cause it looks like people in the forum have been into this so much, that something like "create an avs script loading your source, and then insert Textsub with the subtitle file right afterwards" or "Use what software you want, but one with AviSynth input, then you can use download VSFilter and use TextSub()", which i'm sure is really valid solution, sounds natural.

But to people that just want to enjoy watching a video, or at least for me, it is really very confusing.

Thanks anyway.

Adub
26th May 2008, 05:40
Okay, here is an example script:

AviSource("example.avi") #This loads your source so that you can work on it with avisynth.
TextSub("example_subs.ass") #This loads an external sub file and overlays it on top of the video source.


Now, if you were to play this script with Media Player Classic for example, you should see your video playing, along with the subtitles displayed on top. If this is the case, then throw that script into your favorite encoder and GO!!.

Note: Make sure that you have VSFilter.dll in you plugins folder, which is usually found here : "C:/Program Files/Avisynth 2.5/plugins/". You need VSFilter to use Textsub in your scripts.

kwanbis
26th May 2008, 05:49
OK, i would try yo do that, and come back if needed.

setarip_old
26th May 2008, 07:03
@kwanbis

Hi!So i was trying to use AVIAddXSubs to "hardcode" the subtitles into the AVI, but no luck.One simple way to have permanent subtitles included as part of your .AVI:

1) Use one of the many subtitle conversion programs to conver the .SRT file to .SSA format

2) Open the .AVI in VirtualDub - and set to "Full Processing Mode"

3) From the "Video" dropdown menu, select "Filters", choose the (separate download) "Subtitler" filter and select your .SSA file - and click on "Okay"

4) From the "Video" dropdown menu, select "Compression" and choose the same video codec and configuration that you use to originally create the .AVI

5) From the "File" dropdown menu, select "Save as .AVI" and save with a new filename

kwanbis
26th May 2008, 19:59
@kwanbis

1) Use one of the many subtitle conversion programs to conver the .SRT file to .SSA format

Looks like TextSub plugin should read the SRT directly, right?

kwanbis
26th May 2008, 21:12
AviRecomp can do all this without any trouble ;)

Thanks for all the help.

setarip_old
26th May 2008, 22:08
@kwanbisLooks like TextSub plugin should read the SRT directly, right?I have no idea, nor does that have anything to do with the alternative procedure I detailed for you...

kwanbis
27th May 2008, 00:52
No, but it would mean i don't need to convert SRT to SSA.

setarip_old
27th May 2008, 01:13
but it would mean i don't need to convert SRT to SSA.This is a procedure that literally takes less than 10 seconds...