From 95fd64b5dea57c4b94f2ab0a08f6421a134a48bf Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 31 Oct 2019 20:57:57 +0100 Subject: [PATCH] Add scrcpy version in recorded video metadata It might help to understand problems in recorded videos. --- app/src/recorder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/recorder.c b/app/src/recorder.c index 77186350..f96bcd26 100644 --- a/app/src/recorder.c +++ b/app/src/recorder.c @@ -135,6 +135,9 @@ recorder_open(struct recorder *recorder, const AVCodec *input_codec) { // recorder->ctx->oformat = (AVOutputFormat *) format; + av_dict_set(&recorder->ctx->metadata, "comment", + "Recorded by scrcpy " SCRCPY_VERSION, 0); + AVStream *ostream = avformat_new_stream(recorder->ctx, input_codec); if (!ostream) { avformat_free_context(recorder->ctx);