У нас вы можете посмотреть бесплатно 4K60 UHD Motion Test Video: Horizontally Moving Bar: 16 Pixels per Frame или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This is a simple computer generated test video that shows a white bar that moves exactly 16 pixels per frame at 60 fps. I found this to be a good test to detect choppy motion playback on some graphics driver versions or web browsers.
30 fps version here: • 4K30 UHD Motion Test Video: Horizontally M...
Download source video here: https:/ /drive.google.com/file/d/1yTSHH6mY1D30Z55Q87v5vc6KR7q4OPgu/view?usp=sharing
C# Source Code:
const int WIDTH = 3840;
const int HEIGHT = 2160;
const int FRAME_RATE = 60;
const int BAR_THICKNESS = 128;
const int OFFSET_PER_FRAME = 16;
// 8 repetitions
const int FRAME_COUNT = 8 * (WIDTH / OFFSET_PER_FRAME);
const byte BLACK = byte.MinValue;
const byte WHITE = byte.MaxValue;
byte[] background = new byte[WIDTH * HEIGHT];
byte[] currentFrame = new byte[WIDTH * HEIGHT];
Array.Fill(background, BLACK);
string fileName = $"test_video_{WIDTH}x{HEIGHT}@{FRAME_RATE}Hz_PxPerFrame={OFFSET_PER_FRAME}.gray";
using FileStream file = new FileStream(fileName, FileMode.Create);
Console.WriteLine($"Writing video file {fileName}...");
for (int i = 0; i < FRAME_COUNT; ++i)
{
Array.Copy(background, currentFrame, currentFrame.Length);
for (int y = 0; y < HEIGHT; ++y)
{
int hOffset = (i * OFFSET_PER_FRAME) % WIDTH;
for (int barWidth = 0; barWidth < BAR_THICKNESS; ++barWidth)
{
int x = (hOffset + barWidth) % WIDTH;
int pixelIndex = x + (y * WIDTH);
currentFrame[pixelIndex] = WHITE;
}
}
file.Write(currentFrame);
Console.WriteLine($"Frame {i + 1} / {FRAME_COUNT}");
}
Console.WriteLine($"Done
Use the following FFmpeg command to encode the video file:");
Console.WriteLine($"ffmpeg -y -r {FRAME_RATE} -f rawvideo -pix_fmt gray -s {WIDTH}x{HEIGHT} -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -i {fileName} -codec:v vp9 -pix_fmt yuv420p -b:v 0 -crf 1 {fileName}.webm");