Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (54)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7237)

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

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

    &#xA;

    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;

  • 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