Recherche avancée

Médias (91)

Autres articles (85)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (4936)

  • FFMpeg - add sound to video that already contain sound

    24 mars 2016, par jacky brown

    Here is what I have : input1.avi - video that contain sounds. input2.avi - video that doesn’t contain sounds. music.mp3 - audio file.

    I want to add background music(music.mp3 file) to the video.

    C :\input1.avi -i C :\music.mp3 -shortest -c:v copy -c:a copy C :\output1.avi
    then output1.avi is the same as input1 - movie with sounds but without the background music (music.mp3)

    when I try to use the other file (video without sounds) :

    C :\input2.avi -i C :\music.mp3 -shortest -c:v copy -c:a copy C :\output2.avi
    then output2.avi is the same as input2 + it have the background music.

    I tried to execute this too :

    C:\ffmpeg\bin>ffmpeg -i C:\input.avi -i C:\music.mp3 -shortest -c:v copy -filter_ complex "[1]volume=1.5[1a];[0][1a]amerge[a]" -map 0:v -map "[a]" -ac 2 C:\output1.avi

    but got the next error messsage :

    ffmpeg version N-78949-g6f5048f Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopenc
    ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable
    -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
    ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
    264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
    -lzma --enable-decklink --enable-zlib
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 27.101 / 57. 27.101
     libavformat    57. 28.100 / 57. 28.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.100 /  6. 39.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from 'C:\output1.avi':
     Metadata:
       encoder         : Lavf57.28.100
     Duration: 00:02:05.76, start: 0.000000, bitrate: 450 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720
    x480 [SAR 1:1 DAR 3:2], 440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 k
    b/s
    [mp3 @ 00000000005abc20] Skipping 0 bytes of junk at 32370.
    Input #1, mp3, from 'C:\music.mp3':
     Metadata:
       title           : Broadcast News Package - News Intro
       artist          : After Effects News Template
     Duration: 00:01:57.89, start: 0.025057, bitrate: 194 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
       Metadata:
         encoder         : Lavc56.26
    [Parsed_amerge_1 @ 0000000000610200] No channel layout for input 1
    [Parsed_amerge_1 @ 0000000000610200] No channel layout for input 2
    [AVFilterGraph @ 00000000005ddfe0] The following filters could not choose their
    formats: Parsed_amerge_1
    Consider inserting the (a)format filter near their input or output.
    Error configuring complex filters.
    I/O error

    So why input1 does not contain the background music ? and how can I decrease or increase the volume of music.mp3 file ?

  • Batch file not running, only individual command runs

    11 décembre 2019, par Rajiv Sukhla

    I have a batch file of the following code

    cd C:\xampp\htdocs\Projects\videos\images_compare_english && ffmpeg -framerate .25 -i img-%02d.jpg -i music.mp3 -c:v libx264 -preset veryslow -crf 0 -c:a copy -shortest compare_english\output.mp4

    The above code has two commands which is separated by &&, means the second command will run only after the execution of the first. But it is not running. I am basically combining some images with music. But it is not working. However entering manually one command at a time works. Can anybody help me, what is the problem with command prompt ?

  • FFmpeg - Crossfading inputs with a duration 1s creates an empty output

    27 août 2021, par Sonia Seddiki

    I am trying to crossfade a silent input with a music to delay the moment when the music starts to play.

    


    I built the command using fluent-ffmpeg so I could choose the duration of the silent input through my program. The duration of the crossfade is calculated according to the duration of the 2 inputs, and equals 0 if one of them is too short.

    


    Below is an example of the resulting command :

    


    ffmpeg -f lavfi -i anullsrc=r=44100 -i music.mp3 -y -filter_complex [0]atrim=duration=0.28[atrim_0];[atrim_0][1]acrossfade=d=0:c1=tri:c2=tri[final] -map [final] output.mp3


    


    However, this command creates an empty output file when the duration of the silent input is inferior to 1 second, regardless of which music input is next. Using the same command with a trim duration > 1 second creates a valid output with the silence and the music.

    


    I have tried to look through the FFmpeg debug report but couldn't really see what was wrong.

    


    Below is an excerpt of the debug log report :

    


    Input file #0 (anullsrc=r=44100):
  Input stream #0:0 (audio): 14 packets read (28672 bytes); 14 frames decoded (14336 samples);
  Total: 14 packets (28672 bytes) demuxed
Input file #1 (music.mp3):
  Input stream #1:0 (audio): 504 packets read (210651 bytes); 504 frames decoded (578372 samples);
  Total: 504 packets (210651 bytes) demuxed
Output file #0 (output.mp3):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes);
  Total: 0 packets (0 bytes) muxed


    


    Any idea what could cause this ?

    


    PS : I am using FFmpeg 4.4, and the same command with FFmpeg 4.2 lead to a segmentation fault. Don't know if this can be of any help