
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (40)
-
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (7665)
-
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 ?


-
avfilter/vsrc_testsrc : increase max level of haldclutsrc
26 octobre 2019, par Paul B Mahol -
increase rate control buffer level precision
20 août 2010, par John Koleszarincrease rate control buffer level precision