Recherche avancée

Médias (91)

Autres articles (46)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (4996)

  • Can't install FFMPEG on OS X Mavericks

    15 novembre 2013, par CristianOrellanaBak

    I have an error when install FFMPEG through homebrew on OS X Mavericks running this command brew install ffmpeg :

    Error: ffmpeg dependency x264 was built with the following
    C++ standard library: libstdc++ (from clang)

    This is incompatible with the standard library being used
    to build ffmpeg: libc++ (from clang)

    Please reinstall x264 using a compatible compiler.
    hint: Check https://github.com/mxcl/homebrew/wiki/C++-Standard-Libraries

    The complete history is : I has installed FFMPEG on Mountain Lion (that worked fine), but when upgrade it to Mavericks, FFMPEG fails to create an video in my Ruby on Rails app : Ruby on Rails : FFMPEG fails after upgrade Mountain Lion to Mavericks

    Some idea or recommendation ??

    Thank you very much !

  • ffmpeg to cut beginning and fade in audio

    31 juillet 2024, par cannyboy

    I've got a bunch of spoken word mp3 files, which all have the same intro talking and music, and then the real content begins. So it goes roughly like this :

    


    00:00 Standard intro spoken word
00:20 Standard intro music
00:35 The content


    


    The timings are not always the same (can vary by 5 secs). So I'd to cut the first 25 seconds and then fade in the next five seconds. And then output the file in the same mp3 format. Is this possible with ffmpeg ?

    


  • Windows batch - unable to assign a variable within an iterative for loop

    17 janvier 2024, par user23254772

    I am using ffprobe to get the codec_name of subtitles in media files. But when I try to get the codec extension it fails. What am I doing wrong ?

    


    I have edited this post to address the comments and include the complete batch file

    


    Re : ns.txt - this command outputs the stream number of the subtitles :

    


    C:\ffmpeg\bin\ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 -i "%~dpnx1">ns.txt


    


    and the output in the txt file is :

    


    2
3


    


    Now I need to count the number of lines in this text file which will tell me how many subtitles my media file has :

    


    set "cmd=findstr /R /N "^^" ns.txt | find /C ":""
for /f %%a in ('!cmd!') do set nums=%%a
set /A nums=%nums%-1


    


    In this case nums = 2 but in ffprobe the first subtitle is s:0, so I subtract 1 from nums

    


    My iterative loop is :

    


    FOR %%i in (1,1,%nums%) DO (
C:\ffmpeg\bin\ffprobe.exe -v quiet -select_streams s:%%i -show_entries stream=%arg% -of default=noprint_wrappers=1:nokey=1 -i "%~dpnx1" >sub.txt
set /p codecs=code>

    


    Which puts the codec name in sub.txt and I create the variable codecs to store this value.

    


    Then I need to determine the appropriate container [extension] for the subtitle - here I changed my code from what I posted earlier :

    


    if !codecs! == mov_text set codecs1=srt
if !codecs! == subrip set codecs1=srt
if !codecs! == ass set codecs1=ass
if !codecs! == webvtt set codecs1=vtt
if !codecs! == ttml set codecs1=ttml
if !codecs! == dvb_subtitle set codecs1=dvbsub
if !codecs! == dvd_subtitle set codecs1=dvdsub
if !codecs! == hdmv_pgs_subtitle setcodecs1=sup
if !codecs! == xsub set codecs1=xsub


    


    Then I demux [extract] the subtitle using ffmpeg :

    


    c:\ffmpeg\bin\ffmpeg -i "%~dpnx1" -an -vn -c:s "!codecs!" "%~n1_d."!codecs1!"


    


    This is working, except I have an extra iteration, my output is :

    


    Mediafile: C:\Users\UNOIT\Desktop\Tears of Steel_2sub.mkv
subtile: Tears of Steel_2sub_d.srt
subtile: Tears of Steel_2sub_d.ass
subtile: Tears of Steel_2sub_d.ass
File 'Tears of Steel_2sub_d.ass' already exists. Overwrite? [y/N]


    


    And if the media file has only one subtitle, my ffmpeg output is :

    


    Mediafile: C:\Users\UNOIT\Desktop\_Jan2024-Media\mkv\Tears of Steel_ass.mkv
subtile: Tears of Steel_ass_d.ass
subtile: Tears of Steel_ass_d.ass
File 'Tears of Steel_ass_d.ass' already exists. Overwrite? [y/N]
subtile: Tears of Steel_ass_d.ass
File 'Tears of Steel_ass_d.ass' already exists. Overwrite? [y/N]


    


    I can choose not to overwrite the file - but obviously there is a problem with my iterative loop - maybe a subroutine would work

    


    Here is the batch file :

    


    ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
set "arg=codec_name"
set "arg1=codec_name"
set "arg2=codec_name"
echo Mediafile: %~dpnx1
C:\ffmpeg\bin\ffprobe -v quiet -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 -i "%~dpnx1" >ns.txt
set "cmd=findstr /R /N "^^" ns.txt | find /C ":""
for /f %%a in ('!cmd!') do set nums=%%a
set /A nums=%nums%-1
FOR %%i in (0,1,%nums%) DO (
    C:\ffmpeg\bin\ffprobe.exe -v quiet -select_streams s:%%i -show_entries stream=%arg% -of default=noprint_wrappers=1:nokey=1 -i "%~dpnx1" >sub%%i.txt
    set /p codecs=code>