
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (111)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (7059)
-
I cant give names to subtitle tracks with ffmpeg
11 mai 2023, par KelesIm using this command to add 2 audio tracks (mixed with original audio) and 2 subtitles tracks to the original video :




ffmpeg -i input_video.mp4 -i audio_track_1.wav -i audio_track_2.wav -i
srt_file_es.srt -i srt_file_en.srt -filter_complex
"[0:a][1:a]amerge=inputs=2[a1] ;[0:a][2:a]amerge=inputs=2[a2]" -map 0:v
-map "[a1]" -metadata:s:a:0 language=spa -metadata:s:a:0 title="Spanish" -map "[a2]" -metadata:s:a:1 language=eng
-metadata:s:a:1 title="English" -c:v copy -c:a aac -ac 2 -b:a 96k -c:s mov_text -metadata:s:s:0 language=spa -metadata:s:s:0 title="Spanish"
-metadata:s:s:1 language=eng -metadata:s:s:1 title="English" output_video.mp4




Everything works fine but the subtitles names are "Track 1" and "Track 2". The following part is not working :




metadata:s:s:0 title=




-
ffmpeg moving text but only within Y limits
28 décembre 2022, par Yoav MorI need to add text to a video that will scroll from bottom to top ; I managed to do it with something similar to this :


ffmpeg -i vid.mp4 -vf "drawtext=fontfile=tahoma.ttf:fontsize=20:fontcolor=green:x=(w-text_w)/2+20:y=if(lt(t\,2)\,480\,(h-400-(40*t))):textfile=scroll.txt:bordercolor=white:borderw=1" -c:v libx264 -y -preset ultrafast scrolling.mp4


The original video is 960x540, so the text starts at position y=480 and, after 2 seconds, starts moving up.
That bit works fine, and the text "vanishes" at the top of the frame as it scrolls up.
What I need to achieve is for the text to scroll only within certain Y limits, imagine a virtual box around the text, so it scrolls up only from a certain Y position in the bottom (but not the very bottom) and disappears into a line on the top that isn't the top part of the frame.
Can that be achieved with ffmpeg ?


EDIT : Maybe the trick here should be to put the text on top of a transparent video that's smaller in height, and then within the same command somehow merge this new video that has the text with the original video. Not sure how achieve that though.


-
Make VP9 encoding faster with the best possible quality without picture freezing
24 décembre 2017, par kostya572I am using this code to combine 2 files together (overlay file over original file) :
ffmpeg -r 60 \
-i originalfile.webm -i overlayfile.mov \
-filter_complex " \
[0:v]setpts=PTS-STARTPTS[base]; \
[1:v]setpts=PTS-STARTPTS+0.5/TB, \
format=yuva420p,colorchannelmixer=aa=0.7[overlay]; \
[base][overlay]overlay=x=(W-w)/2:y=0[v]" -map "[v]" -map 0:a -c:a copy -c:v libvpx-vp9 -lossless 1 -threads 4 -quality realtime -speed 8 -tile-columns 6 -frame-parallel 1 -vsync 1 -shortest resultfile.webmEncoding speed is not bad and quality output also, but after some time video picture could freeze for several seconds, then again it plays ok and then again could freeze.
How could I optimize this code to make fast speed with the highest possible quality as original file without picture freezing ?
Thank you