
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (62)
-
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 -
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 -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (11967)
-
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. -
Convert a video and capture a jpeg frame via ffmpeg php
15 mai 2014, par HackerManiacCan anyone give a code on how do i covert a video using ffmpeg.
As thought currently i have only uploading system.
vu.php(only a part is shown)
define('UPLOAD','../../videos/');
$fileName = time().$file['name'];
$target = UPLOAD.$fileName;
if(move_uploaded_file($file['tmp_name'],$target)){
exec("ffmpeg -i ".UPLOAD." ".UPLOAD.$filename.".flv");
}This pice of code block just uploads the video on video folder but does not converts it to
.flv
.
I am not sure how to use ffmpeg.My diretory looks like this
www[localhost]->videos[videos folder]
www[localhost]->pictures[pictures folder]
www[localhost]->resources[folder]->php[folder]->vu.phpI also want to return a
.jpg
image of any frame of video through json by converting via ffmpeg and uploading it topictures
folder.return json_encode(array("thumbnail"=>$image_src));
-
Révision 105450 : correction coquille et correction des liens de forum interne
25 juillet 2017, par gouz@root-me.org