Advertisement
Guest User

FFMPEG libx265 param CRF value not working

a guest
Oct 19th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. ffmpeg -v 8 -loglevel verbose -hwaccel auto -i VTS_CON.mpg -map 0:0 -vcodec libx265 -preset medium -vf "fieldmatch=order=tff:combmatch=none, pullup, fps=24000/1001" -pix_fmt yuv420p -x265-params -crf=0 -map 0:1 -acodec aac -strict experimental -b:a 192k -ac 2 -ar 48000 -threads 8 -f mp4 VTS_01_FIN_crf.mp4 2> out.txt
  2.  
  3. Whatever i choose, 0, 18, 20, 25 ... it always encodes with 300 to 400 kbps
  4. --------------------------------------------------------------
  5.  
  6.  
  7. ffmpeg version N-76137-gb0bb1dc Copyright (c) 2000-2015 the FFmpeg developers
  8. built with gcc 5.2.0 (GCC)
  9. configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  10. libavutil 55. 4.100 / 55. 4.100
  11. libavcodec 57. 7.100 / 57. 7.100
  12. libavformat 57. 8.102 / 57. 8.102
  13. libavdevice 57. 0.100 / 57. 0.100
  14. libavfilter 6. 12.100 / 6. 12.100
  15. libswscale 4. 0.100 / 4. 0.100
  16. libswresample 2. 0.100 / 2. 0.100
  17. libpostproc 54. 0.100 / 54. 0.100
  18. Routing option strict to both codec and muxer layer
  19. [mpegts @ 00000000004a4f20] max_analyze_duration 5000000 reached at 5004667 microseconds st:0
  20. Input #0, mpegts, from 'VTS_CON.mpg':
  21. Duration: 02:03:10.98, start: 1.433367, bitrate: 3667 kb/s
  22. Program 1
  23. Metadata:
  24. service_name : Service01
  25. service_provider: FFmpeg
  26. Stream #0:0[0x100]: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv), 720x480 [SAR 32:27 DAR 16:9], max. 9008 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
  27. Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
  28. [Parsed_fps_2 @ 00000000004a3920] fps=24000/1001
  29. [graph 0 input from stream 0:0 @ 0000000002b1f900] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2
  30. [graph 1 input from stream 0:1 @ 0000000002b09680] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
  31. [libx265 @ 0000000002b1b060] Unknown option: -crf.
  32. x265 [info]: HEVC encoder version 1.8+1-5dcc9d3a928c400b
  33. x265 [info]: build info [Windows][GCC 5.2.0][64 bit] 8bit
  34. x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
  35. x265 [info]: Main profile, Level-3 (Main tier)
  36. x265 [info]: Thread pool created using 8 threads
  37. x265 [info]: frame threads / pool features : 8 / wpp(8 rows)
  38. x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
  39. x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
  40. x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2
  41. x265 [info]: Keyframe min / max / scenecut : 23 / 250 / 40
  42. x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
  43. x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
  44. x265 [info]: References / ref-limit cu / depth : 3 / 0 / 0
  45. x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
  46. x265 [info]: Rate Control / qCompress : CRF-28.0 / 0.60
  47. x265 [info]: tools: rd=3 psy-rd=0.30 signhide tmvp strong-intra-smoothing
  48. x265 [info]: tools: deblock sao
  49. Output #0, mp4, to 'VTS_01_FIN_crf.mp4':
  50. Metadata:
  51. encoder : Lavf57.8.102
  52. Stream #0:0: Video: hevc (libx265), 1 reference frame ([35][0][0][0] / 0x0023), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 23.98 fps, 24k tbn, 23.98 tbc
  53. Metadata:
  54. encoder : Lavc57.7.100 libx265
  55. Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 192 kb/s
  56. Metadata:
  57. encoder : Lavc57.7.100 aac
  58. Stream mapping:
  59. Stream #0:0 -> #0:0 (mpeg2video (native) -> hevc (libx265))
  60. Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
  61. Press [q] to stop, [?] for help
  62. Input stream #0:0 frame changed from size:720x480 fmt:yuv420p to size:720x480 fmt:nv12
  63. [Parsed_fps_2 @ 00000000004a3920] 0 frames in, 0 frames out; 0 frames dropped, 0 frames duplicated.
  64. [Parsed_fps_2 @ 0000000002b09bc0] fps=24000/1001
  65. [graph 0 input from stream 0:0 @ 0000000002b09c80] w:720 h:480 pixfmt:nv12 tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2
  66. [scaler for output stream 0:0 @ 0000000002b09e00] w:720 h:480 flags:'bicubic' interl:0
  67. [auto-inserted scaler 0 @ 0000000002b09f80] w:iw h:ih flags:'bicubic' interl:0
  68. [Parsed_fieldmatch_0 @ 0000000002b09a40] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_fieldmatch_0'
  69. [auto-inserted scaler 0 @ 0000000002b09f80] w:720 h:480 fmt:nv12 sar:32/27 -> w:720 h:480 fmt:yuv420p sar:32/27 flags:0x4
  70. [scaler for output stream 0:0 @ 0000000002b09e00] w:720 h:480 fmt:yuv420p sar:32/27 -> w:720 h:480 fmt:yuv420p sar:32/27 flags:0x4
  71. *** 1 dup!
  72. frame= 61 fps=0.0 q=-0.0 size= 17kB time=00:00:02.60 bitrate= 54.0kbits/s dup=1 drop=0
  73. frame= 109 fps=107 q=-0.0 size= 126kB time=00:00:04.58 bitrate= 225.1kbits/s dup=1 drop=0
  74. frame= 143 fps= 94 q=-0.0 size= 218kB time=00:00:06.10 bitrate= 292.4kbits/s dup=1 drop=0
  75. frame= 183 fps= 90 q=-0.0 size= 320kB time=00:00:07.65 bitrate= 341.9kbits/s dup=1 drop=0
  76. frame= 219 fps= 87 q=-0.0 size= 403kB time=00:00:09.17 bitrate= 360.1kbits/s dup=1 drop=0
  77. frame= 249 fps= 82 q=-0.0 size= 484kB time=00:00:10.51 bitrate= 377.4kbits/s dup=1 drop=0
  78. frame= 289 fps= 82 q=-0.0 size= 597kB time=00:00:12.05 bitrate= 405.9kbits/s dup=1 drop=0
  79. frame= 335 fps= 83 q=-0.0 size= 693kB time=00:00:13.97 bitrate= 406.2kbits/s dup=1 drop=0
  80. frame= 371 fps= 77 q=-0.0 Lsize= 870kB time=00:00:15.61 bitrate= 456.5kbits/s dup=1 drop=0
  81. video:502kB audio:355kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 1.466808%
  82. Input file #0 (VTS_CON.mpg):
  83. Input stream #0:0 (video): 374 packets read (6356585 bytes); 374 frames decoded;
  84. Input stream #0:1 (audio): 488 packets read (374784 bytes); 488 frames decoded (749568 samples);
  85. Total: 862 packets (6731369 bytes) demuxed
  86. Output file #0 (VTS_01_FIN_crf.mp4):
  87. Output stream #0:0 (video): 371 frames encoded; 371 packets muxed (514289 bytes);
  88. Output stream #0:1 (audio): 732 frames encoded (749568 samples); 733 packets muxed (364013 bytes);
  89. Total: 1104 packets (878302 bytes) muxed
  90. [Parsed_fps_2 @ 0000000002b09bc0] 186 frames in, 370 frames out; 1 frames dropped, 185 frames duplicated.
  91. x265 [info]: frame I: 2, Avg QP:26.54 kb/s: 2288.08
  92. x265 [info]: frame P: 104, Avg QP:28.73 kb/s: 793.85
  93. x265 [info]: frame B: 265, Avg QP:33.60 kb/s: 42.35
  94. x265 [info]: Weighted P-Frames: Y:65.4% UV:27.9%
  95. x265 [info]: consecutive B-frames: 4.7% 18.9% 23.6% 27.4% 25.5%
  96.  
  97. encoded 371 frames in 4.84s (76.67 fps), 265.12 kb/s, Avg QP:32.20
  98. [aac @ 0000000002b1bca0] Qavg: 13575.251
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement