
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 (29)
-
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 (...) -
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. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (5170)
-
How do I resize my video ? in proportion (python)
23 septembre 2022, par ggn0*I am sorry for my poor English. It's a translator.


I used Python moviepy to resize it, but the pixels are broken. I want to make the video 9:16 ratio while maintaining the original image quality. (So that there are black frames on both sides)


from moviepy.editor import *
c = VideoFileClip('test.mp4')
f = c.resize(newsize=(1080,1920))
f.write_videofile('aa.mp4')



This code causes pixels to collapse.


Let me show you an example picture.








It doesn't have to be moviepy, so I'd appreciate it if you could tell me how to use Python. (PIL ? opencv ?)


Thank you so much. Have a nice day 🙏


-
Screen recorder in Ubuntu using python
3 août 2013, par mridulI am a hobby programmer and trying to make screen-recorder in Ubuntu using python.
Using this code able to take screenshot.import wx
app = wx.App(False)
s = wx.ScreenDC()
w, h = s.Size.Get()
b = wx.EmptyBitmap(w, h)
m = wx.MemoryDCFromDC(s)
m.SelectObject(b)
m.Blit(0, 0, w, h, s, 0, 0)
m.SelectObject(wx.NullBitmap)
b.SaveFile("screenshot.png", wx.BITMAP_TYPE_PNG)And using loop I take more pictures and create video using these screen shots.My code is given bellow,
import wx,os
app=wx.App(False)
s = wx.ScreenDC()
w, h = s.Size.Get()
b = wx.EmptyBitmap(w, h)
m = wx.MemoryDCFromDC(s)
i=0
while i<50:
m.SelectObject(b)
m.Blit(0, 0, w, h, s, 0, 0)
m.SelectObject(wx.NullBitmap)
b.SaveFile('{0:05d}.png'.format(i), wx.BITMAP_TYPE_PNG)
i+=1
os.system('ffmpeg -f image2 -r 8 -i %05d.png -vcodec mpeg4 -y movie1.mp4')
i=0
while i<50:
os.remove('{0:05d}.png'.format(i))
i += 1 `In above code I take 50 pictures and store as 00000.png to 00049.png and make video using ffmpeg.
After creating video I delete all pictures.Current Problems :
- Very small delay between screen shoots. If try to record videos using this code out put is not perfect.
- For recording long time it is not efficient. It take lot of hard drive memory to store screen shoots. And use more CPU .
What I do for get code more efficient ? Using pure python how to create video from pictures ? Is there any alternative methods to record screen ?
I like to improve my code. -
Hide ffplay window and just show input video [closed]
5 mai 2023, par Scott WilkersonI'm using FFMPEG/FFPLAY to display video on a monitor from a Decklink card. After much research I finally found a good command to get the video displayed correctly, and at a specific location in the monitor with no border :


ffplay -f dshow -video_size 1280x720 -left 631 -top 19 -rtbufsize 702000k -framerate 59.94 -i video="Decklink Video Capture":audio="Decklink Audio Capture" -threads 2 -noborder


The problem is I need to ONLY display the borderless input video. NOT ffplay running. I figured out I could use -nostats to get rid of the video statistics, but not the command prompt window.


-nostdin DOESN'T WORK
-nodisp HIDES THE INPUT VIDEO, not the command prompt window.


Thanks in advance !