Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
12-08-2008, 10:40 AM
#1
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Rep:
How to convert avi to 3gp?
How to convert avi video files to 3gp format?
Thank you.
12-08-2008, 01:30 PM
#2
Member
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 112
Rep:
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 .
12-08-2008, 02:06 PM
#3
Member
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware (current), Mepis on the wifes lappy
Posts: 580
Rep:
12-08-2008, 02:44 PM
#4
Member
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 13.37
Posts: 617
Rep:
Even easier (well, I think so), is to use on-line application
Zamzar .
No installation, no hassle, good quality.
12-09-2008, 06:23 AM
#5
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Original Poster
Rep:
I don't have the aac encoder.
How to add encoders to ffmpeg,other than recompile it?
12-09-2008, 10:21 AM
#6
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,031
Rep:
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
12-09-2008, 11:02 AM
#7
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Original Poster
Rep:
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?
12-09-2008, 11:23 AM
#8
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,031
Rep:
Quote:
Originally Posted by
yuchankit
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
12-09-2008, 07:37 PM
#9
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Original Poster
Rep:
I actually have ffmpeg package already.
So,do I need to uninstall your ffmpeg,and install your ffmpeg instead?
12-10-2008, 08:23 AM
#10
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,031
Rep:
I do not know what ffmpeg package you have installed, but yes, I would advise to remove that one and install mine instead ;-)
Eric
12-10-2008, 10:02 AM
#11
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Original Poster
Rep:
Can you recreate the package for slackware 12.0?I think your package is for slackware 12.1
12-10-2008, 05:44 PM
#12
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,031
Rep:
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
12-11-2008, 06:44 AM
#13
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Original Poster
Rep:
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?
12-11-2008, 06:53 AM
#14
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,031
Rep:
Quote:
Originally Posted by
yuchankit
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
12-11-2008, 06:59 AM
#15
Member
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 120
Original Poster
Rep:
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.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 10:58 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News