Recherche avancée

Médias (91)

Autres articles (57)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

Sur d’autres sites (8844)

  • Add audio which has short duration to a long video with using amix code

    26 avril 2020, par Tevfik

    ffmpeg -y -i audio.mp3 -i input.mp4 -filter_complex "[0:a][1:a]amix=inputs=2:duration=shortest" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 1400k -profile:v main -level 3.1 -acodec libmp3lame -b:a 128k -ar 44100 -preset superfast output.mp4

    



    ffmpeg -i r.mp4 -i logo.gif -filter_complex "[0:v]setpts=PTS/1.06,scale=854:480[v1] ;[0:v]setpts=PTS/1.05,scale=854:480[v2] ;[v2]setpts=PTS/1.06,scale=854:480[v3] ;[v1][v3]overlay=shortest=1:enable='lt(mod(t,6.9),3)*gte(t,6.9)'[vm] ;[vm][1:v]overlay=5:main_h-overlay_h-5 ; -pix_fmt yuv420p -c:v libx264 -profile:v main -level:v 4.1 -g 33 -bf 2 -crf 22 -flags +ildct+ilme -top 1 -c:a ac3 -b:a 320k -ar 48000 -an -aspect 16:9 MP4_HD_420.MP4

    



    I want to join these codes in a one code. My aim mix mp3 audio and video audio without delete the video sound and then use the codes below. Mp3 sound duration is too short that's why I want to hear the sound till the video finishes. But I couldn't manage to join them. Need your help thanks...

    


  • Python video player using ffpyplayer.player with audio repeated crack issue at end of clip

    17 janvier 2021, par sunyaer

    I am using the codes below to do a video player. For video clips cut using this command : "ffmpeg -i PrideAndPrejudice.mp4 -ss 00:50:31 -t 00:03:30 OutPutPP.mp4", there is audio crack that keeps repeating a couple of times when the picture stops at the end of the video. I suspect there may be some issues with the codes of QTimer, but as I am quite new to Python and ffmpeg, and can't figure out what exactly the problem is, not to mention how to fix it. It would be greatly appreciated for your help.

    


        self.timer = QTimer()
    self.timer.setInterval(50)
    self.timer.start()
    self.timer.timeout.connect(self.showFrame)


    


    This is the whole codes :

    


     from ffpyplayer.player import MediaPlayer
 import sys
 from PyQt5.QtWidgets import *
 from PyQt5.QtGui import QPixmap, QImage, QImageReader
 from PyQt5.QtCore import QTimer

class MyApp(QWidget):
    def __init__(self, name, parent=None):
        super(MyApp, self).__init__(parent)
        self.label = QLabel()
        self.qimg = QImage()
        self.val = ''

        self.player = MediaPlayer("PrideAndPrejudice005030.mp4")
        self.timer = QTimer()
        self.timer.setInterval(50)
        self.timer.start()
        self.timer.timeout.connect(self.showFrame)

        layout = QVBoxLayout()
        layout.addWidget(self.label)
        self.setLayout(layout)
        self.setWindowTitle(name)

        # self.showFullScreen()

    def showFrame(self):
        frame, self.val = self.player.get_frame()
        if frame is not None:
            img, t = frame
            self.qimg = QImage(bytes(img.to_bytearray()[0]), img.get_size()[0], img.get_size()[1],
                               QImage.Format_RGB888)
            self.label.setPixmap(QPixmap.fromImage(self.qimg))


if __name__ == '__main__':
    app = QApplication(sys.argv)
    t = MyApp(sys.argv[0])
    t.show()
    sys.exit(app.exec_())


    


  • Python video player using ffpyplayer.player with audio repeated cracking at end of clip

    18 janvier 2021, par sunyaer

    I am using the codes below to do a video player. For video clips cut using this command : "ffmpeg -i PrideAndPrejudice.mp4 -ss 00:50:31 -t 00:03:30 OutPutPP.mp4", there is audio crack that keeps repeating a couple of times when the picture stops at the end of the video. I suspect there may be some issues with the codes of QTimer, but as I am quite new to Python and ffmpeg, and can't figure out what exactly the problem is, not to mention how to fix it. Your help would be greatly appreciated.

    


        self.timer = QTimer()
    self.timer.setInterval(50)
    self.timer.start()
    self.timer.timeout.connect(self.showFrame)


    


    This is the whole codes :

    


     from ffpyplayer.player import MediaPlayer
 import sys
 from PyQt5.QtWidgets import *
 from PyQt5.QtGui import QPixmap, QImage, QImageReader
 from PyQt5.QtCore import QTimer

class MyApp(QWidget):
    def __init__(self, name, parent=None):
        super(MyApp, self).__init__(parent)
        self.label = QLabel()
        self.qimg = QImage()
        self.val = ''

        self.player = MediaPlayer("PrideAndPrejudice005030.mp4")
        self.timer = QTimer()
        self.timer.setInterval(50)
        self.timer.start()
        self.timer.timeout.connect(self.showFrame)

        layout = QVBoxLayout()
        layout.addWidget(self.label)
        self.setLayout(layout)
        self.setWindowTitle(name)

        # self.showFullScreen()

    def showFrame(self):
        frame, self.val = self.player.get_frame()
        if frame is not None:
            img, t = frame
            self.qimg = QImage(bytes(img.to_bytearray()[0]), img.get_size()[0], img.get_size()[1],
                               QImage.Format_RGB888)
            self.label.setPixmap(QPixmap.fromImage(self.qimg))


if __name__ == '__main__':
    app = QApplication(sys.argv)
    t = MyApp(sys.argv[0])
    t.show()
    sys.exit(app.exec_())