Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (56)

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (5093)

  • Trim .wav file combining sox, ffmpeg in a windows batch script

    20 février 2020, par pbc278

    I need to trim 300 .wav files to be a specific sample-length (x times 1152 samples)
    So if a .wav file is 1727821 samples in length (sox --i -s xx.wav) = 1727821.

    I need to divide the outcome of the sox command by 1152 (1727821/1152 = 1499,844...)

    Then I need to use the outcome (1499 without decimals) and multiply it by 1152 (1499*1152=1726848)

    Then I need to trim the sample with ffmpeg to that outcome

    ffmpeg -i xx.wav -af atrim=end_sample=1726848

    How do I do this in a batch file ?

    in pseudo code something like

    FOR %%i IN (*.*) DO (

     @set sample_length = (sox --i -s %%~ni.wav)
     @set multiplier = %sample_length% / 1152
     @set new_samplelength = %multiplier% * 1152
     ffmpeg -i %%~ni.wav -af atrim=end_sample=%new_samplelength%

    )

    I can’t find anything understandable on how to combine all these different tools in one batch script

  • Removing file in windows batch script not working

    13 février 2020, par BluePrint

    I’m trying to create a batch script for trimming 25 seconds from the beginning of all mp4 files in a folder. The batch script is located in the same folder as the files, and there is a folder called trimmed in the same folder. This is my script so far :

    @echo off
    setlocal DisableDelayedExpansion

    :promptdel
    set /p delorig=Delete original file (default no)? [Y/N]:

    if not defined delorig (
     set delorig=N
    )

    set "vartwo="&for /f "delims=YNyn" %%i in ("%delorig%") do set vartwo=%%i

    if defined vartwo (
     echo Please state Y or N!
     goto :promptdel
    )

    for %%a in ("*.mp4") do (
     echo Starting %%a

     rem "Need to rename since file names may contain whitespaces"
     ren "%%a" "working.mp4"
     ffmpeg -loglevel panic -hide_banner -i "working.mp4" -ss 00:00:25.000 -c:v copy -c:a copy "trimmed\%%a"
     ren "working.mp4" "%%a"

     echo %delorig%
     if %delorig% == "Y" (del "%%a" /f /q)
     if %delorig% == "y" (del "%%a" /f /q)

     echo %%a finished!
    )

    pause

    My problem is that the original file does not get removed regardless of if I input y/Y or n/N. What am I doing wrong ?

  • Windows - FFmpeg - How to map a jpg file to video stream 0:0 and include only audio stream 0:2 and not stream 0:1 and 0:2 together

    21 juin 2020, par slyfox1186

    I am trying to write a batch script that begins by extracting a thumbnail "Cover.jpg" from an mkv video. My end goal is to have this script recursively loop a folder full of videos to encode them all in one go.

    



    :: create cover art jpg
for %%G in (*.mkv) do (
%FF% -hide_banner -ss 30 -y -i "%%G" -vframes 1 -an Cover.jpg
)


    



    Then I am trying to encode the 4K mkv video that I got the jpg thumbnail from to 1920x1080 resolution instead of it's native 4K to make it easier to play back on my home plex server.

    



    I have surround sound 6 channel speaker system so I want to take audio stream 0:2 which is Dolby DTS 6 channel and save some HDD space by converting it to -c:a ac3 -b:a 640k -ac 6.

    



    I have gotten stuck because I can achieve everything I want except I keep encoding 2 of the 4 audio streams available in the end. I only want to keep 1 audio stream to maximize my space savings.

    



    Here is the entire script so far.

    



    @echo off
setlocal enabledelayedexpansion
prompt $g
color 0a

pushd "%~dp0"

set FF=C:\MAB\local64\bin-video\ffmpeg.exe
set TITLE=MOVIETITLE

:: create cover art jpg file
for %%G in (*.mkv) do (
%FF% -hide_banner -ss 30 -y -i "%%G" -vframes 1 -an Cover.jpg
)

:: run ffmpeg x265
for %%I in (*.mkv) do (
set fname="%%~nxI"
set fout="%%~nI-temp.mkv"
call :runff !fname! !fout!
del /s /q *.jpg
pause
goto:eof
)

:runff
%FF% -ss 0 ^
-y ^
-i "%~1" ^
-attach "Cover.jpg" ^
-map_metadata 0 ^
-map_chapters 0 ^
-metadata title="%TITLE%" ^
-map 0:0 -metadata:s:v:0 language=eng ^
-map 0:2 -metadata:s:a:0 language=eng -metadata:s:a:0 title="Surround 5.1 (DTS)" ^
-map 0:3 -metadata:s:s:0 language=eng -metadata:s:s:0 title="English" -metadata:s:t:0 filename="Cover.jpg" -metadata:s:t:0 mimetype="image/jpeg" ^
-c:v libx265 -preset medium ^
-x265-params crf=18:qcomp=0.8:aq-mode=1:aq_strength=1.0:qg-size=16:psy-rd=0.7:psy-rdoq=5.0:rdoq-level=1:merange=44 ^
-c:a ac3 -b:a 640k -ac 6 ^
-t 3 ^
"%~2"
exit /b


    



    Here are the output logs. https://pastebin.com/hVMy3VJW

    



    You can see towards the bottom that it is encoding both audio streams.

    



    Any ideas guys ?