Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (76)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (11119)

  • prevent ffmpeg from opening console window

    10 février 2020, par Yesub

    I have a node/express server which is used to give streams from IP camera to a website. Everything is working well. I run that webserver with PM2 on a windows server.

    The problem : for each stream I have a windows console opening with just nothing logged in. The console reopen when I try to close it.

    Is there a way to prevent those console to open ?

    Here is the related node.js code :

    const { NodeMediaServer } = require('node-media-server');

    private _initiate_streams(): void{
       DatabaseProvider.instance.camerasDao.getCamerasList().pipe(
         take(1)
       ).subscribe(
           (databaseReadOperationResult: DatabaseReadOperationResult) => {
               if (databaseReadOperationResult.successful === true){
                 const cameras = databaseReadOperationResult.result;
                 const tasks = [];
                 cameras.forEach( camera => {
                   tasks.push(
                     {
                       app : config.get('media_server.app_name'),
                       mode: 'static',
                       edge: camera.rtsp_url,
                       name: camera.stream_name,
                       rtsp_transport: 'tcp'
                     }
                   )
                 });

                 const configMediaServer = {
                   logType: 3, // 3 - Log everything (debug)
                   rtmp: {
                       port: 1935,
                       chunk_size: 60000,
                       gop_cache: true,
                       ping: 60,
                       ping_timeout: 30
                   },
                   http: {
                       port: config.get('media_server.port'),
                       allow_origin: '*'
                   },
                   auth: {
                       play: true,
                       api: true,
                       publish: true,
                       secret: config.get('salt'),
                       api_user: 'user',
                       api_pass: 'password',
                   },
                   relay: {
                       ffmpeg: 'C:\\FFmpeg\\bin\\ffmpeg.exe',
                       tasks: tasks
                   }
                 };

                 var nms = new NodeMediaServer(configMediaServer)
                 nms.run();
               } else {
                   // catch exception
               }
           }
       );
     }
  • Cannot access the file because it is being used by another process using ffmpeg

    17 avril 2015, par Andrew Simpson

    I am getting the error :

    Cannot access the file because it is being used by another process

    I have a C# desktop app.

    I am using the Process class to convert images to a video file by using FFMPEG.

    This is my code :

    using (Process serverBuild = new Process())
    {
       serverBuild.StartInfo.WorkingDirectory = Environment.CurrentDirectory;
       string args = " -f image2  -i " + {path} + "\\img%05d.jpg -s 352x288  -filter:v \"setpts=5.0*PTS\" -y " + {path}\\File.mp4;

       serverBuild.StartInfo.Arguments = args;
       serverBuild.StartInfo.FileName = "ffmpeg.exe";
       serverBuild.StartInfo.UseShellExecute = false;
       serverBuild.StartInfo.RedirectStandardOutput = true;
       serverBuild.StartInfo.RedirectStandardError = true;
       serverBuild.StartInfo.CreateNoWindow = true;
       serverBuild.Start();
       //  string output = serverBuild.StandardOutput.ReadToEnd();
       //Log.Instance.Debug(serverBuild.StandardError.ReadToEnd());
       serverBuild.WaitForExit();
       serverBuild.Close();

    }

    Directory.Delete(ExportRoute + FFMPEGPacket.LicenseKey + "\\" + FFMPEGPacket.Guid, true);

    //which raise the error..

    The images are all deleted but the File.Mp4 is not and that is the error. The error says that the newly created MP4 file cannot be deleted.

    NB
    This is partial code to illustrate the error

  • extract image while recoring video using ffmpeg

    9 septembre 2013, par petre

    I can extract 320x240 jpg image while recording a 320x240 video stream using gstreamer. How can i do that using ffmpeg ? Gstreamer script is shown :

    gst-launch-0.10 v4l2src device=/dev/video${i} ! videorate ! video/x-raw-yuv, width=320, \height=240, framerate=5/1 ! tee name=tp tp. ! queue ! videobalance saturation=0.0 ! textoverlay halign=left valign=top text="(c)PARK ON OM " shaded-background=true ! clockoverlay halign=right valign=top time-format="%D %T " text="Date:" shaded-background=true ! queue ! ffmpegcolorspace ! ffenc_mpeg4 ! avimux ! filesink location=$DIR/CAM${i}_${DTIME}.mp4 append=true tp. ! queue ! jpegenc ! multifilesink location=$DIR/webcam${i}.jpeg &