Encoding Video for Ipod Touch

Fayd

Diamond Member
Jun 28, 2001
7,970
2
76
www.manwhoring.com
i'm trying to encode part of my video library for my ipod touch.

I tried using ripbot264, but for some reason it refused to work on my machine. i'm guessing incompatibility with CCCP.

handbrake doesn't work for my needs because it wont accept .ass subtitles for hardsubbing, and it wont accept a .avs for a source.

so i'm left with megui, and eventually (once i get it right), just doing it based on command line x264.exe.

the problem is: i can't import any video encoded with megui (ipod/iphone profile!) into itunes.

i saw someone else had a similar symptom, but their solution doesn't work for me. their problem was they were in the habit of enabling 'clever anamorphic encoding' in the avs script creator... i didn't do that.

i'm encoding to mp4, then using mp4box to mux audio in, creating an m4v.

here's my avs script. (generated by batch file.)

Code:
DirectShowSource("source.mkv", fps=23.976, audio=false, convertfps=true) 
LanczosResize(480,272) # Lanczos (Sharp) 
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\VSFilter.dll") 
TextSub("source.ass", 1)

the options i have in megui yield this x264 command. (once i get options set up right, i just use the x264 command in a batch file.)

Code:
"C:\Program Files\x264\x264.exe" --profile baseline --level 3 --crf 24.0 --thread-input --ref 1 --vbv-bufsize 10000 --vbv-maxrate 10000 --direct none --subme 5 --partitions p8x8,b8x8,i4x4 --output "output" "input"

i had also tried it using a constant bitrate, (the original iphone profile) and that yielded a file 4x in size. but same problem. would not import into itunes.

i get the same problem from when it's a stripped mp4 (no audio) and after i muxed audio in using mp4box. regardless of the file type. (mp4 versus m4v)



i tried using the presets in handbrake to do the same thing as a test. (didnt have subtitles, but it's a test...) the episode i encoded imported properly into itunes.

anyone have any ideas for why this won't work?
 

pm

Elite Member Mobile Devices
Jan 25, 2000
7,419
22
81
I'm not at all familiar with Megui so I can't help with your issue.

OTOH, Handbrake is really good and does a great job with video quality and can hardburn subtitles.

If it was me, I'd use a .ass to .srt converter and then use Handbrake. Subresynch (part of Vobsub) can convert .ass to .srt.
 

Fayd

Diamond Member
Jun 28, 2001
7,970
2
76
www.manwhoring.com
I'm not at all familiar with Megui so I can't help with your issue.

OTOH, Handbrake is really good and does a great job with video quality and can hardburn subtitles.

If it was me, I'd use a .ass to .srt converter and then use Handbrake. Subresynch (part of Vobsub) can convert .ass to .srt.

and then lose all sub formatting.

.ass is worthwhile.


anyways, i cut the -vbv options down to 1500 (i'm guessing it was spiking above that, and that's the "max allowed" i guess. so...)

it imported properly. now to try playing on ipod.

edit: it works.

Code:
for %%F in (*.avs) do (
	"C:\Program Files\x264\x264.exe" --profile baseline --level 3 --crf 24.0 --thread-input --ref 1 --vbv-bufsize 1500 --vbv-maxrate 1500 --direct none --subme 5 --partitions p8x8,b8x8,i4x4 --output "%%~nF.264" "%%F"
)
 
Last edited: