
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (106)
-
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 -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (9309)
-
ffmpeg - splitting, overlaying and selecting frame range in multiple input/outputs with complex video filter producing empty output
11 octobre 2017, par Josep CarnerI am trying to use ffmpeg to apply multiple filters -single input, multiple outputs-. In concrete, I am splitting the output in two, then applying an overlaying patch to one of those streams, split again and select a time range. The command I am using is :
ffmpeg \
-i ./dataset_test/videos/jz_10_huron_barstow.mkv \
-an \
-sn \
-loglevel error \
-filter_complex \
"[0:v]split=2[L_in][F_in];
[L_in]
crop=226:307:21:74,scale=200x200,setdar=200:200,split=2\
[L_in_0][L_in_1];\
color=#808080:226x307,setpts=PTS-STARTPTS[L_PATCH];\
[F_in][L_PATCH]
overlay=21:74:shortest=1,scale=200x200,setdar=200:200,split=2\
[F_in_0][F_in_1];\
[F_in_0]select='between(t\,32\,212)',select='not(mod(n\,20))',setpts=(PTS-STARTPTS)/20[F_0];\
[F_in_1]select='between(t\,213\,393)',select='not(mod(n\,20))',setpts=(PTS-STARTPTS)/20[F_1];\
[L_in_0]select='between(t\,32\,212)',select='not(mod(n\,20))',setpts=(PTS-STARTPTS)/20[L_0];\
[L_in_1]select='between(t\,213\,393)',select='not(mod(n\,20))',setpts=(PTS-STARTPTS)/20[L_1]\
"\
-map [F_0] -an -sn ./out/jz_10_huron_barstow/F/0_F.mp4\
-map [F_1] -an -sn ./out/jz_10_huron_barstow/F/1_F.mp4\
-map [L_0] -an -sn ./out/jz_10_huron_barstow/L/0_L.mp4\
-map [L_1] -an -sn ./out/jz_10_huron_barstow/L/1_L.mp4\For some reason, 0_F.mp4 is empty and 1_F.mp4 is cropped. My intuition is that it has something to do with applying splitting + overlaying + selecting. I think at some point some filter before select is changing the PTS of the frames in some way select is not properly discarding them, but I honestly don’t know how to solve it. Some insights :
-
L_0 and L_1 are fine (no overlay is used in those two)
-
If I suppress L outputs everything works fine (no "split" is needed at the beginning)
Could someone provide some light ? I don’t really know what else to try.
The logs with loglevel 40 are (some repeated lines ommited) :ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.37)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.1_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from './dataset_test/videos/jz_10_huron_barstow.mkv':
Metadata:
ENCODER : Lavf57.66.104
Duration: 00:24:04.14, start: 0.000000, bitrate: 2117 kb/s
Stream #0:0: Video: h264 (Main), 1 reference frame, yuv420p, 1440x900 (1440x912) [SAR 1:1 DAR 8:5], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
Metadata:
ENCODER : Lavc57.83.100 h264_nvenc
DURATION : 00:24:04.102000000
Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
ENCODER : Lavc57.83.100 ac3
DURATION : 00:24:04.135000000
[Parsed_scale_2 @ 0x7fdfd2403d20] w:200 h:200 flags:'bilinear' interl:0
[Parsed_setdar_3 @ 0x7fdfd240ad80] num:den syntax is deprecated, please use num/den or named options instead
[Parsed_color_5 @ 0x7fdfd24096a0] size:226x307 rate:25/1 duration:-1.000000 sar:1/1
[Parsed_scale_8 @ 0x7fdfd24092c0] w:200 h:200 flags:'bilinear' interl:0
[Parsed_setdar_9 @ 0x7fdfd240b360] num:den syntax is deprecated, please use num/den or named options instead
[Parsed_scale_2 @ 0x7fdfd2509b00] w:200 h:200 flags:'bilinear' interl:0
[Parsed_setdar_3 @ 0x7fdfd25092c0] num:den syntax is deprecated, please use num/den or named options instead
[Parsed_color_5 @ 0x7fdfd250a520] size:226x307 rate:25/1 duration:-1.000000 sar:1/1
[Parsed_scale_8 @ 0x7fdfd250b620] w:200 h:200 flags:'bilinear' interl:0
[Parsed_setdar_9 @ 0x7fdfd250a960] num:den syntax is deprecated, please use num/den or named options instead
[graph 0 input from stream 0:0 @ 0x7fdfd2511360] w:1440 h:900 pixfmt:yuv420p tb:1/1000 fr:30/1 sar:1/1 sws_param:flags=2
[Parsed_crop_1 @ 0x7fdfd2509c80] w:1440 h:900 sar:1/1 -> w:226 h:306 sar:1/1
[Parsed_scale_2 @ 0x7fdfd2509b00] w:226 h:306 fmt:yuv420p sar:1/1 -> w:200 h:200 fmt:yuv420p sar:113/153 flags:0x2
[Parsed_setdar_3 @ 0x7fdfd25092c0] w:200 h:200 dar:113/153 sar:113/153 -> dar:1/1 sar:1/1
[Parsed_select_21 @ 0x7fdfd250a760] TB:0.001000 FRAME_RATE:30.000000 SAMPLE_RATE:nan
[Parsed_select_18 @ 0x7fdfd250a080] TB:0.001000 FRAME_RATE:30.000000 SAMPLE_RATE:nan
[Parsed_color_5 @ 0x7fdfd250a520] TB:0.040000 FRAME_RATE:25.000000 SAMPLE_RATE:nan
[Parsed_overlay_7 @ 0x7fdfd250b020] main w:1440 h:900 fmt:yuv420p overlay w:226 h:306 fmt:yuva420p eof_action:endall
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Selected 1/1000 time base
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Sync level 2
[Parsed_scale_8 @ 0x7fdfd250b620] w:1440 h:900 fmt:yuv420p sar:1/1 -> w:200 h:200 fmt:yuv420p sar:8/5 flags:0x2
[Parsed_setdar_9 @ 0x7fdfd250a960] w:200 h:200 dar:8/5 sar:8/5 -> dar:1/1 sar:1/1
[Parsed_select_15 @ 0x7fdfd250dd00] TB:0.001000 FRAME_RATE:30.000000 SAMPLE_RATE:nan
[Parsed_select_12 @ 0x7fdfd250ca60] TB:0.001000 FRAME_RATE:30.000000 SAMPLE_RATE:nan
[libx264 @ 0x7fdfd4005e00] using SAR=1/1
[libx264 @ 0x7fdfd4005e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fdfd4005e00] profile High, level 1.2
[libx264 @ 0x7fdfd4005e00] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=6 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
[libx264 @ 0x7fdfd400f600] using SAR=1/1
[libx264 @ 0x7fdfd400f600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fdfd400f600] profile High, level 1.2
[libx264 @ 0x7fdfd400f600] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=6 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
[libx264 @ 0x7fdfd4018e00] using SAR=1/1
[libx264 @ 0x7fdfd4018e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fdfd4018e00] profile High, level 1.2
[libx264 @ 0x7fdfd4018e00] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=6 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
[libx264 @ 0x7fdfd4022600] using SAR=1/1
[libx264 @ 0x7fdfd4022600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fdfd4022600] profile High, level 1.2
[libx264 @ 0x7fdfd4022600] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=6 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 './out/jz_10_huron_barstow/F/0_F.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264), -1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 200x200 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
encoder : Lavc56.60.100 libx264
Output #1, mp4, to './out/jz_10_huron_barstow/F/1_F.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #1:0: Video: h264 (libx264), -1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 200x200 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
encoder : Lavc56.60.100 libx264
Output #2, mp4, to './out/jz_10_huron_barstow/L/0_L.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #2:0: Video: h264 (libx264), -1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 200x200 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
encoder : Lavc56.60.100 libx264
Output #3, mp4, to './out/jz_10_huron_barstow/L/1_L.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #3:0: Video: h264 (libx264), -1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 200x200 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
encoder : Lavc56.60.100 libx264
Stream mapping:
Stream #0:0 (h264) -> split
setpts -> Stream #0:0 (libx264)
setpts -> Stream #1:0 (libx264)
setpts -> Stream #2:0 (libx264)
setpts -> Stream #3:0 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 0x7fdfd3800000] Warning: data is not aligned! This can lead to a speedloss
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 210 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 262 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 239 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 195 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 211 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 255 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 148 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 174 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 182 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 193 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:00.26 bitrate= 1.4kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 156 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:00.53 bitrate= 0.7kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 154 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:00.76 bitrate= 0.5kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 155 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:01.03 bitrate= 0.4kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 231 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:01.43 bitrate= 0.3kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 260 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:01.86 bitrate= 0.2kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 256 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:02.30 bitrate= 0.2kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 209 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:02.63 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 253 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:03.06 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 160 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:03.33 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 189 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:03.63 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 201 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:03.96 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 251 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:04.40 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 246 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:04.80 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 257 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:05.23 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 258 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:05.66 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 251 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:06.10 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 274 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:06.56 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 282 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.03 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Buffer queue overflow, dropping.
Last message repeated 185 times
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=0.0 q=29.0 q=0.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=29.0 q=29.0 q=29.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=29.0 q=29.0 q=29.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=29.0 q=29.0 q=29.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=29.0 q=29.0 q=29.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
frame= 0 fps=0.0 q=0.0 q=29.0 q=29.0 q=29.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
[…]
frame= 0 fps=0.0 q=0.0 q=29.0 q=29.0 q=29.0 size= 0kB time=00:00:07.26 bitrate= 0.1kbits/s
[Parsed_overlay_7 @ 0x7fdfd250b020] [framesync @ 0x7fdfd250b708] Sync level 1
No more output streams to write to, finishing.
frame= 0 fps=0.0 q=0.0 Lq=-1.0 q=-1.0 q=-1.0 size= 0kB time=00:00:08.93 bitrate= 0.2kbits/s
video:620kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (./dataset_test/videos/jz_10_huron_barstow.mkv):
Input stream #0:0 (video): 43323 packets read (347030822 bytes); 43323 frames decoded;
Input stream #0:1 (audio): 4 packets read (3072 bytes);
Total: 43327 packets (347033894 bytes) demuxed
Output file #0 (./out/jz_10_huron_barstow/F/0_F.mp4):
Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
Total: 0 packets (0 bytes) muxed
Output file #1 (./out/jz_10_huron_barstow/F/1_F.mp4):
Output stream #1:0 (video): 270 frames encoded; 270 packets muxed (309743 bytes);
Total: 270 packets (309743 bytes) muxed
Output file #2 (./out/jz_10_huron_barstow/L/0_L.mp4):
Output stream #2:0 (video): 270 frames encoded; 270 packets muxed (169687 bytes);
Total: 270 packets (169687 bytes) muxed
Output file #3 (./out/jz_10_huron_barstow/L/1_L.mp4):
Output stream #3:0 (video): 270 frames encoded; 270 packets muxed (155502 bytes);
Total: 270 packets (155502 bytes) muxed
[libx264 @ 0x7fdfd400f600] frame I:2 Avg QP:25.08 size: 3204
[libx264 @ 0x7fdfd400f600] frame P:140 Avg QP:26.63 size: 1426
[libx264 @ 0x7fdfd400f600] frame B:128 Avg QP:28.64 size: 805
[libx264 @ 0x7fdfd400f600] consecutive B-frames: 5.2% 94.8% 0.0% 0.0%
[libx264 @ 0x7fdfd400f600] mb I I16..4: 8.6% 62.7% 28.7%
[libx264 @ 0x7fdfd400f600] mb P I16..4: 2.5% 12.5% 3.4% P16..4: 39.2% 21.4% 9.3% 0.0% 0.0% skip:11.6%
[libx264 @ 0x7fdfd400f600] mb B I16..4: 0.5% 4.0% 1.0% B16..8: 36.5% 16.7% 4.0% direct: 5.5% skip:31.8% L0:43.4% L1:46.9% BI: 9.7%
[libx264 @ 0x7fdfd400f600] 8x8 transform intra:68.6% inter:67.7%
[libx264 @ 0x7fdfd400f600] coded y,uvDC,uvAC intra: 63.1% 48.6% 17.9% inter: 34.5% 21.1% 3.6%
[libx264 @ 0x7fdfd400f600] i16 v,h,dc,p: 24% 23% 12% 41%
[libx264 @ 0x7fdfd400f600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 19% 26% 7% 5% 5% 7% 6% 8%
[libx264 @ 0x7fdfd400f600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 29% 18% 6% 6% 5% 5% 4% 5%
[libx264 @ 0x7fdfd400f600] i8c dc,h,v,p: 63% 21% 14% 3%
[libx264 @ 0x7fdfd400f600] Weighted P-Frames: Y:14.3% UV:1.4%
[libx264 @ 0x7fdfd400f600] ref P L0: 49.2% 20.4% 17.3% 11.2% 1.9%
[libx264 @ 0x7fdfd400f600] ref B L0: 75.4% 24.6%
[libx264 @ 0x7fdfd400f600] kb/s:274.71
[libx264 @ 0x7fdfd4018e00] frame I:2 Avg QP:23.87 size: 2294
[libx264 @ 0x7fdfd4018e00] frame P:133 Avg QP:25.45 size: 864
[libx264 @ 0x7fdfd4018e00] frame B:135 Avg QP:28.99 size: 367
[libx264 @ 0x7fdfd4018e00] consecutive B-frames: 17.4% 38.5% 27.8% 16.3%
[libx264 @ 0x7fdfd4018e00] mb I I16..4: 14.5% 54.1% 31.4%
[libx264 @ 0x7fdfd4018e00] mb P I16..4: 6.4% 9.6% 2.1% P16..4: 33.3% 16.7% 5.9% 0.0% 0.0% skip:26.0%
[libx264 @ 0x7fdfd4018e00] mb B I16..4: 1.6% 2.0% 0.3% B16..8: 29.6% 9.3% 1.4% direct: 2.2% skip:53.6% L0:41.9% L1:51.4% BI: 6.7%
[libx264 @ 0x7fdfd4018e00] 8x8 transform intra:52.8% inter:73.8%
[libx264 @ 0x7fdfd4018e00] coded y,uvDC,uvAC intra: 40.7% 41.7% 8.9% inter: 20.7% 16.6% 0.2%
[libx264 @ 0x7fdfd4018e00] i16 v,h,dc,p: 22% 50% 8% 21%
[libx264 @ 0x7fdfd4018e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 30% 23% 6% 2% 2% 5% 5% 9%
[libx264 @ 0x7fdfd4018e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 29% 14% 5% 3% 4% 5% 6% 5%
[libx264 @ 0x7fdfd4018e00] i8c dc,h,v,p: 62% 23% 12% 3%
[libx264 @ 0x7fdfd4018e00] Weighted P-Frames: Y:1.5% UV:0.8%
[libx264 @ 0x7fdfd4018e00] ref P L0: 56.1% 15.8% 17.7% 10.2% 0.1%
[libx264 @ 0x7fdfd4018e00] ref B L0: 75.4% 20.8% 3.9%
[libx264 @ 0x7fdfd4018e00] ref B L1: 92.6% 7.4%
[libx264 @ 0x7fdfd4018e00] kb/s:150.22
[libx264 @ 0x7fdfd4022600] frame I:2 Avg QP:23.86 size: 2208
[libx264 @ 0x7fdfd4022600] frame P:139 Avg QP:24.90 size: 784
[libx264 @ 0x7fdfd4022600] frame B:129 Avg QP:28.25 size: 322
[libx264 @ 0x7fdfd4022600] consecutive B-frames: 17.8% 50.4% 15.6% 16.3%
[libx264 @ 0x7fdfd4022600] mb I I16..4: 15.7% 53.3% 31.1%
[libx264 @ 0x7fdfd4022600] mb P I16..4: 8.3% 9.9% 1.5% P16..4: 33.8% 14.8% 5.0% 0.0% 0.0% skip:26.7%
[libx264 @ 0x7fdfd4022600] mb B I16..4: 1.6% 1.8% 0.1% B16..8: 28.8% 8.2% 1.1% direct: 2.1% skip:56.4% L0:45.5% L1:47.6% BI: 6.9%
[libx264 @ 0x7fdfd4022600] 8x8 transform intra:50.6% inter:75.8%
[libx264 @ 0x7fdfd4022600] coded y,uvDC,uvAC intra: 34.0% 44.3% 10.0% inter: 18.8% 17.9% 0.4%
[libx264 @ 0x7fdfd4022600] i16 v,h,dc,p: 18% 54% 8% 20%
[libx264 @ 0x7fdfd4022600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 28% 26% 6% 2% 2% 4% 5% 8%
[libx264 @ 0x7fdfd4022600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 31% 14% 4% 2% 2% 3% 7% 5%
[libx264 @ 0x7fdfd4022600] i8c dc,h,v,p: 60% 25% 13% 2%
[libx264 @ 0x7fdfd4022600] Weighted P-Frames: Y:2.2% UV:0.7%
[libx264 @ 0x7fdfd4022600] ref P L0: 57.9% 16.8% 16.1% 8.9% 0.2%
[libx264 @ 0x7fdfd4022600] ref B L0: 76.5% 21.0% 2.5%
[libx264 @ 0x7fdfd4022600] ref B L1: 95.0% 5.0%
[libx264 @ 0x7fdfd4022600] kb/s:137.61 -
-
Rematrix is needed between 10 channels and mono but there is not enough information to do it
8 octobre 2017, par sirieleI’ve been fighting for a number of days now trying to get FFmpeg working with combining several audio files at specific times into one file. So my idea was to generate silence up to the time i want to play a sound.Then merge the audio together with a filter. The below code works when I have five or less files, but seems to fall apart. What I’m trying
ffmpeg \
-i "tutorial_bass/C-maj/TutorialBassJR.wav" \
-i "tutorial_drums/TutorialDrumsJR.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_bass/C-maj/TutorialBassTU.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-i "tutorial_bass/C-maj/TutorialBassTD.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_bass/C-maj/TutorialBassTR.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_drums/TutorialDrumsWL.wav" \
-i "tutorial_bass/C-maj/TutorialBassWL.wav" \
-i "tutorial_drums/TutorialDrumsWL.wav" \
-i "tutorial_drums/TutorialDrumsWU.wav" \
-i "tutorial_bass/C-maj/TutorialBassWU.wav" \
-i "tutorial_drums/TutorialDrumsWU.wav" \
-i "tutorial_drums/TutorialDrumsWD.wav" \
-i "tutorial_bass/C-maj/TutorialBassWD.wav" \
-i "tutorial_drums/TutorialDrumsWD.wav" \
-i "tutorial_drums/TutorialDrumsJL.wav" \
-i "tutorial_bass/C-maj/TutorialBassJL.wav" \
-i "tutorial_drums/TutorialDrumsJL.wav" \
-i "tutorial_drums/TutorialDrumsJR.wav" \
-i "tutorial_bass/C-maj/TutorialBassJR.wav" \
-i "tutorial_drums/TutorialDrumsJR.wav" \
-i "tutorial_drums/TutorialDrumsJU.wav" \
-i "tutorial_bass/C-maj/TutorialBassJU.wav" \
-i "tutorial_drums/TutorialDrumsJU.wav" \
-i "tutorial_drums/TutorialDrumsJD.wav" \
-i "tutorial_bass/C-maj/TutorialBassJD.wav" \
-i "tutorial_drums/TutorialDrumsJD.wav" \
-i "tutorial_drums/TutorialDrumsTL.wav" \
-i "tutorial_bass/C-maj/TutorialBassTL.wav" \
-i "tutorial_drums/TutorialDrumsTL.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_bass/C-maj/TutorialBassTR.wav" \
-i "tutorial_drums/TutorialDrumsTR.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_bass/C-maj/TutorialBassTU.wav" \
-i "tutorial_drums/TutorialDrumsTU.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-i "tutorial_bass/C-maj/TutorialBassTD.wav" \
-i "tutorial_drums/TutorialDrumsTD.wav" \
-filter_complex "\
aevalsrc=0:d=3.0 [d0];\
aevalsrc=0:d=3.0 [d1];\
aevalsrc=0:d=4.5 [d2];\
aevalsrc=0:d=4.5 [d3];\
aevalsrc=0:d=4.5 [d4];\
aevalsrc=0:d=6.0 [d5];\
aevalsrc=0:d=6.0 [d6];\
aevalsrc=0:d=6.0 [d7];\
aevalsrc=0:d=7.5 [d8];\
aevalsrc=0:d=7.5 [d9];\
aevalsrc=0:d=7.5 [d10];\
aevalsrc=0:d=9.0 [d11];\
aevalsrc=0:d=9.0 [d12];\
aevalsrc=0:d=9.0 [d13];\
aevalsrc=0:d=10.5 [d14];\
aevalsrc=0:d=10.5 [d15];\
aevalsrc=0:d=10.5 [d16];\
aevalsrc=0:d=12.0 [d17];\
aevalsrc=0:d=12.0 [d18];\
aevalsrc=0:d=12.0 [d19];\
aevalsrc=0:d=13.5 [d20];\
aevalsrc=0:d=13.5 [d21];\
aevalsrc=0:d=13.5 [d22];\
aevalsrc=0:d=15.0 [d23];\
aevalsrc=0:d=15.0 [d24];\
aevalsrc=0:d=15.0 [d25];\
aevalsrc=0:d=16.5 [d26];\
aevalsrc=0:d=16.5 [d27];\
aevalsrc=0:d=16.5 [d28];\
aevalsrc=0:d=18.0 [d29];\
aevalsrc=0:d=18.0 [d30];\
aevalsrc=0:d=18.0 [d31];\
aevalsrc=0:d=19.5 [d32];\
aevalsrc=0:d=19.5 [d33];\
aevalsrc=0:d=19.5 [d34];\
aevalsrc=0:d=21.0 [d35];\
aevalsrc=0:d=21.0 [d36];\
aevalsrc=0:d=21.0 [d37];\
aevalsrc=0:d=22.5 [d38];\
aevalsrc=0:d=22.5 [d39];\
aevalsrc=0:d=22.5 [d40];\
aevalsrc=0:d=24.0 [d41];\
aevalsrc=0:d=24.0 [d42];\
aevalsrc=0:d=24.0 [d43];\
[d0][0:a]concat=n=2:v=0:a=1 [a0];\
[d1][1:a]concat=n=2:v=0:a=1 [a1];\
[d2][2:a]concat=n=2:v=0:a=1 [a2];\
[d3][3:a]concat=n=2:v=0:a=1 [a3];\
[d4][4:a]concat=n=2:v=0:a=1 [a4];\
[d5][5:a]concat=n=2:v=0:a=1 [a5];\
[d6][6:a]concat=n=2:v=0:a=1 [a6];\
[d7][7:a]concat=n=2:v=0:a=1 [a7];\
[d8][8:a]concat=n=2:v=0:a=1 [a8];\
[d9][9:a]concat=n=2:v=0:a=1 [a9];\
[d10][10:a]concat=n=2:v=0:a=1 [a10];\
[d11][11:a]concat=n=2:v=0:a=1 [a11];\
[d12][12:a]concat=n=2:v=0:a=1 [a12];\
[d13][13:a]concat=n=2:v=0:a=1 [a13];\
[d14][14:a]concat=n=2:v=0:a=1 [a14];\
[d15][15:a]concat=n=2:v=0:a=1 [a15];\
[d16][16:a]concat=n=2:v=0:a=1 [a16];\
[d17][17:a]concat=n=2:v=0:a=1 [a17];\
[d18][18:a]concat=n=2:v=0:a=1 [a18];\
[d19][19:a]concat=n=2:v=0:a=1 [a19];\
[d20][20:a]concat=n=2:v=0:a=1 [a20];\
[d21][21:a]concat=n=2:v=0:a=1 [a21];\
[d22][22:a]concat=n=2:v=0:a=1 [a22];\
[d23][23:a]concat=n=2:v=0:a=1 [a23];\
[d24][24:a]concat=n=2:v=0:a=1 [a24];\
[d25][25:a]concat=n=2:v=0:a=1 [a25];\
[d26][26:a]concat=n=2:v=0:a=1 [a26];\
[d27][27:a]concat=n=2:v=0:a=1 [a27];\
[d28][28:a]concat=n=2:v=0:a=1 [a28];\
[d29][29:a]concat=n=2:v=0:a=1 [a29];\
[d30][30:a]concat=n=2:v=0:a=1 [a30];\
[d31][31:a]concat=n=2:v=0:a=1 [a31];\
[d32][32:a]concat=n=2:v=0:a=1 [a32];\
[d33][33:a]concat=n=2:v=0:a=1 [a33];\
[d34][34:a]concat=n=2:v=0:a=1 [a34];\
[d35][35:a]concat=n=2:v=0:a=1 [a35];\
[d36][36:a]concat=n=2:v=0:a=1 [a36];\
[d37][37:a]concat=n=2:v=0:a=1 [a37];\
[d38][38:a]concat=n=2:v=0:a=1 [a38];\
[d39][39:a]concat=n=2:v=0:a=1 [a39];\
[d40][40:a]concat=n=2:v=0:a=1 [a40];\
[d41][41:a]concat=n=2:v=0:a=1 [a41];\
[d42][42:a]concat=n=2:v=0:a=1 [a42];\
[d43][43:a]concat=n=2:v=0:a=1 [a43];\
[a0][a1][a2][a3][a4][a5][a6][a7][a8][a9][a10][a11][a12][a13][a14][a15][a16][a17][a18][a19]amix=inputs=20:duration=longest [a0-a19];\
[a20][a21][a22][a23][a24][a25][a26][a27][a28][a29][a30][a31][a32][a33][a34][a35][a36][a37][a38][a39]amix=inputs=20:duration=longest [a20-a39];\
[a40][a41][a42][a43]amix=inputs=4:duration=longest [a40-a43];
[a0-a19][a20-a39][a40-a43]amix=inputs=3:duration=longest" -codec:a libmp3lame output.mp3When I run this command I get :
ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.2.0/include/openjpeg-2.2 --enable-nonfree --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'tutorial_bass/C-maj/TutorialBassJR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'tutorial_drums/TutorialDrumsJR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #1:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #2.0 : stereo
Input #2, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #2:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #3.0 : stereo
Input #3, wav, from 'tutorial_bass/C-maj/TutorialBassTU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #3:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #4.0 : stereo
Input #4, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #4:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #5, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #5:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
Guessed Channel Layout for Input Stream #6.0 : stereo
Input #6, wav, from 'tutorial_bass/C-maj/TutorialBassTD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #6:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #7, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #7:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
Guessed Channel Layout for Input Stream #8.0 : stereo
Input #8, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #8:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #9.0 : stereo
Input #9, wav, from 'tutorial_bass/C-maj/TutorialBassTR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #9:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #10.0 : stereo
Input #10, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #10:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #11.0 : stereo
Input #11, wav, from 'tutorial_drums/TutorialDrumsWL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #11:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #12.0 : stereo
Input #12, wav, from 'tutorial_bass/C-maj/TutorialBassWL.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #12:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #13.0 : stereo
Input #13, wav, from 'tutorial_drums/TutorialDrumsWL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #13:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #14.0 : stereo
Input #14, wav, from 'tutorial_drums/TutorialDrumsWU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #14:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #15.0 : stereo
Input #15, wav, from 'tutorial_bass/C-maj/TutorialBassWU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #15:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #16.0 : stereo
Input #16, wav, from 'tutorial_drums/TutorialDrumsWU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #16:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #17.0 : stereo
Input #17, wav, from 'tutorial_drums/TutorialDrumsWD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #17:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #18.0 : stereo
Input #18, wav, from 'tutorial_bass/C-maj/TutorialBassWD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #18:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #19.0 : stereo
Input #19, wav, from 'tutorial_drums/TutorialDrumsWD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #19:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #20.0 : stereo
Input #20, wav, from 'tutorial_drums/TutorialDrumsJL.wav':
Duration: 00:00:00.75, bitrate: 33869 kb/s
Stream #20:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #21.0 : stereo
Input #21, wav, from 'tutorial_bass/C-maj/TutorialBassJL.wav':
Duration: 00:00:01.51, bitrate: 2822 kb/s
Stream #21:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #22.0 : stereo
Input #22, wav, from 'tutorial_drums/TutorialDrumsJL.wav':
Duration: 00:00:00.75, bitrate: 33869 kb/s
Stream #22:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #23.0 : stereo
Input #23, wav, from 'tutorial_drums/TutorialDrumsJR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #23:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #24.0 : stereo
Input #24, wav, from 'tutorial_bass/C-maj/TutorialBassJR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #24:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #25.0 : stereo
Input #25, wav, from 'tutorial_drums/TutorialDrumsJR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #25:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #26.0 : stereo
Input #26, wav, from 'tutorial_drums/TutorialDrumsJU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #26:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #27.0 : stereo
Input #27, wav, from 'tutorial_bass/C-maj/TutorialBassJU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #27:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #28.0 : stereo
Input #28, wav, from 'tutorial_drums/TutorialDrumsJU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #28:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #29.0 : stereo
Input #29, wav, from 'tutorial_drums/TutorialDrumsJD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #29:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #30.0 : stereo
Input #30, wav, from 'tutorial_bass/C-maj/TutorialBassJD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #30:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #31.0 : stereo
Input #31, wav, from 'tutorial_drums/TutorialDrumsJD.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #31:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #32.0 : stereo
Input #32, wav, from 'tutorial_drums/TutorialDrumsTL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #32:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #33.0 : stereo
Input #33, wav, from 'tutorial_bass/C-maj/TutorialBassTL.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #33:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #34.0 : stereo
Input #34, wav, from 'tutorial_drums/TutorialDrumsTL.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #34:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #35.0 : stereo
Input #35, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #35:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #36.0 : stereo
Input #36, wav, from 'tutorial_bass/C-maj/TutorialBassTR.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #36:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #37.0 : stereo
Input #37, wav, from 'tutorial_drums/TutorialDrumsTR.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #37:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #38.0 : stereo
Input #38, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #38:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #39.0 : stereo
Input #39, wav, from 'tutorial_bass/C-maj/TutorialBassTU.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #39:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Guessed Channel Layout for Input Stream #40.0 : stereo
Input #40, wav, from 'tutorial_drums/TutorialDrumsTU.wav':
Duration: 00:00:00.75, bitrate: 2822 kb/s
Stream #40:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #41, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #41:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
Guessed Channel Layout for Input Stream #42.0 : stereo
Input #42, wav, from 'tutorial_bass/C-maj/TutorialBassTD.wav':
Duration: 00:00:01.50, bitrate: 2822 kb/s
Stream #42:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, stereo, flt, 2822 kb/s
Input #43, wav, from 'tutorial_drums/TutorialDrumsTD.wav':
Duration: 00:00:04.50, bitrate: 14112 kb/s
Stream #43:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 44100 Hz, 10 channels, flt, 14112 kb/s
File 'output.mp3' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 (pcm_f32le) -> concat:in1:a0
Stream #1:0 (pcm_f32le) -> concat:in1:a0
Stream #2:0 (pcm_f32le) -> concat:in1:a0
Stream #3:0 (pcm_f32le) -> concat:in1:a0
Stream #4:0 (pcm_f32le) -> concat:in1:a0
Stream #5:0 (pcm_f32le) -> concat:in1:a0
Stream #6:0 (pcm_f32le) -> concat:in1:a0
Stream #7:0 (pcm_f32le) -> concat:in1:a0
Stream #8:0 (pcm_f32le) -> concat:in1:a0
Stream #9:0 (pcm_f32le) -> concat:in1:a0
Stream #10:0 (pcm_f32le) -> concat:in1:a0
Stream #11:0 (pcm_f32le) -> concat:in1:a0
Stream #12:0 (pcm_f32le) -> concat:in1:a0
Stream #13:0 (pcm_f32le) -> concat:in1:a0
Stream #14:0 (pcm_f32le) -> concat:in1:a0
Stream #15:0 (pcm_f32le) -> concat:in1:a0
Stream #16:0 (pcm_f32le) -> concat:in1:a0
Stream #17:0 (pcm_f32le) -> concat:in1:a0
Stream #18:0 (pcm_f32le) -> concat:in1:a0
Stream #19:0 (pcm_f32le) -> concat:in1:a0
Stream #20:0 (pcm_f32le) -> concat:in1:a0
Stream #21:0 (pcm_f32le) -> concat:in1:a0
Stream #22:0 (pcm_f32le) -> concat:in1:a0
Stream #23:0 (pcm_f32le) -> concat:in1:a0
Stream #24:0 (pcm_f32le) -> concat:in1:a0
Stream #25:0 (pcm_f32le) -> concat:in1:a0
Stream #26:0 (pcm_f32le) -> concat:in1:a0
Stream #27:0 (pcm_f32le) -> concat:in1:a0
Stream #28:0 (pcm_f32le) -> concat:in1:a0
Stream #29:0 (pcm_f32le) -> concat:in1:a0
Stream #30:0 (pcm_f32le) -> concat:in1:a0
Stream #31:0 (pcm_f32le) -> concat:in1:a0
Stream #32:0 (pcm_f32le) -> concat:in1:a0
Stream #33:0 (pcm_f32le) -> concat:in1:a0
Stream #34:0 (pcm_f32le) -> concat:in1:a0
Stream #35:0 (pcm_f32le) -> concat:in1:a0
Stream #36:0 (pcm_f32le) -> concat:in1:a0
Stream #37:0 (pcm_f32le) -> concat:in1:a0
Stream #38:0 (pcm_f32le) -> concat:in1:a0
Stream #39:0 (pcm_f32le) -> concat:in1:a0
Stream #40:0 (pcm_f32le) -> concat:in1:a0
Stream #41:0 (pcm_f32le) -> concat:in1:a0
Stream #42:0 (pcm_f32le) -> concat:in1:a0
Stream #43:0 (pcm_f32le) -> concat:in1:a0
amix -> Stream #0:0 (libmp3lame)
Press [q] to stop, [?] for help
[auto_resampler_5 @ 0x7fdc19641e00] [SWR @ 0x7fdc1c286e00] Rematrix is needed between 10 channels and mono but there is not enough information to do it
[auto_resampler_5 @ 0x7fdc19641e00] Failed to configure output pad on auto_resampler_5
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #43:0
Conversion failed!Any ideas what I’m doing wrong or other approaches I could take to do this ?
-
To concatenate more than two video using FFMPEG
21 décembre 2018, par Alok Kumar VermaI’ve been working on FFMPEG, this is indeed not an easy task since I’ve succeeded in doing some work. I’m done with concatenating two videos using ffmpeg but somehow when it comes to more than two it does not work. So I’m finding out some command to do my task.
The thing I did is to merge two videos are :
String complexCommand[] = {"-y", "-i", "/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4", "-i", "/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4", "-strict", "experimental", "-filter_complex",
"[0:v]scale=1920x1080,setsar=1:1[v0];[1:v] scale=iw*min(1920/iw\\,1080/ih):ih*min(1920/iw\\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\\,1080/ih))/2:(1080-ih*min(1920/iw\\,1080/ih))/2,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1",
"-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "1920x1080", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", savingPath};The above is working fine for two videos. I’ve tried altering my code for three videos but it does not work.
What I’ve done in the above code is :
- Added one more input after the second one
- Changed the concat=3:v=1:a=1
But it does not merge and gave me this error in my LogCat :
FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.25.100
Duration: 00:02:47.09, start: 0.000000, bitrate: 245 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 112 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2013-12-15 13:11:41
Duration: 00:03:51.08, start: 0.000000, bitrate: 1693 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1498 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
Metadata:
creation_time : 2013-12-15 13:11:41
handler_name : IsoMedia File Produced by Google, 5-11-2011
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2015-05-30 02:06:06
Duration: 00:04:48.48, start: 0.000000, bitrate: 3608 kb/s
Stream #2:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 3478 kb/s, 30.28 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2015-05-30 02:06:06
handler_name : VideoHandle
encoder :
Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 125 kb/s (default)
Metadata:
creation_time : 2015-05-30 02:06:06
handler_name : SoundHandle
[Parsed_setsar_1 @ 0xa9ea9220] num:den syntax is deprecated, please use num/den or named options instead
[Parsed_setsar_4 @ 0xa9ea9310] num:den syntax is deprecated, please use num/den or named options instead
[Parsed_setsar_1 @ 0xa9ea92c0] num:den syntax is deprecated, please use num/den or named options instead
[Parsed_setsar_4 @ 0xa9ea93b0] num:den syntax is deprecated, please usI’ve tried one more command which works fine for concatenating two videos but still it does not work for more than two videos :
String complexCommand[] = {"-y", "-i", "/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4", "-i", "/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4", "-i", "/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4", "-strict", "experimental", "-filter_complex",
"[0:v]scale=480x640,setsar=1:1[v0];[1:v]scale=480x640,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=3:v=1:a=1",
"-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "480x640", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", savingPath};You can clearly see in the above code that I’ve tried using this for the three videos but still no luck. Will appreciate your help. Thanks.
EDITS
After following the LordNeckbeard’s suggestion from the comment section, I’ve used his suggestion in my code but after doing that still no luck however the console’s output got changed and here is the command which I used :
String complexCommand[] = {"-y", "-i", "/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4", "-i", "/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4", "-i", "/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4", "-strict", "experimental", "-filter_complex",
"[0:v]scale=480x640,setsar=1[v0];[1:v]scale=480x640,setsar=1[v1];[v0][0:a][v1][1:a] concat=n=3:v=1:a=1",
"-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "480x640", "-vcodec", "libx264","-crf","27","-preset", "ultrafast", savingPath};Here you can clearly see that I’ve used setsar=1 and used -crf only.
And the logs are :
FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.25.100
Duration: 00:02:47.09, start: 0.000000, bitrate: 245 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 112 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2013-12-15 13:11:41
Duration: 00:03:51.08, start: 0.000000, bitrate: 1693 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1498 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
Metadata:
creation_time : 2013-12-15 13:11:41
handler_name : IsoMedia File Produced by Google, 5-11-2011
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2015-05-30 02:06:06
Duration: 00:04:48.48, start: 0.000000, bitrate: 3608 kb/s
Stream #2:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 3478 kb/s, 30.28 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2015-05-30 02:06:06
handler_name : VideoHandle
encoder :
Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 125 kb/s (default)
Metadata:
creation_time : 2015-05-30 02:06:06
handler_name : SoundHandle
[Parsed_concat_4 @ 0xa7ea91d0] Input link in2:v0 parameters (size 720x480, SAR 0:1) do not match the corresponding output link in0:v0 parameters (480x640, SAR 1:1)
[Parsed_concat_4 @ 0xa7ea91d0] Failed to configure output pad on Parsed_concat_4
Error configuring complex filters.
Invalid argumentNOTE : I have tried using setsar=1/1 but still got the same result.