Recherche avancée

Médias (91)

Autres articles (38)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (3748)

  • ffmpeg : Make output file duration that of the file with the longest length [closed]

    27 février 2024, par losercantcode

    I'm going crazy trying to figure this out.

    


    Essentially I'm trying to apply sidechain compression using ffmpeg (for the sake of speed and automation). a2.mp3 in this example is the full length track and a1.wav is a short 5 second, spoken-word clip. The code currently applies the sidechain compression well, but the output file is only that of the spoken-word clips length, so 5 seconds. Is it at all possible to make the output match that of a2.mp3's length instead ? Switching around the input order is not something that's possible as it'll apply the compression to the incorrect track.

    


    Essentially, i'm trying to make it so i'm just layering the spoken-word file on top of the audio track without having to pre-pad the file. I'd rather, if it's possible, this just happen with one block of code within the in one program. I'm interested to see if this is at all possible within ffmpeg.

    


    ffmpeg -i a2.mp3 -i a1.wav -filter_complex "[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress=threshold=0.000976563:ratio=10:level_sc=0.015625:release=100:attack=10[compr];[compr][mix]amix=duration=longest[aout]" -map "[aout]" output.wav


    


    a1.wav is mon, a2.mp3 is stereo.

    


    Attempted to implement amix=duration=longest to no avail. Research similar problems on the Stack Exchange that gave unrelated answers.

    


  • FFmpeg seems to be version conflict

    4 novembre 2014, par user3177342

    I am using git version of ffmpeg( renewed after old version succesful using) , when i try to compile my project i get

    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_subpacket':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:376: undefined reference to `swr_is_initialized'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_frame':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:222: undefined reference to `swr_is_initialized'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_init_resample':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:163: undefined reference to `swr_init'
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:169: undefined reference to `swr_convert'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_frame':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:236: undefined reference to `swr_convert'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_flush_resample':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:117: undefined reference to `swr_convert'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_subpacket':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:408: undefined reference to `swr_close'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_flush':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:557: undefined reference to `swr_close'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_close':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:579: undefined reference to `swr_free'
    /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_init':
    /home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:629: undefined reference to `swr_alloc'

    Seems to be version conflict ? but how to delete wrong libs ? they seem to be todays build.

    ls -l /usr/local/lib
    -rw-r--r-- 1 root root  136509684 may   29 14:47 libavcodec.a
    -rw-r--r-- 1 root root    1853574 may   29 14:47 libavdevice.a
    -rw-r--r-- 1 root root    9689456 may   29 14:47 libavfilter.a
    -rw-r--r-- 1 root root   46282270 may   29 14:47 libavformat.a
    -rw-r--r-- 1 root root    2092250 may   29 14:47 libavutil.a
    -rw-r--r-- 1 root root      67942 may   12 11:29 libBasicUsageEnvironment.a
    -rw-r--r-- 1 root root    2200164 apr.  10 10:11 libfftw3.a
    -rwxr-xr-x 1 root root        872 apr.  10 10:11 libfftw3.la
    -rw-r--r-- 1 root root      94188 may   12 11:29 libgroupsock.a
    -rw-r--r-- 1 root root    2236084 may   12 11:29 libliveMedia.a
    -rw-r--r-- 1 root root     546506 may   29 14:47 libswresample.a
    -rw-r--r-- 1 root root    4813716 may   29 14:47 libswscale.a
    -rw-r--r-- 1 root root      14588 may   12 11:29 libUsageEnvironment.a
  • Set minimal ts duration in ffmpeg command

    22 août 2017, par Ales

    We are using ffmpeg to convert mp4 video file to hls.
    When video is converted, it sometimes happens that last ts chunk is about 0.03s. And player stalls on this chunk for a while. Is there a special command in ffmpeg to set minimal ts duration ? Or other way to avoid such ts chunks ?
    In our command to set up ts duration we use : -segment_time  5