LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2011, 10:40 PM   #1
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
How to convert .avi to mp4 for Ipad and iphone?


Hello guys,

I am trying to convert .avi movie into .mp4, but for some reason it is not working.

Here is the command I am using:

ffmpeg -i input_file -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 output.mp4

And this is what I get below:

Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
Input #0, avi, from 'arw-cop.out.dvdrip.xvid.avi':
Metadata:
ISFT : VirtualDubMod 1.5.10.2 (build 2542/release)
Duration: 01:47:28.99, start: 0.000000, bitrate: 910 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
[NULL @ 0x8a43450]Unable to parse option value "trell": undefined constant or missing (
Invalid value '+4mv+trell' for option 'flags'
 
Old 04-01-2011, 12:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Space between "+4mv" and "+trell".
 
1 members found this post helpful.
Old 04-01-2011, 09:40 AM   #3
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by unSpawn View Post
Space between "+4mv" and "+trell".
Thanks for your response unSpawn. As you said; I put space between +4mv and +trell, but this time I am getting different error.

Here is the error below:


Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
Input #0, avi, from 'arw-cop.out.dvdrip.xvid.avi':
Metadata:
ISFT : VirtualDubMod 1.5.10.2 (build 2542/release)
Duration: 01:47:28.99, start: 0.000000, bitrate: 910 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
Unable to find a suitable output format for '+trell'
 
Old 04-01-2011, 09:49 AM   #4
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Okay, here is what I did. I deleted +trell and -aic from the command, and it worked. Thanks for your help.
 
Old 10-18-2012, 10:55 AM   #5
undershareme
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
I use Handbreak myself, which I think works pretty well. I was a big fan of iSquint with my iPod, but it seems to have been discontinued. I haven't been 100% successful with hand break, but it seems to do the job pretty well.
 
Old 12-14-2012, 09:56 AM   #6
undershareme
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by rahilmaknojia View Post
Hello guys,

I am trying to convert .avi movie into .mp4, but for some reason it is not working.

Here is the command I am using:

ffmpeg -i input_file -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 output.mp4

And this is what I get below:

Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
Input #0, avi, from 'arw-cop.out.dvdrip.xvid.avi':
Metadata:
ISFT : VirtualDubMod 1.5.10.2 (build 2542/release)
Duration: 01:47:28.99, start: 0.000000, bitrate: 910 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
[NULL @ 0x8a43450]Unable to parse option value "trell": undefined constant or missing (
Invalid value '+4mv+trell' for option 'flags'
ffmpeg -i input_file -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 output.mp4

this is what I get below: Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733)-> 23.98 (2997/125) Input #0, avi, from 'arw-cop.out.dvdrip.xvid.avi':
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What you use to convert .avi/.mpg to .mp4 in linux? ishuaia Linux - Software 1 10-24-2007 07:07 PM
does mencoder allows me to convert avi to mp4? sirpelidor Linux - Software 1 12-16-2006 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration