
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (98)
-
Les images
15 mai 2013 -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
Sur d’autres sites (8279)
-
How can I can convert with ffmpeg using this settings ?
18 octobre 2020, par For FunHow can I convert with this settings ?
I want to convert using this settings example : ref=4 subme=9
When I try this settings it won't work all settings below go default




ffmpeg -i input.mp4 -c:a copy -c:v libx265 -x265-params "cabac=1:ref=4:deblock=1:1 :-1:analyse=0x3:0x113:me=umh:subme=9:psy=1:fade_compensate=0.00:psy_rd=1.00:0.00:mixed_ref=1:me_range=32:chroma_me=1:trellis=2: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=9:b_pyramid=2:b_adapt=2:b_bias=0:direct=1:weightb=1:open_gop=0:weightp=2:keyint=240:keyint_min=23:scenecut=40:intra_refresh=:rc=crf:mbtree=0:crf=16.0000:qcomp=0.72:qpmin=0:qpmax=81:qpstep=4:ip_ratio=1.40:pb_ratio=1.30:aq=1:0.85" -x265-params profile=main10 -pix_fmt yuv420p10le output.mp4




Update:
Full output:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) 
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --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-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2020-10-18T17:47:30.000000Z
 com.android.version: 10
 com.android.capture.fps: 60.000000
 Duration: 00:00:01.92, start: 0.000000, bitrate: 19228 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 15658 kb/s, SAR 1:1 DAR 16:9, 59.88 fps, 59.94 tbr, 90k tbn, 90k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
 Metadata:
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : SoundHandle
Stream mapping:
 Stream #0:0 -> #0:0 (hevc (native) -> hevc (libx265))
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx265 @ 0x30000c4930] Unknown option: profile.
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Linux][GCC 9.3.0][32 bit][noasm] 10bit
x265 [info]: using cpu capabilities: none!
x265 [info]: Main 10 profile, Level-4.1 (Main tier)
x265 [warning]: No thread pool allocated, --wpp disabled
x265 [warning]: No thread pool allocated, --lookahead-slices disabled
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 3 / none
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Output #0, mp4, to 'output.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 com.android.capture.fps: 60.000000
 com.android.version: 10
 encoder : Lavf58.29.100
 Stream #0:0(eng): Video: hevc (libx265) (hev1 / 0x31766568), yuv420p10le, 1080x1920 [SAR 1:1 DAR 9:16], q=2-31, 59.94 fps, 60k tbn, 59.94 tbc (default)
 Metadata:
 encoder : Lavc58.54.100 libx265
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : VideoHandle
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 displaymatrix: rotation of -0.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
 Metadata:
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : SoundHandle
frame= 18 fps=0.0 q=0.0 size= 0kB time=00:00:00.frame= 28 fps=3.6 q=0.0 size= 0kB time=00:00:00.frame= 31 fps=2.6 q=-0.0 size= 0kB time=00:00:00frame= 33 fps=2.6 q=-0.0 size= 0kB time=00:00:00frame= 34 fps=2.3 q=-0.0 size= 0kB time=00:00:00frame= 37 fps=2.2 q=-0.0 size= 0kB time=00:00:00frame= 39 fps=2.1 q=-0.0 size= 0kB time=00:00:00frame= 42 fps=2.0 q=-0.0 size= 0kB time=00:00:00frame= 44 fps=1.9 q=-0.0 size= 0kB time=00:00:00frame= 47 fps=1.9 q=-0.0 size= 0kB time=00:00:00frame= 49 fps=1.8 q=-0.0 size= 0kB time=00:00:00frame= 52 fps=1.8 q=-0.0 size= 0kB time=00:00:00frame= 54 fps=1.7 q=-0.0 size= 0kB time=00:00:00frame= 57 fps=1.7 q=-0.0 size= 0kB time=00:00:01frame= 59 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 62 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 64 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 67 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 69 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 72 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 74 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 77 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 78 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 81 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 83 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 86 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 88 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 91 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 93 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 96 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 97 fps=1.2 q=-0.0 Lsize= 135kB time=00:00:01.89 bitrate= 586.0kbits/s speed=0.0234x
video:85kB audio:45kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 4.650742%
x265 [info]: frame I: 1, Avg QP:31.00 kb/s: 6091.83
x265 [info]: frame P: 20, Avg QP:31.26 kb/s: 1253.18
x265 [info]: frame B: 76, Avg QP:35.37 kb/s: 134.14
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 4.8% 0.0% 0.0% 19.0% 76.2%encoded 97 frames in 80.86s (1.20 fps), 426.29 kb/s, Avg QP:34.48



