Recherche avancée

Médias (91)

Autres articles (20)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (4656)

  • 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..
  • 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
  • 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 &amp; "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 " &amp; replay_folder &amp; "
       /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 '" &amp; name of item -4 of replay_files &amp; "'"
    set nr3 to "file '" &amp; name of item -3 of replay_files &amp; "'"

    set theText to nr4 &amp; return &amp; nr3

    set overwriteExistingContent to true

    set theFile to path to replay_folder &amp; "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 " &amp; replay_folder &amp; "
    /usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"

    Any help is appreciated :)