Hi.
I am looking into encoding once but writing to multiple files with
different formats.
For some formats the encoder must be configured with the
AV_CODEC_FLAG_GLOBAL_HEADER flag active, like this:
if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
enc_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
My problem comes when having to encode for two formats, one that needs the
flag and one that does not.
I know that not setting the flags for the formats that need it, is not an
option. Since this produced files not playable by most players.
What happens when the flags is set for formats that does not need it?
Will forcing the flag to be always true fix my problem?
Thanks.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user