Hello I am using the following command:
#!/bin/bash
# usage ffmpeg2iphone.sh (SOURCE) (X) (Y)
ffmpeg -i "$1" -s $2x$3 -threads 0 -vcodec libx264 -level 31 -profile main -acodec libfaac -ac 2 -ar 48000 -ab 160k output.mp4
And most of the time the file is playable on my phone, but sometimes iTunes won't transfer it. I think I have located the issue, on the files I can play the media info shows:
"Format settings, GOP : M=4, N=16" (Where the numbers are on occasion different)
And on the files it can't play, the whole line is missing. Any help from you guys on what to put in, to ensure that the GOP information is there (and/or standardized) for iTunes?
+ Reply to Thread
Results 1 to 2 of 2
-
-
Turned out to be a bad input file I think. I sent it through this and then encoded it with the above post and it works.
#!/bin/bash
mencoder "$1" -ovc xvid -xvidencopts bitrate=1024ass=1:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o /dev/null
mencoder "$1" -ovc xvid -xvidencopts bitrate=1024ass=2:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o output.avi
Similar Threads
-
Conversion to DVD to IPhone
By tessieyute in forum Video ConversionReplies: 3Last Post: 14th Apr 2012, 14:08 -
Recommended FFmpeg command for converting videos to iPhone/Android
By wapatv in forum Video ConversionReplies: 0Last Post: 31st Mar 2011, 14:22 -
iphone conversion
By sg1969 in forum Video ConversionReplies: 4Last Post: 15th Dec 2008, 08:34 -
ffmpeg for iphone/ itouch
By invivo in forum ffmpegX general discussionReplies: 3Last Post: 29th Sep 2008, 02:20