centos 系统下 安装的 ffmpeg-4.3.1- ffmpeg -i /www/wwwroot/oa/uploads/file/20201028/d7f7c44d845dc3fce6755833f7d48844.mp4 -i 1.mp4 -filter_complex "[1:v]scale=w=300:h=300:force_original_aspect_ratio=decrease[ckout];[0:v][ckout]overlay=x=main_w-overlay_w:y=main_h-overlay_h[out]" -map "[out]" -map 0:a -map 1:a -r:v 30 -movflags faststart /www/wwwroot/oa/uploads/file/20201028/out.mp4
复制代码- ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
- built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
- configuration: --enable-shared --prefix=/usr/local/ffmpeg --disable-yasm
- libavutil 56. 51.100 / 56. 51.100
- libavcodec 58. 91.100 / 58. 91.100
- libavformat 58. 45.100 / 58. 45.100
- libavdevice 58. 10.100 / 58. 10.100
- libavfilter 7. 85.100 / 7. 85.100
- libswscale 5. 7.100 / 5. 7.100
- libswresample 3. 7.100 / 3. 7.100
- Input #0, matroska,webm, from '/www/wwwroot/oa/uploads/file/20201028/d7f7c44d845dc3fce6755833f7d48844.mp4':
- Metadata:
- encoder : Chrome
- Duration: N/A, start: 0.000000, bitrate: N/A
- Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
- Stream #0:1(eng): Video: h264 (Constrained Baseline), yuv420p(progressive), 392x720, SAR 1:1 DAR 49:90, 16.67 fps, 16.67 tbr, 1k tbn, 2k tbc (default)
- Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
- Metadata:
- major_brand : mp42
- minor_version : 0
- compatible_brands: mp42isom
- creation_time : 2020-08-25T03:03:30.000000Z
- copyright :
- copyright-eng :
- Duration: 00:00:59.30, start: 0.000000, bitrate: 1035 kb/s
- Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
- Metadata:
- creation_time : 2020-08-25T03:03:30.000000Z
- Stream #1:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 544x960, 837 kb/s, 29.86 fps, 29.83 tbr, 90k tbn, 60 tbc (default)
- Metadata:
- creation_time : 2020-08-25T03:03:31.000000Z
- encoder : JVT/AVC Coding
- Stream mapping:
- Stream #0:1 (h264) -> overlay:main (graph 0)
- Stream #1:1 (h264) -> scale (graph 0)
- overlay (graph 0) -> Stream #0:0 (mpeg4)
- Stream #0:0 -> #0:1 (opus (native) -> aac (native))
- Stream #1:0 -> #0:2 (aac (native) -> aac (native))
- Press [q] to stop, [?] for help
- Output #0, mp4, to '/www/wwwroot/oa/uploads/file/20201028/out.mp4':
- Metadata:
- encoder : Lavf58.45.100
- Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 392x720 [SAR 1:1 DAR 49:90], q=2-31, 200 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
- Metadata:
- encoder : Lavc58.91.100 mpeg4
- Side data:
- cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
- Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)
- Metadata:
- encoder : Lavc58.91.100 aac
- Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
- Metadata:
- creation_time : 2020-08-25T03:03:30.000000Z
- encoder : Lavc58.91.100 aac
- frame= 49 fps=0.0 q=24.8 size= 0kB time=00:00:01.96 bitrate= 0.2kbits/frame= 110 fps=110 q=31.0 size= 256kB time=00:00:03.96 bitrate= 528.6kbits/frame= 167 fps=111 q=31.0 size= 256kB time=00:00:05.97 bitrate= 351.1kbits/frame= 230 fps=114 q=31.0 size= 512kB time=00:00:07.97 bitrate= 525.7kbits/frame= 288 fps=114 q=31.0 size= 512kB time=00:00:09.98 bitrate= 420.1kbits/frame= 346 fps=115 q=31.0 size= 768kB time=00:00:11.98 bitrate= 524.8kbits/frame= 407 fps=115 q=31.0 size= 768kB time=00:00:13.99 bitrate= 449.6kbits/frame= 465 fps=115 q=31.0 size= 1024kB time=00:00:16.00 bitrate= 524.3kbits/frame= 524 fps=116 q=31.0 size= 1280kB time=00:00:18.00 bitrate= 582.4kbits/frame= 589 fps=117 q=24.8 size= 1280kB time=00:00:20.01 bitrate= 524.0kbits/frame= 648 fps=117 q=31.0 size= 1536kB time=00:00:22.01 bitrate= 571.6kbits/frame= 711 fps=118 q=31.0 size= 1536kB time=00:00:24.02 bitrate= 523.8kbits/frame= 753 fps=115 q=31.0 size= 1792kB time=00:00:26.02 bitrate= 564.1kbits/frame= 787 fps=111 q=31.0 size= 1792kB time=00:00:27.02 bitrate= 543.1kbits/frame= 848 fps=112 q=31.0 size= 1792kB time=00:00:29.03 bitrate= 505.6kbits/frame= 906 fps=112 q=31.0 size= 2048kB time=00:00:31.04 bitrate= 540.5kbits/frame= 968 fps=113 q=31.0 size= 2304kB time=00:00:33.04 bitrate= 571.2kbits/frame= 1032 fps=114 q=31.0 size= 2304kB time=00:00:35.05 bitrate= 538.5kbits/frame= 1097 fps=115 q=31.0 size= 2560kB time=00:00:37.05 bitrate= 566.0kbits/frame= 1159 fps=115 q=31.0 size= 2560kB time=00:00:39.06 bitrate= 536.9kbits/frame= 1200 fps=113 q=31.0 size= 2560kB time=00:00:40.06 bitrate= 523.5kbits/frame= 1237 fps=111 q=24.8 size= 2816kB time=00:00:42.06 bitrate= 548.4kbits/frame= 1279 fps=110 q=31.0 size= 2816kB time=00:00:43.07 bitrate= 535.6kbits/frame= 1325 fps=109 q=31.0 size= 3072kB time=00:00:45.07 bitrate= 558.3kbits/frame= 1382 fps=109 q=31.0 size= 3072kB time=00:00:46.22 bitrate= 544.4kbits/frame= 1444 fps=110 q=31.0 size= 3328kB time=00:00:48.11 bitrate= 566.6kbits/frame= 1501 fps=110 q=24.8 size= 3328kB time=00:00:50.10 bitrate= 544.1kbits/frame= 1564 fps=111 q=31.0 size= 3584kB time=00:00:52.15 bitrate= 563.0kbits/frame= 1624 fps=111 q=31.0 size= 3584kB time=00:00:54.13 bitrate= 542.4kbits/frame= 1685 fps=111 q=31.0 size= 3840kB time=00:00:56.16 bitrate= 560.1kbits/frame= 1745 fps=112 q=31.0 size= 3840kB time=00:00:58.49 bitrate= 537.8kbits/[mp4 @ 0x23aab00] Starting second pass: moving the moov atom to the beginning of the file
- frame= 1814 fps=113 q=31.0 Lsize= 4208kB time=00:01:00.49 bitrate= 569.9kbits/s dup=311 drop=2 speed=3.77x
- video:2707kB audio:1440kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.466813%
- [aac @ 0x247cf80] Qavg: 122.322
- [aac @ 0x24af840] Qavg: 474.191
复制代码 |