Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (62)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (9435)

  • avcodec/movtextdec : Simplify finding default font

    17 octobre 2020, par Andreas Rheinhardt
    avcodec/movtextdec : Simplify finding default font
    

    There is no need to walk through the list of fonts twice.

    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/movtextdec.c
  • Converting mkv files to mp4 with ffmpeg-python [closed]

    22 août, par myth0s

    I have a lot of .mkv files that I'm trying to convert to .mp4, so I decided to try and program a solution in python. After a few hours, trying to figure out how to copy the subfolders too, I gave up on it and decided to stick with converting individual subfolders, and then copying them over to another directory.

    &#xA;

    I've made a simple script, that should convert .mkv files that are in the same folder as the script. However, I keep getting this error :

    &#xA;

    &#xA;

    FileNotFoundError : [WinError 2] The system cannot find the file specified

    &#xA;

    &#xA;

    Here's my code :

    &#xA;

    import os&#xA;import ffmpeg&#xA;&#xA;start_dir = os.getcwd()&#xA;&#xA;def convert_to_mp4(mkv_file):&#xA;    no_extension = str(os.path.splitext(mkv_file))&#xA;    with_mp4 = no_extension &#x2B; ".mp4"&#xA;    ffmpeg.input(mkv_file).output(with_mp4).run()&#xA;    print("Finished converting {}".format(no_extension))&#xA;&#xA;for path, folder, files in os.walk(start_dir):&#xA;    for file in files:&#xA;        if file.endswith(&#x27;.mkv&#x27;):&#xA;            print("Found file: %s" % file)&#xA;            convert_to_mp4(file)&#xA;        else:&#xA;            pass&#xA;&#xA;

    &#xA;

  • ffmpeg jpg batch script with timestamp

    3 juillet 2021, par Chris

    I currently have this batch script using ffmpeg to scale images and place in a new location with the same folder structure. How do i include the timestamp from the original jpg file in the filename of the new scaled jpg file ?

    &#xA;

    This gives files named m-H-S_IMG_0305

    &#xA;

    @echo off &amp;setlocal&#xA;set /a nfile=0&#xA;echo Copying directory structure from %1 to %2 ...&#xA;xcopy /T "%~1" "%~2"&#xA;REM walk directory structure and convert each file in quiet mode&#xA;set "sourcefolder=%~1"&#xA;set "targetfolder=%~2"&#xA;for /R "%sourcefolder%" %%a in (*.JPG) do (&#xA;    echo converting "%%~nxa" ...&#xA;    set "sourcefile=%%~fa"&#xA;    set "sourcepath=%%~dpa"&#xA;    set "targetfile=%%~na.JPG"&#xA;    setlocal enabledelayedexpansion&#xA;    set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"&#xA;    ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 -strftime 1 "!targetfolder!%Y-%m-%d_%H-%M-%S_!targetfile!"&#xA;    endlocal&#xA;    set /A nfile&#x2B;=1&#xA;)&#xA;echo Done! Converted %nfile% file(s)&#xA;

    &#xA;

    Working version for file modify date :

    &#xA;

    @echo off &amp;setlocal&#xA;set /a nfile=0&#xA;echo Copying directory structure from %1 to %2 ...&#xA;xcopy /T "%~1" "%~2"&#xA;REM walk directory structure and convert each file in quiet mode&#xA;set "sourcefolder=%~1"&#xA;set "targetfolder=%~2"&#xA;for /R "%sourcefolder%" %%a in (*.JPG) do (&#xA;    echo converting "%%~nxa" ...&#xA;    echo which has a timestamp of "%%~ta" ...&#xA;    set "sourcefile=%%~fa"&#xA;    set "sourcepath=%%~dpa"&#xA;    set "targetfile=%%~na.JPG"&#xA;    set "timestamp=%%~ta"&#xA;    setlocal enabledelayedexpansion&#xA;    set "timestamp=!timestamp: =_!"&#xA;    set "timestamp=!timestamp::=-!"&#xA;    set "timestamp=!timestamp:/=-!"&#xA;    set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"&#xA;    ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"&#xA;    endlocal&#xA;    set /A nfile&#x2B;=1&#xA;)&#xA;echo Done! Converted %nfile% file(s)&#xA;

    &#xA;

    File Creation date option attempt using exiftool (This works but it stops frequently so there is an error somewhere) :

    &#xA;

    @echo off &amp;setlocal&#xA;set /a nfile=0&#xA;echo Copying directory structure from %1 to %2 ...&#xA;xcopy /T "%~1" "%~2"&#xA;REM walk directory structure and convert each file in quiet mode&#xA;set "sourcefolder=%~1"&#xA;set "targetfolder=%~2"&#xA;for /R "%sourcefolder%" %%a in (*.JPG) do (&#xA;    echo converting "%%~nxa" ...&#xA;    echo which has a timestamp of "%%~ta" ...&#xA;    set "sourcefile=%%~fa"&#xA;    set "sourcepath=%%~dpa"&#xA;    set "targetfile=%%~na.JPG"&#xA;    set "timestamp=(&#x27;exiftool -d %%Y%%m%%d_%%H%%M%%S -CreateDate %%~a&#x27;)"&#xA;    for /f "tokens=1,2 delims=x" %%a in (&#x27;exiftool -T -d %%Y%%m%%d_%%H%%M%%S -CreateDate "%%a"&#x27;) do (&#xA;        set "timestamp=%%a"&#xA;    )&#xA;    setlocal enabledelayedexpansion&#xA;    set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"&#xA;    ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"&#xA;    endlocal&#xA;    set /A nfile&#x2B;=1&#xA;)&#xA;echo Done! Converted %nfile% file(s)&#xA;

    &#xA;