Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to convert .mov videos to mp4(should be playable in iPhone) using ffmpeg.I am using Linux CLI. I have tried the following command:

-i source.MOV -s qvga -b 384k -vcodec libx264 -r 23.976 -acodec libfaac -ac 2 -ar 44100 -ab 64k -vpre baseline -crf 22 -deinterlace -o output.mp4 

I get the output

ffmpeg: unrecognized option '-o' 
share|improve this question

migrated from Nov 21 '11 at 13:29

This question came from our site for professional and enthusiast programmers.

Please clarify your question, what have you tried that didn't work, are you writing a program to do this or just trying to it manually? – jrturton Nov 21 '11 at 12:40
@jrtuton ,I just tried to execute this command ffmpeg -i source.MOV -s qvga -b 384k -vcodec libx264 -r 23.976 -acodec libfaac -ac 2 -ar 44100 -ab 64k -vpre baseline -crf 22 -deinterlace -o output.mp4 I got the error ffmpeg: unrecognized option '-o' – Rinto George Nov 21 '11 at 12:42
I don't think this is a question for SO, it is a support question for ffmpeg. – jrturton Nov 21 '11 at 12:47
@jrturton: That, or SuperUser. – DarkDust Nov 21 '11 at 12:50
up vote 4 down vote accepted

For this kind of tasks, I switched from FFmpeg to HandBrakeCLI:

HandBrakeCLI -i -o destination.mp4 --preset='iPhone & iPod Touch' 
share|improve this answer
I think HandBrakeCLI is windows tool ,I need it in linux – Rinto George Nov 23 '11 at 6:04
HandBrakeCLI runs on Mac OS X, Windows and Linux, check its download page. – mouviciel Nov 23 '11 at 8:19
Ok..Thanks for your information – Rinto George Nov 25 '11 at 4:50
I've used this command in CLI ,its working ,but converted videos playing only seconds when the original video have long way to go – Rinto George Dec 5 '11 at 5:16

There is no -o to output a file. Just remove it and pass the desired output filename as the last argument.

share|improve this answer
Can you give me some working commands ,cause we don't have an iPhone,if I could convert it ,but can't play .I really wanna convert .mov ,.wmv to mp4 – Rinto George Nov 21 '11 at 12:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .