Created
August 24, 2019 20:27
-
-
Save Classsic/49b00d4e68dc54a342f54a6cffb0823f to your computer and use it in GitHub Desktop.
FFMPEG GRID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -use_wallclock_as_timestamps 1 -copyts -fflags +genpts -i "$1"\ | |
-use_wallclock_as_timestamps 1 -copyts -fflags +genpts -i "$2" \ | |
-use_wallclock_as_timestamps 1 -copyts -fflags +genpts -i "$3" \ | |
-use_wallclock_as_timestamps 1 -copyts -fflags +genpts -i "$4"\ | |
-filter_complex "[0:v][1:v][2:v][3:v]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[out]"\ | |
-map "[out]" -vcodec libx264 -preset ultrafast \ | |
-s 1920x1080 -copyts -b:v 1024k -maxrate 1024k -bufsize 2048k -f flv "$5" | |
LOG: | |
ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers | |
built with gcc 8 (Debian 8.3.0-6) | |
configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared | |
libavutil 56. 22.100 / 56. 22.100 | |
libavcodec 58. 35.100 / 58. 35.100 | |
libavformat 58. 20.100 / 58. 20.100 | |
libavdevice 58. 5.100 / 58. 5.100 | |
libavfilter 7. 40.101 / 7. 40.101 | |
libavresample 4. 0. 0 / 4. 0. 0 | |
libswscale 5. 3.100 / 5. 3.100 | |
libswresample 3. 3.100 / 3. 3.100 | |
libpostproc 55. 3.100 / 55. 3.100 | |
[h264 @ 0x564e9776ea40] co located POCs unavailable | |
Input #0, flv, from 'rtmp://xxx.xxx.xxx.xxx/live/u0nwuk51xnk00000': | |
Metadata: | |
title : Media Server | |
encoder : Lavf58.30.100 | |
server : SRS/2.0.247(ZhouGuowen) | |
srs_primary : SRS/2.0release | |
srs_authors : winlin,wenjie.zhao | |
server_version : 2.0.247 | |
Duration: N/A, start: 1566678248.063000, bitrate: 64 kb/s | |
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 2223:2224 DAR 247:139], 64 kb/s, 10 fps, 10 tbr, 1k tbn, 20 tbc | |
[h264 @ 0x564e9779a980] co located POCs unavailable | |
Input #1, flv, from 'rtmp://xxx.xxx.xxx.xxx/live/10hotn6oo3ds00000': | |
Metadata: | |
title : Media Server | |
encoder : Lavf58.30.100 | |
server : SRS/2.0.247(ZhouGuowen) | |
srs_primary : SRS/2.0release | |
srs_authors : winlin,wenjie.zhao | |
server_version : 2.0.247 | |
Duration: N/A, start: 1566678257.468000, bitrate: 64 kb/s | |
Stream #1:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 2223:2224 DAR 247:139], 64 kb/s, 10 fps, 10 tbr, 1k tbn, 20 tbc | |
[h264 @ 0x564e977945c0] co located POCs unavailable | |
Input #2, flv, from 'rtmp://xxx.xxx.xxx.xxx/live/1writw6rsitc00000': | |
Metadata: | |
title : Media Server | |
encoder : Lavf58.30.100 | |
server : SRS/2.0.247(ZhouGuowen) | |
srs_primary : SRS/2.0release | |
srs_authors : winlin,wenjie.zhao | |
server_version : 2.0.247 | |
Duration: N/A, start: 1566678269.826000, bitrate: 64 kb/s | |
Stream #2:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 2223:2224 DAR 247:139], 64 kb/s, 10 fps, 10 tbr, 1k tbn, 20 tbc | |
[h264 @ 0x564e97eb7d80] co located POCs unavailable | |
Input #3, flv, from 'rtmp://rtmpdemo.monitor-center.com/live/8kseup2altw00000': | |
Metadata: | |
title : Media Server | |
encoder : Lavf58.30.100 | |
server : SRS/2.0.247(ZhouGuowen) | |
srs_primary : SRS/2.0release | |
srs_authors : winlin,wenjie.zhao | |
server_version : 2.0.247 | |
Duration: N/A, start: 1566678282.523000, bitrate: 64 kb/s | |
Stream #3:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 2223:2224 DAR 247:139], 64 kb/s, 10 fps, 10 tbr, 1k tbn, 20 tbc | |
Stream mapping: | |
Stream #0:0 (h264) -> xstack:input0 | |
Stream #1:0 (h264) -> xstack:input1 | |
Stream #2:0 (h264) -> xstack:input2 | |
Stream #3:0 (h264) -> xstack:input3 | |
xstack -> Stream #0:0 (libx264) | |
Press [q] to stop, [?] for help | |
[h264 @ 0x564e97797b40] co located POCs unavailable | |
Last message repeated 2 times | |
[h264 @ 0x564e97808a80] co located POCs unavailable | |
Last message repeated 2 times | |
[h264 @ 0x564e98161b00] co located POCs unavailable | |
Last message repeated 1 times | |
[h264 @ 0x564e97799a00] co located POCs unavailable | |
Last message repeated 2 times | |
[libx264 @ 0x564e978575c0] using SAR=2223/2224 | |
[libx264 @ 0x564e978575c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 | |
[libx264 @ 0x564e978575c0] profile Constrained Baseline, level 4.0 | |
[libx264 @ 0x564e978575c0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=10 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=1024 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1024 vbv_bufsize=2048 nal_hrd=none filler=0 ip_ratio=1.40 aq=0 | |
Output #0, flv, to 'rtmp://xxx.xxx.xxx.xxx/live/gridd': | |
Metadata: | |
title : Media Server | |
server_version : 2.0.247 | |
server : SRS/2.0.247(ZhouGuowen) | |
srs_primary : SRS/2.0release | |
srs_authors : winlin,wenjie.zhao | |
encoder : Lavf58.20.100 | |
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080 [SAR 2223:2224 DAR 247:139], q=-1--1, 1024 kb/s, 10 fps, 1k tbn, 10 tbc (default) | |
Metadata: | |
encoder : Lavc58.35.100 libx264 | |
Side data: | |
cpb: bitrate max/min/avg: 1024000/0/1024000 buffer size: 2048000 vbv_delay: -1 | |
[h264 @ 0x564e97808a80] co located POCs unavailable188:24:56.60 bitrate= 0.0kbits/s dup=0 drop=335 speed=3.43e+08x | |
Last message repeated 2 times | |
[h264 @ 0x564e97797b40] co located POCs unavailable188:25:00.60 bitrate= 0.0kbits/s dup=0 drop=738 speed=1.81e+08x | |
[flv @ 0x564e97799f40] Failed to update header with correct duration.te= 0.0kbits/s dup=0 drop=1314 speed=6.39e+07x | |
[flv @ 0x564e97799f40] Failed to update header with correct filesize. | |
frame= 277 fps= 11 q=25.0 Lsize= 3864kB time=435188:25:16.90 bitrate= 0.0kbits/s dup=0 drop=1315 speed=6.19e+07x | |
video:3858kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.151433% | |
[libx264 @ 0x564e978575c0] frame I:2 Avg QP:34.34 size:102615 | |
[libx264 @ 0x564e978575c0] frame P:275 Avg QP:25.16 size: 13618 | |
[libx264 @ 0x564e978575c0] mb I I16..4: 100.0% 0.0% 0.0% | |
[libx264 @ 0x564e978575c0] mb P I16..4: 1.5% 0.0% 0.0% P16..4: 25.7% 0.0% 0.0% 0.0% 0.0% skip:72.8% | |
[libx264 @ 0x564e978575c0] coded y,uvDC,uvAC intra: 31.5% 55.6% 11.6% inter: 6.3% 19.4% 0.8% | |
[libx264 @ 0x564e978575c0] i16 v,h,dc,p: 36% 27% 16% 21% | |
[libx264 @ 0x564e978575c0] i8c dc,h,v,p: 47% 24% 19% 10% | |
[libx264 @ 0x564e978575c0] kb/s:987.56 | |
Exiting normally, received signal 15. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment