Skip to main content
Inspiring
March 22, 2023

Media encoder change file name adding extra 0(zero)

  • March 22, 2023
  • 2 replies
  • 633 views

Pseudo code

    const fileName = `${chapterMarker.name.replace(/\s/g, '_')}.png`;
    const outputPath = join(outputDir.fsName, fileName);

    const pngPreset = new File(presetPath);
    app.encoder.encodeSequence(sequence, outputPath, pngPreset.fsName, app.encoder.ENCODE_IN_TO_OUT, 0);

 expected result  `MPF_Scene_7_Shot_46_Frame_1255.png`

 

2 replies

Adobe Employee
February 27, 2025

I don't get it. Can you show a screen shot of the resulting files and what is wrong?

Participating Frequently
February 26, 2025

I just an into this. If you're exporting a still the default is to add a frame number.  There's an option in the Media Encoder settings. See attached!