
Recherche avancée
Autres articles (50)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (6193)
-
How do I subtract an R,G,B of 25 at all the pixels where this watermark appears in ffmpeg ?
3 janvier 2023, par PirateApp -
My Android app release is too big than expected
11 avril 2020, par Abhi JithI have created a simple android app to download the whatsapp status



I have completed all the functionalities.then the app size is less than 5MB




After that i added a third party plugin to add my app name to the downloaded video files as watermark



i used ffmpeg to add water mark in the video




But after that my app release size reached around 20MB.



I used minifyEnabled true to shrink the code.but doesn't worked




How to reduce my release size


-
Video created with ffmpeg won't play in video player
11 octobre 2014, par user3180253I’m using Python to create a video using ffmpeg. The following code is what I’m using...
import subprocess as sp
import Image
FFMPEG_BIN = "ffmpeg"
commandWriter = [ FFMPEG_BIN,
'-y',
'-f', 'image2pipe',
'-vcodec','mjpeg',
'-s', '480x360', # size of one frame
'-pix_fmt', 'rgb24',
'-r', '29', # frames per second
'-i', '-',
'-an', # Tells FFMPEG not to expect any audio
'-vcodec', 'mpeg4',
'-qscale', '5',
'-r', '29',
'-b', '250',
'./fire.mp4' ]
pipeWriter = sp.Popen(commandWriter, stdin=sp.PIPE)
fps, duration = 24, 10
for i in range(fps*duration):
im = Image.new("RGB",(480,360),(i%250,1,1))
im.save(pipeWriter.stdin, "JPEG")
pipeWriter.stdin.close()
pipeWriter.wait()
pipeWriter.terminate()After running the above code, I get an output video with a data rate of 214 kbps. This video won’t play in Windows Media Player. At first I was at a loss of how to get the video to play, so I compared it to another video that I downloaded. I noticed the only real difference was in the bit rates/data rates. I ran this command from the command line...
ffmpeg -i fire.mp4 -b:v 250k -bufsize 250k water.mp4
which as I understand it takes fire.mp4 and simply outputs a new video with a modified bit rate. This new output works when I open it in Windows Media Player.
The question I’m asking is how can I do this straight from Python ? I’ve tried adding a -b option to commandWriter (as shown) but this does not work. I’ve also added a bufsize = 10**8 in my pipeWriter but that does not work either.
Overall what I’m trying to accomplish is taking a video input.mp4, modifying each frame as I load it in memory, and then writing that frame to a new file output.mp4. So far ffmpeg is looking like the best tool ’cause I can’t get OpenCV to work at all.
So if anyone has a way to have a water.mp4 output file be able to run in Windows Media Player without needing to have that additional command line code run or a better way to complete my overall task, I would much appreciate that.