Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (45)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (6185)

  • 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

    


    def replay_episode(self):
    self._env.reset()
    video_recorder = VideoRecorder(self._env, "{}/episode{}.mp4".format(self._output_directory, episode_number), enabled=True)
    for action_taken in self._current_episode_actions:
        self._env.render()
        video_recorder.capture_frame()
        self._env.step(action_taken)
    video_recorder.close()

for i in range(solution.get_episode_count()):
    # AI Stuff
    episode_number = i + 1
    solution.intialise_episode(episode_number)
    profiler.enable()
    while not solution.current_episode_done():
       solution.run_tick()
    solution.train_model()
    profiler.disable()
    export_profiling_results(profiler, '{}/episode{}.csv'.format(solution._output_directory, episode_number))


    # This is the bit we're intrested in
    if solution.current_episode_successful() or episode_number % 50 == 0:
        solution.replay_episode()

    done_time = time.time()
    print("Episode {} Completed in {}s".format(episode_number, done_time-start_time))
    start_time = done_time

solution.close()


    


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

    


    DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
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 
-r 30 data/1003083349/episode50.mp4"
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Capturing video frame: path=data/1003083349/episode50.mp4
DEBUG: Closing video encoder: path=data/1003083349/episode50.mp4


    


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

    


    Thank you in advance for any responses

    


  • Use ffmpeg to convert .exr to .hdr environment map

    30 octobre 2024, par dubious

    There are several .exr environment maps at https://svs.gsfc.nasa.gov/4851/

    


    I want to convert one of these .exr files into an .hdr environment map (RGBE / Radiance HDR).

    


    The command :

    


    ffmpeg -i starmap_2020_4k.exr starmap_2020_4k.hdr

    


    Gives the following error :

    


    


    Unable to find a suitable output format for 'starmap_2020_4k.hdr'

    


    starmap_2020_4k.hdr : Invalid argument

    


    


    Most search results are concerned with using .exr to create HDR videos.

    


    Does ffmpeg support such a conversion ? What other parameters are needed ?

    


  • Check for Executable in Windows Environment Variables

    26 juillet 2017, par Matt McManis

    I’m using Windows 10, Visual Studio 2015, C#, WPF.

    I want to check if the program ffmpeg.exe exists in Environment Variables.

    I have modified this code : https://stackoverflow.com/a/3856090/6806643

    It cycles through all Environment Variables Paths, checking for ffmpeg.exe in each.


    It works, but is this the most optimal way to do this ?

    Are there instances where this will not work if the user has FFmpeg set up a different way ?


    Environment Variables


    var envar = Environment.GetEnvironmentVariable("PATH"); // Just the Path, no Exe
    int found = 0;


    // Check All Environment Variables Paths for ffmpeg.exe
    //
    foreach (var envarPath in envar.Split(';'))
    {
       // Path + Exe
       var exePath = System.IO.Path.Combine(envarPath, "ffmpeg.exe");

       // Check
       if (File.Exists(exePath))
       {
           found = 1;
       }
    }


    // Display Message if FFmpeg exists
    //
    if (found == 1)
    {
       MessageBox.Show("FFmpeg exists.");
    }
    else if (found == 0)
    {
       MessageBox.Show("Cannot locate FFmpeg.");  
    }