¡@

Home 

2014/10/15 ¤U¤È 10:12:24

iphone Programming Glossary: outbuf_size

Encoding images to video with ffmpeg

http://stackoverflow.com/questions/3334939/encoding-images-to-video-with-ffmpeg

thats the code Register all formats and codecs av_register_all AVCodec codec AVCodecContext c NULL int i out_size size outbuf_size FILE f AVFrame picture uint8_t outbuf printf Video encoding n find the mpeg video encoder codec avcodec_find_encoder CODEC_ID_MPEG2VIDEO.. n exit 1 f fopen filename wb if f fprintf stderr could not open s n filename exit 1 alloc image and output buffer outbuf_size 100000 outbuf malloc outbuf_size size c width c height #pragma mark AVFrame outpic avcodec_alloc_frame int nbytes avpicture_get_size.. if f fprintf stderr could not open s n filename exit 1 alloc image and output buffer outbuf_size 100000 outbuf malloc outbuf_size size c width c height #pragma mark AVFrame outpic avcodec_alloc_frame int nbytes avpicture_get_size PIX_FMT_YUV420P c width..