LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-08-2008, 10:40 AM   #1
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Rep: Reputation: 22
How to convert avi to 3gp?


How to convert avi video files to 3gp format?

Thank you.
 
Old 12-08-2008, 01:30 PM   #2
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 127

Rep: Reputation: 16
this should do it:
Code:
ffmpeg -i inputfile.avi -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y outputfile.3gp
found it here:
http://twinturbo.org/linux/howto-con...-using-ffmpeg/

EDIT:
you should have all the codecs installed, I have not tried this, so don't know if slackware have them by default

EDIT2:
seems that slackware doesn't have ffmpeg (or is it just me)
you can get it from slackbuilds.org

Last edited by zux; 12-08-2008 at 01:37 PM.
 
Old 12-08-2008, 02:06 PM   #3
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 767

Rep: Reputation: 92
http://www.miksoft.net/products/mmc-lin.tar.gz

For a quick and simple to use gui
 
Old 12-08-2008, 02:44 PM   #4
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 659

Rep: Reputation: 38
Even easier (well, I think so), is to use on-line application Zamzar.
No installation, no hassle, good quality.
 
Old 12-09-2008, 06:23 AM   #5
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
I don't have the aac encoder.

How to add encoders to ffmpeg,other than recompile it?
 
Old 12-09-2008, 10:21 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
Quote:
ffmpeg -i inputfile.avi -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y outputfile.3gp
This does not create a real 3GP file. For that you would need to encode the audio in AMR.
This would be the correct command to create a 3GP file:
Code:
ffmpeg -i inputfile.avi -s qcif -vcodec h263 -acodec libamr_nb -ac 1 -ar 8000 -r 25 -ab 12200 -y outputfile.3gp
Also, to create a video with AAC sound, passing "-acodec aac" to ffmpeg will produce an error. When AAC encoding support is added through libfaac, then the correct argument would be "-acodec libfaac".

Get my ffmpeg Slackware package which includes AAC/MP3/AMR encoding support here:
http://slackware.org.uk
I just uploaded this package plus SlackBuild and verified that the above instructions work. No further packages needed!

Eric
 
Old 12-09-2008, 11:02 AM   #7
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
How to actually add more encoder to ffmpeg,other than recompile it?

If let say I need certain type of encoder,can I just install it as slackware package?
 
Old 12-09-2008, 11:23 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
Quote:
Originally Posted by yuchankit View Post
How to actually add more encoder to ffmpeg,other than recompile it?

If let say I need certain type of encoder,can I just install it as slackware package?
No. You need to recompile ffmpeg.
Tell me, what encoder you think you miss from the package I just linked to..

Eric
 
Old 12-09-2008, 07:37 PM   #9
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
I actually have ffmpeg package already.

So,do I need to uninstall your ffmpeg,and install your ffmpeg instead?
 
Old 12-10-2008, 08:23 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
I do not know what ffmpeg package you have installed, but yes, I would advise to remove that one and install mine instead ;-)

Eric
 
Old 12-10-2008, 10:02 AM   #11
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
Can you recreate the package for slackware 12.0?I think your package is for slackware 12.1
 
Old 12-10-2008, 05:44 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
You can build it yourself for Slackware 12.0 if you download all of the "build" directory and then run the ffmpeg.SlackBuild script.
Code:
lftp -c "open http://www.slackware.com/~alien/slackbuilds/ffmpeg/; mirror build"
Then do

Code:
cd build
sh ffmpeg.SlackBuild
You will find that the package is created in /tmp .

You will also need to install YASM or the compilation will fail.

Eric
 
Old 12-11-2008, 06:44 AM   #13
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
Thank you.The commands and packages you provided is working.


But I have one more question to ask;If I want to add more encoder to ffmpeg,how I'm going to recompile it?What prefix must be added?
 
Old 12-11-2008, 06:53 AM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
Quote:
Originally Posted by yuchankit View Post
But I have one more question to ask;If I want to add more encoder to ffmpeg,how I'm going to recompile it?What prefix must be added?
And my earlier question was, can you find a codec you think should still be added to that ffmpeg package?

Eric
 
Old 12-11-2008, 06:59 AM   #15
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
Do you mean that the package you provide includes all the encoders?

Let's say I need an encoder that converts .flv files to 3gp files,how I'm going to compile ffmpeg to include the mentioned encoder?Thank you.
 
  


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
How do I convert OGM to AVI? DJ747 Linux - Software 4 12-23-2011 09:30 AM
Gui that convert AVI to AVI DivX, with telling final avi target final size ? frenchn00b Linux - General 5 03-02-2008 05:37 AM
convert .mkv to .avi Gortex Linux - General 6 08-13-2007 04:57 PM
Convert avi to svcd skon Linux - General 2 12-28-2003 11:18 PM
convert avi to mpg jbogins Linux - Software 1 12-28-2003 09:30 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration