We help IT Professionals succeed at work.

ffmpeg mov to 3gp conversion problem

1,254 Views
Last Modified: 2013-11-13
Hi,

I am setting up a batch for conversion of .mov files into .3gp files for use on WAP.

After looking around for a while, it seems that the best tool for this is ffmpeg.

I have tried a whole lot of different parameters to get where I want with the files, but it seems that I never get to convert the audio stream.

I always end up with a: STATUS_ACCESS_VIOLATION, unless I use -acodec copy

This is the parameters I am using:
ffmpeg -i myfile.mov -acodec amr_nb  -ab 12.2 -ac 1 -ar 8000 -vcodec mpeg4 -s 176x104 -padtop 20 -padbottom 20 -r 25 -b 128 output.3gp

The ffmpeg I am using is compiled like this:

C:\Documents and Settings\Ola Skriubakken\Desktop\wap>ffmpeg
ffmpeg version 0.5.0-pre1,build 4743 Copyright (c) 2000-2005 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb -
-enable-amr_wb --disable-ffserver --disable-ffplay --enable-small --enable-memal
ign-hack --enable-gpl --enable-xvid --enable-dts --enable-a52 --enable-vhook --e
nable-pthread
  built on Nov 13 2005 21:13:33, gcc: 3.3.1 (cygming special)



PLEASE, ANY IDEAS WHY THIS ALWAYS HAPPENS? I have tried any possible codec, and they all give me this problem.

Comment
Watch Question

I would definately try Super for this: Here's the link -- posted by Merete (EE):
http://www.afterdawn.com/software/video_software/video_encoders/super.cfm

CERTIFIED EXPERT

Commented:
sweet thank you for the refs fredshovel,
I can offer some ffmpeg tuturials hope they help you, I confess i just researched them so cant claim them as a brainer from me.
Hope your not too disappointed but batch conversion using ffmeg is out of my range so will borrow from others.
FFMpeg based FLV to 3gp batch converter scripts
http://blog.mypapit.net/2007/04/ffmpeg-based-batch-flv-to-3gp-converter-scripts.html
2-pass conversion using ffmpeg and Send To under Windows XP
http://www.videohelp.com/forum/archive/2-pass-conversion-using-ffmpeg-and-send-to-under-windows-xp-t335968.html

FFmpeg codec howto
http://wiki.multimedia.cx/index.php?title=Ffmpeg_codec_howto

Author

Commented:
Thanks for the links, but Super can't run in command-line batch jobs.

Merete did however post a link (the second) that refers to another site about "Enable mp3 and amr support in ffmpeg". This link was broken, but it sounds like this could be an answer to my question.

If anyone know how to do this, or could find this information, I would give him/her the solution.

Author

Commented:
Ok, now I finally got it to work with cygwin1.dll installed in the same folder as ffmpeg.exe.

Using the following command it works fine on some files (.mov):
ffmpeg -i test.mov -acodec aac  -ab 12.2 -ac 1 -ar 8000 -vcodec mpeg4 -s 176x104 -padtop 20 -padbottom 20 -r 25 -b 128 test.3gp

But some files give me this error message spamming all over:
FAAD: Failed to decode frame: Gain control not yet implemented

Input files:
Working file:
  Stream #0.0: Video: h264, yuv420p, 480x270, 2500.00 fps
  Stream #0.1: Audio: aac, 44100 Hz, stereo

Not working file:
  Stream #0.0: Video: h264, yuv420p, 480x200, 2997.00 fps
  Stream #0.1: Audio: aac, 44100 Hz, stereo

Any ideas what to do with this?
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Should add so as not to confuse, that quicktime didn't use xvid or divx codecs -- just the early MPEG-4 and now H.264.

Author

Commented:
Oh my, thanks for your advice.....but now I get another error message spamming all over:

[aac@0x7aee38]faac: frame decoding failed: Unexpected channel configuration

Should I install faac another faac codec? Suggestions? Or is it inappropriate to convert to mono using aac? I get the same if I try "amr_nb".
I'm not a command line guy, but there's no problem converting aac to mono. I don't suppose there's much use for a stereo signal on a WAP phone anyway.
CERTIFIED EXPERT

Commented:
Do you still require assistance,
Your question is still open?
Is your account still active
You can now close your own question use the delete link

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.