Recherche avancée

Médias (91)

Autres articles (34)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • 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 (...)

Sur d’autres sites (3690)

  • ffmpeg overlay video with semi transparent video

    20 janvier 2018, par endryha

    I am trying to overlay background video with another semi transparent video using ffmpeg.

    Thanks to Overlaying multiple videos with ffmpeg I managed to put video overlay over background video.

    The problem is that I don’t know how to make overlay video semitransparent.

    So far I am using following commands :

    ffmpeg -i VID_105470127_044810.mp4 -vf "movie=VID_21550603_142437.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4

    ffmpeg -i VID_105470127_044810.mp4  -i VID_21550603_142437.mp4 -filter_complex "overlay, overlay=10:10" combined.mp4

    I tried to play with fade effect but this is not what I want. Please point me out where to look and what can I try to achieve this.

    UPDATE #1

    It looks like blend filter is exactly what I need but another issue came out :

    ffmpeg -i video1280x720.mp4 -vf "movie=video640x640.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4

    [Parsed_blend_3 @ 0x7f8041500da0] First input link top parameters (size 1280x720, SAR 1:1) do not match the corresponding second input link bottom parameters (640x640, SAR 1:1)
    [Parsed_blend_3 @ 0x7f8041500da0] Failed to configure output pad on Parsed_blend_3

    So probably if I can resolve issue with different resolutions I am done with my task.
    Please advice what is the direction to go.

    UPDATE#2

    To solve different resolution problem I decided to crop video and then proceed with blending filter

    ffmpeg -i VID_1920x1080.mp4 -filter:v "crop=640:640:0:0" -c:a copy VID_1920x1080_cropped.mp4

    ffmpeg -i VID_1920x1080_cropped.mp4 -i VID_21550603_142437.mp4 \
    -filter_complex "[1:0] setdar=dar=1,format=rgba [a]; [0:0]setdar=dar=1,format=rgba [b]; [b][a]blend=all_mode='overlay':all_opacity=0.8" blended.mp4
  • ffmpeg overlay video with semi transparent video

    25 octobre 2015, par endryha

    I am trying to overlay background video with another semi transparent video using ffmpeg.

    Thanks to Overlaying multiple videos with ffmpeg I managed to put video overlay over background video.

    The problem is that I don’t know how to make overlay video semitransparent.

    So far I am using following commands :

    ffmpeg -i VID_105470127_044810.mp4 -vf "movie=VID_21550603_142437.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4

    ffmpeg -i VID_105470127_044810.mp4  -i VID_21550603_142437.mp4 -filter_complex "overlay, overlay=10:10" combined.mp4

    I tried to play with fade effect but this is not what I want. Please point me out where to look and what can I try to achieve this.

    UPDATE #1

    It looks like blend filter is exactly what I need but another issue came out :

    ffmpeg -i video1280x720.mp4 -vf "movie=video640x640.mp4 [a]; [in][a] overlay=10:10 [c]" combined.mp4

    [Parsed_blend_3 @ 0x7f8041500da0] First input link top parameters (size 1280x720, SAR 1:1) do not match the corresponding second input link bottom parameters (640x640, SAR 1:1)
    [Parsed_blend_3 @ 0x7f8041500da0] Failed to configure output pad on Parsed_blend_3

    So probably if I can resolve issue with different resolutions I am done with my task.
    Please advice what is the direction to go.

    UPDATE#2

    To solve different resolution problem I decided to crop video and then proceed with blending filter

    ffmpeg -i VID_1920x1080.mp4 -filter:v "crop=640:640:0:0" -c:a copy VID_1920x1080_cropped.mp4

    ffmpeg -i VID_1920x1080_cropped.mp4 -i VID_21550603_142437.mp4 \
    -filter_complex "[1:0] setdar=dar=1,format=rgba [a]; [0:0]setdar=dar=1,format=rgba [b]; [b][a]blend=all_mode='overlay':all_opacity=0.8" blended.mp4
  • Why is the character in video is blurry when rending video by d3d9

    16 août 2021, par TONY

    I use the following code to render video :

    


    IDirect3DSurface9* surface = (IDirect3DSurface9*)frame->data[3];&#xA;        IDirect3DDevice9* pDevice = (IDirect3DDevice9*)(((DXVA2DevicePriv*)((AVHWDeviceContext*)hw_device_ctx->data)->user_opaque)->d3d9device);&#xA;        pDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0);&#xA;        pDevice->BeginScene();&#xA;        CComPtr<idirect3dsurface9> back_buffer;&#xA;&#xA;        HRESULT hr = pDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &amp;back_buffer);&#xA;        if (FAILED(hr)) {&#xA;            //RTC_LOG(LS_ERROR) &lt;&lt; "Failed to get back buffer" &lt;&lt; (int)hr;&#xA;            return -1;&#xA;        }&#xA;&#xA;        if (surface != nullptr) {&#xA;            hr = pDevice->StretchRect(surface, nullptr, back_buffer, nullptr, D3DTEXF_POINT);&#xA;            if (FAILED(hr)) {&#xA;                &#xA;                return -1;&#xA;            }&#xA;        }&#xA;&#xA;        pDevice->EndScene();&#xA;        &#xA;        hr = pDevice->Present(nullptr, nullptr, hWnd, nullptr);&#xA;</idirect3dsurface9>

    &#xA;

    I don't know why the character in the video is blurry, but the image seems be better.&#xA;Is there any settings to set to solve it ?

    &#xA;