Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (87)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

Sur d’autres sites (9002)

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

  • mov : Support mdcv and clli boxes for mastering display an color light level

    4 octobre 2017, par Vittorio Giovara
    mov : Support mdcv and clli boxes for mastering display an color light level
    

    Signed-off-by : Vittorio Giovara <vittorio.giovara@gmail.com>

    • [DH] libavformat/mov.c