View Full Version : AVI to 3gp
emambrilla 26-04-2004, 03:10 PM I need a tool to convert an AVI file to a ".3gp" file, to send it to a MMS mobile device.
I need a batch tool, a library, ... , something without a GUI.
Thanks
что это?, на каком языке?
sehari24jam 22-05-2004, 09:08 AM I managed to convert MPG to 3gp.... using ffmpeg, under Linux.
Video play nicely, audio play poorly in Helix.. This caused by audio format (AMR) that is support only 8000 hz, mono 32kbps.
This is some simple how to:
- download ffmpeg from CVS.. please check http://ffmpeg.sf.net for how to do this.
- then you need to download AMR codec from www.3gpp.org (you can download the newest ones if you find new release, instead listed below):
- http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26204-520.zip
- http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26073-530.zip
- http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26104-540.zip
- you need to place those 3gpp files into libavcodec directory in ffmpeg source (please read "configure" file, to find out what are respective directories name). in my ffmpeg version, it should be:
- 26204-520.zip into libavcodec/amrwb_float
- 26073-530.zip into libavcodec/amr
- 26104-540.zip into libavcodec/amr_float
- you need to edit makefile inside amr source-code. here i copy-paste what it said:
"You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile, i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"
- you need to modify libavcodec/Makefile and libavformat/Makefile, if you want to compile both amr_wb and amr_nb (from my experience, amr_wb can't be recognized by Helix) these are the diff against 2004.05.18:
$ cvs diff -D 2004-05-18 libavcodec/Makefile libavformat/Makefile
Index: libavcodec/Makefile
================================================== =================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/Makefile,v
retrieving revision 1.142
diff -r1.142 Makefile
46c46,51
< OBJS+= amr.o amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
---
> ifneq ($(AMR_NB),yes)
> ifneq ($(AMR_NB_FIXED),yes)
> OBJS+= amr.o
> endif
> endif
> OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
52d56
< endif
53a58
> endif
Index: libavformat/Makefile
================================================== =================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
retrieving revision 1.71
diff -r1.71 Makefile
28c28
< endif
---
> else
31c31
< endif
---
> else
34a35,36
> endif
> endif
========================END HERE=====================================
- then:
./configure --enable-amr_nb --enable-amr_wb
you may choose between amr_nb or amr_nb-fixed, and you may optionally ignore amr_wb.
- finish, then you can start to convert:
ffmpeg -i Ev.mpg -acodec amr_nb -ar 8000 -ac 1 -ab 32 -vcodec h263 -s qcif -r 10 Ev.3gp
- sorry if messy.. :)
sehari24jam 22-05-2004, 09:26 AM hmmm.. seem forget 1 step ;)
after doing "./configure", do:
$ make
$ make install
or, if you have capability to generate *.rpm, *.deb, feel free to do it :).. and then install your home-made packages.
----------------
ps: i'm thinking to write more detail on this.. but no time.. so hopefully this can help you all...
chizel linski 06-06-2004, 03:46 PM I need a tool to convert an AVI file to a ".3gp" file, to send it to a MMS mobile device.
I need a batch tool, a library, ... , something without a GUI.
Thanks
PEOPLE, check out www.forum.nokia.com and search for nokia multimedia converter 2.0
that wil convert al your avi mpg files to 3gp.......
hi sehari,
i compiled ffmpeg with amr_nb and amr_wb successfully.
there was no need to compile amr_fixed.
also, i didn't make any changes in the Makefiles, and it
compiled without problems.
amr_nb works fine, but when i want to use amr_wb, i get the
following error:
Could not write header for output file #0 (incorrect codec parameters ?)
i tried different values for ab, ar, ac, but none of them worked... any idea?
my commandline looks like this:
D:\>ffmpeg.exe -i e:/tricks_cut.avi -y -b 20 -s sqcif -r 10 -acodec amr_wb -ab 23.85 -ac 1 -ar 16000 test.3gp
ffmpeg version 0.4.9-pre1, build 4753, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-memalign-hack --enable-mingw32 --enable-mp3lame --enable-amr_nb --enable-amr_wb --enable-faac
--extra-cflags=-I/local/include --extra-ldflags=-L/local/lib
built on Apr 30 2005 18:21:19, gcc: 3.2.3 (mingw special 20030504-1)
Input #0, avi, from 'e:/tricks_cut.avi':
Duration: 00:01:21.2, start: 0.000000, bitrate: 1131 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x480, 25.00 fps
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 160 kb/s
Output #0, 3gp, to 'test.3gp':
Stream #0.0: Video: h263, yuv420p, 128x96, 10.00 fps, q=2-31, 20 kb/s
Stream #0.1: Audio: amr_wb, 16000 Hz, mono, 23 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[h263 @ 00791800]removing common factors from framerate
Could not write header for output file #0 (incorrect codec parameters ?)
regards,
ukio
I managed to convert MPG to 3gp.... using ffmpeg, under Linux.
Video play nicely, audio play poorly in Helix.. This caused by audio format (AMR) that is support only 8000 hz, mono 32kbps.
This is some simple how to:
- download ffmpeg from CVS.. please check http://ffmpeg.sf.net for how to do this.
- then you need to download AMR codec from www.3gpp.org (you can download the newest ones if you find new release, instead listed below):
- http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26204-520.zip
- http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26073-530.zip
- http://www.3gpp.org/ftp/Specs/2004-03/Rel-5/26_series/26104-540.zip
- you need to place those 3gpp files into libavcodec directory in ffmpeg source (please read "configure" file, to find out what are respective directories name). in my ffmpeg version, it should be:
- 26204-520.zip into libavcodec/amrwb_float
- 26073-530.zip into libavcodec/amr
- 26104-540.zip into libavcodec/amr_float
- you need to edit makefile inside amr source-code. here i copy-paste what it said:
"You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile, i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"
- you need to modify libavcodec/Makefile and libavformat/Makefile, if you want to compile both amr_wb and amr_nb (from my experience, amr_wb can't be recognized by Helix) these are the diff against 2004.05.18:
$ cvs diff -D 2004-05-18 libavcodec/Makefile libavformat/Makefile
Index: libavcodec/Makefile
================================================== =================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/Makefile,v
retrieving revision 1.142
diff -r1.142 Makefile
46c46,51
< OBJS+= amr.o amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
---
> ifneq ($(AMR_NB),yes)
> ifneq ($(AMR_NB_FIXED),yes)
> OBJS+= amr.o
> endif
> endif
> OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
52d56
< endif
53a58
> endif
Index: libavformat/Makefile
================================================== =================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
retrieving revision 1.71
diff -r1.71 Makefile
28c28
< endif
---
> else
31c31
< endif
---
> else
34a35,36
> endif
> endif
========================END HERE=====================================
- then:
./configure --enable-amr_nb --enable-amr_wb
you may choose between amr_nb or amr_nb-fixed, and you may optionally ignore amr_wb.
- finish, then you can start to convert:
ffmpeg -i Ev.mpg -acodec amr_nb -ar 8000 -ac 1 -ab 32 -vcodec h263 -s qcif -r 10 Ev.3gp
- sorry if messy.. :)
mmxmmx 20-05-2005, 09:50 PM Follow this guide, you will convert AVI to 3GP, MPEG to 3GP, WMV to 3GP easily.
Guide Link: http://www.topvideopro.com/video-ripper/3gp-converter.htm
The 3GP converter also can convert 3GP to AVI/MPEG/WMV.
madav 02-07-2005, 07:35 PM check out video converter
www.videoconverter2005.com
d2162 16-04-2006, 11:40 AM Hi i hav nokia 7610 phone with me i want to convert my video songs to 3gp format, so plz send me the link so tht i can convwert thm and thanks for giving links.
Unregistered7 14-05-2006, 01:04 PM try super converter . i use it for my website (p.s. free 3gps at http://www.omnic.co.uk )
vernes 23-05-2006, 12:36 PM ================================================== =================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/Makefile,v
retrieving revision 1.142
diff -r1.142 Makefile
46c46,51
< OBJS+= amr.o amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
---
> ifneq ($(AMR_NB),yes)
> ifneq ($(AMR_NB_FIXED),yes)
> OBJS+= amr.o
> endif
> endif
> OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
52d56
< endif
53a58
> endif
Index: libavformat/Makefile
================================================== =================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
retrieving revision 1.71
diff -r1.71 Makefile
28c28
< endif
---
> else
31c31
< endif
---
> else
34a35,36
> endif
> endif
========================END HERE=====================================Can someone translate this in plain steps? I don't speak cvs {-/
beginner 28-07-2006, 06:40 AM Hi,
I followed your post to convert AVI to 3GP .But I don't know what chnges I have to make in libavcodec/amr_float/make fiel.
I added a the line you told ..but i don't know what are pedantic errors and how to remove them!
So,please suggest me regarding as I wanna convert mpeg to 3gp.
And i am using suse linux 10.0
Thanks.
evanstar 04-08-2006, 01:17 AM so difficult!!! im a beginner:tongue: . i usually use some software that is easy to use.
@d2162 you may try xilisoft video converter 3.1 or xilisoft 3GP video converter. i dont know which 1 is better for u. xilisoft video converter 3.1 can convert video files to 3GP format.(you may check it, ive not use this function:con? :icon4: )
http://www.xilisoft.com/video-converter.html
cupdear 09-08-2006, 02:56 AM I tried winavi 3GP (http://www.winavi.com/3gp%20video%20converter.htm) video converter just now.And i think you can try it.It can do so many conversions.It can support avi (http://www.winavi.com/avi-to-3gp.htm),dvd (http://www.winavi.com/dvd-to-3gp.htm),mpeg (http://www.winavi.com/mpeg-to-3gp.htm),mov (http://www.winavi.com/mov-to-3gp.htm),rm (http://www.winavi.com/rm-to-3gp.htm),wmv (http://www.winavi.com/wmv-to-3gp.htm),etc files to 3gp.And it works fast and with good quality.I think i will buy it. :)
evanstar 14-08-2006, 01:46 PM @d2162 xilisoft is better. :)
@cupdear i have buy xilisoft video converter 3.1 :) my suggestion: cmp many converters b4 buy 1. these converters r all powerful. its better to know the difference.
jessi 18-10-2007, 10:46 AM woo, IF I'm not too late,, would recommend 3gpMobile
|
|