Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (30)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

Sur d’autres sites (7082)

  • How do I access the files from a ffmpeg_streaming PUT request in Django ?

    8 juin 2020, par Sage

    I'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.

    &#xA;&#xA;

    This is my views.py

    &#xA;&#xA;

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

    &#xA;&#xA;

    stream_video.py

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;

  • Unable to play video recorded from OpenAi Environment

    10 mars 2021, par ipro_ultra

    I am developing some Reinforcement Learning algorithms in python and I am trying to record the environment into a video however I am unable to play the file once I have recorded it and it is only 1KB in size, I have tried an example I found online and this didn't work either so I assume it's a system issue rather than a problem with my code, I have enabled the debugging by running gym.logger.set_level(gym.logger.DEBUG) but this doesn't seem to through anything useful back, below is my code

    &#xA;

    def replay_episode(self):&#xA;    self._env.reset()&#xA;    video_recorder = VideoRecorder(self._env, "{}/episode{}.mp4".format(self._output_directory, episode_number), enabled=True)&#xA;    for action_taken in self._current_episode_actions:&#xA;        self._env.render()&#xA;        video_recorder.capture_frame()&#xA;        self._env.step(action_taken)&#xA;    video_recorder.close()&#xA;&#xA;for i in range(solution.get_episode_count()):&#xA;    # AI Stuff&#xA;    episode_number = i &#x2B; 1&#xA;    solution.intialise_episode(episode_number)&#xA;    profiler.enable()&#xA;    while not solution.current_episode_done():&#xA;       solution.run_tick()&#xA;    solution.train_model()&#xA;    profiler.disable()&#xA;    export_profiling_results(profiler, &#x27;{}/episode{}.csv&#x27;.format(solution._output_directory, episode_number))&#xA;&#xA;&#xA;    # This is the bit we&#x27;re intrested in&#xA;    if solution.current_episode_successful() or episode_number % 50 == 0:&#xA;        solution.replay_episode()&#xA;&#xA;    done_time = time.time()&#xA;    print("Episode {} Completed in {}s".format(episode_number, done_time-start_time))&#xA;    start_time = done_time&#xA;&#xA;solution.close()&#xA;

    &#xA;

    Here is the log I get from the environment when the replay_episode() method is called

    &#xA;

    DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Starting ffmpeg with "ffmpeg -nostats -loglevel error -y -f rawvideo -s:v 600x400 -pix_fmt rgb24 -framerate 30 -i - -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -vcodec libx264 -pix_fmt yuv420p &#xA;-r 30 data/1003083349/episode50.mp4"&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4&#xA;DEBUG: Closing video encoder: path=data/1003083349/episode50.mp4&#xA;

    &#xA;

    When I attempt to play the video I get the error : This file isn&#x27;t playable. That might be because the file type is unsupported, the file extension is incorrect, or the file is corrupt. 0xc10100be

    &#xA;

    Thank you in advance for any responses

    &#xA;

  • ffserver : Use AVOption API to access ffm demuxer instead of direct access depending...

    20 novembre 2015, par Michael Niedermayer
    ffserver : Use AVOption API to access ffm demuxer instead of direct access depending on ABI
    

    server_attached is newly added so the demuxer knows if there is an attached server
    that can update the write index. This is needed to fix a infinite loop

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] ffserver.c