Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (61)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (12610)

  • Evolution #3990 : Pouvoir utiliser dans SPIP

    21 avril 2021, par Brice Boucard

    Nouvel épisode... un

    trim($m[3], "\r\n")

    ne réponde pas pleinement à la situation...

    De nouveaux tests m’amènent à proposer cela, où l’on supprime les premiers espaces directement suivis d’un saut de ligne (si j’ai bien fait ce que je voulais) et où l’on trim la fin de la chaîne.

    $m[3] = preg_replace(’/\s*(\n|\r)/’, ’’, $m[3], 1) ;
    $m[3] = rtrim($m[3]) ;
    $code = "" . spip_htmlspecialchars($m[3]) . "" ;

    Merci de vos retours :)

  • 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

    


  • Splitting video in multiple episodes with ffmpeg [migrated]

    12 juin 2013, par Alex Smolov

    I need to cut one video into multiple pieces with ffmpeg.

    When I cut just one episode

    ffmpeg -i 001.mp4 -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:00:25.500 -strict -2 out1.mp4

    or

    ffmpeg -i 001.mp4 -vcodec copy -acodec copy -ss 00:00:25.500 -t 00:00:33.750 -strict -2 out2.mp4

    my video is cut instantaneously.

    But when I chain markers where I'd like to cut

    ffmpeg -i 001.mp4 -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:00:25.500 -strict -2 out1.mp4 -ss 00:00:25.500 -t 00:00:33.750 -strict -2 out2.mp4

    it still works, but it takes considerably more time (about 10 sec), and I see the same output as when I convert something.

    Is something wrong with my ffmpeg-command, or it is better to execute ffmpeg-commands one by one ?