Recherche avancée

Médias (91)

Autres articles (59)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (9595)

  • avcodec/vvcdec : Fix compiling with MSVC 2022 17.8 and older

    26 juin 2024, par Martin Storsjö
    avcodec/vvcdec : Fix compiling with MSVC 2022 17.8 and older
    

    Versions of MSVC older than 17.9 error out here with the following
    error :

    src/libavcodec/vvc/filter.c(815) : error C2059 : syntax error : '}'
    src/libavcodec/vvc/filter.c(832) : error C2065 : 'all_zero_bs' : undeclared identifier
    src/libavcodec/vvc/filter.c(836) : error C2065 : 'all_zero_bs' : undeclared identifier

    This was a regression from 5b9320b209c727ab2df3e76f77aad676f986c8e4.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/vvc/filter.c
  • aarch64 : vvc : Fix compilation of alf.S with MSVC 2022 17.7 and older

    23 juillet 2024, par Martin Storsjö
    aarch64 : vvc : Fix compilation of alf.S with MSVC 2022 17.7 and older
    

    Use the "ldur" instruction explicitly, instead of having the
    assembler implicitly convert "ldr" instructions to "ldur".

    This fixes build errors like these :

    libavcodec\aarch64\vvc\alf.o.asm(1023) : error A2518 : operand 2 : Memory offset must be aligned
    ldr q22, [x3, #24]
    libavcodec\aarch64\vvc\alf.o.asm(1024) : error A2518 : operand 2 : Memory offset must be aligned
    ldr q24, [x2, #24]
    libavcodec\aarch64\vvc\alf.o.asm(1393) : error A2518 : operand 2 : Memory offset must be aligned
    ldr q22, [x3, #24]
    libavcodec\aarch64\vvc\alf.o.asm(1394) : error A2518 : operand 2 : Memory offset must be aligned
    ldr q24, [x2, #24]

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/aarch64/vvc/alf.S
  • C# server problem with FFmpeg Visual Studio 2022

    16 mai 2024, par seanofdead

    Hello everyone I've spent countless hours on my server I'm trying to create that will share video from one stream to another client computer. That is the goal anyway. I'm using Visual Studio 2022 most recent update. Currently this is my code

    &#xA;

    using System;&#xA;using System.IO;&#xA;using System.Net;&#xA;using System.Net.Sockets;&#xA;using System.Threading.Tasks;&#xA;using FFmpeg.AutoGen;&#xA;using NLog;&#xA;&#xA;public class VideoStreamServer&#xA;{&#xA;    private const int Port = 5000;&#xA;    private TcpListener server;&#xA;    private FFmpegVideoEncoder encoder;&#xA;    private static readonly Logger logger = LogManager.GetCurrentClassLogger();&#xA;&#xA;    public VideoStreamServer()&#xA;    {&#xA;        // Initialize FFmpeg network components&#xA;        Console.WriteLine("Initializing FFmpeg network components...");&#xA;        int result = ffmpeg.avformat_network_init();&#xA;        if (result != 0)&#xA;        {&#xA;            throw new ApplicationException($"Failed to initialize FFmpeg network components: {result}");&#xA;        }&#xA;&#xA;        // Initialize encoder&#xA;        encoder = new FFmpegVideoEncoder(1920, 1080, AVCodecID.AV_CODEC_ID_H264); // Screen size &amp; codec&#xA;    }&#xA;&#xA;    public static void Main()&#xA;    {&#xA;        // Initialize NLog&#xA;        var logger = LogManager.GetCurrentClassLogger();&#xA;        logger.Info("Application started");&#xA;&#xA;        var server = new VideoStreamServer();&#xA;        server.Start().Wait();&#xA;    }&#xA;&#xA;    public async Task Start()&#xA;    {&#xA;        server = new TcpListener(IPAddress.Any, Port);&#xA;        server.Start();&#xA;        logger.Info($"Server started on port {Port}...");&#xA;&#xA;        try&#xA;        {&#xA;            while (true)&#xA;            {&#xA;                TcpClient client = await server.AcceptTcpClientAsync();&#xA;                logger.Info("Client connected...");&#xA;                _ = HandleClientAsync(client);&#xA;            }&#xA;        }&#xA;        catch (Exception ex)&#xA;        {&#xA;            logger.Error(ex, "An error occurred");&#xA;        }&#xA;    }&#xA;&#xA;    private async Task HandleClientAsync(TcpClient client)&#xA;    {&#xA;        using (client)&#xA;        using (NetworkStream netStream = client.GetStream())&#xA;        {&#xA;            try&#xA;            {&#xA;                await encoder.StreamEncodedVideoAsync(netStream);&#xA;            }&#xA;            catch (IOException ex)&#xA;            {&#xA;                logger.Error(ex, $"Network error: {ex.Message}");&#xA;                // Additional logging and recovery actions&#xA;            }&#xA;            catch (Exception ex)&#xA;            {&#xA;                logger.Error(ex, $"Unexpected error: {ex.Message}");&#xA;                // Log and handle other exceptions&#xA;            }&#xA;            finally&#xA;            {&#xA;                // Ensure all resources are cleaned up properly&#xA;                client.Close();&#xA;                logger.Info("Client connection closed properly.");&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;public class FFmpegVideoEncoder&#xA;{&#xA;    private readonly int width;&#xA;    private readonly int height;&#xA;    private readonly AVCodecID codecId;&#xA;    private static readonly Logger logger = LogManager.GetCurrentClassLogger();&#xA;&#xA;    public FFmpegVideoEncoder(int width, int height, AVCodecID codecId)&#xA;    {&#xA;        this.width = width;&#xA;        this.height = height;&#xA;        this.codecId = codecId;&#xA;        InitializeEncoder();&#xA;    }&#xA;&#xA;    private void InitializeEncoder()&#xA;    {&#xA;        // Initialize FFmpeg encoder here&#xA;        logger.Debug("FFmpeg encoder initialized");&#xA;    }&#xA;&#xA;    public async Task StreamEncodedVideoAsync(NetworkStream netStream)&#xA;    {&#xA;        // Initialize reusable buffers for efficiency&#xA;        byte[] buffer = new byte[4096];&#xA;&#xA;        // Capture and encode video frames&#xA;        while (true)&#xA;        {&#xA;            try&#xA;            {&#xA;                // Simulate capture and encoding&#xA;                byte[] videoData = new byte[1024]; // This would come from the encoder&#xA;&#xA;                // Simulate streaming&#xA;                for (int i = 0; i &lt; videoData.Length; i &#x2B;= buffer.Length)&#xA;                {&#xA;                    int chunkSize = Math.Min(buffer.Length, videoData.Length - i);&#xA;                    Buffer.BlockCopy(videoData, i, buffer, 0, chunkSize);&#xA;                    await netStream.WriteAsync(buffer, 0, chunkSize);&#xA;                }&#xA;            }&#xA;            catch (Exception ex)&#xA;            {&#xA;                logger.Error(ex, "Error streaming video data");&#xA;                throw; // Rethrow to handle in the calling function&#xA;            }&#xA;&#xA;            await Task.Delay(1000 / 30); // For 30 FPS&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    When I build no issues but when i run it in debug mode I get this error

    &#xA;

    System.DllNotFoundException&#xA;  HResult=0x80131524&#xA;  Message=Unable to load DLL &#x27;avformat.59 under C:\Users\phlfo\Downloads\cfolder\server\ConsoleApp\bin\Debug\&#x27;: The specified module could not be found.&#xA;  Source=FFmpeg.AutoGen&#xA;  StackTrace:&#xA;   at FFmpeg.AutoGen.ffmpeg.LoadLibrary(String libraryName, Boolean throwException)&#xA;   at FFmpeg.AutoGen.ffmpeg.&lt;>c.&lt;.cctor>b__7_0(String libraryName)&#xA;   at FFmpeg.AutoGen.ffmpeg.&lt;>c.&lt;.cctor>b__7_242()&#xA;   at FFmpeg.AutoGen.ffmpeg.avformat_network_init()&#xA;   at VideoStreamServer..ctor() in C:\Users\phlfo\Downloads\cfolder\server\ConsoleApp\Program.cs:line 20&#xA;   at VideoStreamServer.Main() in C:\Users\phlfo\Downloads\cfolder\server\ConsoleApp\Program.cs:line 36&#xA;

    &#xA;

    I have FFmpeg.AutoGen package installed through VS i originally started with 7.0 but then switched to 5.0 to see if an older version might work (it did not). I also have the files in the same directory as the .exe for testing purposes as seen in the screenshot. Can someone please help me figure out this error.&#xA;enter image description here

    &#xA;