Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (79)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8375)

  • avformat/mxfenc : SMPTE RDD 48:2018 Amd 1:2022 support

    14 mars 2023, par Jerome Martinez
    avformat/mxfenc : SMPTE RDD 48:2018 Amd 1:2022 support
    
    • [DH] libavformat/Makefile
    • [DH] libavformat/mxfenc.c
    • [DH] libavformat/rangecoder_dec.c
    • [DH] tests/fate/lavf-container.mak
    • [DH] tests/ref/lavf/mxf_ffv1
  • 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
  • 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;