Recherche avancée

Médias (91)

Autres articles (42)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (9104)

  • Is it possible to get only the total number of black frames from a video clip using ffmpeg (windows user) ?

    15 novembre 2017, par raaki

    I have a .avi video clip which runs for 30 minutes with 30 fps. I want to know the total number of black frames in that clip instead of showing every black frame. Is it possible to do it using ffmpeg ?

  • ffmpeg randomly hangs and takes huge cpu usage when recording audio streams

    7 décembre 2017, par Maximax40

    I am trying to record 54 radio station using ffmpeg for Windows. I get those audio from different URL and separate instances of ffmpeg record and encode them to .wav format. It works great, it does it’s job with a very low cpu and memory usage and I get the results I want. However, sometimes a random ffmpeg process seems to hang and start using 25% cpu usage on it’s own and stop recording.

    It happens several times a day, and everytime I need to restart the process. If I’m not paying attention to the processes when one is stall, others will start to hang as well. If 4 of them hangs, I get 100% cpu usage and more than half of the recordings stops working, probably because of overload or something.

    When a process stall, I don’t get any error in the cmd window, it just freezes. It really seems to be random, because 2 computers are doing the same thing and record the exact same streams, but when a process stall on a computer, the same process works fine on the other, so I don’t think it’s related to the stream input.

    Here is an example of the command I use to launch a ffmpeg process :

    ffmpeg -y -i "http://icecast-cftx.rncm.ca/cftx.mp3" -ab 3200 -ar 16000 -ac 1 -f segment -segment_time 600 -strftime 1 "audios/CBFFMTR %%Y-%%m-%%d %%H-%%M-%%S.wav"

    Can anyone help me on this issue ? It’s really sad that I can’t rely on this software because of this.

    Thank you

    EDIT : After another check, I realise that when a recording crash on one of the computers, the same one crash on the other.

  • How to add watermark to the video part of this huge ffmpeg command that adds intro and outro with crossfade ?

    3 juillet 2017, par Jeflopo

    I wrote a command that crossfade merge an intro, an outro, with a video :

    enter image description here

    ffmpeg -i intro.mp4 -i video.mp4 -i outro.mp4 -filter_complex "
    [0:v]trim=start=0:end=9,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[intro];
    [0:v]trim=start=9:end=10,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[firstfadeoutclip];
    [1:v]trim=start=0:end=1,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[firstfadeinclip];
    [1:v]trim=start=1:end=24,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[video];
    [1:v]trim=start=24:end=25,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[secondfadeoutclip];
    [2:v]trim=start=0:end=1,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[secondfadeinclip];
    [2:v]trim=start=1:end=10,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[outro];
    [firstfadeoutclip]format=pix_fmts=yuva420p, fade=t=out:st=0:d=1:alpha=1[firstfadeoutalpha];
    [firstfadeinclip]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[firstfadeinalpha];
    [secondfadeoutclip]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[secondfadeoutalpha];
    [secondfadeinclip]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[secondfadeinalpha];
    [firstfadeoutalpha]fifo[firstfadeoutfifo];
    [firstfadeinalpha]fifo[firstfadeinfifo];
    [secondfadeoutalpha]fifo[secondfadeoutfifo];
    [secondfadeinalpha]fifo[secondfadeoinfifo];
    [firstfadeoutfifo][firstfadeinfifo]overlay[firstcrossfade];
    [secondfadeoutfifo][secondfadeoinfifo]overlay[secondcrossfade];
    [intro][firstcrossfade][video][secondcrossfade][outro]concat=n=5[output];
    [0:a][1:a] acrossfade=d=1 [audio]"
    -vcodec libx264 -map "[output]" -map "[audio]" "output.mp4"

    This huge command works fine.

    But now what I want to do is to add a watermark to the video part :

    [1:v]trim=start=1:end=24,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[video];

    And I want to do it by merging this command (watermark) into that one above :

    ffmpeg -i "1080p.mp4" -filter_complex "
    movie=logo-wm.png[watermark];
    [watermark][0:V]scale2ref=(1917*iw/1920)/3.5:(322*iw/1920)/3.5[wm][v];
    [v][logo]overlay=main_w-overlay_w-20:20" "output.mp4"

    The whole (1917*iw/1920)/3.5:(322*iw/1920)/3.5 scales the watermark proportionally using the scale2ref= filter. The 1917 is the width of my watermark image, and 322 is the height

    It is overlayed in the top right corner with main_w-overlay_w-20:20

    But I can’t make it work I tried to add it by copying the parameters to the filter of [1:v] input. And by adding another input for the watermark that if I’m right it would be [3:v] instead of using the movie= filter. But I can’t.

    I know that I could do it in two steps, but I would like to do it at once, in just one command.

    May anyone help me to merge them ? Thank you in advance !