View Full Version : Hardcoding Subtitles for iPod Video
natethecat
3rd April 2007, 22:30
I've been trying to convert an xvid-encoded avi to H.264 iPod-compatible video. I've run across two problems that still remain unsolved after hours of work:
#1: I need to hardcode subtitles onto the video
#2: Since the source is not a DVD, I can't create a d2v file to use in MeGUI
The only solutions I've thought involve encoding the video multiple times to get the subs on. Are there any quicker (and preferably free) solutions? Sorry if I sound newbish, I've never really used MeGUI much before.
ilovejedd
3rd April 2007, 22:48
What format are your subtitles and your video?
For SRT, SSA, ASS and SUB/IDX, install Avisynth (I use version 2.56) and the VSFilter plug-in.
Create a simple text file and change the extension to .AVS.
LoadPlugin("X:\path\to\vsfilter.dll")
AviSource("X:\path\to\file.avi")
TextSub("X:\path\to\subtitle.srt") # for SRT, SSA and ASS
or
VobSub("X:\path\to\subtitle.sub") # for SUB/IDX
natethecat
4th April 2007, 00:02
Subtitles are in .srt, Video encoded w/ xvid, audio already finished w/MeGUI.
I've already made the AVS file. When I load it, MeGUI says it won't accept anything but an m2v file.
EDIT: The file I made was based on a model AVS file tailored for loading MPEG2 files. I'll test the example you gave me.
foxyshadis
4th April 2007, 01:11
That's weird. MeGUI only natively accepts .avs, anything else gets opened into the avisynth script creator. If you open an m2v in it then you'll get sent to indexing, other formats will be opened with avisoure or directshowsource.
The d2v creator, DGIndex, doesn't support anything but m2v (and vob, mpg) though. Maybe you're using that by mistake? Or you're trying to open the video in Mpeg2source, in which case yeah, that won't work.
natethecat
4th April 2007, 02:50
Sorry, meant to d2v, not m2v. MeGUI accepts the AVS but complains when the script refers to a source other than d2v.
Adub
4th April 2007, 05:06
Well, yeah, that is what it is supposed to do. It a program based around the Avisynth import interface, so learn to use it and everything will work out fine.
natethecat
4th April 2007, 06:56
No luck. Resulting video plays fine in Windows Media 10 w/o sound. In Quicktime, "Error -2002: a bad public movie atom was found in the movie". This error occurred both with with a muxed version and a video-only version.
EDIT: Fixed the sound problem in Windows Media; same error in Quicktime.
Log:
avis [info]: 640x288 @ 23.98 fps (117573 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE
mp4 [info]: initial delay 0 (scale 10000000)
x264 [info]: slice I:960 Avg QP:22.07 size: 11504
x264 [info]: slice P:116613 Avg QP:22.14 size: 3058
x264 [info]: mb I I16..4: 46.5% 0.0% 53.5%
x264 [info]: mb P I16..4: 11.2% 0.0% 0.0% P16..4: 25.9% 12.0% 4.0% 0.0% 0.0% skip:46.9%
x264 [info]: final ratefactor: 19.87
x264 [info]: kb/s:599.8
encoded 117573 frames, 10.68 fps, 599.82 kb/s
desired video bitrate of this job: 700 kbit/s - obtained video bitrate (approximate): 600 kbit/s
TwoToad
5th April 2007, 09:46
Post your script. We can probably help you better that way.
Ronin-7
5th April 2007, 13:15
While not a solution to your MeGUI problem I might suggest trying out XviD4PSP (http://forum.doom9.org/showthread.php?t=113098) it supports the iPod, importing most common types of video, encoding with x264 and & hard coding subtitles into MP4 files.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.