LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   ffmpeg and converting videos (http://www.linuxquestions.org/questions/slackware-14/ffmpeg-and-converting-videos-4175437145/)

fuser312 11-14-2012 12:09 PM

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?

mRgOBLIN 11-14-2012 02:10 PM

Not precisely a Slackware question is it?

ffmpeg -i input.mp4 -s 176x144 -ab 12.2k -ar 8000 -ac 1 output.3gp

andrew.46 11-14-2012 02:26 PM

BTW the 3gp container will take aac sound which is far superior to amr.

teckk 11-14-2012 02:27 PM

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

fuser312 11-14-2012 02:49 PM

[/COLOR]
Quote:

Originally Posted by mRgOBLIN (Post 4829464)
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.

mrclisdue 11-14-2012 03:54 PM

Quote:

Originally Posted by mRgOBLIN (Post 4829464)
Not precisely a Slackware question is it?

Ask a slacker, get the answer on a platter....

chores,


All times are GMT -5. The time now is 07:11 AM.