
Recherche avancée
Médias (91)
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Echoplex (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Discipline (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Letting you (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
999 999 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (20)
-
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 : (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (4497)
-
FFmpeg Error while filtering : Cannot allocate memory While Using Gifs Overlay Over Video
4 mars 2021, par Abhishek Sharmacreating overlay gif over video but One gif is stoping after one loop and all other gifs are in a continuous loop by default in the file and FFmpeg throws an error


Command :


ffmpeg -y -i "2021_03_04_03_54_43.mp4" -f lavfi -i "color=000000:s=540x960" -ignore_loop 0 -i "2021_03_04_03_55_08.gif" -ignore_loop 0 -i "2021_03_04_03_56_19.gif" -ignore_loop 0 -i "2021_03_04_04_02_29.gif" -ignore_loop 0 -i "2021_03_04_04_03_50.gif" -filter_complex "[0:v]trim=0:15.047,setpts=PTS-STARTPTS[Clip_0_VideoTrim_0] ;[0:a]atrim=0:15.047,asetpts=PTS-STARTPTS,volume=1[Clip_0_AudioTrim_0] ;[1:v]crop=540:960:0:0,boxblur=luma_radius=10:chroma_radius=10:luma_power=1,scale=540:960[Clip_0_BG] ;[Clip_0_VideoTrim_0]scale=540:960[Clip_0_FG] ;[Clip_0_BG][Clip_0_FG]overlay=0:0:shortest=1[Clip_0_BackgroundOutput] ;[Clip_0_BackgroundOutput][Clip_0_AudioTrim_0]concat=n=1:v=1:a=1[ClipsVideoOut][ClipsAudioOut] ;[2:v]format=yuva444p,colorchannelmixer=aa=1,scale=226.374008178711 :-1,rotate=0:c=none:ow=rotw(0):oh=roth(0)[OverLay_2] ;[ClipsVideoOut][OverLay_2]overlay=enable='between(t,3.839,7.6)':x='(389.626037597656-(overlay_w/2))':y='(205.619873046875-(overlay_h/2))':shortest=1[OverlayLayer_2] ;[3:v]format=yuva444p,colorchannelmixer=aa=1,scale=179.254348754883 :-1,rotate=0:c=none:ow=rotw(0):oh=roth(0)[OverLay_3] ;[OverlayLayer_2][OverLay_3]overlay=enable='between(t,0,3.762)':x='(117.589767456055-(overlay_w/2))':y='(759.018127441406-(overlay_h/2))':shortest=1[OverlayLayer_3] ;[4:v]format=yuva444p,colorchannelmixer=aa=1,scale=326.199066162109 :-1,rotate=0:c=none:ow=rotw(0):oh=roth(0)[OverLay_4] ;[OverlayLayer_3][OverLay_4]overlay=enable='between(t,7.478,11.24)':x='(118.761810302734-(overlay_w/2))':y='(153.96012878418-(overlay_h/2))':shortest=1[OverlayLayer_4] ;[5:v]format=yuva444p,colorchannelmixer=aa=1,scale=268.915679931641 :-1,rotate=0:c=none:ow=rotw(0):oh=roth(0)[OverLay_5] ;[OverlayLayer_4][OverLay_5]overlay=enable='between(t,11.25,15.011)':x='(396.322570800781-(overlay_w/2))':y='(747.451477050781-(overlay_h/2))':shortest=1[OverlayOutput] ;[OverlayOutput][ClipsAudioOut]concat=n=1:v=1:a=1[OutputVideo][OutputAudio]" -map [OutputVideo] -map [OutputAudio] -c:v libx264 -c:a aac -b:a 256k -r 30 -preset ultrafast "2021_03_04_04_04_09.mp4" -hide_banner" ;


ffmpeg Log :


2021-03-04 16:04:10.092 +05:30 [INF] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2021_03_04_03_54_43.mp4':
2021-03-04 16:04:10.100 +05:30 [INF] Metadata:
2021-03-04 16:04:10.112 +05:30 [INF] major_brand : isom
2021-03-04 16:04:10.123 +05:30 [INF] minor_version : 512
2021-03-04 16:04:10.131 +05:30 [INF] compatible_brands: isomiso2avc1mp41
2021-03-04 16:04:10.141 +05:30 [INF] encoder : Lavf57.76.100
2021-03-04 16:04:10.151 +05:30 [INF] comment : vid:v090444d0000bivu4o5qa7loe16h27e0
2021-03-04 16:04:10.164 +05:30 [INF] genre : aweme_6677028628938787590
2021-03-04 16:04:10.202 +05:30 [INF] Duration: 00:00:15.05, start: 0.000000, bitrate: 1562 kb/s
2021-03-04 16:04:10.253 +05:30 [INF] Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 540x960, 1485 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
2021-03-04 16:04:10.262 +05:30 [INF] Metadata:
2021-03-04 16:04:10.275 +05:30 [INF] handler_name : VideoHandler
2021-03-04 16:04:10.303 +05:30 [INF] Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
2021-03-04 16:04:10.309 +05:30 [INF] Metadata:
2021-03-04 16:04:10.325 +05:30 [INF] handler_name : SoundHandler
2021-03-04 16:04:10.334 +05:30 [INF] Input #1, lavfi, from 'color=000000:s=540x960':
2021-03-04 16:04:10.366 +05:30 [INF] Duration: N/A, start: 0.000000, bitrate: N/A
2021-03-04 16:04:10.403 +05:30 [INF] Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 540x960 [SAR 1:1 DAR 9:16], 25 tbr, 25 tbn, 25 tbc
2021-03-04 16:04:10.416 +05:30 [INF] Input #2, gif, from '2021_03_04_03_55_08.gif':
2021-03-04 16:04:10.482 +05:30 [INF] Duration: 00:00:00.20, start: 0.000000, bitrate: 2071 kb/s
2021-03-04 16:04:10.536 +05:30 [INF] Stream #2:0: Video: gif, bgra, 269x386, 14.25 fps, 19.08 tbr, 100 tbn, 100 tbc
2021-03-04 16:04:10.570 +05:30 [INF] Input #3, gif, from '2021_03_04_03_56_19.gif':
2021-03-04 16:04:10.616 +05:30 [INF] Duration: 00:00:01.47, start: 0.000000, bitrate: 11618 kb/s
2021-03-04 16:04:10.666 +05:30 [INF] Stream #3:0: Video: gif, bgra, 300x300, 28.92 fps, 100 tbr, 100 tbn, 100 tbc
2021-03-04 16:04:10.680 +05:30 [INF] Input #4, gif, from '2021_03_04_04_02_29.gif':
2021-03-04 16:04:10.714 +05:30 [INF] Duration: 00:00:00.90, start: 0.000000, bitrate: 824 kb/s
2021-03-04 16:04:10.793 +05:30 [INF] Stream #4:0: Video: gif, bgra, 310x300, 20.67 fps, 19.75 tbr, 100 tbn, 100 tbc
2021-03-04 16:04:10.811 +05:30 [INF] Input #5, gif, from '2021_03_04_04_03_50.gif':
2021-03-04 16:04:10.845 +05:30 [INF] Duration: 00:00:00.48, start: 0.000000, bitrate: 1516 kb/s
2021-03-04 16:04:10.871 +05:30 [INF] Stream #5:0: Video: gif, bgra, 480x480, 14.33 fps, 12.25 tbr, 100 tbn, 100 tbc
2021-03-04 16:04:10.882 +05:30 [INF] Stream mapping:
2021-03-04 16:04:10.891 +05:30 [INF] Stream #0:0 (h264) -> trim
2021-03-04 16:04:10.901 +05:30 [INF] Stream #0:1 (aac) -> atrim
2021-03-04 16:04:10.913 +05:30 [INF] Stream #1:0 (rawvideo) -> crop
2021-03-04 16:04:10.918 +05:30 [INF] Stream #2:0 (gif) -> format
2021-03-04 16:04:10.926 +05:30 [INF] Stream #3:0 (gif) -> format
2021-03-04 16:04:10.932 +05:30 [INF] Stream #4:0 (gif) -> format
2021-03-04 16:04:10.935 +05:30 [INF] Stream #5:0 (gif) -> format
2021-03-04 16:04:10.943 +05:30 [INF] concat:out:v0 -> Stream #0:0 (libx264)
2021-03-04 16:04:10.949 +05:30 [INF] concat:out:a0 -> Stream #0:1 (aac)
2021-03-04 16:04:10.951 +05:30 [INF] Press [q] to stop, [?] for help
2021-03-04 16:04:10.960 +05:30 [INF] frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 
2021-03-04 16:04:11.070 +05:30 [INF] [libx264 @ 2013EB00] using SAR=1/1
2021-03-04 16:04:11.092 +05:30 [INF] [libx264 @ 2013EB00] using cpu capabilities: none!
2021-03-04 16:04:11.116 +05:30 [INF] [libx264 @ 2013EB00] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
2021-03-04 16:04:11.119 +05:30 [INF] [libx264 @ 2013EB00] 264 - core 157 - 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=6 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=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
2021-03-04 16:04:11.126 +05:30 [INF] Output #0, mp4, to '2021_03_04_04_04_09.mp4':
2021-03-04 16:04:11.129 +05:30 [INF] Metadata:
2021-03-04 16:04:11.136 +05:30 [INF] major_brand : isom
2021-03-04 16:04:11.251 +05:30 [INF] minor_version : 512
2021-03-04 16:04:11.261 +05:30 [INF] compatible_brands: isomiso2avc1mp41
2021-03-04 16:04:11.274 +05:30 [INF] genre : aweme_6677028628938787590
2021-03-04 16:04:11.282 +05:30 [INF] comment : vid:v090444d0000bivu4o5qa7loe16h27e0
2021-03-04 16:04:11.293 +05:30 [INF] encoder : Lavf58.45.100
2021-03-04 16:04:11.324 +05:30 [INF] Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 540x960 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
2021-03-04 16:04:11.328 +05:30 [INF] Metadata:
2021-03-04 16:04:11.338 +05:30 [INF] encoder : Lavc58.91.100 libx264
2021-03-04 16:04:11.341 +05:30 [INF] Side data:
2021-03-04 16:04:11.358 +05:30 [INF] cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
2021-03-04 16:04:11.377 +05:30 [INF] Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 256 kb/s (default)
2021-03-04 16:04:11.380 +05:30 [INF] Metadata:
2021-03-04 16:04:11.392 +05:30 [INF] encoder : Lavc58.91.100 aac
2021-03-04 16:04:11.469 +05:30 [INF] frame= 2 fps=0.0 q=0.0 size= 0kB time=00:00:00.04 bitrate= 8.3kbits/s speed=0.0928x 
2021-03-04 16:04:11.972 +05:30 [INF] frame= 16 fps= 16 q=25.0 size= 0kB time=00:00:00.46 bitrate= 0.8kbits/s dup=3 drop=0 speed=0.463x 
2021-03-04 16:04:12.480 +05:30 [INF] frame= 28 fps= 18 q=23.0 size= 256kB time=00:00:00.88 bitrate=2377.2kbits/s dup=5 drop=0 speed=0.582x 
2021-03-04 16:04:13.012 +05:30 [INF] frame= 41 fps= 20 q=23.0 size= 256kB time=00:00:01.34 bitrate=1557.5kbits/s dup=7 drop=0 speed=0.664x 
2021-03-04 16:04:13.493 +05:30 [INF] frame= 53 fps= 21 q=25.0 size= 512kB time=00:00:01.76 bitrate=2377.0kbits/s dup=9 drop=0 speed=0.696x 
2021-03-04 16:04:14.023 +05:30 [INF] frame= 66 fps= 22 q=22.0 size= 768kB time=00:00:02.18 bitrate=2882.6kbits/s dup=11 drop=0 speed=0.714x 
2021-03-04 16:04:14.535 +05:30 [INF] frame= 77 fps= 22 q=23.0 size= 768kB time=00:00:02.57 bitrate=2441.1kbits/s dup=13 drop=0 speed=0.724x 
2021-03-04 16:04:15.030 +05:30 [INF] frame= 91 fps= 22 q=24.0 size= 1024kB time=00:00:03.01 bitrate=2779.1kbits/s dup=15 drop=0 speed=0.743x 
2021-03-04 16:04:15.547 +05:30 [INF] frame= 104 fps= 23 q=23.0 size= 1280kB time=00:00:03.45 bitrate=3030.9kbits/s dup=17 drop=0 speed=0.756x 
2021-03-04 16:04:16.118 +05:30 [INF] frame= 109 fps= 21 q=23.0 size= 1280kB time=00:00:04.78 bitrate=2192.2kbits/s dup=18 drop=0 speed=0.942x 
2021-03-04 16:04:16.543 +05:30 [INF] frame= 109 fps= 20 q=23.0 size= 1280kB time=00:00:06.61 bitrate=1584.6kbits/s dup=18 drop=0 speed=1.19x 
2021-03-04 16:04:17.042 +05:30 [INF] frame= 109 fps= 18 q=23.0 size= 1280kB time=00:00:08.82 bitrate=1188.4kbits/s dup=18 drop=0 speed=1.45x 
2021-03-04 16:04:17.545 +05:30 [INF] frame= 109 fps= 17 q=23.0 size= 1280kB time=00:00:10.89 bitrate= 962.9kbits/s dup=18 drop=0 speed=1.65x 
2021-03-04 16:04:17.864 +05:30 [INF] Error while filtering: Cannot allocate memory
2021-03-04 16:04:17.889 +05:30 [INF] Failed to inject frame into filter network: Cannot allocate memory
2021-03-04 16:04:17.908 +05:30 [INF] Error while processing the decoded data for stream #0:0
2021-03-04 16:04:18.048 +05:30 [INF] [libx264 @ 2013EB00] frame I:1 Avg QP:20.00 size: 43401
2021-03-04 16:04:18.051 +05:30 [INF] [libx264 @ 2013EB00] frame P:101 Avg QP:23.36 size: 13076
2021-03-04 16:04:18.054 +05:30 [INF] [libx264 @ 2013EB00] mb I I16..4: 100.0% 0.0% 0.0%
2021-03-04 16:04:18.058 +05:30 [INF] [libx264 @ 2013EB00] mb P I16..4: 11.9% 0.0% 0.0% P16..4: 44.6% 0.0% 0.0% 0.0% 0.0% skip:43.5%
2021-03-04 16:04:18.062 +05:30 [INF] [libx264 @ 2013EB00] coded y,uvDC,uvAC intra: 34.5% 62.9% 16.0% inter: 23.5% 29.1% 3.2%
2021-03-04 16:04:18.064 +05:30 [INF] [libx264 @ 2013EB00] i16 v,h,dc,p: 35% 20% 19% 25%
2021-03-04 16:04:18.067 +05:30 [INF] [libx264 @ 2013EB00] i8c dc,h,v,p: 34% 22% 33% 12%
2021-03-04 16:04:18.071 +05:30 [INF] [libx264 @ 2013EB00] kb/s:3209.61
2021-03-04 16:04:18.076 +05:30 [INF] [aac @ 2013C440] Qavg: 2650.414
2021-03-04 16:04:18.081 +05:30 [INF] [aac @ 2013C440] 2 frames left in the queue on closing
2021-03-04 16:04:18.099 +05:30 [INF] Conversion failed!



-
Moviepy swap text mid video
22 mai 2022, par Runeater DaWizKidI want to write text to a video and have it change mid playback, this is what I've tried but it overlays each text on eachother and only displays the text for 5 seconds ?


def generateVideo(initial_text, secondary_text, tertiary_text):
 text_clip = TextClip(txt=initial_text, color='AntiqueWhite1', font='Arial-Bold', fontsize=100)
 text_clip = text_clip.set_position('center').set_duration(5)

 text_clip_secondary = TextClip(txt=secondary_text, color='AntiqueWhite1', font='Arial-Bold', fontsize=100)
 text_clip_secondary = text_clip_secondary.set_position('center').set_duration(10).cutout(0, 5)

 text_clip_tertiary = TextClip(txt=tertiary_text, color='AntiqueWhite1', font='Arial-Bold', fontsize=100)
 text_clip_tertiary = text_clip_tertiary.set_position('center').set_duration(15).cutout(0, 10)
 
 new_video = ColorClip(size=(1920, 1080), color=(0,0,0), duration=15)
 new_video.fps = 24
 
 new_video = CompositeVideoClip([new_video, text_clip, text_clip_secondary, text_clip_tertiary])

 new_video.write_videofile(codec='mpeg4', filename="test.mp4")
 new_video.close()



Anyone see what im doing wrong ?


Edit :
I've also tried the appropriate calls to subclip(pos1, pos2), ie


text_clip_secondary = text_clip_secondary.set_position('center').set_duration(15).subclip(5, 10)



With the same results


-
FFmpeg filter_complex concat gives only first input on crop
20 septembre 2018, par Alex BakanovI’ve encoutered problem when using concat and crop with multiple inputs and multiple outputs. Here’s
ffmpeg -y \
-i input_1.mp4 \
-i input_2.mp4 \
-i input_3.mp4 \
-i input_4.mp4 \
-filter_complex "[0:v][1:v][2:v][3:v]concat=n=4:v=1:a=0[v];\
[v]crop=3840:1080:960:0[center];\
[v]crop=960:1080:0:0[left];\
[v]crop=960:1080:4800:0[right]" \
-map "[center]" -c:v libx264 -preset faster -b:v 20000k -an -pix_fmt yuv420p -tune zerolatency -tune fastdecode "Output_Center.mp4" \
-map "[left]" -c:v libx264 -preset faster -b:v 20000k -an -pix_fmt yuv420p -tune zerolatency -tune fastdecode "Output_Left.mp4" \
-map "[right]" -c:v libx264 -preset faster -b:v 20000k -an -pix_fmt yuv420p -tune zerolatency -tune fastdecode "Output_Right.mp4"So there I concatenate 4 inputs into 1 stream [v], then I crop certain parts to [center], [left] and [right]
For first output (center) it works as expected, output video duration is right (1 + 2 + 3 + 4 input durations), but for left and right outputs duration completely match duration of the first input.
I’ve also tried use [v1] as output of concat, that didn’t help