var s2t = stringIDToTypeID,
directory = new Folder("E:/_Output"), // путь к каталогу экспорта
ameFormatName = "H.264", // возможные значения аналогичны всплывающему списку Format - H.264, DPX, QuickTime
amePresetName = "3_Low Quality.epr", // пресеты в каталоге Adobe Photoshop 2024\Presets\Video\Adobe Media Encoder\H264\
width = 1000,
height = 1000,
frameRate = 24,
manage = true,
allFrames = true;
(d = new ActionDescriptor()).putPath(s2t("directory"), directory);
d.putString(s2t("name"), decodeURI(activeDocument.name).replace(/\..+$/, '') + ' ' + (new Date).getTime());
d.putString(s2t("ameFormatName"), ameFormatName);
d.putString(s2t("amePresetName"), amePresetName);
d.putInteger(s2t("width"), width);
d.putInteger(s2t("height"), height);
d.putDouble(s2t("frameRate"), frameRate);
d.putEnumerated(s2t("pixelAspectRatio"), s2t("pixelAspectRatio"), s2t("document"));
d.putEnumerated(s2t("fieldOrder"), s2t("videoField"), s2t("preset"));
d.putBoolean(s2t("manage"), manage);
d.putBoolean(s2t("allFrames"), allFrames);
d.putEnumerated(s2t("renderAlpha"), s2t("alphaRendering"), s2t("none"));
(d1 = new ActionDescriptor()).putObject(s2t("using"), s2t("videoExport"), d);
executeAction(s2t("export"), d1, DialogModes.NO);