Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (72)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (9682)

  • Iterate recursively in every subfolder and run a batch file

    6 août 2018, par Gokul Nair

    Please look at the following scenario wherein a folder A has many subfolders with different names. These subfolders have n number of .jpg files, which I am trying to scale and crop.

    Folder A\
     SubFolder 01\*.jpg
     SubFolder 02\*.jpg
     .
     .
     .
     SubFolder xx\*.jpg

    These sub-folders are with different names and do not have a trend when it comes to its names.

    I have created a batch file which would scale and crop images. This is working perfectly. I need to run the following command (name of file : ScaleCrop.bat) in each SubFolder xx :

    for %%I in (.) do set CurrDirName=%%~nxI
    for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=-1:260, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
    for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=260:-1, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
    pause

    The command Scales and crops the image in the folder and saves these files in to a folder named SacledImages, which too has subfolders of the same name (SubFolder 01, SubFolder 02,…,SubFolderxx).

    I have created another .bat file which I used to copy ScaleCrop.bat to each subfolder.

    for /d %%a in ("C:\Users\Name\Desktop\Folder A\*") do copy " C:\Users\Name\Desktop\Folder A\ScaleCrop.bat" "%%a"

    How could I code a batch file run and execute ScaleCrop.bat from each of these subfolders ?

    I tried using the following code, but this just calls the .bat file inside each subfolder, however it is not executing :

    for /f %%f in ('dir /ad /b') do start %%f\ScaleCrop.bat

    I Tried the following as well, this does the trick, but all images are getting overwritten as the scaled-cropped images are saved on to /SacledImages Folder and not inside ScaledImages/SubFolderxx :

    for /r "C:\ Users\Name\Desktop\Folder A " %%a in (.) do (
     pushd %%a
    for %%I in (.) do set CurrDirName=%%~nxI
    for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=-1:260, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
    for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=260:-1, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
    pause
     popd
     )
  • ffmpeg append an audio file to another audio file at position of every 10 seconds

    28 décembre 2018, par manoj kumar

    I want to append an audio file into another audio file at position of every 10 seconds through FFMPEG.

    1. ads.mp3 length 2 seconds (advertisement audio file)
    2. original.mp3 length xxxx seconds
    3. so output file could be as following

    file appending terms

    original.mp3 after 10 seconds append ads.mp3 for 2 seconds then
    again original.mp3 for 10 seconds append ads.mp3 for 2 seconds then
    again original.mp3 for 10 seconds append ads.mp3 for 2 seconds then
    again original.mp3 for 10 seconds ...... so long till end of
    original.mp3 file.

    Thanks

  • Converting Video file to Audio file with ffmpeg, but the resulting Audio is shorter

    4 septembre 2020, par Shaner

    I'm trying to convert from FLV video file to wav audio. However, after creating a wav file, I noticed it's shorter than the video. Halfway through the audio no longer matches up with videos audio (off by about 2 seconds).

    


    Thus, it seems midway through, there are 2 seconds of audio being lost.
How can I fix it so the audio is taken exactly the same as the video ?

    


    Basic code as below :

    


    ffmpeg -i movie.flv -vn audio.wav