ffmpeg pipe images extracted from video

Birjolaxew

I can use the following command to extract images from a video using ffmpeg, saving them to the filesystem:

... | ffmpeg -i - -f image2 'img-%03d.png'

I would like to pipe these images to another application, rather than save them to the filesystem - how they are separated in the pipe is of little importance, since it'll be a NodeJS script that I control myself.

The following does not work:

... | ffmpeg -i - -f image2 pipe: | ...

Erroring with

[image2 @ 0xe1cfc0] Could not get frame filename number 2 from pattern 'pipe:' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument

Is there any way to pipe out images extracted from a video using ffmpeg, without using the filesystem?

hanshenrik

yes there is!

add the argument -f image2pipe, and specify the output filename as a single hypen (-, in this context it means stdout), and specify the input filename also as a single hypen (-i -, in this context it means stdin) and explicitly specify the output format (eg for png: -c:v png), here is a complete example:

ffmpeg -i - -ss 00:00:3 -s 650x390 -vframes 1 -c:v png -f image2pipe -

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Save extracted video frames as images

From Dev

Creating video from images with different SARs with FFMPEG

From Java

FFmpeg producing a flickering video from images

From Dev

Producing stable video from slow images with FFmpeg

From

How to create a video from images with FFmpeg?

From Dev

ffmpeg how to output images from a video

From Dev

Make video from images with ffmpeg/imagemagic

From Dev

Can FFMPEG extract images from a video with timestamps?

From Dev

create video from jpg images using ffmpeg

From Dev

ffmpeg pipe images to redis

From Dev

FFMpeg : Converting a video file to a gif with multiple images from video

From Java

How to pipe live video frames from ffmpeg to PIL?

From Dev

ffmpeg - merge images with video

From Dev

FFmpeg. Video to images

From Java

Pipe raw OpenCV images to FFmpeg

From Dev

FFMPEG - Create a slideshow video from images in a directory, sorted alphabetically

From Dev

Create video from images and audio with varying image durations using FFMPEG?

From Dev

Producing lossless video from set of .png images using ffmpeg

From Dev

Combining images into video with ffmpeg, but from multiple folders into the same frames

From Dev

ffmpeg slideshow video from images creating empty mp4

From Dev

ffmpeg: Is there a way to create video from images and overlay on image at same time?

From Dev

ffmpeg- make video from images in different folders

From Dev

FFmpeg make video from images skip middle or rear range

From Dev

ffmpeg: video from images - handling a zero length image file

From Dev

FFmpeg making video from images placed in different folders

From Dev

Android ffmpeg: create video from sequence of images using jni

From Dev

How to extract images from video files using FFmpeg without blur?

From Dev

ffmpeg: overlay multiple images to a video

From Dev

FFMPEG: Convert .rgb images to video

Related Related

  1. 1

    Save extracted video frames as images

  2. 2

    Creating video from images with different SARs with FFMPEG

  3. 3

    FFmpeg producing a flickering video from images

  4. 4

    Producing stable video from slow images with FFmpeg

  5. 5

    How to create a video from images with FFmpeg?

  6. 6

    ffmpeg how to output images from a video

  7. 7

    Make video from images with ffmpeg/imagemagic

  8. 8

    Can FFMPEG extract images from a video with timestamps?

  9. 9

    create video from jpg images using ffmpeg

  10. 10

    ffmpeg pipe images to redis

  11. 11

    FFMpeg : Converting a video file to a gif with multiple images from video

  12. 12

    How to pipe live video frames from ffmpeg to PIL?

  13. 13

    ffmpeg - merge images with video

  14. 14

    FFmpeg. Video to images

  15. 15

    Pipe raw OpenCV images to FFmpeg

  16. 16

    FFMPEG - Create a slideshow video from images in a directory, sorted alphabetically

  17. 17

    Create video from images and audio with varying image durations using FFMPEG?

  18. 18

    Producing lossless video from set of .png images using ffmpeg

  19. 19

    Combining images into video with ffmpeg, but from multiple folders into the same frames

  20. 20

    ffmpeg slideshow video from images creating empty mp4

  21. 21

    ffmpeg: Is there a way to create video from images and overlay on image at same time?

  22. 22

    ffmpeg- make video from images in different folders

  23. 23

    FFmpeg make video from images skip middle or rear range

  24. 24

    ffmpeg: video from images - handling a zero length image file

  25. 25

    FFmpeg making video from images placed in different folders

  26. 26

    Android ffmpeg: create video from sequence of images using jni

  27. 27

    How to extract images from video files using FFmpeg without blur?

  28. 28

    ffmpeg: overlay multiple images to a video

  29. 29

    FFMPEG: Convert .rgb images to video

HotTag

Archive