Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (48)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • 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 (10869)

  • RMPT Stream Startup Dalay on FFMPEG and Gstreamer compared to OBS

    24 mars 2023, par Arruda

    I'm trying to use ffmpeg to stream a video into my RTMP server.
The problem I'm having right now is that FFMPEG seems to take a long time to start streaming the output (from what I see in my Oven Media Engine server).

    


    At the same time, when I use OBS Studio my stream starts almost immediately.
I also tried using Gstreamer, and got the same amount of delay when using FFMPEG.

    


    After a long process, I finally saw that if I added an empty audio track, then FFMPEG would start as quickly as OBS.

    


    This is my final FFMPEG command (using the empty audio track) :

    


    ffmpeg -f v4l2 -i /dev/video0 -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -profile:v main -pix_fmt yuv420p -preset ultrafast -tune zerolatency -vcodec libx264 -r 10 -g 10 -keyint_min 10 -sc_threshold 0 -b:v 2000k -maxrate 2000k -bufsize 2000k -s 768x432 -acodec aac  -f flv rtmp://localhost:1935/app/mystream


    


    I'm streaming my webcam at 768x432, at 10FPS.

    


    Now, is this a bad solution in the case where there is no need for an audio in the output video ?

    


    There is no problem, nor noticible delay in the videstream if I remove the audio, the only downside is the startup time that is about 30-40 seconds.

    


    Is this delay when not using a audio track a FFMPEG issue ? or is this related to how the Oven Media Engine ingest the RTMP stream ?

    


  • How to write a unit test class that creates a new process in C#

    12 mars 2023, par IceAge

    I have a question about how to write unit test method that creates a new process.

    


    At the moment I write a normal unit test to create a process, but it's very difficult to setup.

    


    This is my code I want to test.

    


    using System;&#xA;using System.Collections.Generic;&#xA;using System.Diagnostics;&#xA;using System.IO;&#xA;using System.Linq;&#xA;using System.Text;&#xA;using System.Text.RegularExpressions;&#xA;using System.Threading.Tasks;&#xA;&#xA;namespace xxx&#xA;{&#xA;    public class FFmPeg&#xA;    {&#xA;        private Process _process;&#xA;        private string ffmpegPath { get; set; }&#xA;        private Regex _durationRegex;&#xA;&#xA;        public event EventHandler<string> OutputData;&#xA;        public event EventHandler<int> ProgressChange;&#xA;&#xA;        public FFmPeg()&#xA;        {&#xA;            _process = new Process();&#xA;            ffmpegPath = Path.Combine(Directory.GetCurrentDirectory(), "engine", "ffmpeg.exe");&#xA;        }&#xA;&#xA;        public void Run(string Argument)&#xA;        {&#xA;            _process.StartInfo.FileName = ffmpegPath;&#xA;            _process.StartInfo.Arguments = $"{Argument} -y";&#xA;            _process.StartInfo.UseShellExecute = false;&#xA;            _process.StartInfo.RedirectStandardOutput = true;&#xA;            _process.StartInfo.RedirectStandardError = true;&#xA;            _process.StartInfo.StandardOutputEncoding = Encoding.UTF8;&#xA;            _process.StartInfo.CreateNoWindow = true;&#xA;            _process.OutputDataReceived &#x2B;=(o,e) =>&#xA;                     {&#xA;                     };&#xA;            _process.ErrorDataReceived &#x2B;= (o, e) =>&#xA;            {&#xA;                if (string.IsNullOrEmpty(e.Data) == false)&#xA;                {&#xA;                    OnProgressChange(OutputExtractor.GetProgress(e.Data));&#xA;                }//end if.check data is not empty&#xA;            };&#xA;&#xA;            _process.Start();&#xA;            _process.BeginOutputReadLine();&#xA;            _process.BeginErrorReadLine();&#xA;            _process.WaitForExit();&#xA;        } //end method&#xA;&#xA;        protected virtual void OnProgressChange(int progress)&#xA;        {&#xA;            ProgressChange?.Invoke(this,progress);&#xA;        } //end method&#xA;&#xA;        protected virtual void OnOutputData(string data)&#xA;        {&#xA;            OutputData?.Invoke(this, data);&#xA;        }&#xA;    }&#xA;}&#xA;</int></string>

    &#xA;

    Thanks for any helpful answers, and sorry for my English.

    &#xA;

  • How to fix FFmpeg crashed in Android 4/5/6 by sws_setColorspaceDetails function ?

    8 février 2023, par hachman

    I have using FFmpeg(ver 4.2) with cocos2dx game engine, and it works well at all iOS version and Android above level 24(include level 24). However, it may be crashed in Android under level 23(Andorid version 6.0.1).

    &#xA;

    I am using bugly to record this problem, it located at "sws_setColorspaceDetails" function as this :

    &#xA;

    #00 pc 01297b38 sws_setColorspaceDetails &#x2B; 2704 [armeabi-v7a]&#xA;&#xA;java:&#xA;org.cocos2dx.lib.Cocos2dxRenderer.onDrawFrame(Cocos2dxRenderer.java:94)&#xA;android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)&#xA;android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)&#xA;

    &#xA;

    So, how can I solve this problem ? This function is in "libswscale/utils.c", and I can't use "try-catch" to get more infomation.

    &#xA;