
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (24)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)
Sur d’autres sites (4955)
-
How to convert ffmpeg command to ffmpeg-python
1er décembre 2020, par Retro PieHello and thanks for reading.


I have the following command :
ffmpeg -i tmp.mp4 -loop 1 -i mask.png -filter_complex "[0:v]split [a][b];[a]transpose=1,crop=720:888:0:196,scale=876:1080,setdar=876/1080 [crop];[b]transpose=1,crop=720:888:0:196,scale=1920:1080,setdar=16/9,avgblur=76 [back];[1:v]alphaextract [mask];[crop][mask]alphamerge [masked];[back][masked]overlay=522:0" "out.mp4


And I would like to convert it to ffmpeg-python syntax. So far I was able to come up with the bellow, but it far from ready :


overlay_file = ffmpeg.input(mask)
(
ffmpeg
.input(tmp).split()
.overlay(overlay_file.hflip())
.alphaextract(),
.alphamerge(),
.output('out.mp4')
.run()
)



Any help will be appreciated.


-
FFMPEG- filtered video coming rotated
31 août 2017, par Alok Kumar VermaAfter a lot of struggle I finally did what I want, i.e., save filters using ffmpeg now for now I’m using the Vintage filter command line from FFMPEG in order to add Vintage Filter to it. But there is a certain problem, and the problem is that The output is coming 90 degree clockwise rotated which is not what I wanted.
I’ve used this command from FFMPEG documentation, and the vintage filter application is working fine.
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};I’ve read about how to do the rotation from this link : Video Rotation using FFMPEG
Now what I’ve tried is rotating the video 90 degree counterclockwise which transpose=2 after -vf from the documentation.
1.This is what I’ve done :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "transpose=2", "curves=vintage",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};But I got this problem in my logcat, i.e.,
[NULL @ 0xaaab0c00] Unable to find a suitable output format for 'curves=vintage' curves=vintage: Invalid argument
2. I’ve also done this in order to get the desired result :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "transpose=2",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};Now from above the result is fine, without any filter.
3. I’ve tried this also which was my last attempt to do that :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage", "-vf", "transpose=2",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};Here is what I have changed : "-vf", "curves=vintage", "-vf","transpose=2"
But the result was same as in the second, only the rotated video, no fiters applied to the video.
I’m in need of the result as I’ve reached close to my destination but the problem is there and I need the result as the filtered video with the rotated form and that has to be implemented in the string only.
I think there is some issue with the string before -vf as the video is getting rotated before -vf and when I apply transpose then the correct result comes. Any suggestion would be appreciated.
EDITS
I’ve tried using this too, the && in between the command in order to get the result but I’m getting this error in my logcat :
E/MediaMetadataRetrieverJNI: getFrameAtTime: videoFrame is a NULL pointer
What I’ve done is :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage",
"&&", "-vf", "transpose=2", "-s", "720x720", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:v", "2097k", "-vcodec", "mpeg4", savingPath}; -
avformat/segafilmenc : Add deinit function
14 janvier 2020, par Andreas Rheinhardtavformat/segafilmenc : Add deinit function
Prevents memleaks when the trailer is never written or when shifting the
data fails when writing the trailer.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>