FFMPEG create image sequence of equal length to original video

Jeremy

I am trying to convert a video to an image sequence for importing into my video editor. First I check the frame rate with:

ffprobe -v 0 -of compact=p=0 -select_streams 0 -show_entries stream=r_frame_rate Forest.mp4

which returns

r_frame_rate=30/1

The original video is 1 minute 12 seconds...

when I run

ffmpeg -i Forest.mp4 -r 30 forest/image-%03d.dpx 

it gives back this:

ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-gnutls --enable-libass --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --disable-stripping
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Forest.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.36.100
  Duration: 00:01:00.12, start: 0.000000, bitrate: 1277 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1144 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, image2, to 'forest/image-%03d.dpx':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.36.100
    Stream #0:0(und): Video: dpx, rgb24, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.41.100 dpx
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> dpx (native))

and creates only about one second of video.

I'd like it to match the source, so that when I pull the audio and import it into my editing software I'm trying to learn they will match up.

llogan

Because you're outputting individual images there is no need to use -r. Individual frames have no duration, so duration is meaningless.

All you have to run is:

ffmpeg -i Forest.mp4 forest/image-%03d.dpx 

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Convert a video file to an image sequence of equal length?

From Dev

Using every Nth image in sequence to create video using FFmpeg

From Dev

Create video from a growing image sequence using FFMPEG

From Dev

ffmpeg .iff image sequence to video

From Dev

Create video from image sequence

From Dev

ffmpeg - convert image sequence to video with reversed order

From Dev

Create a image every XX seconds of the video [FFMPEG]

From Dev

Create video with an image and audio file using ffmpeg

From Dev

python script for convert video to image sequence using FFmpeg

From Dev

FFMpeg image sequence to video using VP9 encoder

From Dev

Convert image sequence to video using ffmpeg and list of files

From Dev

FFMPEG Multiple task for converting video to image sequence for MacOS

From Dev

Android ffmpeg: create video from sequence of images using jni

From Dev

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

From Dev

FFmpeg – Keep original video orientation

From Dev

ffmpeg Create GIF from image sequence and use transparent background

From Dev

Image sequence handling in ffmpeg

From Dev

Why is the length of the output video increasing when I overlay an image over a video using ffmpeg?

From Dev

How to create a video with ffmpeg out of a single image file that is constantly overwritten?

From Dev

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

From Dev

ffmpeg - Create a video from image frame with a start and a count

From Dev

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

From Dev

Merge one audio file and one image file to create a video with ffmpeg

From Dev

Playing image sequence as video

From Dev

Concatenating an image with a video with ffmpeg

From Dev

Video length - image array to video

From Dev

FFMPEG add audio to a video but clip it to the video length

From

Create video of arbituary length

From Dev

Image sequence of 1500 frames to loop 30 times in a 30 min video FFMPEG

Related Related

  1. 1

    Convert a video file to an image sequence of equal length?

  2. 2

    Using every Nth image in sequence to create video using FFmpeg

  3. 3

    Create video from a growing image sequence using FFMPEG

  4. 4

    ffmpeg .iff image sequence to video

  5. 5

    Create video from image sequence

  6. 6

    ffmpeg - convert image sequence to video with reversed order

  7. 7

    Create a image every XX seconds of the video [FFMPEG]

  8. 8

    Create video with an image and audio file using ffmpeg

  9. 9

    python script for convert video to image sequence using FFmpeg

  10. 10

    FFMpeg image sequence to video using VP9 encoder

  11. 11

    Convert image sequence to video using ffmpeg and list of files

  12. 12

    FFMPEG Multiple task for converting video to image sequence for MacOS

  13. 13

    Android ffmpeg: create video from sequence of images using jni

  14. 14

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

  15. 15

    FFmpeg – Keep original video orientation

  16. 16

    ffmpeg Create GIF from image sequence and use transparent background

  17. 17

    Image sequence handling in ffmpeg

  18. 18

    Why is the length of the output video increasing when I overlay an image over a video using ffmpeg?

  19. 19

    How to create a video with ffmpeg out of a single image file that is constantly overwritten?

  20. 20

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

  21. 21

    ffmpeg - Create a video from image frame with a start and a count

  22. 22

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

  23. 23

    Merge one audio file and one image file to create a video with ffmpeg

  24. 24

    Playing image sequence as video

  25. 25

    Concatenating an image with a video with ffmpeg

  26. 26

    Video length - image array to video

  27. 27

    FFMPEG add audio to a video but clip it to the video length

  28. 28

    Create video of arbituary length

  29. 29

    Image sequence of 1500 frames to loop 30 times in a 30 min video FFMPEG

HotTag

Archive