-
How can I set qcomp 0.72 and crf 16 ? When I try I get qcomp 0.6 crf 28 ?
19 octobre 2020, par For FunHow can I convert with this settings ?
I want to convert using this settings example : ref=4 subme=9 -crf 16 -qcomp 0.72
But When I try this settings it won't work all settings below go default I get crf 28 qcomp 0.6 ?




ffmpeg -i input.mp4 -c:a copy -c:v libx265 -x265-params "cabac=1:ref=4:deblock=1:1 :-1:analyse=0x3:0x113:me=umh:subme=9:psy=1:fade_compensate=0.00:psy_rd=1.00:0.00:mixed_ref=1:me_range=32:chroma_me=1:trellis=2: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=9:b_pyramid=2:b_adapt=2:b_bias=0:direct=1:weightb=1:open_gop=0:weightp=2:keyint=240:keyint_min=23:scenecut=40:intra_refresh=:rc=crf:mbtree=0:crf=16.0000:qcomp=0.72:qpmin=0:qpmax=81:qpstep=4:ip_ratio=1.40:pb_ratio=1.30:aq=1:0.85" -x265-params profile=main10 -pix_fmt yuv420p10le output.mp4




Update:
Full output:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) 
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --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-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2020-10-18T17:47:30.000000Z
 com.android.version: 10
 com.android.capture.fps: 60.000000
 Duration: 00:00:01.92, start: 0.000000, bitrate: 19228 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 15658 kb/s, SAR 1:1 DAR 16:9, 59.88 fps, 59.94 tbr, 90k tbn, 90k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
 Metadata:
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : SoundHandle
Stream mapping:
 Stream #0:0 -> #0:0 (hevc (native) -> hevc (libx265))
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx265 @ 0x30000c4930] Unknown option: profile.
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Linux][GCC 9.3.0][32 bit][noasm] 10bit
x265 [info]: using cpu capabilities: none!
x265 [info]: Main 10 profile, Level-4.1 (Main tier)
x265 [warning]: No thread pool allocated, --wpp disabled
x265 [warning]: No thread pool allocated, --lookahead-slices disabled
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 3 / none
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Output #0, mp4, to 'output.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 com.android.capture.fps: 60.000000
 com.android.version: 10
 encoder : Lavf58.29.100
 Stream #0:0(eng): Video: hevc (libx265) (hev1 / 0x31766568), yuv420p10le, 1080x1920 [SAR 1:1 DAR 9:16], q=2-31, 59.94 fps, 60k tbn, 59.94 tbc (default)
 Metadata:
 encoder : Lavc58.54.100 libx265
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : VideoHandle
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 displaymatrix: rotation of -0.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
 Metadata:
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : SoundHandle
frame= 18 fps=0.0 q=0.0 size= 0kB time=00:00:00.frame= 28 fps=3.6 q=0.0 size= 0kB time=00:00:00.frame= 31 fps=2.6 q=-0.0 size= 0kB time=00:00:00frame= 33 fps=2.6 q=-0.0 size= 0kB time=00:00:00frame= 34 fps=2.3 q=-0.0 size= 0kB time=00:00:00frame= 37 fps=2.2 q=-0.0 size= 0kB time=00:00:00frame= 39 fps=2.1 q=-0.0 size= 0kB time=00:00:00frame= 42 fps=2.0 q=-0.0 size= 0kB time=00:00:00frame= 44 fps=1.9 q=-0.0 size= 0kB time=00:00:00frame= 47 fps=1.9 q=-0.0 size= 0kB time=00:00:00frame= 49 fps=1.8 q=-0.0 size= 0kB time=00:00:00frame= 52 fps=1.8 q=-0.0 size= 0kB time=00:00:00frame= 54 fps=1.7 q=-0.0 size= 0kB time=00:00:00frame= 57 fps=1.7 q=-0.0 size= 0kB time=00:00:01frame= 59 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 62 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 64 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 67 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 69 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 72 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 74 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 77 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 78 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 81 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 83 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 86 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 88 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 91 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 93 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 96 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 97 fps=1.2 q=-0.0 Lsize= 135kB time=00:00:01.89 bitrate= 586.0kbits/s speed=0.0234x
video:85kB audio:45kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 4.650742%
x265 [info]: frame I: 1, Avg QP:31.00 kb/s: 6091.83
x265 [info]: frame P: 20, Avg QP:31.26 kb/s: 1253.18
x265 [info]: frame B: 76, Avg QP:35.37 kb/s: 134.14
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 4.8% 0.0% 0.0% 19.0% 76.2%encoded 97 frames in 80.86s (1.20 fps), 426.29 kb/s, Avg QP:34.48



-
FFmpeg uses all memory and crashes when inputs used multiple times in filter_complex
28 octobre 2020, par ed22If I define some dummy filter_complex say :


