Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (81)

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

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8279)

  • how do go through multiple folders using mmpeg to generate multiple videos ?

    15 février 2023, par Megan Darcy

    I have this piece of code that works as expected for me, but it only converts the images in a single folder into a single video.

    


    If I have multiple folders, and they may be recursive, how do I do that ?

    


    The file structure could be either something like this but the names are different :

    


    VideoFolder1
    
|
    
|— SubFolderA

    


    


    SubsubFolder2 (contains images with similar names but different numbers e.g Tobias.023.png, Tobias.024.png, Tobias.025.png)

    


    


    |
|— SubFolderB

    


    


    SubsubFolder3 (contains images with similar names but different numbers e.g Joey.027.png, Joey.028.png, Joey.029.png)

    


    


    This is my current code :

    


    import os
os.system("ffmpeg -f image2 -r 30 -i ./Front/4ZJSI_Colored_Li_F.%04d.png -vcodec mpeg4 -y ./videos/4ZJSI_Colored_Li_Front.mp4")
    
    


    


    How do I convert the contents of Subsubfolder2 and subsubfolder3 and subFolderA etc to multiple videos of the same name as per the content of each folder and subfolder ? .

    


    Thanks !

    


  • Run scripts in other instances and pass variables from the first script to the second

    3 février 2023, par Tyrone Hirt

    I have the following script :

    


    Get-ChildItem -Path $RenderClient -Recurse -Filter "ffmpeg crop.ps1" |
  Where-Object { Test-Path (Join-Path $_.DirectoryName *.mp4) } |
  ForEach-Object {
  try {
  Start-Process -WorkingDirectory $_.DirectoryName powershell.exe "-NoExit -File `"$($_.FullName)`""
  }
  catch {
  Write-Host -NoNewline -ForegroundColor Red "Não foi possivel cortar o arquivo:"; Write-Host -NoNewline -ForegroundColor White " $_.Name "; Write-Host -NoNewline -ForegroundColor White "`nMensagem de erro:"; Write-Host -NoNewline -ForegroundColor Red " $($_.Exception.Message)`n";
   }
  }
 }


    


    This code is a part of my first script, basically it looks for ffmpeg crop.ps1 files that have a .mp4 file in the same folder and runs those scripts.

    


    The issue is that I would like to make the process a little cleaner and more practical, currently when I need to make a change in the ffmpeg crop script I need to open all the folders and change one by one.

    


    To avoid this, I would like to have a single file ffmpeg crop.ps1, and every time a .mp4 file is found in the path specified in the first script, an instance of that single script ffmpeg crop.ps1 is triggered, too I need $_.FullName and $_.Name of each .mp4 file found to be passed to each respective instance so that I can use these values ​​within the ffmpeg crop script.

    


    I've been racking my brain for days trying to get this to work, I'll be very grateful for any help with this.

    


    Edit - in more detail

    


    The $RenderClient folder of my script is C:/Videos inside that folder there are several child folders that follow the logic : 01-01, 01-02,02-01, 02-02...

    


    enter image description here

    


    Currently, inside each child folder there is a script ffmpeg crop.ps1, this script is responsible for cutting a piece of the video that is inside that folder, however it is only activated if there is a .mp4 file to be cut, in the same folder that it, that is, for the script ffmpeg crop.ps1 to be activated in folder 01-01, it is necessary to have the script itself and a .mp4 file.

    


    This script would be triggered

    


    enter image description here

    


    This script would not be triggered

    


    enter image description here

    


    The point is, I would like to make this more practical, so instead of having one ffmpeg crop.ps1 script inside each child folder, I would like to have only one ffmpeg crop.ps1 script, and it would stay in the parent folder.

    


    I would like it to work like this :

    


    enter image description here

    


    For that, I would need to change my code, so that the script recursively searches for .mp4 files inside the parent folder, for each file that is found, it must open an instance of the script ffmpeg crop.ps1 that is in the parent folder and pass the variables $_.Name and $_.FullName of the files found to the respective instance of the open ffmpeg crop.ps1 script, so that each instance will be executed correctly.

    


  • why does ffmpeg_extract_subclip error only happen in python exe

    5 février 2023, par Kevin M.

    This piece of code works fine when run on the Spyder IDE, but crashes when I convert it to exe with auto-py-to-exe. I know it might be because I didn't explicetly include ffmpeg in my pytoexe config and so another user of my program that doesn't have ffmpeg installed might run intro problems, but it doesn't even work for me. When I comment out the try/except block, tt crashes and my way of debugging it has been with Windows events viewer, which doesn't give much details except this code 0xC0000409 (which I got some other time because I accessed indexes on an array that were not there) so I made the script print into a file, giving this error : 'NoneType' object has no attribute 'write'

    


    try:
    ffmpeg_extract_subclip(required_video_file, clipStart , clipEnd)    
except Exception as e:
    with open('DEBUGGING.txt', 'a+') as f:
        f.writelines('\n EXCEPCION:\n'+str(e))
        f.close()


    


    Doesn't make sense because ffmpeg_extract_subclip doesn't even have a write method, and the error is only caused by this lines, cause all the other ones are printed fine into my txt file. As I said, the clips are made successfully when I do it through my IDE, but stops working for some reason when I run the exe.

    


    Edit : placing ffmpeg and ffprobe in the folder didn't solve it. Python version : 3.11