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=1024 ass=1:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o /dev/null ass=1:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o /dev/null
 mencoder "$1" -ovc xvid -xvidencopts bitrate=1024 ass=2:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o output.avi ass=2:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o output.avi
Similar Threads
- 
  Conversion to DVD to IPhoneBy tessieyute in forum Video ConversionReplies: 3Last Post: 14th Apr 2012, 15:08
- 
  Recommended FFmpeg command for converting videos to iPhone/AndroidBy wapatv in forum Video ConversionReplies: 0Last Post: 31st Mar 2011, 15:22
- 
  iphone conversionBy sg1969 in forum Video ConversionReplies: 4Last Post: 15th Dec 2008, 09:34
- 
  ffmpeg for iphone/ itouchBy invivo in forum ffmpegX general discussionReplies: 3Last Post: 29th Sep 2008, 03:20


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote