Recherche avancée

Médias (91)

Autres articles (76)

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

  • Is there a way to automate / script video editing with python ?

    20 août 2020, par user2436057

    I do have the problem that I have to generate a daily video file for an information screen.

    


    I need to be able to create a video with preferably a python script that goes over all images in a directory and display each image for 10 seconds while scrolling corresponding text next to it and then display the next image. I might also have to have the ability to add a sound file or background music in the future.

    


    I have looked at ffmpeg and it has some ability to do what I want but I thought there might be a better way or tool I could use. Since ffmpeg takes a lot of steps and its really hacky.

    


    I am able to code the python myself I just need some API or library to handle the video processing.

    


    Not 100% this is the right place to ask.

    


  • How to convert all files in a specific directory using batch script

    30 mars 2017, par sks

    I have videos in a folder of .h264 format and i want to convert them to mp4. now by default i can use ffmpeg to do this :
    Here is the command :

    ffmpeg -i youtube.flv -c:v libx264 filename.mp4

    But, new h264 files are being added and I want to keep converting the videos so as to use it for my python script.

    I know i can use this to initialize the variable

    SET /A num=1

    But how do i write a batch script to take all the videos from the directory one by one even though there new videos being added ?

    I wrote this but this isn’t working :

    @echo off
    SET /A num=1

    for file in E:\Records\1\*.h264
    do
       ffmpeg -i "$file" -c:v libx264 E:\Recods\1\converted\%num%.mp4
       move E:\Records\1\"$file" E:\Records\1\done\
       set /A num=%num%+1
    done
    PAUSE

    I am making a done folder and moving the videos that have been converted there and in converted folder i am putting converted videos.. Now i just have to run a task scheduler each hour so that if there is a new entry it should convert it and move it to appropriate folder.

  • Youtube-dl cannot read various set on batch script

    18 novembre 2019, par Al UrbaseR Blongtous

    I created an batch-script that positioned with youtube-dl and ffmpeg. I set several set to put URL and Video/Audio ID. Here my script that I simplified

    @echo off
    cd /d %root%\YT
    color 0a
    title Youtube Downloader
    setlocal enableDelayedExpansion
    set q=^"
    color 0a

    :submenu
    echo Please enter URL.
    set /p f1="URL: "
    echo Checking ID...
    youtube-dl -F %f1%
    ping localhost -n 2 >nul
    goto menu

    :menu
    echo.
    echo Script created by UrbaseR
    echo ___________________________________________________________
    echo.
    echo                          MENU
    echo ___________________________________________________________
    echo OS Windows - %ComputerName%
    echo.
    echo M E N U
    echo Press 1 to Download Best version
    echo Press 2 to Download Custom version + convert
    echo Press 3 to Exit

    set /p you=">"
    if %you%==1 goto 1
    if %you%==2 goto 2
    if %you%==3 goto 3

    cls
    echo *********************************
    echo Sorry invalid number!
    echo *********************************
    ping localhost -n 2 >nul
    goto menu

    :1
    echo Downloading...
    youtube-dl -f best %f1%
    echo.
    echo Done
    ping localhost -n 2 >nul
    cls
    goto submenu

    :2
    set /p id1="Insert Video ID: "
    set /p id2="Insert Audio ID: "
    echo Downloading Video..
    youtube-dl -f %id1% -ciw -o "vid.%(ext)s" -v --write-sub %f1%
    echo.
    echo Video Done
    ping localhost -n 2 >nul
    echo Downloading Audio..
    youtube-dl -f %id2% -ciw -o "aud.%(ext)s" -v %f1%
    echo.
    echo Audio Done
    ping localhost -n 2 >nul
    echo Converting Video
    ffmpeg -i "vid.%(ext)s" -i "aud.%(ext)s" -c:v copy -c:a aac -strict experimental "input.mkv"
    echo Converting Done
    ping localhost -n 4 >nul
    cls
    goto submenu

    :3
    exit

    First and third option execute successfully. Second option will appear the message like this :

    Usage : youtube-dl [OPTIONS] URL [URL...]
    youtube-dl : error : You must provide at least one URL.

    Type youtube-dl —help to see a list of all options.

    Note : Since I stuck on first and second stage of youtube-dl, ffmpeg may not work (I have not tested it yet).

    Can you help me ?