I modified output_example.c, to add CODEC_FLAG_GLOBAL_HEADER to flv files,
because h264 flv videos require an extra header and set encoding to
CODEC_ID_H264 for flv. So far so good and it seems to work.
The problem is that if I turn on an additional encoding thread with,
avcodec_thread_init(c,2) the program will crash while writing the second
video frame (av_write_frame).
The funny thing is that if I don't set CODEC_FLAG_GLOBAL_HEADER, an
additional thread will not crash the program. But the file won't be valid
becase it's missing the h264 header.

thank you
Sergej
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to