Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (58)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6347)

  • Why isn't the 'wrap' option recognized in FFmpeg's drawtext filter ?

    24 février 2023, par eugene_prg

    I'm trying to add text to a video using FFmpeg's drawtext filter, but I'm running into an issue with the 'wrap' option. Whenever I include 'wrap=500' in the filtergraph, I get the following error message :

    


    [Parsed_drawtext_1 @ 0x563e23b1f500] Option 'wrap' not found
[AVFilterGraph @ 0x563e23b18d00] Error initializing filter 'drawtext' with args 'enable=between(t,0,4):text=one day you wake up and...:x=(w-text_w)/2:y=570:fontsize=48:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=5:wrap=500'
Error reinitializing filters !
Failed to inject frame into filter network : Option not found
Error while processing the decoded data for stream #0:0

    


    Here's the full command I'm using :

    


    ffmpeg -y -i "./videos/pexels-ivan-samkov-6689156.mp4" -vf "drawtext=fontfile=./fonts/DejaVuSans.ttf:text='DID U KNOW':x=(w-text_w)/2:y=200:fontsize=72:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=10, drawtext='enable=between(t,0,4)':text='do you know that girls...':x=(w-text_w)/2:y=570:fontsize=48:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=5:wrap=500, drawtext='enable=between(t,4,8)':text='are smarter than guys?':x=(w-text_w)/2:y=570:fontsize=48:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=5" -c:a copy "pexels-ivan-samkov-6689156.mp4_with_labels.mp4"


    


    I'm not sure why the 'wrap' option isn't recognized. Can anyone help me figure out what's going on ?

    


  • Why opening multiple ffmpeg.exe causes IIS stuck ?

    24 mars 2023, par Wen

    I've been working on this project for several months, trying to convert RTSP streams to JPEG images and send them back to the client. I'm using C# ProcessStartInfo and multipart/x-mixed-replace to achieve this goal. It worked well for only one camera. Unfortunately, I found that the IIS would deadlock after opening too many RTSP streams or maybe ffmepg.exe. After that, I must restart IIS, or the program cannot execute. I've been searching for the answer for more than three weeks. Here is part of my code :

    


    public HttpResponseMessage GetVideo(int id){
      HttpResponseMessage response = Request.CreateResponse();
      var pushStreamContent = new PushStreamContent((stream, content, context) =>{
          this.stream = stream;
          FrameReader();
       });

       pushStreamContent.Headers.ContentType =      
       **System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/x-mixed-replace");**
       response.Content = pushStreamContent;
       return response;
   }



public async Task FrameReader(){
     ProcessStartInfo startInfo = new ProcessStartInfo{
                      StandardErrorEncoding = Encoding.UTF8,
                      FileName = ffmpegPath,
                      **Arguments = $"-rtsp_transport tcp -timeout 1000000 -i {rtsp_url} -f image2pipe -"**,
                      UseShellExecute = false,
                      CreateNoWindow = true
     };

using (var ffmpegProcess = new Process { StartInfo = startInfo }){
                    ffmpegProcess.Start();
                    ffmpegProcess.BeginErrorReadLine();

  //Here is a portion related to image processing
 }

}


    


    Really need some advices, thank you in advance !!!

    


  • FFMPEG Layering two .mov files color issue

    21 février 2023, par JDC

    I have two folders containing numbered .mov files all the same length, one folder for front and one for back. I'm using ffmpeg to combine the front and back videos with matching numbers into one output video (the front video has an alpha channel). The below command works, but in the output video the front layer has slightly incorrect colors compared to the input (reds are too yellow for example). The back layer in the output looks correct. Both input files use the bt709 color space (checked with ffprobe). Is there something in the overlay options which is causing the front layer to look incorrect, or something I'm doing wrong with the colorspace options ?

    


    


    for f in Video_Back/Video_Back_*.mov ; do
num=$(echo "$f" | sed -n 's/.*Video_Back_([0-9]5).mov$/\1/p')
if [ -f "Video_Front/Video_Front_$num.mov" ] ; then
ffmpeg -color_primaries bt709 -color_trc gamma28 -colorspace bt709 -i "$f" -color_primaries bt709 -color_trc gamma28 -colorspace bt709 -i "Video_Front/Video_Front_$num.mov" -filter_complex "[1:v]format=rgba[fg] ;[0:v][fg]overlay=shortest=1:alpha=straight,eq=gamma=1.0[mixed]" -map "[mixed]" -map 0:a:0 -c:v libx264 -crf 18 -preset veryfast -c:a copy "Video_Merged/Video_Merged_$num.mp4"
fi
done