Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (55)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (7513)

  • avcodec/x86/vvc/vvcdsp_init : add put prototypes

    17 avril 2024, par Wu Jianhua
    avcodec/x86/vvc/vvcdsp_init : add put prototypes
    

    When we used the —disable-ssse3 —disable-optimizations options,
    the compiler would not skip the MC_LINKS like the compilation that
    enabled the optimization, so it would fail to find the function
    prototypes. Hence, this commit uses the same way to add prototypes
    for the functions as HEVC DSP.

    Signed-off-by : Wu Jianhua <toqsxw@outlook.com>

    • [DH] libavcodec/x86/vvc/vvcdsp_init.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;

  • 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