[FFmpeg-user] warning: first frame is no keyframe

Shaily Athghara shaily.athghara at gmail.com
Wed Apr 11 09:19:02 CEST 2012


As suggested I have downloaded git snapshot from FFmpeg Repository
Snapshots "ffmpeg-snapshot-git.tar.bz2" and perform the following steps:

1.   tar jxf ffmpeg-snapshot-git.tar.bz2
2.  cd ffmpeg
3. ./configure && make
4. Make install
5. Execute the command
./ffmpeg -r 6.5 -i 1.raw -i 4.wav -y -f flv -ar 11025 output.flv
ffmpeg version 0.10.2.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 11 2012 07:33:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-44)
  configuration:
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 67.101 /  2. 67.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
[rawvideo @ 0x1d48cf80]* Pixel format was not specified and cannot be
detected*
    Last message repeated 1 times
[image2 @ 0x1d486420] *Could not find codec parameters (Video: rawvideo)*
1.raw: could not find codec parameters

*Got the same error*

then execute the following command

*./ffmpeg -s cif -r 6.5 -pix_fmt yuv420p -i 1.raw -i 4.wav -y -f flv -ar
11025 output.flv*
ffmpeg version 0.10.2.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 11 2012 07:33:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-44)
  configuration:
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 67.101 /  2. 67.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
Input #0, image2, from '1.raw':
  Duration: 00:00:00.15, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288,
6.50 tbr, 6.50 tbn, 6.50 tbc
[wav @ 0x108e39c0] max_analyze_duration 5000000 reached at 5120000
Input #1, wav, from '4.wav':
  Duration: 00:00:13.68, bitrate: 64 kb/s
    Stream #1:0: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, 1
channels, s16, 64 kb/s
[buffer @ 0x108f1880] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:flags=2
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf54.3.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 352x288,
q=2-31, 200 kb/s, 1k tbn, 6.50 tbc
    Stream #0:1: Audio: adpcm_swf ([1][0][0][0] / 0x0001), 11025 Hz, 1
channels, s16, 44 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> flv)
  Stream #1:0 -> #0:1 (pcm_alaw -> adpcm_swf)
Press [q] to stop, [?] for help
*frame=    1 fps=0.0 q=7.6 Lsize=     205kB time=00:00:00.15
bitrate=10885.1kbits/s
video:125kB audio:75kB global headers:0kB muxing overhead 2.472589%*

but still this generate video of 125 KB with frame=1,which is the corrupted
one.Please suggest What should be the correct procedure/command.


More information about the ffmpeg-user mailing list