LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: 145

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: 140

Rep: Reputation: 26
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),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
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 15
Posts: 700

Rep: Reputation: 43
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: 145

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: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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: 145

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: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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: 145

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: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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: 145

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: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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: 145

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: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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: 145

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



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
convert .mkv to .avi Gortex Linux - General 10 12-05-2017 03:19 AM
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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:35 AM.

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
Open Source Consulting | Domain Registration