[FFmpeg-user] Prepend a single frame to a MP4 file

Virgil Stokes virgil.stokes at it.uu.se
Sun May 15 22:36:26 CEST 2016


Here is my corrected question:

I have a YouTube MP4 video (test.mp4):

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2015-10-28 06:13:56
  Duration: 00:01:35.64, start: 0.000000, bitrate: 1370 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 1176 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt
p, 192 kb/s (default)
    Metadata:
      creation_time   : 2015-10-28 06:13:56
      handler_name    : IsoMedia File Produced by Google, 5-11-2011

I have created an image file (testImage.png) from which I would like to make a 5 second MP4 file. Then
concatenate (prepend) this 5 second video to the test.mp4 file (as defined above). How can this be done in ffmpeg? Note, I am using:

ffmpeg version N-79947-gcd244fa Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)

Sorry for the previous poorly formulated email :-(


More information about the ffmpeg-user mailing list