Opened 12 years ago

Closed 12 years ago

#563 closed defect (fixed)

Sorenson Spark: first frame is no keyframe

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: flv1
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Attached sample plays fine with mplayer -demuxer lavf -vc ffflv, shows initial grey frames with ffmpeg (apparently skipping the initial keyframe)

$ ffmpeg -i trains_cut.flv -qscale 2 -t 10 out.avi
ffmpeg version N-33698-gae85fd2, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 16 2011 19:02:27 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 21. 0 / 51. 21. 0
  libavcodec   53. 20. 1 / 53. 20. 1
  libavformat  53. 16. 0 / 53. 16. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[flv @ 0x1305b60] warning: first frame is no keyframe

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from 'trains_cut.flv':
  Metadata:
    datasize        : 14613960
    lasttimestamp   : 212960
    audiosize       : 1802309
    videosize       : 12811397
    metadatacreator : inlet media - FLVTool2
    encoder         : Riva FLV Encoder
  Duration: 00:03:33.00, start: 0.000000, bitrate: 78 kb/s
    Stream #0:0: Video: flv1, yuv420p, 640x480, 490 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3, 44100 Hz, mono, s16, 64 kb/s
[buffer @ 0x1305060] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
Output #0, avi, to 'out.avi':
  Metadata:
    datasize        : 14613960
    lasttimestamp   : 212960
    audiosize       : 1802309
    videosize       : 12811397
    metadatacreator : inlet media - FLVTool2
    ISFT            : Lavf53.16.0
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 640x480, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, mono, flt, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0 (flv -> mpeg4)
  Stream #0.1 -> #0.1 (mp3 -> ac3)
Press [q] to stop, [?] for help
[flv @ 0x1305b60] warning: first frame is no keyframe
frame=  249 fps=  0 q=2.0 Lsize=    1611kB time=00:00:10.00 bitrate=1319.4kbits/s
video:1431kB audio:157kB global headers:0kB muxing overhead 1.410500%

Attachments (1)

trains_cut.flv (2.0 MB ) - added by Carl Eugen Hoyos 12 years ago.

Download all attachments as: .zip

Change History (3)

by Carl Eugen Hoyos, 12 years ago

Attachment: trains_cut.flv added

comment:1 by Michael Niedermayer, 12 years ago

what does some official player display ? black or gray ?

comment:2 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.