You are not logged in.

#1 2010-08-29 00:43:12

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,048
Website

Help with ffmpeg codecs

Okay, I need to encode avi to mp4 for my phone.

For that I successfully used avidemux with:

- video codec: MPEG-4 ASP (avcodec)
- audio codec: AAC (faac)

I need to setup the same codecs in ffmpeg, because those were the only ones my phone found acceptable.

However, for the above video codec that I used in avidemux, I am unsure which one is it in ffmpeg (from what I understand avcodec is in fact ffmpeg's internal codec?). Clicking 'Configure' in avidemux gives 'avcodec H.263 Configuration' window.

So what codec in ffmpeg codec listing would that be (the one from avidemux)?

Thanks for your help.

Offline

#2 2010-08-29 01:05:23

defears
Member
Registered: 2010-07-26
Posts: 218

Re: Help with ffmpeg codecs

Download winff from AUR.  It has presets for all types of devices. And also uses ffmpeg.

Offline

#3 2010-08-29 08:33:58

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Help with ffmpeg codecs

Your post is very confusing, I don't understand what exactly it is you're asking.
MPEG-4 ASP is just that, MPEG-4 ASP. Or with full name, MPEG-4 Part2 Advanced Simple Profile. Avcodec, or rather libavcodec is indeed ffmpeg's library that contains a bunch of codecs, including ASP. Then there's xvid (package 'xvidcore' in Arch), which is also an ASP codec that you can use, and is actually slightly better than libavcodec.

Offline

#4 2010-08-29 08:37:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Help with ffmpeg codecs

@Gusar i think he's asking what options to pass to ffmpeg to use those codecs


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-08-29 10:11:41

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,048
Website

Re: Help with ffmpeg codecs

wonder wrote:

@Gusar i think he's asking what options to pass to ffmpeg to use those codecs

Yeah, exacly...

Offline

#6 2010-08-29 10:58:05

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Help with ffmpeg codecs

karabaja4 wrote:
wonder wrote:

@Gusar i think he's asking what options to pass to ffmpeg to use those codecs

Yeah, exacly...

Ah, that. Well, I don't have experience much with lavc. I'd advise going with xvid, where the defaults are well tuned already, so you just select the desired bitrate.
I do have a file where I wrote down some lavc options, but they're for mencoder, you'd have to go through the mencoder manpage to translate them into the appropriate avidemux options:

vpass=[1|2]:vbitrate=1200:mbd=2:trell:v4mv:cmp=2:subcmp=6:preme=2:dia=-1:predia=3:last_pred=2:vmax_b_frames=1

Or just use xvid.

Offline

Board footer

Powered by FluxBB