Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (39)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (5980)

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


    


  • Ffmpeg "no directory found" when passing in a path to the mp3 file

    21 février 2020, par Eugene Levinson

    How my code should work :

    Join the voice channel with the user who sent the command

    Download the video using the link

    Save it as random 16 digit number .mp3

    Then pass the path to the FFmpeg player to play

    My code :

    The random 16 digit number

    def get_digits(amount):
       st = ""
       for i in range(amount):
           n = random.randint(0,9)
           st = st + str(n)

       return int(st)

    Downloading the file

    def get_path(url):

       #checking if the directory exists
       os.makedirs('Music', exist_ok=True)

       title = YouTube(url).streams.get_highest_resolution().title
       current_directory = pathlib.Path(__file__).parent.absolute()

       print(str(current_directory))

       #name for the music
       name = str(get_digits(16))

       YouTube(url).streams.filter(only_audio=True).order_by("bitrate").desc().first().download("Music",name )
       return str(str(current_directory) + "/Music/" + name + ".mp3")

    This gets called on command play

    #function to connect to a voice chat
    async def join_auth(ctx):
       try:
           channel = ctx.author.voice.channel
           vc = await channel.connect()
           return vc
       except Exception as e:
           logg("Exception occured when joining a voice channel: " + str(e),"error",str(ctx.guild.name), str(ctx.guild.id))

    The error I get :
    C:\Users\Eugene\Desktop\Discord bot/Music/4343941300524002.mp3: No such file or directory
    But the directory C:\Users\Eugene\Desktop\Discord bot\Music exists and it does contain the 4343941300524002.mp3 file. Does anyone know why do I get the error ?

  • Node js Rtsp stream get audio and video from different sources

    14 septembre 2020, par El Mantih Chaimae

    So I'm building a node js school streaming app that takes an IP cam stream and shows it on a web page , but I found problems with audio, so I thought i would be easier to connect a microphone with the device (computer) and combine the audio and video in one stream

    


    I'm using node-RTSP-stream, socket.io, FFmpeg and jsmpeg