I am trying to decode an flv file to Frame and encode them after some modifies, then I will send it to a rtmp server. but I got segmentation fault when I called the `av_write_frame`. I have searched in google and other website, but it doesn’t help.
compile command: gcc src/encode.c -o encode.out -g -v -I /usr/local/ffmpeg/include -L /usr/local/ffmpeg/lib -lavformat -lavcodec -lavutil
run command: encode.out /tmp/out.flv rtmp://domain/live/livestream
code is here:
Libav-user mailing list
|Free forum by Nabble||Edit this page|