LinuxQuestions.org
Register a domain and help support LQ
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 11-14-2012, 12:09 PM   #1
fuser312
LQ Newbie
 
Registered: Nov 2012
Posts: 12

Rep: Reputation: Disabled
ffmpeg and converting videos


Okay I am trying to convert a mp4 file into 3gp.

Quote:
ffmpeg -i input.mp4 -s 176x144 output.3gp
and the error received was :
Code:
[libopencore_amrnb @ 0x85531c0] Only 8000Hz sample rate supported
Then, I tried to change the sample rate and my command became

Quote:
ffmpeg -i input.mp4 -s 176x144 -sample_rate 8000Hz output.3gp
But still I am getting the same error, what am I doing wrong?
 
Old 11-14-2012, 02:10 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
Not precisely a Slackware question is it?

ffmpeg -i input.mp4 -s 176x144 -ab 12.2k -ar 8000 -ac 1 output.3gp
 
1 members found this post helpful.
Old 11-14-2012, 02:26 PM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 647

Rep: Reputation: 91
BTW the 3gp container will take aac sound which is far superior to amr.
 
Old 11-14-2012, 02:27 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,768

Rep: Reputation: 193Reputation: 193
https://en.wikipedia.org/wiki/3GP_and_3G2

If the video is mpeg4 and the audio is aac, try
Code:
ffmpeg -i file.mp4 -acodec copy -vcodec copy output.3gp
Or to encode to x264
Code:
ffmpeg -i file.mp4 -acodec copy -vcodec libx264 -b:v 2000k output.3gp
-acodec for audio, -vf crop=, possibilities are almost endless.

http://linux.die.net/man/1/ffmpeg
http://ffmpeg.org/ffmpeg.html
 
Old 11-14-2012, 02:49 PM   #5
fuser312
LQ Newbie
 
Registered: Nov 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
[/COLOR]
Quote:
Originally Posted by mRgOBLIN View Post
Not precisely a Slackware question is it?

ffmpeg -i input.mp4 -s 176x144 -ab 12.2k -ar 8000 -ac 1 output.3gp
I was looking to join slackware forum but as officially their forum has shifted here, I often forget that I am not on a "specific" Slackware forum but the Linux Forum.

And thanks that worked.

Last edited by fuser312; 11-14-2012 at 02:51 PM.
 
Old 11-14-2012, 03:54 PM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,048

Rep: Reputation: 170Reputation: 170
Quote:
Originally Posted by mRgOBLIN View Post
Not precisely a Slackware question is it?
Ask a slacker, get the answer on a platter....

chores,
 
1 members found this post helpful.
  


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
ffmpeg error: converting to Webm hydraMax Linux - Software 3 10-05-2011 05:47 PM
ffmpeg converting video jake20x Linux - General 8 04-10-2011 02:58 AM
[SOLVED] FFMPEG video converting, VERY pixelated Helstedxd Linux - Newbie 4 01-20-2011 01:49 PM
[SOLVED] Converting VOB to XVID (using ffmpeg)? Steve W Linux - Software 5 12-10-2010 09:54 AM
[SOLVED] converting to 3gp using ffmpeg sumeet inani Linux - Software 4 10-01-2010 09:09 AM


All times are GMT -5. The time now is 09:10 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