Mantenha o conteúdo da taxa de bits de áudio para o MP4 no ffmpeg

0

Nós usamos abaixo o comando ffmpeg para criar o mp4. Eu tenho 320k [Mediainfo mp4 bitrate de áudio show 249kbps] [1] bitrate de áudio bps para mp4. mas depois de transcodificar a taxa de bits de vídeo é cair para 249 kbps. Eu preciso de uma taxa de bits constante de 320kbps. você poderia por favor me ajudar a resolver o problema.

-c:v libx264 -s 1920x1080 -r 25 -aspect 16:9 -b:v 2000k -minrate 2000k -maxrate 2000k -bufsize 6000k -pix_fmt yuv420p -coder 1 -flags +loop -cmp chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method 4 -subq 6 -me_range 16 -g 15 -keyint_min 1 -bf 0 -intra -refs 4 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -direct-pred 1 -fast-pskip 1 -vprofile high -vlevel 4.1 -movflags +faststart -b:a 320k -write_tmcd 0 -map 0:0 -map 0:1 -af "pan=stereo|c0=c6|c1=c7" -vf "drawtext=fontfile=/Windows/Fonts/arial.ttf:fontsize=60:x=800:y=900:box=1:[email protected]:rate='25000/1001':fontcolor=white:timecode='09\:59\:55\:00"
ffmpeg version N-91398-gd08d4a8c73 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.3.0 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth libavutil      56. 18.102 / 56. 18.102 libavcodec     58. 20.104 / 58. 20.10 libavformat    58. 17.101 / 58. 17.101 libavdevice    58.  4.101 / 58.  4.101 libavfilter     7. 25.100 /  7. 25.100 libswscale      5.  2.100 /  5.  2.100 libswresample   3.  2.100 /  3.  2.100 libpostproc    55.  2.100 / 55.  2.100[mxf @ 0000000001f67840] Stream #0: not enough frames to estimate rate; consider increasing probesizeGuessed Channel Layout for Input Stream #0.1 : 7.1 Input #0, mxf, from 'D:\Test\HD_New\Inbox\Test_118.mxf':Metadata:
uid             : 682d6935-8748-11e8-bc3a-6cab31f179f2
generation_uid  : 682d6936-8748-11e8-9e20-6cab31f179f2
company_name    : Adobe Systems Incorporated
product_name    : Adobe Media Encoder
product_version : 12.0.0
application_platform: Mac OS X
product_uid     : 0c3919fe-46e8-11e5-a151-feff819cdc9f
modification_date: 2018-07-14T09:29:29.000000Z
material_package_umid: 0x060A2B340101010501010D1113000000A8600902138305BA6E516CAB31F179F2
timecode        : 09:59:55:00 Duration: 00:20:19.76, start: 0.000000, bitrate: 123289 kb/s
Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le(pc, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
  file_package_umid: 0x060A2B340101010501010D12130F8533A8600902138305BA70266CAB31F179F2
  file_package_name: Source Package
  track_name      : Track 1
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 7.1, s32 (24 bit), 9216 kb/s
Metadata:
  file_package_umid: 0x060A2B340101010501010D12130F8533A8600902138305BA70266CAB31F179F2
  file_package_name: Source Package
  track_name      : Track 2 File 'D:\test24.mp4' already exists. Overwrite ? [y/N] y Stream mapping:Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))Stream #0:1 -> #0:1 (pcm_s24le (native) -> aac (native) Press [q] to stop, [?] for help[Parsed_pan_0 @ 0000000003285b80] Pure channel mapping detected: 6 7[libx264 @ 0000000001f710c0] using SAR=1/1[libx264 @ 0000000001f710c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2[libx264 @ 0000000001f710c0] profile High, level 4.1[libx264 @ 0000000001f710c0] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options:cabac=1 ref=4 deblock=1:0:0 analyse=0x3:0x113 me=tesa subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=34 lookahead_threads=5 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=15 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=cbr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 vbv_maxrate=2000 vbv_bufsize=2000 nal_hrd=none filler=0 ip_ratio=1.41 aq=1:1.00 Output #0, mp4, to 'D:\test24.mp4':Metadata:
uid             : 682d6935-8748-11e8-bc3a-6cab31f179f2
generation_uid  : 682d6936-8748-11e8-9e20-6cab31f179f2
company_name    : Adobe Systems Incorporated
product_name    : Adobe Media Encoder
product_version : 12.0.0
application_platform: Mac OS X
product_uid     : 0c3919fe-46e8-11e5-a151-feff819cdc9f
modification_date: 2018-07-14T09:29:29.000000Z
material_package_umid: 0x060A2B340101010501010D1113000000A8600902138305BA6E516CAB31F179F2
timecode        : 09:59:55:00
encoder         : Lavf58.17.101
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=10-51, 2000 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
  file_package_umid: 0x060A2B340101010501010D12130F8533A8600902138305BA70266CAB31F179F2
  file_package_name: Source Package
  track_name      : Track 1
  encoder         : Lavc58.20.104 libx264
Side data:
  cpb: bitrate max/min/avg: 2000000/0/2000000 buffer size: 2000000 vbv_delay: -1
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp (24 bit), 320 kb/s
Metadata:
  file_package_umid: 0x060A2B340101010501010D12130F8533A8600902138305BA70266CAB31F179F2
  file_package_name: Source Package
  track_name      : Track 2
  encoder         : Lavc58.20.104 aac [mp4 @ 0000000002f665c0] Starting second pass: moving the moov atom to the beginning of the file frame=30494 fps= 34 q=-1.0 Lsize=  284642kB time=00:20:19.77 bitrate=1911.6kbits/s speed=1.36xvideo:246898kB audio:37063kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.239879%[libx264 @ 0000000001f710c0] frame I:2504  Avg QP:30.79  size: 39625[libx264 @ 0000000001f710c0] frame P:27990 Avg QP:33.99  size:  5488[libx264 @ 0000000001f710c0] mb I  I16..4: 32.0% 62.4%  5.6%[libx264 @ 0000000001f710c0] mb P  I16..4:  1.4%  1.5%  0.0%  P16..4: 21.1%  1.3%  1.8%  0.0%  0.0%    skip:72.9%[libx264 @ 0000000001f710c0] 8x8 transform intra:59.5% inter:92.0%[libx264 @ 0000000001f710c0] coded y,uvDC,uvAC intra: 28.8% 43.3% 8.9% inter: 3.2% 5.2% 0.0%[libx264 @ 0000000001f710c0] i16 v,h,dc,p: 37% 26%  8% 29%[libx264 @ 0000000001f710c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 14% 28%  6%  6%  6%  5%  6%  5%[libx264 @ 0000000001f710c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 14% 12%  7%  8% 10%  5%  7%  3%[libx264 @ 0000000001f710c0] i8c dc,h,v,p: 70% 13% 15%  3%[libx264 @ 0000000001f710c0] Weighted P-Frames: Y:1.5% UV:0.8[libx264 @ 0000000001f710c0] ref P L0: 66.1% 14.1% 13.5%  3.5%  2.9%  0.0%[libx264 @ 0000000001f710c0] kb/s:1658.18[aac @ 0000000001f999c0] Qavg: 65535.965
    
por Dinesh Gaikwad 30.07.2018 / 09:58

0 respostas