
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (77)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (10869)
-
avformat : Immersive Audio Model and Formats demuxer
25 novembre 2023, par James Almeravformat : Immersive Audio Model and Formats demuxer
Signed-off-by : James Almer <jamrial@gmail.com>
-
avformat : Immersive Audio Model and Formats muxer
25 novembre 2023, par James Almer -
Save generated image to ImageField model Django
7 janvier 2023, par MrLonely

Detected path traversal attempt in '/home/mrlonely/Desktop/lumen/lumen/media/thumbnail/6.jpeg'




When i run this in the views.py :


def generate_thumbnail(instance):
 post = Post.objects.get(pk=instance.pk)
 output = 'media/thumbnail/' + post.title + '.jpeg'
 filename_thumbnail = Path.joinpath(filename, output) 
 try:
 (
 ffmpeg
 .input(str(filename)+post.video.url, ss='00:00:20')
 .output(output, vframes=1)
 .overwrite_output()
 .run(capture_stdout=True, capture_stderr=True)
 )
 with open(filename_thumbnail, 'rb') as file_handler:
 django_file = File(file_handler)
 post.thumbnail.save(filename_thumbnail, 'thumbnail/')
 except ffmpeg.Error as e:
 print(e.stderr.decode(), file=sys.stderr)
 sys.exit(1)



I am trying to connect the ffmpeg generated thumbnail to the model ImageField on the Post model (instance is post)