Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (40)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • 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 (...)

Sur d’autres sites (5463)

  • Any way to assign terminal output to variable with python ?

    12 août 2016, par Gordon Fontenot

    I need to grab the duration of a video file via python as part of a larger script. I know I can use ffmpeg to grab the duration, but I need to be able to save that output as a variable back in python. I thought this would work, but it’s giving me a value of 0 :

    cmd = 'ffmpeg -i %s 2>&1 | grep "Duration" | cut -d \' \' -f 4 | sed s/,//' % ("Video.mov")
    duration = os.system(cmd)
    print duration

    Am I doing the output redirect wrong ? Or is there simply no way to pipe the terminal output back into python ?

  • Any way to assign terminal output to variable with python ?

    15 août 2022, par Gordon Fontenot

    I need to grab the duration of a video file via python as part of a larger script. I know I can use ffmpeg to grab the duration, but I need to be able to save that output as a variable back in python. I thought this would work, but it's giving me a value of 0 :

    



    cmd = 'ffmpeg -i %s 2>&1 | grep "Duration" | cut -d \' \' -f 4 | sed s/,//' % ("Video.mov")
duration = os.system(cmd)
print duration


    



    Am I doing the output redirect wrong ? Or is there simply no way to pipe the terminal output back into python ?

    


  • -ss in ffmpeg causes black frames

    26 avril 2016, par Demonedge

    I use ffmpeg to cut a video into clips. By this command :

    ffmpeg -ss 00:00:00 -i video.mp4 -to 00:01:00 -c copy cut.mp4

    Ffmpeg has to cut at key frames, thus when I concatenate each clip back to the entire video, there are some repeated frames at the beginning of each clip. Then I found this command :

    ffmpeg -i video.mp4 -ss 00:00:00 -to 00:01:00 -c copy cut.mp4

    By putting -i first solves the above problem, but it introduces some frozen frames when I concatenate my video clips back into the whole video. In fact, I saw it introduces some black frames at the beginning of each clip, so when I concatenate these clips back, there are frozen frames.

    So is there any way that I can cut my video into clips accurately without introducing black frames or frozen frames in ffmpeg ?