[Libav-user] sample format in wmav2 codec

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Aug 25 11:31:44 CEST 2015


qw <applemax82 at ...> writes:

> I use wmav2 encoder in ffmpeg whose codec id is 
> AV_CODEC_ID_WMAV2, sample format is AV_SAMPLE_FMT_FLTP. 

> If input sample format is AV_SAMPLE_FMT_S16, does 
> ffmpeg have wmav2 encoder whose sample format is 
> AV_SAMPLE_FMT_S16?

No, such an encoder would have to use a (possibly 
unoptimized) internal conversion since wma uses 
floats internally.

> or I need write conversion routine for different 
> sample formats?

No, you can either use the aresample filter or 
libswresample directly.

Carl Eugen


More information about the Libav-user mailing list