Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (39)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (3335)

  • Mix original clip audio with audio of an overlay clip

    28 octobre 2019, par Mr. Messy

    I have a video clip on which I want to add commentary videos (someone talking in a bubble).
    I have 3 commentary videos I need to insert in specific times.

    The video rendering is working well, but I can’t seem to add the audio tracks.
    I tried both amix and amerge, but I got the same issue.

    When I added "[0:1][2:1]amerge ;" I get the follwing :

    enter image description here

    and the process freezes.

    The full ffmpeg command is as follows :

    ffmpeg -y   -i story.mp4
           -loop 1 -i mask.png
           -itsoffset 10 -i commentary1.mp4
           -itsoffset 22 -i commentary2.mp4
           -itsoffset 34 -i commentary3.mp4
           -filter_complex "[0:v]scale=w=1/2*in_w:h=1/2*in_h[vid1],
                           [2:v]crop=w=480:h=480:x=0:y=120[vid2in],
                               [1:v]fifo[2af],[2af]alphaextract[alf2],[vid2in][alf2]alphamerge[vid2alf],
                               [vid2alf]format=yuva420p,fade=in:st=10:d=0.5:alpha=1,fade=out:st=22.7294:d=0.5:alpha=1[vid2fade],
                               [vid2fade]scale=w=-1:h=160[vid2],
                               [vid1][vid2]overlay=790:10:enable='between(t\,10,21)'[out2],
                           [3:v]crop=w=480:h=480:x=0:y=120[vid3in],
                               [1:v]fifo[3af],[3af]alphaextract[alf3],[vid3in][alf3]alphamerge[vid3alf],
                               [vid3alf]format=yuva420p,fade=in:st=22:d=0.5:alpha=1,fade=out:st=32.768733:d=0.5:alpha=1[vid3fade],
                               [vid3fade]scale=w=-1:h=160[vid3],
                               [out2][vid3]overlay=790:10:enable='between(t\,22,33)'[out3],
                           [4:v]crop=w=480:h=480:x=0:y=120[vid4in],
                               [1:v]fifo[4af],[4af]alphaextract[alf4],[vid4in][alf4]alphamerge[vid4alf],
                               [vid4alf]format=yuva420p,fade=in:st=34:d=0.5:alpha=1,fade=out:st=44.598189:d=0.5:alpha=1[vid4fade],
                               [vid4fade]scale=w=-1:h=160[vid4],
                               [out3][vid4]overlay=790:10:enable='between(t\,34,45)'[out4]"
           -map [out4] -pix_fmt yuv420p -c:v libx264 -crf 18
           final_video.mp4

    (mask.png is a circle on a transparent image that crops the video to a bubble)

    Thank you for your help.

  • FFMPEG curtain effect slideshow from images

    15 janvier 2020, par Atta

    I have bunch of images that i have to convert to slideshow with curtain effect. currently i am running this command that convert images to video.

    ffmpeg -r 1/5 -i img%d.png -c:v libx264 -vf "fps=25,format=yuv420p" video.mp4

    But how to achieve this kind of effect with ffmpeg. Image link Required result

    I searched online but not found any solution. I have clue of alpha mask but no idea how to use it for such result.

  • ffmpeg add an audio to a video using apad, but duration not exactly same [closed]

    27 avril 2023, par Richard

    I am using ffmpeg to add an audio to a silent video, and the audio is shorter than the video, so I want to add silence to the end of the audio and make sure they have same duration. I use below command

    


    ffmpeg -i video.mp4 -i audio.mp3 -filter_complex "[1:0]apad" -c:v copy -shortest output.mp4


    


    but the output durations are not exactly the same

    


      

    1. Am I making any mistake here ?
    2. 


    3. Is there a way to make them exactly same ?
    4. 


    


    ffprobe -v error -show_entries stream=codec_type,duration,start_pts,start_time -sexagesimal output.mp4
[STREAM]
codec_type=audio
start_pts=0
start_time=0:00:00.000000
duration=0:00:03.621995
[/STREAM]
[STREAM]
codec_type=video
start_pts=0
start_time=0:00:00.000000
duration=0:00:03.640000
[/STREAM]


    


    input file info

    


    ▶ ffmpeg -i video.mp4                                                                                   
ffmpeg version 4.4-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:00:03.64, start: 0.000000, bitrate: 394 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1080x1920, 390 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]


▶ ffmpeg  -i audio.mp3                                                                                     
ffmpeg version 4.4-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mp3, from 'audio.mp3':
  Metadata:
    TCM             : A
    TT1             : xxx
    title           : yyy
    encoded_by      : ProTranscoderTool (Apple MP3 v1
  Duration: 00:00:02.77, start: 0.000000, bitrate: 271 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 265 kb/s