[FFmpeg-trac] #730(undetermined:open): Encoded video plays too fast for network input
FFmpeg
trac at avcodec.org
Sun Dec 11 17:41:06 CET 2011
#730: Encoded video plays too fast for network input
-------------------------------------+-------------------------------------
Reporter: hackeron | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 1
-------------------------------------+-------------------------------------
Comment (by hackeron):
Same thing with an mpeg-es stream from another IP camera:
{{{
$ time ffmpeg -re -y -t 10 -i http://admin:@192.168.0.126/test.cmp -acodec
copy -vcodec libx264 -crf 25 -preset ultrafast ffmpeg.ts
ffmpeg version git-2011-12-10-78fde93, Copyright (c) 2000-2011 the FFmpeg
developers
built on Dec 10 2011 19:56:39 with gcc 4.2.1 (Apple Inc. build 5666)
(dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
--enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables
--cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-
libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-
libxvid --disable-ffplay
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 52. 0 / 2. 52. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[nc @ 0x7f983081ae00] Estimating duration from bitrate, this may be
inaccurate
Input #0, nc, from 'http://admin:@192.168.0.126/test.cmp':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mpeg4, yuv420p, 720x576 [SAR 1:1 DAR 5:4], 100
fps, 100 tbr, 100 tbn, 100 tbc
[buffer @ 0x7f983041e3c0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1
sws_param:
[libx264 @ 0x7f983081d800] using SAR=1/1
[libx264 @ 0x7f983081d800] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0x7f983081d800] profile Constrained Baseline, level 3.2
[mpegts @ 0x7f983081d200] muxrate VBR, pcr every 10 pkts, sdt every 200,
pat/pmt every 40 pkts
Output #0, mpegts, to 'ffmpeg.ts':
Metadata:
encoder : Lavf53.24.0
Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 1:1 DAR 5:4], q=-1--1,
90k tbn, 100 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> libx264)
Press [q] to stop, [?] for help
frame= 999 fps= 15 q=-1.0 Lsize= 10687kB time=00:00:09.98
bitrate=8772.5kbits/s
video:9800kB audio:0kB global headers:0kB muxing overhead 9.051934%
[libx264 @ 0x7f983081d800] frame I:4 Avg QP:28.75 size: 31858
[libx264 @ 0x7f983081d800] frame P:995 Avg QP:34.00 size: 9958
[libx264 @ 0x7f983081d800] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x7f983081d800] mb P I16..4: 65.4% 0.0% 0.0% P16..4: 32.1%
0.0% 0.0% 0.0% 0.0% skip: 2.5%
[libx264 @ 0x7f983081d800] coded y,uvDC,uvAC intra: 50.2% 70.0% 6.9%
inter: 28.3% 64.0% 0.1%
[libx264 @ 0x7f983081d800] i16 v,h,dc,p: 19% 14% 58% 10%
[libx264 @ 0x7f983081d800] i8c dc,h,v,p: 51% 21% 23% 5%
[libx264 @ 0x7f983081d800] kb/s:8036.26
real 1m33.620s
user 0m10.997s
sys 0m0.535s
}}}
FFMPEG seems to think the input is 100fps when in reality it's something
around 20-30fps VFR and records a 10 second video that in reality is a
minute and a half :/
Looks like FFMPEG cannot record any live source from http correctly :(
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/730#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list