Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (65)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

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


    


  • Silent Audio In Concatenated MP4s (Python, FFMPEG)

    28 janvier, par John Coleman

    I am trying to solve an issue with concatenating several video files and ending up with silent audio for the whole generated video. Part of this is generating two videos, one title and one end screen, created from images, which I have added silence to. I then take these and add up to seven videos (with stereo audio, 48000hz). So, it ends up being Title + up to seven videos + end screen.

    


    I've added silence to the title/end screens, set the sample rate, channels, etc. but still no go. I still lose audio on the videos that should have audio (that originally did).

    


    Relevant code :

    


    Title Screen :

    


    (
            ffmpeg
            .input(thumbnail_path, loop=1, t=self.config.title_duration)
            .filter('fade', type='in', duration=self.config.fade_duration)
            .output(title_temp, vcodec='h264', acodec='aac', af='aevalsrc=0:d={}[aout]:s=48000:c=2'.format(self.config.title_duration))
            .overwrite_output()
            .run(capture_stdout=True, capture_stderr=True)
        )


    


    End Screen :

    


    (
            ffmpeg
            .input(end_screen_path, loop=1, t=self.config.end_screen_duration)
            .filter('fade', type='in', duration=self.config.fade_duration)
            .output(end_temp, vcodec='h264', acodec='aac', af='aevalsrc=0:d={}[aout]:s=48000:c=2'.format(self.config.end_screen_duration))
            .overwrite_output()
            .run(capture_stdout=True, capture_stderr=True)
        )


    


    Concatenate :

    


    (
            ffmpeg
            .input(concat_file, format='concat', safe=0)
            .output(output_path, c='copy')
            .overwrite_output()
            .run(capture_stdout=True, capture_stderr=True)
        )


    


    Any help with this would be SUPER appreciated. Thank you !

    


  • How do I prevent an extended frame when suspending and resuming an ffmpeg process in C# ?

    13 juin 2024, par this_is_a_display_name

    I have a c# application where I have control of an ffmpeg (https://www.ffmpeg.org/) process. I am using it to capture video and audio, either from desktop or webcam. I am using code similar to the answer from this question (How to pause/resume ffmpeg video capture in windows from C# application) to suspend and resume the process. However, while suspended, the captured video extends the frame it was suspended on for the entire duration of the suspension.

    


    My arguments passed into the process :
-f gdigrab -framerate 30 -i desktop -f dshow -i audio=\"Stereo Mix (Realtek(R) Audio)\" -preset ultrafast -pix_fmt rgb24 output.mp4

    


    I have tried adding -vf setpts=N/FR/TB to my arguments, and this works partially. It successfully prevents the extended frame, but then seriously affects the playback speed of the video.

    


    How do I prevent this extended frame from occurring, or prevent the additional argument from affecting the playback speed of the video ? I am hoping for a solution in C#, although if there is an issue with my command line arguments that is an easier fix, that is great also.

    


    My ideal outcome is to have the process record, be suspended then resumed, and have the video play normally without having captured anything while suspended.

    


    Record for 10 seconds, suspend for 20 seconds, record for 30 seconds, end recording -> should result in a 40 second video.

    


    I'm aware that this question may be better suited for the super user stack exchange, but as I am primarily looking for a c# solution, I am asking here first.