From: Gyan Doshi <ffmpeg@gyani.pro> To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH] ffmpeg: set user-set rotation for encoded streams too Date: Wed, 11 May 2022 22:00:41 +0530 Message-ID: <5aa5260c-bea2-7c80-1ea1-95092e49181e@gyani.pro> (raw) In-Reply-To: <20220510114054.1745-1-ffmpeg@gyani.pro> On 2022-05-10 05:10 pm, Gyan Doshi wrote: > So far, -metadata:s:v rotate would only be applied to streamcopied > video streams. Plan to push tomorrow. Gyan > --- > fftools/ffmpeg.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c > index a85ed18b08..7c1db2162a 100644 > --- a/fftools/ffmpeg.c > +++ b/fftools/ffmpeg.c > @@ -3048,6 +3048,13 @@ static int init_output_stream_encode(OutputStream *ost, AVFrame *frame) > av_reduce(&ost->frame_rate.num, &ost->frame_rate.den, > ost->frame_rate.num, ost->frame_rate.den, 65535); > } > + > + if (ost->rotate_overridden) { > + uint8_t *sd = av_stream_new_side_data(ost->st, AV_PKT_DATA_DISPLAYMATRIX, > + sizeof(int32_t) * 9); > + if (sd) > + av_display_rotation_set((int32_t *)sd, -ost->rotate_override_value); > + } > } > > switch (enc_ctx->codec_type) { _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-05-11 16:31 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-10 11:40 Gyan Doshi 2022-05-11 11:56 ` Anton Khirnov 2022-05-11 12:18 ` Gyan Doshi 2022-05-11 18:49 ` Anton Khirnov 2022-05-11 19:15 ` Gyan Doshi 2022-05-12 5:25 ` Anton Khirnov 2022-05-12 7:01 ` Gyan Doshi 2022-05-12 8:19 ` Anton Khirnov 2022-05-15 10:59 ` Jan Ekström 2022-05-15 11:58 ` Gyan Doshi 2022-05-15 12:21 ` Jan Ekström 2022-05-17 12:16 ` Jan Ekström 2022-05-11 16:30 ` Gyan Doshi [this message] 2022-05-11 18:44 ` Anton Khirnov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=5aa5260c-bea2-7c80-1ea1-95092e49181e@gyani.pro \ --to=ffmpeg@gyani.pro \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git