[FFmpeg-user] h264+mpegts encode problem, frame size too big
sheng gui
guisheng315 at gmail.com
Thu Dec 8 03:33:11 CET 2011
command line
ffmpeg -i 00.ts -f mpegts -s 720x576 -acodec mp2 -ac 2 -ar 48000 -ab 128000
-vcodec libx264 -coder 1 -g 25 -bf 2 -partitions
+parti8x8+partp8x8+partb8x8 -me_method umh -subq 0 -me_range 16 -r 25.0
-threads 0 -flags +loop+ildct -top 0 -rc_strategy 2 -b_strategy 0
-directpred 1 -chromaoffset -1 -sc_threshold 0 -flags2
+fastpskip-dct8x8+wpred+aud -cmp chroma -deblockalpha -1 -deblockbeta -1
-qdiff 8 -qmax 69 -qmin 2 -qcomp 0.67 -i_qfactor 0.6 -b_qfactor 1.5 -refs 3
-minrate 2000000 -maxrate 2000000 -bufsize 2000000 -vsync 1 -async 1 -vb
2000000 -level 30 -rc_lookahead 250 -y 11.ts
output
Input #0, mpegts, from '00.ts':
Duration: 00:18:26.55, start: 26213.841756, bitrate: 2372 kb/s
Program 4
Stream #0.0[0x120]: Video: h264 (Main), yuvj420p, 720x576 [PAR 16:15
DAR 4:3], 28.40 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x131]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 0x9f1fca0] w:720 h:576 pixfmt:yuvj420p
[scale @ 0x9f3ffc0] w:720 h:576 fmt:yuvj420p colorspace:BT709 -> w:720
h:576 fmt:yuvj420p colorspace:BT709 flags:0x4
[libx264 @ 0x9f1e3e0] using SAR=16/15
[libx264 @ 0x9f1e3e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x9f1e3e0] profile Main, level 3.0
[mpegts @ 0x9f1d260] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
every 40 pkts
Output #0, mpegts, to '11.ts':
Stream #0.0: Video: libx264, yuvj420p, 720x576 [PAR 16:15 DAR 4:3],
q=2-69, 2000 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 91 fps= 33 q=13667017.8 Lsize= 1055kB time=1.73
bitrate=5001.1kbits/s date=Thu Dec 8 10:31:09 2011 dup=50 drop=0
video:929kB audio:27kB global headers:0kB muxing overhead 10.293651%
frame I:4 Avg QP: 6.91 size: 46879
[libx264 @ 0x9f1e3e0] frame P:29 Avg QP:11.05 size: 12865
[libx264 @ 0x9f1e3e0] frame B:58 Avg QP:14.22 size: 6744
[libx264 @ 0x9f1e3e0] consecutive B-frames: 4.4% 0.0% 95.6%
[libx264 @ 0x9f1e3e0] mb I I16..4: 60.1% 0.0% 39.9%
[libx264 @ 0x9f1e3e0] mb P I16..4: 12.4% 0.0% 0.0% P16..4: 12.3% 8.1%
6.5% 0.0% 0.0% skip:60.6%
[libx264 @ 0x9f1e3e0] mb B I16..4: 0.6% 0.0% 0.0% B16..8: 12.0% 6.2%
1.1% direct: 5.7% skip:74.4% L0:44.4% L1:42.9% BI:12.8%
[libx264 @ 0x9f1e3e0] field mbs: intra: 100.0% inter:100.0% skip:100.0%
[libx264 @ 0x9f1e3e0] coded y,uvDC,uvAC intra: 52.1% 67.8% 45.8% inter:
9.3% 13.4% 2.0%
[libx264 @ 0x9f1e3e0] i16 v,h,dc,p: 53% 24% 16% 8%
[libx264 @ 0x9f1e3e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 36% 17% 5% 6%
3% 9% 2% 10%
[libx264 @ 0x9f1e3e0] i8c dc,h,v,p: 49% 27% 16% 8%
[libx264 @ 0x9f1e3e0] ref P L0: 50.5% 33.8% 7.4% 5.2% 1.6% 1.5%
[libx264 @ 0x9f1e3e0] ref B L0: 60.1% 34.1% 3.3% 2.5%
[libx264 @ 0x9f1e3e0] ref B L1: 63.2% 36.8%
[libx264 @ 0x9f1e3e0] kb/s:2091.83
2011/12/8 Carl Eugen Hoyos <cehoyos at ag.or.at>
> sheng gui <guisheng315 <at> gmail.com> writes:
>
> > But there are some encode frame size bigger than 65535, which is the
> > decoder's max PES buffer size. and the decoder can not decode the frame.
> >
> > As some I frame's packet->size > 65536, and frame missed and video
> > freeze.
> >
> > Is there any parameters to make sure the frame size smaller than 65535?
>
> Command line and complete, uncut console output missing.
>
> Can you also reproduce the problem with an internal encoder (like mpeg4)?
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list