Recherche avancée

Médias (91)

Autres articles (98)

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

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

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

  • Compress videofiles from context menu in Windows 11 using ffmpeg

    11 janvier 2023, par Rayearth

    I'd looking for an easy way to just right click on a folder in Windows and be able to loop through video files and compress them with ffmpeg with prepared command settings.

    


    Been able to prepare the reg file to import but I think I'm missing something important here (working directory reference I think). How should I pass the working dir path inside a command like that for this mechanism to work ?

    


    Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Shell\Compress_videos]
@="Compress videos"

[HKEY_CLASSES_ROOT\Directory\Shell\Compress_videos\command]
@="cmd /c for \"%E\" in (.mp4, .mkv, .mov, .avi) do forfiles /m *\"%E\" /c \"cmd /c C:\\Windows\\System32\\ffmpeg.exe -hide_banner -y -hwaccel cuda -i @path -c:v hevc_nvenc -b:v 8000k -c:a copy @fname_compressed.mp4\""


    


  • Python running a cmd command(ffmpeg) with subprocess and wait for cmd to close before executing some code

    14 décembre 2019, par Fam

    So im using ffmpeg to resize a video, and this takes a little while so before the code continues i have to wait for the cmd to close. I havent been able to find a solution and i hope someone that actually knows their stuff can teach me a way. im probably just doing something retarded...
    Anyway i have tried multiple things like using subprocess.Propen() and then using pope() to see when it doesnt return "None" also tried stuff like subprocess.run() with subprocess.CompletedProcess() but i just cant get it to work could someone please care to explain if there is a way to do this and that im just doing it wrong ? :)

    Here is an example of what I tried

    p = subprocess.Popen("start ffmpeg -y -i "+DIR+"/post.mp4 -vf scale="+str(nW)+":"+str(nH)+" "+DIR+"/post_r.mp4", shell=True)
       while p.poll() is None:
           time.sleep(1)
           print("alive")
       else:
           print("cmd exited")

    Also whenever i put shell=False it just breaks instantly and I get this error :
    FileNotFoundError : [WinError 2] The system cannot find the file specified

  • subprocess ffmpeg multiple drawtext

    6 juillet 2012, par knishua

    stuck here, how is it possible to pass multiple parameters in ffmpeg via subprocess

    1. this command works in 'cmd'

      ffmpeg -threads 8 -i D :/imagesequence/background.jpg -vf "movie='D~:/imagesequence/thumbnail.jpg' [watermark] ; [in][watermark] overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/3[water] ;[water] drawtext=fontsize=32:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='shotName':x=(w)/2:y=(h)-50,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Notes ~:':x=(w)/5:y=(h)-90,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Frame Range ~:':x=(w)/5:y=(h)-130,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Lens ~:':x=(w)/5:y=(h)-170,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Undistortion ~:':x=(w)/5:y=(h)-210,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Image Sequence ~:':x=(w)/5:y=(h)-250,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Date ~:':x=(w)/5:y=(h)-290,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Element Name ~:':x=(w)/5:y=(h)-330,drawtext=fontfile=/Windows/Fonts/arial.ttf:text='FUTUREWORKS':x=130:y=200:fontsize=54:fontcolor=White[out]" D :\imagesequence\dpx\brn_055.0000.dpx

    2. when trying thru subprocess it fails. instead of trying the whole of it, tried

      thj = "D~:/imagesequence/thumbnail.jpg"
      paramd = "movie='%s'[watermark] ;[in][watermark]overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/3[water] ;[water]drawtext=fontsize=32:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text=\'shotName\':x=(w)/2:y=(h)-50[out]" % thj
      subprocess.check_call(["ffmpeg", "-threads", "8", "-i", "D :/imagesequence/background.jpg", "-vf", paramd ,"D :/imagesequence/dpx/brn_055.0000.dpx"], shell=True)

    This is only putting 1 text instead of 5 text on the screen

    any different view on this. how to successfully run this command