[FFmpeg-user] Creating CBR and Interlaced video

Kosta Vlotis kosta.brazzers at gmail.com
Fri Sep 28 00:50:54 CEST 2012


Hi,

i trying to create an interlaced video with CBR. my ffmpeg command is
the following:

ffmpeg -async 2 -i .\pup.mp4 -c:v libx264 -vprofile main -level 30
-refs 4 -b:v 2000k -minrate 2000k -maxrate 2000k -bufsize 2000k -s
480x480 -aspect 4:3 -vf "tinterlace=merge" -c:a ac3 -b:a 192k -ar 48k
test.ts


my understanding is that this command should produce an interlaced
video with a CFR frame rate. BUT the actual video produced still has a
variable frame rate and is progressive. also it look like the bit rate
is still variable..
can anyone help me out?




here is the ffmpeg output:

ffmpeg -async 2 -i .\pup.mp4 -
c:v libx264 -vprofile main -level 30 -refs 4 -b:v 2000k -minrate 2000k
-maxrate 2000k -bufsize 2000k -s 480x480 -aspect
4:3 -vf "tinterlace=merge" -c:a ac3 -b:a 192k -ar 48k test.ts
ffmpeg version N-44727-gbbe9fe4 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 24 2012 16:54:53 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable
-bzlib --enable-frei0r --enable-libass --enable-libcelt
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenjpeg --enable-librtmp --enable-libschroed
inger --enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 58.100 / 54. 58.100
  libavformat    54. 28.101 / 54. 28.101
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\pup.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.23.101
  Duration: 00:45:42.14, start: 0.000000, bitrate: 8461 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 7989 kb/s, 29.97 fps
, 29.97 tbr, 30k tbn, 59.94 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(und): Data: none (rtp  / 0x20707472)
    Metadata:
      creation_time   : 2012-09-26 05:52:10
      handler_name    : GPAC ISO Hint Handler
    Stream #0:3(und): Data: none (rtp  / 0x20707472)
    Metadata:
      creation_time   : 2012-09-26 05:52:58
      handler_name    : GPAC ISO Hint Handler
File 'test.ts' already exists. Overwrite ? [y/N] y
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000:max_soft_comp=0.000042.
[libx264 @ 000000000447d8a0] using SAR=4/3
[libx264 @ 000000000447d8a0] using cpu capabilities: MMX2 SSE2Fast
SSSE3 FastShuffle Cache64
[libx264 @ 000000000447d8a0] profile Main, level 3.0
[mpegts @ 0000000002039580] muxrate VBR, pcr every 2 pkts, sdt every
200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.ts':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.28.101
    Stream #0:0(und): Video: h264, yuv420p, 480x480 [SAR 4:3 DAR 4:3],
q=-1--1, 2000 kb/s, 90k tbn, 29.97 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, flt, 192 kb/s
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
frame=82173 fps= 27 q=-1.0 Lsize=  753673kB time=00:45:42.13
bitrate=2251.6kbits/s dup=41087 drop=0
video:622739kB audio:64269kB subtitle:0 global headers:0kB muxing
overhead 9.703636%
[libx264 @ 000000000447d8a0] frame I:604   Avg QP:13.54  size: 35351
[libx264 @ 000000000447d8a0] frame P:68877 Avg QP:15.97  size:  8814
[libx264 @ 000000000447d8a0] frame B:12692 Avg QP:19.74  size:   729
[libx264 @ 000000000447d8a0] consecutive B-frames: 75.9%  7.5%  8.6%  8.0%
[libx264 @ 000000000447d8a0] mb I  I16..4: 18.3%  0.0% 81.7%
[libx264 @ 000000000447d8a0] mb P  I16..4:  1.7%  0.0%  6.3%  P16..4:
26.8% 20.4% 13.3%  0.0%  0.0%    skip:31.6%
[libx264 @ 000000000447d8a0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
16.1%  2.4%  0.8%  direct: 2.0%  skip:78.7%  L0:45
.9% L1:34.4% BI:19.7%
[libx264 @ 000000000447d8a0] coded y,uvDC,uvAC intra: 92.4% 96.4%
85.9% inter: 30.5% 35.0% 12.1%
[libx264 @ 000000000447d8a0] i16 v,h,dc,p: 10%  4%  6% 80%
[libx264 @ 000000000447d8a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 11%
12%  6%  8% 12%  5%  9%  4%
[libx264 @ 000000000447d8a0] i8c dc,h,v,p: 45% 11% 29% 14%
[libx264 @ 000000000447d8a0] Weighted P-Frames: Y:2.2% UV:0.5%
[libx264 @ 000000000447d8a0] ref P L0: 66.8% 11.5%  9.6%  8.4%  3.6%  0.1%
[libx264 @ 000000000447d8a0] ref B L0: 89.0%  7.4%  3.7%
[libx264 @ 000000000447d8a0] ref B L1: 98.7%  1.3%
[libx264 @ 000000000447d8a0] kb/s:1860.60


More information about the ffmpeg-user mailing list