ffmpeg mov to 3gp conversion problem

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.

olaguttAsked:
Who is Participating?
 
fredshovelConnect With a Mentor Commented:
Well,  I could guess: Early quicktime files used MPEG-4 Part 2 -- which was not MPEG's most successful codec -- that's why DIVx and Xvid grabbed it and bastardised it. But you probably have all the bastardised codecs.
Now MPEG has MPEG-4 Part 10 AVC, which is aka H.264 -- note this in your script.
Also note that the input (working) file is 25fps, which suggests PAL
Your 'not working' file is 29.97 fps, which suggests NTSC.
But the bottom line is that you probably don't have the H.264 codec.
0
 
fredshovelCommented:
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

0
 
MereteCommented:
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
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
olaguttAuthor 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.
0
 
olaguttAuthor 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?
0
 
fredshovelCommented:
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.
0
 
olaguttAuthor 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".
0
 
fredshovelCommented:
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.
0
 
MereteCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.