Recherche avancée

Médias (91)

Autres articles (71)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

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

  • Convert a video to mp3 in python without ffmpeg

    13 octobre 2020, par Breno Henrique

    I have some problems when I tryed to convert a video to music in python with moviepy and the prompt given me a error, because this library need ffmepg, so I can't install ffmepg, because now only have the x64 version to download, and now I have this problem, and I thinking what is the other way to install the ffmepg or convert a video to music ! Can someone help-me, Thanks !

    


    Code to convert :

    


    with VideoFileClip(mp4f) as vc:
    with vc.audio as ac:
        ac.write_audiofile(mp3f)


    


    Error :

    


    OSError: MoviePy error: the file X could not be found!
Please check that you entered the correct path.


    


    System details :
Python - 3.8.6
Windows 10 Pro x86

    


  • Problems with using on user computers without ffmeg

    8 janvier 2021, par DevilPD

    My Python program uses ffmpeg. However, if ffmeg was installed on your computer at the time of deployment and is not configured or does not exist in a directory such as the exe file, it will not work normally. If my program has to use ffmpeg while running, I would like to use it in the same folder in the library folder. What should I do ?

    


      try:
        for i in sp_text:
            try:
                output_dir = os.path.join('./', '%(playlist_title)s', '%(playlist_index)s. %(title)s.%(ext)s')

                download_list = [
                    i,
                ]

                ydl_opt = {
                    'outtmpl': output_dir,
                    'format': 'bestaudio/best',
                    'postprocessors': [{
                        'key': 'FFmpegExtractAudio',
                        'preferredcodec': 'mp3',
                        'preferredquality': '192',
                    }, {'key': 'FFmpegMetadata'}, ],
                }

                with youtube_dl.YoutubeDL(ydl_opt) as ydl:
                    ydl.download(download_list)

                self.lbl.setText('Success!')
            except:
                self.lbl.setText('Error1')
    except:
        self.lbl.setText('Error2')


    


  • ffmpeg audio/video sync problems when uploading to WhatsApp

    11 janvier 2021, par Luke Collins

    (Note : I have looked at related questions such as this one, but the solutions there didn't work for me since presumably their output files wouldn't play correctly in mpv, whereas mine do.)

    


    I want to send a scene from a film to my friend on WhatsApp. I run

    


    


    ffmpeg -i film.mp4 -ss 00:25:30 -t 00:03:00 -c: copy out.mp4

    


    


    to extract the clip, which produces the file out.mp4 which plays fine when I play it with mpv.

    


    If instead, I play the file in my browser (firefox), the first frame is static for a couple of seconds while audio plays, until the video starts and the video and audio are both in sync. (In other words, it seems the file has additional unnecessary audio information appended to the beginning of the file, which starts before my desired clip when played in firefox).

    


    Diagrammatically, I suspect the video contains the following information :

    


    enter image description here

    


    and firefox plays it in this way :

    


    enter image description here

    


    What's worse is that when I upload it to WhatsApp, it misaligns the audio with the video, instead playing it this way :

    


    enter image description here

    


    How can I fix this so that the video has no additional video/audio information ?

    


    I appreciate any help with this.