Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (35)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

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

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

  • How to play mp4 video file with HTML5 video tag on iOS (iPhone and iPad) ?

    22 avril 2015, par Mokielas

    I want to display HTML5 video to my users using the video tag. For Firefox, Chrome and Opera WEBM works as expected. In Safari on Windows and Mac my MP4 version works, too. The only problem I’m experiencing is, that it won’t play on iPad and iPhone (Safari of course).

    Create video

    The MP4 (h.264 + acc-lc) is converted like this (with profile : baseline and level 3.0 for maximum compatibility with iOS) :

    • Stream #0:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x352, 198 kb/s, 17 fps, 17 tbr, 17408 tbn, 34 tbc (default)
    • Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 56 kb/s (default)

    Edit : Whole ffprobe output (slight changes in bitrate etc. to the above mentioned) :

    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.30.100
    Duration: 00:01:00.05, start: 0.046440, bitrate: 289 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline)
    (avc1 /0x31637661), yuv420p, 640x352, 198 kb/s, 25 fps, 25 tbr,
    12800 tbn, 50 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
    stereo, fltp, 85 kb/s (default)
    Metadata:
     handler_name    : SoundHandler

    I found various requirements for iOS devices like this and this, also someone mentioned to add the yuv420p pixel format when converting.

    In fact the ffmpeg cmd looks like this :

    ffmpeg -i __inputfile__ -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -b:v 200K -r 17 -bt 800K -c:a libfdk_aac -b:a 85k -ar 44100 -y __outputfile_lowversion__.mp4

    Display video

    With Modernizr I detect which format is "supported" and add it to the src or the video tag. Last thing is adding the right MIME type. For mp4 I add type="video/mp4". The full code for the video tag is :

    <video class="p-video" preload="auto" autoplay="" type="video/mp4" src="http://full.url/to/video_low.mp4"></video>

    I tried various ways : own implementation with own interface, controls and stuff from browser vendors and video.js just to check whether i’m too studip for this. All work in the environments listed above except for iPhone and iPad.

    I read this article on Video on the web, especially this part and only serve the "right" file with the "right" type without a posterattribute set.

    My Apache has

    AddType video/mp4                      mp4 m4v f4v f4p
    AddType video/ogg                      ogv
    AddType video/webm                     webm

    And byte-ranges are enabled. This is needed to get partial content from the server.

    Has anyone a clue what’s going on there ? Thanks in advance !

    Edit : Safari and Chrome both throw MEDIA_ERR_SRC_NOT_SUPPORTED Error on iPad. There must be an issue with the encoding.

  • audio of second video is missing after combining video

    2 avril 2021, par Captain_Zaraki

    I am trying to concat 2 videos but audio of second video is missing -

    &#xA;

    ffmpeg -i  1.mp4 -i 1.mp4 -filter_complex &#x27;[0]scale=1280:720,setsar=1[v0];[1]scale=1280:720,setsar=1[v1];[v0][v1]concat=n=2:v=1:a=0&#x27; -vsync 2  output.mp4&#xA;

    &#xA;

    if I set a=1 then it is giving an error-

    &#xA;

    [Parsed_setsar_3 @ 0x564e387d0340] Media type mismatch between the &#x27;Parsed_setsar_3&#x27; filter output pad 0 (video) and the &#x27;Parsed_concat_4&#x27; filter input pad 1 (audio)&#xA;[AVFilterGraph @ 0x564e3888fac0] Cannot create the link setsar:0 -> concat:1&#xA;Error initializing complex filters.&#xA;

    &#xA;