// Note that there's no way to change this per-frame as the H.264 stream
// would like to be able to.
avstream_video->codecpar->color_primaries = AVCOL_PRI_BT709; // RGB colorspace (inout_format.color_space).
// Note that there's no way to change this per-frame as the H.264 stream
// would like to be able to.
avstream_video->codecpar->color_primaries = AVCOL_PRI_BT709; // RGB colorspace (inout_format.color_space).
// YUV colorspace (output_ycbcr_format.luma_coefficients).
if (global_flags.ycbcr_rec709_coefficients) {
avstream_video->codecpar->color_space = AVCOL_SPC_BT709;
// YUV colorspace (output_ycbcr_format.luma_coefficients).
if (global_flags.ycbcr_rec709_coefficients) {
avstream_video->codecpar->color_space = AVCOL_SPC_BT709;
-void Mux::add_packet(const AVPacket &pkt, int64_t pts, int64_t dts, AVRational timebase)
+void Mux::add_packet(const AVPacket &pkt, int64_t pts, int64_t dts, AVRational timebase, int stream_index_override)
pkt_copy.pts = av_rescale_q(pts, timebase, avstream_video->time_base);
pkt_copy.dts = av_rescale_q(dts, timebase, avstream_video->time_base);
pkt_copy.duration = av_rescale_q(pkt.duration, timebase, avstream_video->time_base);
pkt_copy.pts = av_rescale_q(pts, timebase, avstream_video->time_base);
pkt_copy.dts = av_rescale_q(dts, timebase, avstream_video->time_base);
pkt_copy.duration = av_rescale_q(pkt.duration, timebase, avstream_video->time_base);
pkt_copy.pts = av_rescale_q(pts, timebase, avstream_audio->time_base);
pkt_copy.dts = av_rescale_q(dts, timebase, avstream_audio->time_base);
pkt_copy.duration = av_rescale_q(pkt.duration, timebase, avstream_audio->time_base);
pkt_copy.pts = av_rescale_q(pts, timebase, avstream_audio->time_base);
pkt_copy.dts = av_rescale_q(dts, timebase, avstream_audio->time_base);
pkt_copy.duration = av_rescale_q(pkt.duration, timebase, avstream_audio->time_base);