
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 (37)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (5061)
-
Using python subprocess from bytes to bytes
5 mai 2020, par thorwhalenI can convert a mp4 to wav, using
ffmpeg
, by doing this :


ffmpeg -vn test.wav -i test.mp4 




I can also use
subprocess
to do the same, as long as my input and output are filepaths.


But what if I wanted to use
ffmpeg
directly on bytes or a "file-like" object likeio.BytesIO()
?


Here's an attempt at it :



import subprocess
from io import BytesIO
b = BytesIO()

with open(rjoin('test.mp4'), 'rb') as stream:
 command = ['ffmpeg', '-i']
 proc = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=b)
 proc.communicate(input=stream.read())
 proc.wait()
 proc.stdin.close()
 proc.stdout.close()




Gives me :



---------------------------------------------------------------------------
UnsupportedOperation Traceback (most recent call last)
 in <module>
 5 with open(rjoin('test.mp4'), 'rb') as stream:
 6 command = ['ffmpeg', '-i']
----> 7 proc = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=b)
...
 1486 # Assuming file-like object
-> 1487 c2pwrite = stdout.fileno()
 1488 
 1489 if stderr is None:

UnsupportedOperation: fileno
</module>


-
lavc/cbs_av1 : Save more frame ordering information
20 mars 2024, par Mark Thompson -
FFmpeg compose, multi layers and filters, need kindly help
9 octobre 2019, par jadeshohyPretty new to FFmpeg. We would like to use FFmpeg as a important part of an AR project.
Currently, we find it is not easy for us.
We want to compose the footages with FFmpeg.
We got 5 layers, wanted to blend them with specific mode, like the things in After Effects.
-
layer-1/ [A.webm] video,vp9 codec, which has a transparent BG,has to be added as [normal mode]
-
layer-2/ [B.mp4] video, optical-flare things with black BG,has to be added as [screen mode]
-
layer-3/ [C.mp4] video, some motion graphic things with light BG,has to be added as [overlay mode]
-
layer-4/ [BG.MP4], backgound things, has to be added as [normal mode]
After we blend those 4 (like pre-compose,use blend filter), we want to add another layer-5/[icon.png] which is the special icon.
Layer-5 need to overlay the pre-compose. We have to overlay it at the special position (use overlay filter ?).
Cause [icon.png] may change frequently. we want to deal with that after the 4 layer blending.
But at the first step, when we set normal mode for layer-1 in blend filter, layer-1 [A.webm] lost the transparent BG,it gave us a black BG which block all other things.
Blend filter can not handle the alpha channel of vp9 webm ?
When we set the mode of layer-1 to screen mode,the translucent thing was not what we need.Could you please give us some commands to achieve the blend above ?
The commands that are really work will be extremely useful for our FFmpeg initiation.
-