[FFmpeg-user] Low FPS with MPEG-TS (H264) Encoding

Ly Tran Cong lytc at vega.com.vn
Wed Jan 18 02:46:45 CET 2012


I also have sync problem with low frame rate H264.
Here is my command.
ffmpeg -xerror -y -i udp://239.20.20.21:5501?reuse=1 -metadata title=HTV9
-an -c:v libx264 -r 15 -s 320x240 -b:v 128k -partitions +partp8x8+parti4x4
-qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 6
-refs 3 -g 16 -coder 0 -bframebias 0 -bf 0 -rc_lookahead 39 -rc_eq
blurCplx^(1-qComp) -sc_threshold 40 -me_range 12 -i_qfactor 1.40
-chromaoffset 0 -directpred 1 -b_strategy 1 -rc_init_occupancy 384000
-bufsize 384000 -maxrate 384000 -complexityblur 20.0 -qblur 0.5
-deblockalpha 0 -deblockbeta 0 -vlevel 12 -vsync 1 -copyts -flags
+global_header -f rtp rtp://127.0.0.1:40104 -c:a libfaac -ar 44100 -b:a 12k
-ac 1 -fflags +latm -rtpflags +latm -vn -async 44100 -copyts -f rtp rtp://
127.0.0.1:40106

Input #0, mpegts, from 'udp://239.20.20.21:5501?reuse=1':
  Duration: N/A, start: 20893.800867, bitrate: 128 kb/s
  Program 1
    Stream #0:0[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 720x576 [SAR 12:11 DAR 15:11], 55.65 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x102]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16, 128 kb/s
[buffer @ 0x18eea6a0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:12/11
sws_param:
[scale @ 0x18eeabc0] w:720 h:576 fmt:yuv420p -> w:320 h:240 fmt:yuv420p
flags:0x4
[libx264 @ 0x18e92c60] using SAR=45/44
[libx264 @ 0x18e92c60] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0x18e92c60] profile High, level 1.2
[libx264 @ 0x18e92c60] 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=0x3:0x11 me=hex subme=6 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=12 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=24 sliced_threads=0 nr=0
decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0
weightp=2 keyint=16 keyint_min=1 scenecut=40 intra_refresh=0
rc_lookahead=16 rc=abr mbtree=1 bitrate=128 ratetol=1.0 qcomp=0.60 qpmin=16
qpmax=51 qpstep=4 vbv_maxrate=384 vbv_bufsize=384 nal_hrd=none
ip_ratio=1.40 aq=1:1.00

When I play output in VLC, I only hear audio, video image is not change.
If I increase frame rate to 25, the output is good.
I use ffmpeg-0.9.1


More information about the ffmpeg-user mailing list