
Recherche avancée
Autres articles (111)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (9535)
-
ffmpeg overlay video with semi transparent video
25 octobre 2015, par endryhaI am trying to overlay background video with another semi transparent video using ffmpeg.
Thanks to Overlaying multiple videos with ffmpeg I managed to put video overlay over background video.
The problem is that I don’t know how to make overlay video semitransparent.
So far I am using following commands :
ffmpeg -i VID_105470127_044810.mp4 -vf "movie=VID_21550603_142437.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4
ffmpeg -i VID_105470127_044810.mp4 -i VID_21550603_142437.mp4 -filter_complex "overlay, overlay=10:10" combined.mp4I tried to play with fade effect but this is not what I want. Please point me out where to look and what can I try to achieve this.
UPDATE #1
It looks like blend filter is exactly what I need but another issue came out :
ffmpeg -i video1280x720.mp4 -vf "movie=video640x640.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4
[Parsed_blend_3 @ 0x7f8041500da0] First input link top parameters (size 1280x720, SAR 1:1) do not match the corresponding second input link bottom parameters (640x640, SAR 1:1)
[Parsed_blend_3 @ 0x7f8041500da0] Failed to configure output pad on Parsed_blend_3So probably if I can resolve issue with different resolutions I am done with my task.
Please advice what is the direction to go.UPDATE#2
To solve different resolution problem I decided to crop video and then proceed with blending filter
ffmpeg -i VID_1920x1080.mp4 -filter:v "crop=640:640:0:0" -c:a copy VID_1920x1080_cropped.mp4
ffmpeg -i VID_1920x1080_cropped.mp4 -i VID_21550603_142437.mp4 \
-filter_complex "[1:0] setdar=dar=1,format=rgba [a]; [0:0]setdar=dar=1,format=rgba [b]; [b][a]blend=all_mode='overlay':all_opacity=0.8" blended.mp4 -
ffmpeg overlay video with semi transparent video
20 janvier 2018, par endryhaI am trying to overlay background video with another semi transparent video using ffmpeg.
Thanks to Overlaying multiple videos with ffmpeg I managed to put video overlay over background video.
The problem is that I don’t know how to make overlay video semitransparent.
So far I am using following commands :
ffmpeg -i VID_105470127_044810.mp4 -vf "movie=VID_21550603_142437.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4
ffmpeg -i VID_105470127_044810.mp4 -i VID_21550603_142437.mp4 -filter_complex "overlay, overlay=10:10" combined.mp4I tried to play with fade effect but this is not what I want. Please point me out where to look and what can I try to achieve this.
UPDATE #1
It looks like blend filter is exactly what I need but another issue came out :
ffmpeg -i video1280x720.mp4 -vf "movie=video640x640.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4
[Parsed_blend_3 @ 0x7f8041500da0] First input link top parameters (size 1280x720, SAR 1:1) do not match the corresponding second input link bottom parameters (640x640, SAR 1:1)
[Parsed_blend_3 @ 0x7f8041500da0] Failed to configure output pad on Parsed_blend_3So probably if I can resolve issue with different resolutions I am done with my task.
Please advice what is the direction to go.UPDATE#2
To solve different resolution problem I decided to crop video and then proceed with blending filter
ffmpeg -i VID_1920x1080.mp4 -filter:v "crop=640:640:0:0" -c:a copy VID_1920x1080_cropped.mp4
ffmpeg -i VID_1920x1080_cropped.mp4 -i VID_21550603_142437.mp4 \
-filter_complex "[1:0] setdar=dar=1,format=rgba [a]; [0:0]setdar=dar=1,format=rgba [b]; [b][a]blend=all_mode='overlay':all_opacity=0.8" blended.mp4 -
How to convert multiple video files in a specific path outputvideo with the same video name
31 janvier, par Oussama GamerThe following code to converts a one video from mp4 to avi using ffmpeg


ffmpeg.exe -i "kingman.mp4" -c copy "kingman.avi"


I need to convert multiple videos in a specific path. "outputvideo" with the same video name


This is the my code that needs to be modified.


from pathlib import Path
import subprocess
from glob import glob

all_files = glob('./video/*.mp4')

for filename in all_files:
 videofile = Path(filename)
 outputfile = Path(r"./outputvideo/")
 codec = "copy"
 ffmpeg_path = (r"ffmpeg.exe")

outputfile = outputfile / f"{videofile.stem}"

outputfile.mkdir(parents=True, exist_ok=True)

command = [
 f"{ffmpeg_path}",
 "-i", f"{videofile}",
 "-c", f"{codec}",
 "{outputfile}",]

process = subprocess.Popen(
 command,
 stdout=subprocess.PIPE,
 stderr=subprocess.PIPE,
 text=True,
 bufsize=1,
 universal_newlines=True)
process.communicate()