Skip to content

Instantly share code, notes, and snippets.

@meisa233
Last active July 18, 2022 09:19
Show Gist options
  • Save meisa233/b8f9555096ca624f1a4b0d52341c3d57 to your computer and use it in GitHub Desktop.
Save meisa233/b8f9555096ca624f1a4b0d52341c3d57 to your computer and use it in GitHub Desktop.
  1. transcode to prores 422 HQ (.mov)

Don't modify resolution

ffmpeg -i Best\ 8k\ HDR\ of\ 2020\ Dolby\ Vision.mkv -c:v prores_ks -profile:v hq -flags +ildct+ilme -top 0 output/Best4.mov

speed: 0.3x

transcode to 4K (3840 x 2160)

ffmpeg -i Best\ 8k\ HDR\ of\ 2020\ Dolby\ Vision.mkv -c:v prores_ks -profile:v hq -r 25 -flags +ildct+ilme -s 3840x2160 -top 0 output/Best4_3840x2160.mov

speed: 0.822x
But we can't change field order. BFF can't becomes TFF and TFF can't becomes BFF.
2. Copy Data Stream

ffmpeg -i C0069.MP4 -map 0:v -map 0:a -map 0:2 -c:v prores_ks -profile:v hq -r 25 -flags +ildct+ilme -s 3840x2160 -top 0 -c:a pcm_s24le -timecode 01:41:04:16 output/C0069.mov

Can't copy data stream

[mov @ 0x55aff9b28b80] Unknown hdlr_type for rtmd, writing dummy values
  1. transcode to mkv
ffmpeg -i C0069.MP4 -c:v libsvtav1 -profile:v main -level 6.0 -pix_fmt yuv420p -c:a aac output/C0069.mkv

0.67x
4. transcode to webm

ffmpeg -i C0069.MP4 -c:v libvpx-vp9 -c:a libvorbis -s 3840x2160 output/C0069.webm

0.03x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment