[Libav-user] libavcodec vorbis encoding

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jan 10 13:57:27 CET 2013

Александр Рухлов <A.Rukhlov at ...> writes:

> Signal of 440 Hz it is coded and written to the container.
> AAC, MP2, AC3 works without problems.BUT categorically 
> Vorbis doesn't want to workfunction avcodec_encode_audio2() 
> works without mistakes and even something returns, but 
> these data are damaged 

Is it possible that you are trying to write 
a raw vorbis file (as opposed to muxing 
vorbis in a container format)?
I don't think raw vorbis is defined.
(And generally, you should never "fwrite()" 
what the encoder returns, but feed a muxer, 
this can be the adts, mp2 or ac3 muxer if 
you want raw files.)

Carl Eugen

More information about the Libav-user mailing list