[FFmpeg-user] Ffmpeg run in long time

Ly Tran Cong lytc at vega.com.vn
Mon Feb 20 04:08:32 CET 2012


Here is my transcode command:

ffmpeg -i udp://225.4.2.1:5101?reuse=1?buffer_size=1000 -itsoffset 00:00:05
-i udp://225.4.2.1:5101?reuse=1?buffer_size=1000 -map 0:0 -c:v libx264
-profile baseline -level 11 -preset superfast -tune zerolatency -r 10 -s
320x240 -b:v 128k -coder 0 -refs 3 -bf 0 -g 35 -keyint_min 20 -qmin 10
-qmax 51 -qdiff 4 -trellis 0 -flags +global_header -copyts -vsync 2 -f rtp
rtp://127.0.0.1:57104 -map 1:1 -flags +global_header -vn -c:a libfaac -ar
22050 -b:a 8k -ac 1 -async 22050 -vn -rtpflags +latm -fflags +latm -copyts
-f rtp rtp://127.0.0.1:57106

And the output

Input #1, mpegts, from 'udp://225.4.2.1:5101?reuse=1?buffer_size=1000':
  Duration: N/A, start: 43942.335422, bitrate: 192 kb/s
  Program 1
    Stream #1:0[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 720x576 [SAR 12:11 DAR 15:11], 60.98 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #1:1[0x102]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16, 192 kb/s
[buffer @ 0xd814be0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:12/11
sws_param:
[scale @ 0xd598520] w:720 h:576 fmt:yuv420p -> w:320 h:240 fmt:yuv420p
flags:0x4
[libx264 @ 0xd895740] using SAR=45/44
[libx264 @ 0xd895740] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0xd895740] profile Constrained Baseline, level 1.1
[libx264 @ 0xd895740] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft
2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=3
deblock=1:0:0 analyse=0x1:0x1 me=dia subme=1 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=0 threads=3 sliced_threads=1 slices=3 nr=0
decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0
weightp=0 keyint=35 keyint_min=18 scenecut=40 intra_refresh=0 rc=abr
mbtree=0 bitrate=128 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4
ip_ratio=1.40 aq=1:1.00
Output #0, rtp, to 'rtp://127.0.0.1:57104':
  Metadata:
    encoder         : Lavf54.1.100
    Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 45:44 DAR 15:11],
q=10-51, 128 kb/s, 90k tbn, 10 tbc
Output #1, rtp, to 'rtp://127.0.0.1:57106':
  Metadata:
    encoder         : Lavf54.1.100
    Stream #1:0: Audio: aac, 22050 Hz, 1 channels, s16, 8 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #1:1 -> #1:0 (mp2 -> libfaac)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 54.1.100
m=video 57104 RTP/AVP 96
c=IN IP4 127.0.0.1
b=AS:128
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;
sprop-parameter-sets=Z0LAC9kBQfv/AC0ALBAAAAMAEAAAAwFI8UKkgA==,aMuPIA==
m=audio 57106 RTP/AVP 97
c=IN IP4 127.0.0.1
b=AS:8
a=rtpmap:97 MP4A-LATM/22050/1
a=fmtp:97 profile-level-id=40;cpresent=0;config=400027103fc0

Press [q] to stop, [?] for help
[h264 @ 0xdbfcc60] Missing reference picture
[h264 @ 0xdbfcc60] decode_slice_header error
[h264 @ 0xdbfd8a0] Missing reference picture
    Last message repeated 1 times
[h264 @ 0xdbff320] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0xdbff320] Missing reference picture
    Last message repeated 1 times
[h264 @ 0xdbff8a0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0xdbff8a0] reference picture missing during reorder
[h264 @ 0xdbff8a0] Missing reference picture
[h264 @ 0xdc024a0] mmco: unref short failure
    Last message repeated 1 times
circular_buffer: OVERRUN.0 size=   10559kB time=00:10:42.86 bitrate=
134.6kbits/s dup=0 drop=9594
circular_buffer: OVERRUN.0 size=   10790kB time=00:10:58.20 bitrate=
134.3kbits/s dup=0 drop=9824

This command run in 10 minutes, then it display curcular_buffer: *OVERRUN*.
At that time, I use "top" command I see the below result:

Tasks: 388 total,   7 running, 380 sleeping,   1 stopped,   0 zombie
Cpu(s): 48.4%us,  0.9%sy,  0.8%ni, 49.6%id,  0.0%wa,  0.1%hi,  0.3%si,
0.0%st
Mem:   8167452k total,  6546144k used,  1621308k free,   272488k buffers
Swap:  2096472k total,      140k used,  2096332k free,  2675816k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
COMMAND

31455 transcod  25   0 2344m *2.0g* 3624 R 99.4 26.2   5:09.13 ffmpeg


-- 
Regards,
Tran Ly

Vega Corporation
98 Hoang Quoc Viet Str, Hanoi, Vietnam
Tel: 84 4 755 4190
Fax: 84 4 755 4190
Mobile: 84 91 487 1115
www.vega.com.vn; www.clip.vn; www.chacha.vn; www.ringring.vn


More information about the ffmpeg-user mailing list