PDA

View Full Version : iPhone Subtitles?


rack04
15th May 2010, 16:08
I'm interested in converting Avatar Blu-ray to h264/aac in mp4 for playback on my iPhone. The only question I have is how to treat the subs. I used BDSup2Sub to extract only the forced subtitles, resized, and exported to sub/idx. I would prefer to "burn-in" the subtitles while I encode the video to iPhone format and resolution. Can anyone provide guidance on how to load the sub/idx in avisynth? Thanks.

Atak_Snajpera
15th May 2010, 16:10
Why don't you just use Ripbot264?

rack04
17th May 2010, 15:57
Why don't you just use Ripbot264?

I don't use Ripbot264 because when I set the output as .mp4 I am only allowed to select .srt, .ssa, or .ass subtitles. I have a 1080p .sup file extracted from a Blu-ray source using eac3to and I need to convert to 360p and burn into video. I can't do this with Ripbot264.

txporter
17th May 2010, 16:47
idx/sub subtitles are still handled with the vsfilter plugin.

Rather than Textsub("blah.srt"), use Vobsub("blah.idx")

rack04
17th May 2010, 17:04
idx/sub subtitles are still handled with the vsfilter plugin.

Rather than Textsub("blah.srt"), use Vobsub("blah.idx")

I still need to know how to resize and convert the 1080p .sup subtitles to 360p .idx/.sup subtitles. Typically I use BDSup2Sub but from what I can tell the smallest that it will scale subtitles is to NTSC (720x480).

txporter
17th May 2010, 17:33
I still need to know how to resize and convert the 1080p .sup subtitles to 360p .idx/.sup subtitles. Typically I use BDSup2Sub but from what I can tell the smallest that it will scale subtitles is to NTSC (720x480).

Ah, I see. Misunderstood what you were asking. What about scaling to 720x480 and bring them into your avs script before resizing to 360p?

rack04
17th May 2010, 17:48
Ah, I see. Misunderstood what you were asking. What about scaling to 720x480 and bring them into your avs script before resizing to 360p?

It appears that vsfilter automatically resizes the subtitles. I used BDSup2Sub to convert the 1080p .sup to idx/sub without any resizing. I encoding using the following script:

LoadPlugin("C:\Program Files\DGAVCDec\DGAVCDecode.dll")
Loadplugin("C:\Program Files\VSFilter\VSFilter.dll")
AVCSource("C:\Personal\Videos\Avatar.dga")
Spline64Resize(640,360)
VobSub("C:\Personal\Videos\Avatar.sub")

And this is the result:

http://i11.photobucket.com/albums/a199/rack04/Avatar-muxedmp4_snapshot_0016_20100.jpg

sneaker_ger
17th May 2010, 18:42
I guess you could also use the .sup directly using a combination of the AviSynth functions SupTitle, Overlay and one of the many Resize filters.

txporter
17th May 2010, 22:31
It appears that vsfilter automatically resizes the subtitles. I used BDSup2Sub to convert the 1080p .sup to idx/sub without any resizing. I encoding using the following script:

LoadPlugin("C:\Program Files\DGAVCDec\DGAVCDecode.dll")
Loadplugin("C:\Program Files\VSFilter\VSFilter.dll")
AVCSource("C:\Personal\Videos\Avatar.dga")
Spline64Resize(640,360)
VobSub("C:\Personal\Videos\Avatar.sub")

And this is the result:

http://i11.photobucket.com/albums/a199/rack04/Avatar-muxedmp4_snapshot_0016_20100.jpg

I think there are settings for vsfilter/vobsub that are set in DirectVobsub. I tried messing with these some time ago when trying to resize text, change font, etc with srt files. At any rate, I was able to adjust srt file properties using a .srt.style file (but not with directvobsub). In that file, it adjusts final font size using both display size and font size. Perhaps vsfilter uses the input dimensions from avisynth and whatever font size is called for in the idx/sub file? That would allow for proper subtitling regardless of output resolution.

Atak_Snajpera
18th May 2010, 00:08
I can't do this with Ripbot264.
And who told you that?
http://img408.imageshack.us/img408/441/new1u.png

rack04
18th May 2010, 01:56
And who told you that?

Well since we were talking about Ripbot264 then you can logically guess that was who "told" me.

http://i11.photobucket.com/albums/a199/rack04/ripbot264.jpg

Atak_Snajpera
18th May 2010, 15:01
I would prefer to "burn-in" the subtitles while I encode the video to iPhone format and resolution.
Why do you even use "selectable subtitles" option ???? Did you know that mp4 supports only srt? ( .ass and .ssa are automatically converted to .srt.)