Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • 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

Sur d’autres sites (10372)

  • Publier une image dans une actualité ou un édito

    18 juin 2013

    Suite à une demande d’un usager, est-il possible d’associer une image à une actualité ou un édito (voir échange de mail sur la liste du 18/06/2013)

  • Python Moviepy dropping CPU used FFMPEG

    26 juin 2017, par Frikkie Maritz

    Would there be any specific reason why my CPU used will drop from 96%-100%
    to like 30% on average when running this script.

    I want it to run @ 100% if possible to process the videos faster. Any help will do thanks in advance.

    import moviepy.editor as mp
    from moviepy.editor import VideoFileClip, concatenate
    import os, glob
    from random import randint
    from shutil import copyfile

    def clipexport():

       video1 = mp.VideoFileClip(clips)
       Duration = video1.duration

       if "sin" in clips:

           try:
               startp = filename[filename.find("sin")+3:filename.find("sin")+6].strip()
               print(startp)
               if "}" in startp:
                   startp = startp[:startp.find('}')]
                   print(startp)
                   start = int(startp)

               else:
                   print(startp)
                   start = int(startp)
           except:
               start = 0.35
               print('using default start value')

       else:
           start = 0.35
       print(start)

       if "sout" in clips:
           try:
               endp = filename[filename.find("sout")+4:filename.find("sout")+7].strip()
               print(endp)
               if "}" in endp:
                   endp = endp[:endp.find('}')]
                   print(endp)
                   end = int(endp)

               else:
                   print(endp)
                   end = int(endp)

           except:
               end = Duration - 0.35
               print('using default end value')        

       else:
           end = Duration - 0.35

       print(Duration)
       print(end)
       trimmedvideo = mp.VideoFileClip(clips).subclip(start, end).resize(width=1920)
       trimmedvideo.write_videofile(exportPath, bitrate="8000k", threads="8")

    def videocreator():

       calculateClips = 0

       for filename in os.listdir(newpath):
           print(filename)
           if ".mp4" in filename:

               calculateClips = calculateClips + 1

       calculateClips = calculateClips -1

       videolist = []
       videoLength = 0
       totalClips = 0

       for filename in os.listdir(newpath):

           print(filename + "Check Videos")

           if ".mp4" in filename:

               videolist.append(VideoFileClip(newpath + filename).crossfadein(1))

       final = concatenate(videolist, padding=-1, method="compose")
       final.write_videofile('myvideo.mp4', bitrate ='8000k', threads="8")

    path = 'C:/TBD/TBD/#Frikkie/'
    for infile in glob.glob( os.path.join(path, '**') ):
       if "-" in infile:
           Refno = infile[infile.find('kie')+4:infile.find('-')].strip()

       else:
           Refno = infile[infile.find('kie')+4:].strip()

       print(Refno)
       clippath = infile + "/"
       length = len(clippath)
       #print(length)
       for clips in glob.glob( os.path.join(clippath, '**') ):
           #print(clips)
           filename = clips[clips.find(infile)+length:]
           filename = filename[:filename.find(".")]
           filename = filename + ".mp4"
           print(filename)
           exportPath = infile + "/" + "Export" + "/" + filename
           exportfolder = infile + "/" + "Export"
           print(exportfolder)
           if not os.path.exists(exportfolder):
               os.makedirs(exportfolder)

           try:

               if ".mp4" in clips:

                   #clipexport()
                   print("done mp4")
               elif ".m4v" in clips:
                   #clipexport()
                   print("done mp4")
               elif ".MOV" in clips:
                   #clipexport()
                   print("done mp4")
               else:
                   continue


           except:

               print("Error")

       newpath = exportfolder + '/'
       newpath = newpath.replace('/', '\\')
       try:
           mp3number = str(randint(1,5))

           src = ("C:\music\{}.mp3".format(mp3number))
           dst = ("{}{}.mp3".format(newpath, mp3number))

           copyfile(src, dst)

       except:
           print("could not copy mp3")

       print("Mp3 Copied")
       try:
           print("Video Path = " + newpath)
           videolist= []
           for filename in os.listdir(newpath):

               if "{" in filename:
                    newfilename = filename[:filename.find("{")].strip()
                    newfilename = newfilename + ".mp4"
                    oldfilename = newpath + filename
                    rename = newpath + newfilename
                    os.rename(oldfilename, rename)
                    videolist.append(newfilename)
               else:
                   videolist.append(filename)

           for files in videolist:


               if files == "1.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "01.mp4"
                   os.rename(oldfilename, rename)

               elif files == "2.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "02.mp4"
                   os.rename(oldfilename, rename)

               elif files == "3.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "03.mp4"
                   os.rename(oldfilename, rename)

               elif files == "4.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "04.mp4"
                   os.rename(oldfilename, rename)

               elif files == "5.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "05.mp4"
                   os.rename(oldfilename, rename)

               elif files == "6.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "06.mp4"
                   os.rename(oldfilename, rename)

               elif files == "7.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "07.mp4"
                   os.rename(oldfilename, rename)

               elif files == "8.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "08.mp4"
                   os.rename(oldfilename, rename)

               elif files == "9.mp4":
                   print(files)
                   oldfilename = newpath + files
                   rename = newpath + "09.mp4"
                   os.rename(oldfilename, rename)

           print('done')

       except:
           print('not done')
       videocreator()    
  • Wrapping an h264 stream with ts (transport stream)

    20 août 2018, par ICU_

    Suppose I have an incoming stream of H264 data wrapped in RTP. After I strip the RTP header, how can I re-wrap it into a TS header (transport stream) for playing on the web browser ? I know Ffmpeg can do it, but am not on a windows or linux platform. So I need to manually do it. I would need a simple library in c or c++.