Page 1 of 1

Transcoding avi for iphone-weird problems

Posted: 23 Feb 2009 22:07
by RockLobsterNet
So, I'm trying to transcode some XviDs for the iPhone and I'm running into a weird error. I've tried using parameters recommended on the wiki and some on here and here's where I am:
-I can get anything that is already an mp4 to transcode into a iphone compatible mp4 just fine.
-I can get an avi into an mp4 that itunes can play, but the iphone can't.
-If I transcode the mp4 made from an avi (that wont work on iphone) again with the same parameters, it will now work with the iphone (but obviously looks terrible).

My script is below--it's called from another script that iterates over each avi in the directory. Eventually I'm going to translate it into VB and add some more functionality.

Code: Select all

SET infile=%1 SET outfile="%CD%\iphone\%1" "C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "%CD%\%infile%" --sout=#transcode{width=320,height=240,vcodec=mp4v,vb=1000,canvas-aspect=1.5:1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=%outfile%.mp4}} vlc://quit
Also, I have tried going back to 0.86 and still no luck. Anybody have any ideas?
Thanks!
-Brian

Re: Transcoding avi for iphone-weird problems

Posted: 24 Feb 2009 00:42
by RockLobsterNet
Update:
I managed fix that original problem, but I have no idea what I did. However, now I'm having another problem. With every other file, I get the error:

Code: Select all

ffmpeg error: cannot open encoder stream_out_transcode error: cannot find encoder ((null))
The transcoded file contains audio only when this happens. I've searched around and found other people with the same problem, but no solution.