tags:

views:

63

answers:

2

like for eg. if i enter the output extension '.avi' , i should get the default audio codec used , default video codec used , etc... Is there a command for this ?

A: 

Just take a stab here; you would need to declare a codec context and retrieve it from the video stream.

Extrakun
A: 

I presume you mean the libavcodec API that the ffmpeg project make available?

void avcodec_get_context_defaults(AVCodecContext *s); is probably the function you want. If you mean the ffmpeg binary, that would be a better question for superuser.

Justin Smith