[FFmpeg-user] first frame is no keyframe, ffmpeg, fms

Gregory Aimo gregory.aimo at gmail.com
Wed Aug 1 21:20:26 CEST 2012


Hi all,

I am using ffmpeg version 0.11.1 on my mac.  Basically I want to be able to
take XD Cam Ex.MOV's recorded at 18mbps transcode them with ffmpeg to
h.264.mp4's to play on an an fms server.  but whenever I do any of this
transcoding with ffmpeg, I get the warning "[mpeg2video @ 0x1a2e3360]
warning: first frame is no keyframe" and the audio is 6 frames or so early
because the fms server won't start playing the video until it sees a
keyframe.

I've tried forcing a keyframe on the first frame like this:

ffmpeg -i input.mov -force_key_frames 1,2,3,4,5 output.mp4 but it doesn't
seem to have any effect.

I know that -av seek frame and -ss command might be helpful but I don't
know how to get them to create a file that starts with a keyframe.  Can you
help me?

Thanks very much,
Greg Aimo
Distance Education Production Specialist
Harvard University Extension School
greg_aimo at harvard.edu
617-872-5362






  This version:

ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 30 2012 18:48:45 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libxvid --enable-shared
--enable-postproc --enable-swscale --enable-avfilter --enable-pthreads
--enable-yasm --enable-libfaac --enable-libmp3lame --enable-libvorbis
--enable-libvpx
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100


I probed one of our input files:



Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01087001.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 537331968
    compatible_brands: qt  CDes
    creation_time   : 2008-06-06 20:25:39
  Duration: 00:11:43.50, start: 0.000000, bitrate: 20349 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main) (xdv1 / 0x31766478),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 18000 kb/s, 29.97 fps, 29.97 tbr,
2997 tbn, 59.94 tbc
    Metadata:
      creation_time   : 2008-06-06 20:25:39
    Stream #0:1(eng): Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, 1
channels, s32, 1152 kb/s
    Metadata:
      creation_time   : 2008-06-06 20:25:39
    Stream #0:2(eng): Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, 1
channels, s32, 1152 kb/s
    Metadata:
      creation_time   : 2008-06-06 20:25:39
    Stream #0:3(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2008-06-06 20:25:39
      timecode        : 00:00:07;02
Unsupported codec with id 0 for input stream 3





Greg Aimo
Distance Education Production Specialist
Harvard University Extension School
greg_aimo at harvard.edu
617-872-5362


More information about the ffmpeg-user mailing list