I see the following line in your code:
p2C->codec_tag = pC->codec_tag;
Carl Eugen
The "p2C->codec_tag = pC->codec_tag;" is commented out.
[...]
_______________________________________________
If I remove the avcodec_parameters_copy line, then I get the error:
[mp4 @ 01f50200] Could not find tag for codec none in stream #0, codec not
curre
ntly supported in container
Was getting the same error and added this code:
unsigned int tag = 0;
if ( av_codec_get_tag2( av_out_fmt_ctx->oformat->codec_tag, codec_ctx->codec_id,
&tag ) == 0 )
{
av_log( NULL, AV_LOG_ERROR, "could not find codec tag for codec id %d, default to
0.\n", codec_ctx->codec_id );
}
video_st->codecpar->codec_tag = tag;
Thanks
cco
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user