Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (67)

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

  • How to turn an AppleScript path into a posix path and pass to shell script ?

    18 mars 2017, par Björn

    I´m trying to create a textfile that my ffmpeg-command can use to merge two videofiles. The problem I´m having is getting my folder/file-paths to look like I want. The two lines that cause my problems are :

    set theFile to path to replay_folder & "ls.txt"

    I simply want this path to be the path of replay_folder and ls.txt

    In the shell script line I want the same thing.

    do shell script "cd " & replay_folder & "
       /usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"

    I get this path with the shell script Macintosh HD:Users:BjornFroberg:Documents:wirecast:Replay-2017-03-17-12_11-1489749062:

    But I want this /Users/BjornFroberg/Documents/wirecast/Replay-2017-03-17-12_11-1489749062/

    The full code is :

    tell application "Finder"
    set sorted_list to sort folders of folder ("Macintosh HD:Users:bjornfroberg:documents:wirecast:") by creation date
    set replay_folder to item -1 of sorted_list
    set replay_files to sort items of replay_folder by creation date
    end tell

    set nr4 to "file '" & name of item -4 of replay_files & "'"
    set nr3 to "file '" & name of item -3 of replay_files & "'"

    set theText to nr4 & return & nr3

    set overwriteExistingContent to true

    set theFile to path to replay_folder & "ls.txt" --actual path is: POSIX file "/Users/BjornFroberg/Documents/wirecast/Replay-2017-03-17-12_11-1489749062/ls.txt"

    set theOpenedFile to open for access file theFile with write permission

    if overwriteExistingContent is true then set eof of theOpenedFile to 0

    write theText to theOpenedFile starting at eof

    close access theOpenedFile

    do shell script "cd " & replay_folder & "
    /usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"

    Any help is appreciated :)

  • Merge commit ’5cc0057f4910c8c72421b812c8f337ef6c43696c’

    23 mars 2017, par Clément Bœsch
    Merge commit ’5cc0057f4910c8c72421b812c8f337ef6c43696c’
    

    * commit ’5cc0057f4910c8c72421b812c8f337ef6c43696c’ :
    lavu : remove the custom atomic API

    This commit is a noop. The removal is postponed until all usages in
    FFmpeg are dropped as well. A patchset is on discussion on the
    mailing-list :
    http://ffmpeg.org/pipermail/ffmpeg-devel/2017-March/209003.html

    Merged-by : Clément Bœsch <u@pkh.me>

    • [DH] doc/libav-merge.txt
  • FFMPEG Error Handling Not Working

    23 mars 2017, par Waverunner

    I’m fairly new to batch files and trying to create a Windows script that automatically converts all files in the extensions list I provide to MP4 and log the successes and failures. The problem I’m running into is that some of the videos are failing with zero byte outputs and even though there’s two levels of error handling so the originals don’t get deleted, they aren’t working and the originals get deleted regardless if the conversions succeed or not.

    The two protections are :

    (1) FFMPEG - abort_on empty_output option

    (2) IF/ELSE loop that checks for zero-size files

    Any ideas for better error handling would be appreciated.

    :: Name:     MKV2MP4.cmd
    :: Purpose:  Automatically converts non-MP4 video files to MP4 either by stream copy or by reencoding.
    :: Revision: March 2017 - Initial version

    :: Variables
    :: %%L = List of Extensions
    :: %%F = Files to be converted
    :: %%N = New file

    @echo OFF
    CLS
    setlocal
    echo This script automatically converts non-MP4 video files to MP4 either by stream copy or by reencoding.
    echo.
    echo Changing to data directory...
    Z:
    cd Z:\Users\Todd\
    echo.

    FOR /F "delims=*" %%L IN (Z:\Logs\Extensions.txt) DO (
    echo Collecting %%L files...
    dir /b /s *.%%L > Z:\Logs\%%L.txt
    )
    echo.
    echo File collection complete.
    echo.

    FOR /F "delims=*" %%L in (Z:\Logs\Extensions.txt) DO (
    echo Working on %%L files...
    echo.

    FOR /F "delims=*" %%F in (Z:\Logs\%%L.txt) DO (
    echo Converting "%%F"
    echo.
    ffmpeg.exe -y -i "%%F" -abort_on empty_output -aspect 16:9 -c:v copy -c:a copy "%%~dpnF.mp4" || ffmpeg.exe -y -i "%%F" -abort_on empty_output -aspect 16:9 -c:v libx265 -c:a copy "%%~dpnF.mp4"
    echo.
    set N="%%~dpnF.mp4"

    IF %%~zN==0 (
    echo Conversion failed!  Skipping file.
    echo Adding log entry...
    echo %time% - Failed - "%%F" >> "Z:\Logs\%date:~-4,4%%date:~-10,2%%date:~-7,2% - %%L.txt"
    ) ELSE (
    echo Conversion successful!  Deleting old file.
    echo Deleting "%%F"
    del "%%F" /F
    echo Adding log entry...
    echo %time% - Successful - "%%F" >> "Z:\Logs\%date:~-4,4%%date:~-10,2%%date:~-7,2% - %%L.txt"  
    )

    echo.
    )

    echo %%L files completed.
    echo. Cleaning up...
    del %%L /F /S
    )

    echo Job completed.  Exiting..