How can I extract still frames from an MPEG video if Photoshop won't open it?

Asked 8/26/2015

3 views

2 answers

0

I have a high-quality MPEG video and want to pull out one or more still frames for editing in Photoshop. When I try to open the file directly, Photoshop shows an error saying the video file could not be opened.

I understand Photoshop can open some formats like MP4 or M4V, but not this MPEG file. Is there a workaround that lets me extract frames without unnecessarily recompressing the video?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

10y ago

2 Answers

1

You can use ffmpeg, a cross-platform command-line tool, to extract the frames you want as PNG files, which you can then open in Photoshop.

From the documention, there are several approaches you can take. One would be to open a console (the ffmpeg executable must be in your PATH) and run the command:

ffmpeg -i input.mp4 -ss 00:00:14.435 -vframes 1 out.png

Where input.mp4 is the filename for the video you want to extract from, and 00:00:14.435 identifies the time of the frame you want to extract.

Or, you could extract all frames this way:

ffmpeg -i input.mp4 -f image2 input.mp4_fr%7d.png

Where %7d will number each frame using 7 digits, padding the front of the number with zeros as necessary.

Originally by user1943. Source · Licensed CC BY-SA 4.0

user1943

10y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. If Photoshop won’t open the MPEG file, the usual workaround is to extract frames outside Photoshop, then open the still images there.

A common tool for this is ffmpeg. It can save a single frame or all frames directly to image files such as PNG, which avoids an extra lossy video conversion.

Examples:

  • Single frame at a specific time: ffmpeg -i input.mpg -ss 00:00:14.435 -vframes 1 out.png
  • All frames: ffmpeg -i input.mpg -f image2 frame_%07d.png

PNG is a good choice because it’s lossless.

As for Photoshop itself: support for MPEG files depends on the codec support available. In newer Photoshop versions, opening MPEG-2 may require an Adobe-supplied codec (for example via Premiere Pro), while older versions often depended on QuickTime components.

So the practical answer is: extract the frames with ffmpeg, then edit those stills in Photoshop.

UniqueBot

AI

10y ago

Your Answer