Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (38)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7902)

  • Could not load or assembly or one of its dependencies

    29 juin 2017, par Prathibha Chiranthana

    I am using Aforge.net frame work for doing image processing work.
    I have add ’AForge.Video.FFMPEG.dll’ as a referance to my project.
    I am using VS2012 and 32 bit build target.
    When Buiding i get

    System.IO.FileNotFoundException was unhandled
     HResult=-2147024770
     Message=Could not load file or assembly 'AForge.Video.FFMPEG.dll' or one of its dependencies. The specified module could not be found.
     Source=VideoReadere
     FileName=AForge.Video.FFMPEG.dll
     FusionLog=""
     StackTrace:
          at VideoReadere.Form1..ctor()
          at VideoReadere.Program.Main() in c:\Users\Prabad\Documents\Visual Studio 2012\Projects\VideoReadere\VideoReadere\Program.cs:line 19
          at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
          at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
          at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
          at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
          at System.Threading.ThreadHelper.ThreadStart()
     InnerException:

    my code for that is occur exception

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using System.Windows.Forms;

    namespace VideoReadere
    {
       static class Program
       {
           /// <summary>
           /// The main entry point for the application.
           /// </summary>
           [STAThread]
           static void Main()
           {
               Application.EnableVisualStyles();
               Application.SetCompatibleTextRenderingDefault(false);
    //here below line give exception
               Application.Run(new Form1());
           }
       }
    }
  • Could not load or assembly or one of its dependencies

    24 mars 2017, par Prathibha Chiranthana

    I am using Aforge.net frame work for doing image processing work.
    I have add ’AForge.Video.FFMPEG.dll’ as a referance to my project.
    I am using VS2012 and 32 bit build target.
    When Buiding i get

    System.IO.FileNotFoundException was unhandled
     HResult=-2147024770
     Message=Could not load file or assembly 'AForge.Video.FFMPEG.dll' or one of its dependencies. The specified module could not be found.
     Source=VideoReadere
     FileName=AForge.Video.FFMPEG.dll
     FusionLog=""
     StackTrace:
          at VideoReadere.Form1..ctor()
          at VideoReadere.Program.Main() in c:\Users\Prabad\Documents\Visual Studio 2012\Projects\VideoReadere\VideoReadere\Program.cs:line 19
          at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
          at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
          at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
          at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
          at System.Threading.ThreadHelper.ThreadStart()
     InnerException:

    my code for that is occur exception

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using System.Windows.Forms;

    namespace VideoReadere
    {
       static class Program
       {
           /// <summary>
           /// The main entry point for the application.
           /// </summary>
           [STAThread]
           static void Main()
           {
               Application.EnableVisualStyles();
               Application.SetCompatibleTextRenderingDefault(false);
    //here below line give exception
               Application.Run(new Form1());
           }
       }
    }
  • Covert opengl framebuffer into ffmpeg encoded mp4 c++ [closed]

    14 mai 2022, par user19068953

    I want to make a program that takes an mp4 file as an input and draws something on top of it then gives the new video as an output. So far I have a program that takes a file name, have ffmpeg decode it and draw whatever i want with opengl (I have followed this tutorial that draws on top of the video separately : https://gist.github.com/hradec/a8b8ae0bf82891a5d853b06619839d9d) and have an opengl framebuffer. My question is how do put opengl's framebuffer on top of ffmpeg frames and generate a new video with it then give a new file as an output ? The framebuffer is allocated in fbo, so i want to encode it to ffmpeg, something like

    &#xA;

     av_write_frame(state->fmt_ctx, &amp;fbo) &#xA;

    &#xA;

    is there a function like this that allows me to write frame data into a newly created video ?

    &#xA;

    Here is my encoder :

    &#xA;

        int VideoDecoder::write_frame()&#xA;{&#xA;    // Find a way to write OpenGL Frames here.&#xA;    av_packet_rescale_ts(&amp;state->packet, VideoSt.Ctx->time_base, VideoSt.Stream->time_base);&#xA;    state->packet.stream_index = VideoSt.Stream->index;&#xA;    return av_interleaved_write_frame(state->fmt_ctx, &amp;state->packet);&#xA;}&#xA;&#xA;&#xA;bool VideoDecoder::encode_video()&#xA;{&#xA;&#xA;    // TODO: This is horrible fix this function.&#xA;&#xA;    state->packet = { nullptr };&#xA;    av_init_packet(&amp;state->packet);&#xA;&#xA;    fflush(stdout);&#xA;&#xA;    IMG_Buffer.SetNum(ColorBuffer.Num() * 4);&#xA;    uint8* DestPtr = nullptr;&#xA;    for (auto i = 0; i &lt; ColorBuffer.Num(); i&#x2B;&#x2B;)&#xA;    {&#xA;        DestPtr = &amp;IMG_Buffer[i * 4];&#xA;        auto SrcPtr = ColorBuffer[i];&#xA;        *DestPtr&#x2B;&#x2B; = SrcPtr.R;&#xA;        *DestPtr&#x2B;&#x2B; = SrcPtr.G;&#xA;        *DestPtr&#x2B;&#x2B; = SrcPtr.B;&#xA;        *DestPtr&#x2B;&#x2B; = SrcPtr.A;&#xA;    }&#xA;&#xA;    uint8* inData[1] = { IMG_Buffer.GetData() };&#xA;&#xA;&#xA;    sws_scale(SwsCtx, inData, InLineSize, 0, VideoSt.Ctx->height, VideoSt.Frame->data, VideoSt.Frame->linesize);&#xA;&#xA;    VideoSt.Frame->pts = VideoSt.NextPts&#x2B;&#x2B;;&#xA;    if (FFmpegEncode(VideoSt.Frame) &lt; 0)&#xA;        return false;&#xA;&#xA;    auto ret = WriteFrame();&#xA;&#xA;    if (ret &lt; 0)&#xA;    {&#xA;        auto errstr = FString(av_err2str(ret));&#xA;    }&#xA;    av_packet_unref(&amp;state->packet);&#xA;&#xA;&#xA;    GotOutput = 0;&#xA;    auto ret = avcodec_send_frame(VideoSt.Ctx, frame);&#xA;    if (ret &lt; 0 &amp;&amp; ret != AVERROR_EOF) {&#xA;        auto errstr = FString(av_err2str(ret));&#xA;        return -1;&#xA;    }&#xA;&#xA;    ret = avcodec_receive_packet(VideoSt.Ctx, &amp;Pkt);&#xA;    if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)&#xA;        return 0;&#xA;&#xA;    if (ret &lt; 0)&#xA;    {&#xA;        auto errstr = FString(av_make_error_string(ret).c_str());&#xA;        av_packet_unref(&amp;Pkt);&#xA;        return -1;&#xA;    }&#xA;&#xA;    GotOutput = 1;&#xA;    return 0;&#xA;&#xA;&#xA;    for (GotOutput = 1; GotOutput; count&#x2B;&#x2B;)&#xA;    {&#xA;        fflush(stdout);&#xA;&#xA;        FFmpegEncode(nullptr);&#xA;&#xA;        if (GotOutput)&#xA;        {&#xA;            auto ret = WriteFrame(false);&#xA;            if (ret &lt; 0)&#xA;            {&#xA;                auto errstr = FString(av_err2str(ret));&#xA;            }&#xA;            av_packet_unref(&amp;Pkt);&#xA;        }&#xA;    }&#xA;&#xA;    auto ret = av_write_trailer(FmtCtx);&#xA;    if (ret &lt; 0)&#xA;    {&#xA;        auto errstr = FString(av_err2str(ret));&#xA;    }&#xA;}&#xA;

    &#xA;

    and here is my simple frame buffer :

    &#xA;

    bool OpenGLRenderer::alloc_frame_buffer()&#xA;{&#xA;    unsigned int fbo;&#xA;    glGenFramebuffers(1, &amp;fbo);&#xA;&#xA;    if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) return false;&#xA;&#xA;    glBindFramebuffer(GL_FRAMEBUFFER, fbo);&#xA;&#xA;    unsigned int texture;&#xA;    glGenTextures(1, &amp;texture);&#xA;    glBindTexture(GL_TEXTURE_2D, texture);&#xA;&#xA;    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 800, 600, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);&#xA;&#xA;    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);&#xA;    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);&#xA;&#xA;    glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0);&#xA;}&#xA;

    &#xA;