Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (25)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (3923)

  • getting black screen while trying to record dockerized lxde using ffmpeg

    29 mars 2023, par Itzik.B

    I have created a docker image that has LXDE and TightVNCServer.

    


    # Pull base image.
FROM ubuntu

# Install LXDE and VNC server.
RUN apt-get update
RUN apt-get install -y xvfb
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y lxde-core lxterminal tightvncserver
RUN rm -rf /var/lib/apt/lists/*
RUN touch /root/.Xresources
RUN touch /root/.Xauthority
COPY xstartup /root/.vnc/xstartup
RUN chmod +x /root/.vnc/xstartup
#Install Node.js & npm

# Define working directory.
WORKDIR /data

COPY * /data

RUN apt-get install -y ffmpeg


    


    I am running this container using this command :

    


    docker run -it --rm -v /data:/data -p 5901:5901 -e USER=root ubuntudsktp  bash -c "vncserver :1 -geometry 1280x800 -depth 24 && tail -F /root/.vnc/*.log"


    


    I am logging into this container using VNC and running this command to record the whole screen :

    


    ffmpeg -f x11grab -i :1.0 output.webm


    


    After the recording was over, I opened the video and I could see that the video is completely blank(black screen).

    


    this is also my input when i try to run glxinfo :

    


    # glxinfo | grep "OpenGL renderer"
Error: unable to open display


    


    I have also tried to run it using :

    


    DISPLAY=:1 ffmpeg -f x11grab -i :1.0 output.webm


    


    And the results are the same.

    


    What I am missing here ?

    


  • getting black screen while trying to record dockerized lxde using ffmpeg

    16 mars 2023, par Itzik.B

    I have created a docker image that has LXDE and TightVNCServer.

    


    # Pull base image.
FROM ubuntu

# Install LXDE and VNC server.
RUN apt-get update
RUN apt-get install -y xvfb
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y lxde-core lxterminal tightvncserver
RUN rm -rf /var/lib/apt/lists/*
RUN touch /root/.Xresources
RUN touch /root/.Xauthority
COPY xstartup /root/.vnc/xstartup
RUN chmod +x /root/.vnc/xstartup
#Install Node.js & npm

# Define working directory.
WORKDIR /data

COPY * /data

RUN apt-get install -y ffmpeg


    


    I am running this container using this command :

    


    docker run -it --rm -v /data:/data -p 5901:5901 -e USER=root ubuntudsktp  bash -c "vncserver :1 -geometry 1280x800 -depth 24 && tail -F /root/.vnc/*.log"

    


    I am logging into this container using VNC and running this command to record the whole screen :

    


    ffmpeg -f x11grab -i :1.0 output.webm

    


    After the recording was over, I opened the video and I could see that the video is completely blank(black screen).

    


    I know there is a "screen" that I need to tell ffmpeg to record but its works only on -i :1.0.

    


    I have also tried to run it using :

    


    DISPLAY=:1 ffmpeg -f x11grab -i :1.0 output.webm
And the results are the same.

    


    What I am missing here ?

    


  • Black video when using ffplay of received data over upd [closed]

    4 février 2023, par Alexandru-Marian Buza

    I'm encoding frames from a id3d11texture2d, and the receive packet size is around 70-80.
When i'm sending over udp, and use ffplay to show the video, i get a black screen.
Resolution and fps are well determined by ffplay.

    


    AcquiredBuffer.Attach(Buffer.MetaData.pSurface);

            ID3D11Texture2D* texture;
            ID3D11Texture2D* stagingTexture;
            AcquiredBuffer->QueryInterface(IID_PPV_ARGS(&texture));
            
            texture->GetDesc(&desc);
            desc.Usage = D3D11_USAGE_STAGING;
            desc.CPUAccessFlags = D3D11_CPU_ACCESS_READ;
            desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
            desc.BindFlags = 0;
            desc.MiscFlags = 0;
            hr = m_Device->Device->CreateTexture2D(&desc, NULL, &stagingTexture);
            if (stagingTexture != 0) {
                m_Device->DeviceContext->CopyResource(stagingTexture, texture);
                D3D11_MAPPED_SUBRESOURCE mappedData;
                m_Device->DeviceContext->Map(stagingTexture, 0, D3D11_MAP_READ, 0, &mappedData);
                
                memcpy(frame->data[0], mappedData.pData, mappedData.DepthPitch);
                auto ret = avcodec_send_frame(codec, frame);
                if (ret < 0) {
                    writeText("Send frame failed");
                }
                else {
                    while (ret >= 0) {
                        ret = avcodec_receive_packet(codec, packet);
                        for (int i = 0; i < packet->size; i++) {
                            if (packet->data[i] != 0) {
                            }
                        }
                        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
                            break;
                        }
                        else if (ret < 0) {
                            writeText("Error durring encoding");
                        }
                        if (sendto(s, (char*)packet->data, packet->size * sizeof(uint8_t), 0, (sockaddr*)&dest, sizeof(dest)) == SOCKET_ERROR) {
                            writeText("Failed to send frame");
                        }
                        av_packet_unref(packet);
                    }
                }
                
                m_Device->DeviceContext->Unmap(stagingTexture, 0);
                stagingTexture->Release();