Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (25)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7103)

  • 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 ?