Hi All
I wrote a program to encode some frames. My code is based on
/libavcode/api-example.c but it has a difference: api-example.c uses dummy
images, but in my code I captures some frame of another video and try to encode
them using avcodec_encode_video().
An error occurs when i execute this code: segmentation fault.
This is my code: http://pastie.org/1029399
I know that frames that I captures from input video have correct contents
because i can save them. Also when i decrease value of outbuf_size variable to
10000, there is no error but it display this message:
[NULL @ 0x8da49b0]buffer smaller than minimum size
and so cannot encode any frame.
what's wrong?
Bayati
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user