X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fvideo_encoder.cpp;h=7e4f09f78cb2112a81c1d9b246d36c7d6a2e987b;hb=021fa9fa5ce103ae5843647fee3d5d1d7038d32f;hp=bd93ae265369ec7076ee445c5bb38edb7f290298;hpb=eeda8995329601f9f4e35047358400833eeae68e;p=nageru diff --git a/nageru/video_encoder.cpp b/nageru/video_encoder.cpp index bd93ae2..7e4f09f 100644 --- a/nageru/video_encoder.cpp +++ b/nageru/video_encoder.cpp @@ -35,7 +35,7 @@ string generate_local_dump_filename(int frame) localtime_r(&now, &now_tm); char timestamp[64]; - strftime(timestamp, sizeof(timestamp), "%F-%T%z", &now_tm); + strftime(timestamp, sizeof(timestamp), "%F-%H%M%S%z", &now_tm); // Use the frame number to disambiguate between two cuts starting // on the same second. @@ -194,8 +194,7 @@ void VideoEncoder::open_output_stream() } stream_mux.reset(new Mux(avctx, width, height, video_codec, video_extradata, stream_audio_encoder->get_codec_parameters().get(), - get_color_space(global_flags.ycbcr_rec709_coefficients), - Mux::WITH_AUDIO, COARSE_TIMEBASE, + get_color_space(global_flags.ycbcr_rec709_coefficients), COARSE_TIMEBASE, /*write_callback=*/nullptr, Mux::WRITE_FOREGROUND, { &stream_mux_metrics })); stream_mux_metrics.init({{ "destination", "http" }}); }