[3:v]split=2[3_1][3_2]
[3_1]format=yuv420p,scale='640:360',setsar='1/1'[1]
[3_2]format=yuv420p,scale='640:360',setsar='1/1'[2]
[4:v]split=2[4_1][4_2]
[4_1]format=yuv420p,scale='640:360',setsar='1/1'[3]
[4_2]format=yuv420p,scale='640:360',setsar='1/1'[4]
[1][2][3][4]concat=n=4:v=1:a=0[video_out]



FFmpeg uses all the memory and crashes. What might be the reason ?
The same happens for :


[3:v]format=yuv420p,scale='640:360',setsar='1/1'[1]
[3:v]format=yuv420p,scale='640:360',setsar='1/1'[2]
[4:v]format=yuv420p,scale='640:360',setsar='1/1'[3]
[4:v]format=yuv420p,scale='640:360',setsar='1/1'[4]
[1][2][3][4]concat=n=4:v=1:a=0[video_out]



I know the examples are silly but I am here asking about why this uses all my RAM ? (and how to work around this)


This works great by the way (inputs used once) :


[3:v]format=yuv420p,scale='640:360',setsar='1/1'[1]
[4:v]format=yuv420p,scale='640:360',setsar='1/1'[2]
[1][2]concat=n=2:v=1:a=0[video_out]



UPDATE :
The full log. While it runs it reaches 2GB memory usage in about 5s and continues to grow.


ffmpeg.exe -y -f lavfi -i nullsrc=s=640x360 -i 1000211803.mp4 -i 220710.mp4 -i 223157.mp4 -i 232365.mp4 -i 1000000046.mp4 -i 1000238585.mp4 -filter_complex_script "c:\Users\wojtek\Desktop\Development\video_grid_ffmpeg_nodejs\filter_complex_param.txt" -vsync 2 -map "[video_out]" out.mp4
ffmpeg version n4.3.1-20-g8a2acdc6da Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3-win32 (GCC) 20200320
 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-version3 --disable-debug --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --disable-avisynth --enable-libdav1d --disable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libtwolame --disable-libvidstab --disable-libx264 --disable-libx265 --disable-libxavs2 --disable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
 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, lavfi, from 'nullsrc=s=640x360':
 Duration: N/A, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '1000211803.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.33.100
 Duration: 00:55:35.33, start: 0.000000, bitrate: 136 kb/s
 Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 376x210 [SAR 1:1 DAR 188:105], 134 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '220710.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.33.100
 Duration: 00:57:21.43, start: 0.000000, bitrate: 102 kb/s
 Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 376x210 [SAR 1:1 DAR 188:105], 99 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '223157.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.33.100
 Duration: 01:01:11.27, start: 0.000000, bitrate: 156 kb/s
 Stream #3:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 376x210 [SAR 1:1 DAR 188:105], 153 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Input #4, mov,mp4,m4a,3gp,3g2,mj2, from '232365.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.33.100
 Duration: 01:01:07.20, start: 0.000000, bitrate: 127 kb/s
 Stream #4:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 376x210 [SAR 1:1 DAR 188:105], 124 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Input #5, mov,mp4,m4a,3gp,3g2,mj2, from '1000000046.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.33.100
 Duration: 00:52:17.23, start: 0.000000, bitrate: 190 kb/s
 Stream #5:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 376x210 [SAR 1:1 DAR 188:105], 188 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Input #6, mov,mp4,m4a,3gp,3g2,mj2, from '1000238585.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.33.100
 Duration: 00:50:58.77, start: 0.000000, bitrate: 106 kb/s
 Stream #6:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 376x210 [SAR 1:1 DAR 188:105], 103 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Stream mapping:
 Stream #3:0 (h264) -> format
 Stream #3:0 (h264) -> format
 Stream #4:0 (h264) -> format
 Stream #4:0 (h264) -> format
 concat -> Stream #0:0 (mpeg4)
Press [q] to stop, [?] for help
Output #0, mp4, to 'out.mp4':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 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
frame= 6130 fps=610 q=20.6 Lsize= 5334kB time=00:03:24.30 bitrate= 213.9kbits/s speed=20.3x
video:5307kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.507003%



The above has been produced using this filter_complex parameter value :


[3:v]format=yuv420p,scale='-1:360',crop='640:in_h',setsar='1/1'[i2_640_360]
[3:v]format=yuv420p,scale='-1:360',crop='640:in_h',setsar='1/1'[i2_320_360]
[4:v]format=yuv420p,scale='-1:360',crop='640:in_h',setsar='1/1'[i3_320_360]
[4:v]format=yuv420p,scale='-1:360',crop='640:in_h',setsar='1/1'[i3_640_360]
[i2_640_360][i2_320_360][i3_320_360][i3_640_360]concat=n=4:v=1:a=0[video_out]



I did not wait for it to give the out of memory error.