本帖最后由 zy3287 于 2020-8-8 09:21 编辑
这个合并之后音频不是同步的么?我是希望音频同步,合成一问一答形势的视频。- D:\works\jiujiu\chebaihui\video>ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "[1:v]scale=w=176:h=144:force_original_aspect_ratio=decrease[ckout];[0:v][ckout]overlay=x=W-w-10:y=0[out]" -map "[out]" -map 0:a -map 1:a -movflags faststart b.mp4
- ffmpeg version git-2020-07-29-cbb6ba2 Copyright (c) 2000-2020 the FFmpeg developers
- built with gcc 10.2.1 (GCC) 20200726
- configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
- libavutil 56. 57.100 / 56. 57.100
- libavcodec 58. 97.102 / 58. 97.102
- libavformat 58. 49.100 / 58. 49.100
- libavdevice 58. 11.101 / 58. 11.101
- libavfilter 7. 87.100 / 7. 87.100
- libswscale 5. 8.100 / 5. 8.100
- libswresample 3. 8.100 / 3. 8.100
- libpostproc 55. 8.100 / 55. 8.100
- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
- Metadata:
- major_brand : mp42
- minor_version : 0
- compatible_brands: isommp42
- creation_time : 2018-12-01T10:35:41.000000Z
- location : +46.5584+125.1315/
- location-eng : +46.5584+125.1315/
- com.android.version: 8.1.0
- Duration: 00:00:05.36, start: 0.000000, bitrate: 20357 kb/s
- Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1920x1080, 19562 kb/s, SAR 1:1 DAR 16:9, 29.28 fps, 120 tbr, 90k tbn, 180k tbc (default)
- Metadata:
- creation_time : 2018-12-01T10:35:41.000000Z
- handler_name : VideoHandle
- Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
- Metadata:
- creation_time : 2018-12-01T10:35:41.000000Z
- handler_name : SoundHandle
- Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '2.mp4':
- Metadata:
- major_brand : mp42
- minor_version : 0
- compatible_brands: isommp42
- creation_time : 2018-12-12T11:11:39.000000Z
- com.android.version: 8.1.0
- Duration: 00:00:10.20, start: 0.000000, bitrate: 5894 kb/s
- Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
- Metadata:
- creation_time : 2018-12-12T11:11:39.000000Z
- handler_name : SoundHandle
- Stream #1:1(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 720x1280, 5820 kb/s, SAR 1:1 DAR 9:16, 28.04 fps, 90k tbr, 90k tbn, 180k tbc (default)
- Metadata:
- creation_time : 2018-12-12T11:11:39.000000Z
- handler_name : VideoHandle
- Stream mapping:
- Stream #0:0 (h264) -> overlay:main (graph 0)
- Stream #1:1 (h264) -> scale (graph 0)
- overlay (graph 0) -> Stream #0:0 (libx264)
- Stream #0:1 -> #0:1 (aac (native) -> aac (native))
- Stream #1:0 -> #0:2 (aac (native) -> aac (native))
- Press [q] to stop, [?] for help
- [libx264 @ 000001847df8a940] using SAR=1/1
- [libx264 @ 000001847df8a940] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
- [libx264 @ 000001847df8a940] profile High, level 5.1, 4:2:0, 8-bit
- [libx264 @ 000001847df8a940] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
- Output #0, mp4, to 'b.mp4':
- Metadata:
- major_brand : mp42
- minor_version : 0
- compatible_brands: isommp42
- com.android.version: 8.1.0
- location : +46.5584+125.1315/
- location-eng : +46.5584+125.1315/
- encoder : Lavf58.49.100
- Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 120 fps, 15360 tbn, 120 tbc (default)
- Metadata:
- encoder : Lavc58.97.102 libx264
- Side data:
- cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
- Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
- Metadata:
- creation_time : 2018-12-01T10:35:41.000000Z
- handler_name : SoundHandle
- encoder : Lavc58.97.102 aac
- Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
- Metadata:
- creation_time : 2018-12-12T11:11:39.000000Z
- handler_name : SoundHandle
- encoder : Lavc58.97.102 aac
- [mp4 @ 000001847de86980] Starting second pass: moving the moov atom to the beginning of the file speed=0.799x
- frame= 1224 fps= 93 q=-1.0 Lsize= 6217kB time=00:00:10.17 bitrate=5005.5kbits/s dup=927 drop=0 speed=0.773x
- video:6011kB audio:173kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.522517%
- [libx264 @ 000001847df8a940] frame I:6 Avg QP:21.53 size:126921
- [libx264 @ 000001847df8a940] frame P:309 Avg QP:24.54 size: 16504
- [libx264 @ 000001847df8a940] frame B:909 Avg QP:31.12 size: 323
- [libx264 @ 000001847df8a940] consecutive B-frames: 1.0% 0.0% 0.0% 99.0%
- [libx264 @ 000001847df8a940] mb I I16..4: 11.1% 68.4% 20.4%
- [libx264 @ 000001847df8a940] mb P I16..4: 2.0% 2.7% 0.4% P16..4: 29.1% 5.3% 2.4% 0.0% 0.0% skip:58.1%
- [libx264 @ 000001847df8a940] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.5% 0.0% 0.0% direct: 0.0% skip:97.5% L0:48.6% L1:50.4% BI: 1.0%
- [libx264 @ 000001847df8a940] 8x8 transform intra:57.1% inter:68.9%
- [libx264 @ 000001847df8a940] coded y,uvDC,uvAC intra: 46.6% 68.6% 18.8% inter: 3.1% 5.0% 0.0%
- [libx264 @ 000001847df8a940] i16 v,h,dc,p: 15% 20% 18% 48%
- [libx264 @ 000001847df8a940] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 18% 23% 5% 8% 7% 9% 6% 7%
- [libx264 @ 000001847df8a940] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 23% 16% 6% 9% 7% 10% 5% 7%
- [libx264 @ 000001847df8a940] i8c dc,h,v,p: 58% 20% 15% 6%
- [libx264 @ 000001847df8a940] Weighted P-Frames: Y:1.6% UV:0.6%
- [libx264 @ 000001847df8a940] ref P L0: 70.8% 15.1% 8.9% 5.1% 0.1%
- [libx264 @ 000001847df8a940] ref B L0: 96.5% 2.7% 0.8%
- [libx264 @ 000001847df8a940] ref B L1: 97.1% 2.9%
- [libx264 @ 000001847df8a940] kb/s:4827.49
- [aac @ 000001847db97740] Qavg: 897.975
- [aac @ 000001847db96e40] Qavg: 429.988
复制代码 |