
Recherche avancée
Autres articles (44)
-
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (6175)
-
FFMPEG - Watermark in Random Position
13 octobre 2018, par gbviscontiI need to make a watermark in my video with the following loop :
- Appear in a random position on the video.
- Fade out after 3 seconds.
- Appear again after random seconds.
I have read documentation and also found a forum with similar solution, that is almost what I need.
ffmpeg -i video.mp4 -c:v libx264 -preset veryfast -crf 23 -tune zerolatency -vendor ap10 -pix_fmt yuv420p -filter:v drawtext=fontfile=arial.ttf:text='WatermarkTextHere':fontcolor=black@0.5:fontsize=16:x=if(eq(mod(n\,200)\,0)\,sin(random(1))*w\,x):y=if(eq(mod(n\,200)\,0)\,sin(random(1))*h\,y) -c:a copy outvideo2.mp4
I don’t know how to adapt correctly yet.
EDIT
After some hours I managed to get this. It fades in and out, but is not really random. The logo.png only appears mostly in upper left area of the video. How to make it appear more random in any area of the video ?
ffmpeg -i input.mp4 -loop 1 -i logo.png -filter_complex "[1]trim=0:30,fade=in:st=0:d=1:alpha=1,fade=out:st=9:d=1:alpha=1,loop=999:750:0,setpts=N/25/TB[w];[0][w]overlay=shortest=1:x=if(eq(mod(n\,200)\,0)\,sin(random(1))*w\,x):y=if(eq(mod(n\,200)\,0)\,sin(random(1))*h\,y)" output.mp4
-
ffmpeg copy video in video with a specific time
13 février 2017, par AlklIm new in this topic (beginner) and Im german... So it’s a bit difficult to find the correct words...
I’ll try to explain what I’ve done and what I want to do :
-
Extract video area from the original video converted in PRORES codec :
ffmpeg.exe -i test.mkv -ss 00:06:21.99 -t 00:00:01.94 -async 1 -strict -2 -c:v prores_ks -pix_fmt yuva444p10le -profile:v 4444 -bits_per_mb 8000 -s 1920x1080 cut_video.mov
-
Edit the cut in After Effects
- Convert the PRORES in Matroska
ffmpeg.exe -i "C :\Users\Alex\Desktop\ffmpeg-20170202-08b0981-win64-static\bin\cut_video\cut_video.mov" -vcodec ffv1 -acodec pcm_s16le temp.mkv
- Replace the video area in the originale video file at the time 00:06:21.99...
I spend 4 hours for the two commands...
So I despair at the fourth step. Is it possible ? Can you help me ?I made a picture, so you can understand better what Im doing... : http://i.imgur.com/HqlNxzW.jpg
Best regards from germany,
Alex
-
-
Unable to record video using FFMPEG in Python
23 mai 2019, par user1932747I have this animation generated using python. And once it generates, it’s supposed to make a a video. I’ve gotten as far as creating the file, however I get a traceback error. And when I attempt to open the file, there’s nothing in it.
Windows 10, running python 3.
I’ve messed with the PATH of ffmpeg, placed it directly in the folder. I removed a piece of code that generated a unique file name. And replaced it with a string. No file was being generated at all prior to that.
I also tried to change the codecs, still nothing.
The code that creates video :
plt.show()
animation.save('Output_Test.mp4', fps=30, extra_args=['-vcodec', 'libx264'])I expect to just get a video that says Output_Test.mp4. Which I do get, but it’s empty.
Traceback Error :
Traceback (most recent call last):
File "C:\Users\andre\OneDrive\Desktop\FranchiseRevenueComparison-master\FranchiseAnimation.py", line 277, in <module>
animation.save('Output_Test.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
File "C:\Users\andre\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\animation.py", line 1139, in save
anim._init_draw()
File "C:\Users\andre\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\animation.py", line 1732, in _init_draw
self._draw_frame(next(self.new_frame_seq()))
File "C:\Users\andre\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\animation.py", line 1755, in _draw_frame
self._drawn_artists = self._func(framedata, *self._args)
File "C:\Users\andre\OneDrive\Desktop\FranchiseRevenueComparison-master\FranchiseAnimation.py", line 259, in animate
self.ax.figure.canvas.draw()
File "C:\Users\andre\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 10, in draw
_backend_tk.blit(self._tkphoto, self.renderer._renderer, (0, 1, 2, 3))
File "C:\Users\andre\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\backends\_backend_tk.py", line 77, in blit
photoimage.blank()
File "C:\Users\andre\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py", line 3548, in blank
self.tk.call(self.name, 'blank')
_tkinter.TclError: invalid command name "pyimage10"
</module>RESOLVED :
I just had to reverse the order of plot and save.