
INSERT IGNORE INTO video_formats (name, postfix, width, height, keep_aspect, ffmpeg_options, is_active, is_source, sort_order) VALUES
('MP4 4K (2160p)', '_2160p.mp4', 3840, 2160, 1, '-c:v libx264 -profile:v high -level:v 5.1 -movflags +faststart -crf 18 -maxrate 20000k -bufsize 40000k -preset medium -pix_fmt yuv420p -c:a aac -ar 48000 -b:a 192k -f mp4', 0, 0, 1),
('MP4 2K (1440p)', '_1440p.mp4', 2560, 1440, 1, '-c:v libx264 -profile:v high -level:v 4.2 -movflags +faststart -crf 20 -maxrate 12000k -bufsize 24000k -preset medium -pix_fmt yuv420p -c:a aac -ar 48000 -b:a 192k -f mp4', 0, 0, 2),
('MP4 1080p', '_1080p.mp4', 1920, 1080, 1, '-c:v libx264 -profile:v high -level:v 4.0 -movflags +faststart -crf 21 -maxrate 6000k -bufsize 12000k -preset medium -pix_fmt yuv420p -c:a aac -ar 44100 -b:a 192k -f mp4', 1, 0, 3),
('MP4 240p', '_240p.mp4', 426, 240, 1, '-c:v libx264 -profile:v baseline -level:v 3.0 -movflags +faststart -crf 24 -maxrate 600k -bufsize 1200k -preset medium -pix_fmt yuv420p -c:a aac -ar 44100 -b:a 64k -f mp4', 0, 0, 7);


UPDATE video_formats SET is_active = 0 WHERE postfix = '_360p.mp4' AND is_active = 1;
