
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (57)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (8886)
-
avformat/http: increase BUFFER_SIZE to MAX_URL_SIZE + HTTP_HEADERS_SIZE
11 mai 2020, par Joey Smithavformat/http: increase BUFFER_SIZE to MAX_URL_SIZE + HTTP_HEADERS_SIZE
Some real-world sites use an authorization header with a bearer token ; when
combined with lengthy request parameters to identify the video segment,
it's rather trivial these days to have a request body of more than 4k bytes.MAX_URL_SIZE is hard-coded to 4k bytes in libavformat/internal.h, and
HTTP_HEADERS_SIZE is 4k as well in libavformat/http.h, so this patch increases
the buffer size to 8k, as that is the default request body limit in Apache, and
most other httpds seem to support at least as much, if not more.Signed-off-by : Marton Balint <cus@passwd.hu>
-
How do I access the files from a ffmpeg_streaming PUT request in Django ?
8 juin 2020, par SageI'm trying to stream video from my webcam using a python package called ffmpeg_streaming and Django2.0. I can see the request being received on the server side but I can't access the actual files in views.



This is my views.py



@csrf_exempt
def stream_video(request):
 stream = QueryDict(request.body)
 print("Stream: ", stream)
 data = {'stream': 'streaming...'}
"""
 if hasattr(request, '_post'):
 del request._post
 del request._files
 try:
 request.method = 'POST'
 request._lost_post_and_files()
 request.method = 'PUT'
 except(AttributeError):
 request.META['REQUEST_METHOD'] = 'POST'
 request._load_post_and_files()
 request.META['REQUEST_METHOD'] = 'PUT'
 request.PUT = request.POST
"""
 file_ob = request.POST
 print('Files: ', file_ob)
 files = request.FILES
 print('Files:' , files)
 return JsonResponse(data)




stream_video.py



import ffmpeg_streaming

video = ffmpeg_streaming.input('/dev/video0', capture=True)
_480p = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))
hls = video.hls(Formats.h264(), hls_list_size=10, hls_time=5, method='POST', post_data='File')
hls.flags('delete_segments')
hls.representations(_480p)
hls.output('http://127.0.0.1:8000/stream_video/out.m3u8')




How would I go about accessing the files and treating them as uploads ?


-
FFMPEG is not executing
14 juin 2020, par user2397316I have installed FFMPEG in my Centos7 dedicated Server, now I want to run the FFMPEG, but it is not executing, can anyone help what could be the reason.



Note : I have Cpanel installed also.
My code is below :





 
 
 
 
 <form action="" method="post" enctype="multipart/form-data">
 <input type="file" />
 <input type="submit" />
 </form>
 

<?php
if (isset($_POST['submit'])){
 $currentPath=$_FILES['video']['tmp_name'];
 $ffmpeg = "/usr/bin/ffmpeg";
 exec("$ffmpeg -i ".$currentPath." -an output/video.mp4");
 echo "OK";
}
?>