[Libav-user] How to select VP8 explicitly in FFMpeg libavformat library instead of vp9 programatically
    Carl Eugen Hoyos 
    ceffmpeg at gmail.com
       
    Sat Nov  4 21:28:53 EET 2017
    
    
  
2017-11-02 13:53 GMT+01:00 ravikiran.bs <ravikiran.bs at zohocorp.com>:
> I allocate AVFormatContext using  avformat_alloc_output_context2()
> function, by passing the filename as "test.webm", the default video
> codec selected is VP9.
You can search for an encoder with avcodec_find_encoder() or
avcodec_find_encoder_by_name(), you allocate a codec context
with avcodec_alloc_context3() and set OutputStream->enc to
that context, see docs/examples/muxing.c
Carl Eugen
    
    
More information about the Libav-user
mailing list