New submission from Perazim <[email protected]>:
Have a large number of flv files downloaded using several different capture
programs from a web site that uses adobe rtmp server software for streaming
media. Early in the playback of these files by various different players (all
using ffmpeg decoders both in linux and windows) start dropping frames while
audio continues smoothly. When this happens, there is usually a one or two
second video pause with last frame being displayed and then things continue
usually only to have this happen again.
I got and built latest ffmpeg from syn and with ffplay, had the same results.
Next I attempted to convert from flv to mpeg2 using ffmpeg. Version is:
FFmpeg version SVN-r25183, Copyright (c) 2000-2010 the FFmpeg developers
built on Sep 25 2010 10:20:47 with gcc 4.4.4 20100630 (Red Hat 4.4.4-10)
configuration:
libavutil 50.28. 0 / 50.28. 0
libavcore 0. 9. 0 / 0. 9. 0
libavcodec 52.90. 0 / 52.90. 0
libavformat 52.78. 5 / 52.78. 5
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.40. 0 / 1.40. 0
libswscale 0.11. 0 / 0.11. 0
FFmpeg SVN-r25183
libavutil 50.28. 0 / 50.28. 0
libavcore 0. 9. 0 / 0. 9. 0
libavcodec 52.90. 0 / 52.90. 0
libavformat 52.78. 5 / 52.78. 5
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.40. 0 / 1.40. 0
libswscale 0.11. 0 / 0.11. 0
[r...@travelmate ffmpeg]#
The command I used and its output:
[r...@travelmate ffmpeg]# ffmpeg -vsync 1 -i
/media/160GB/glc/bill-cloud/BillCloud_High_1.flv -target ntsc-dvd
/media/160GB/ffmpeg/BillCloud_High_.mpg
FFmpeg version SVN-r25183, Copyright (c) 2000-2010 the FFmpeg developers
built on Sep 25 2010 10:20:47 with gcc 4.4.4 20100630 (Red Hat 4.4.4-10)
configuration:
libavutil 50.28. 0 / 50.28. 0
libavcore 0. 9. 0 / 0. 9. 0
libavcodec 52.90. 0 / 52.90. 0
libavformat 52.78. 5 / 52.78. 5
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.40. 0 / 1.40. 0
libswscale 0.11. 0 / 0.11. 0
[flv @ 0x9a66470] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 30.00 (30/1)
Input #0, flv, from '/media/160GB/glc/bill-cloud/BillCloud_High_1.flv':
Metadata:
duration : 1720
width : 610
height : 406
videodatarate : 750
framerate : 30
videocodecid : 4
audiodatarate : 96
audiodelay : 0
audiocodecid : 2
canSeekToEnd : true
Duration: 00:28:40.40, start: 0.000000, bitrate: 866 kb/s
Stream #0.0: Video: vp6f, yuv420p, 610x406, 768 kb/s, 30 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 98 kb/s
File '/media/160GB/ffmpeg/BillCloud_High_.mpg' already exists. Overwrite ?
[y/N] y
[buffer @ 0x9a6bb30] w:610 h:406 pixfmt:yuv420p
[scale @ 0x9a94590] w:610 h:406 fmt:yuv420p -> w:720 h:480 fmt:yuv420p
flags:0xa0000004
[ac3 @ 0x9a6b720] No channel layout specified. The encoder will guess the
layout, but it might be incorrect.
Output #0, dvd, to '/media/160GB/ffmpeg/BillCloud_High_.mpg':
Metadata:
encoder : Lavf52.78.5
Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 6000 kb/s, 90k
tbn, 29.97 tbc
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1563 size=1792te=3141.6kbits/s
dup=177 drop=0
Last message repeated 1 times 34204kB time=91.46 bitrate=3063.8kbits/s
dup=293 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1674 size=1792
Last message repeated 5 times 37288kB time=109.18 bitrate=2797.9kbits/s
dup=815 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1584 size=1792
Last message repeated 2 times 38528kB time=117.05 bitrate=2696.5kbits/s
dup=1047 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1591 size=1792
Last message repeated 2 times 40032kB time=126.89 bitrate=2584.4kbits/s
dup=1337 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1598 size=1792
Last message repeated 2 times 40952kB time=132.80 bitrate=2526.2kbits/s
dup=1511 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1605 size=1792
Last message repeated 1 times 43412kB time=148.55 bitrate=2394.0kbits/s
dup=1975 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1619 size=1792
Last message repeated 1 times 64746kB time=208.88 bitrate=2539.3kbits/s
dup=2168 drop=0
frame= 6277 fps= 58 q=2.0 Lsize= 64990kB time=209.41 bitrate=2542.4kbits/s
dup=2168 drop=0
video:51624kB audio:11456kB global headers:0kB muxing overhead 3.029463%
Received signal 2: terminating.
>From another bug report I saw that -vsync 1 may be needed however I don't know
what the values do.
I draw your attention to:
[flv @ 0x9a66470] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 30.00 (30/1)
and
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1563 size=1792te=3141.6kbits/s
dup=177 drop=0
Last message repeated 1 times 34204kB time=91.46 bitrate=3063.8kbits/s
dup=293 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1674 size=1792
Last message repeated 5 times 37288kB time=109.18 bitrate=2797.9kbits/s
dup=815 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1584 size=1792
Last message repeated 2 times 38528kB time=117.05 bitrate=2696.5kbits/s
dup=1047 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1591 size=1792
Last message repeated 2 times 40032kB time=126.89 bitrate=2584.4kbits/s
dup=1337 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1598 size=1792
Last message repeated 2 times 40952kB time=132.80 bitrate=2526.2kbits/s
dup=1511 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1605 size=1792
Last message repeated 1 times 43412kB time=148.55 bitrate=2394.0kbits/s
dup=1975 drop=0
[dvd @ 0x9a6a770] buffer underflow i=1 bufi=1619 size=1792
Last message repeated 1 times 64746kB time=208.88 bitrate=2539.3kbits/s
dup=2168 drop=0
ffmpeg does not crash during this.
Has this been seen before and if so what is cause and correction?
If not, I can post a sample if needed.
Thanks,
Perazim
----------
messages: 12032
priority: normal
status: new
substatus: new
title: flv video frames dropped on playback
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2245>
________________________________________________