Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (82)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

Sur d’autres sites (7853)

  • swscale/graph : add new high-level scaler dispatch mechanism

    10 octobre 2024, par Niklas Haas
    swscale/graph : add new high-level scaler dispatch mechanism
    

    This interface has been designed from the ground up to serve as a new
    framework for dispatching various scaling operations at a high level. This
    will eventually replace the old ad-hoc system of using cascaded contexts,
    as well as allowing us to plug in more dynamic scaling passes requiring
    intermediate steps, such as colorspace conversions, etc.

    The starter implementation merely piggybacks off the existing sws_init() and
    sws_scale(), functions, though it does bring the immediate improvement of
    splitting up cascaded functions and pre/post conversion functions into
    separate filter passes, which allows them to e.g. be executed in parallel
    even when the main scaler is required to be single threaded. Additionally,
    a dedicated (multi-threaded) noop memcpy pass substantially improves
    throughput of that fast path.

    Follow-up commits will eventually expand this to move all of the scaling
    decision logic into the graph init function, and also eliminate some of the
    current special cases.

    Sponsored-by : Sovereign Tech Fund
    Signed-off-by : Niklas Haas <git@haasn.dev>

    • [DH] libswscale/Makefile
    • [DH] libswscale/graph.c
    • [DH] libswscale/graph.h
  • Concatenate m4s vimeo files

    16 novembre 2024, par Veverica10

    when downloading a vimeo video my downloaded always stopped at 99%. I was left with two collections of m4s files ; one for video and one for audio stream.

    &#xA;

    I tried all possible solutions an none worked for me. Renaming the extension to mp4 did not work, concatination with ffmpeg also did not work. I realised that video stream is created by an init.mp4 file followed by other segments one by one. The video player gets the information about the stream quality in a separate file, usually in text format. It then use the init.m4s file with video headers as a started and glues the segments to it in a proper order one by one. The same procedure applies to audio stream as well.

    &#xA;

    I found this solution using developer tools of the browser, hexeditor and ffmpeg :

    &#xA;

      &#xA;
    • open the page with a video and open developer tools (CTRL-SHIFT-C in firefox)
    • &#xA;

    • press play in video player and monitor network traffic in developer tools.
    • &#xA;

    • a found a json file with information and save it to disk
    • &#xA;

    &#xA;

    The file had all the information about streams. There were descriptions for five video streams and three audio streams. Stream for a video 1280x720 looked like this :

    &#xA;

        {&#xA;      "id": "b522db58",&#xA;      "base_url": "video/",&#xA;      "format": "dash",&#xA;      "mime_type": "video/mp4",&#xA;      "codecs": "avc1.640020",&#xA;      "bitrate": 2895000,&#xA;      "avg_bitrate": 1068000,&#xA;      "duration": 6787.88,&#xA;      "framerate": 25,&#xA;      "width": 1280,&#xA;      "height": 720,&#xA;      "max_segment_duration": 7,&#xA;      "init_segment": "AAAAIGZ0eXBkYXNoAAAAAGRhc2htcDQybXA0MWlzbzYAAAMfbW9vdgAAAGxtdmhkAAAAAN&#x2B;RBZPfkQWTAAAAGQAAAAAAAQAAA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D&amp;range=831-14434",&#xA;      "segments": [&#xA;        {&#xA;          "start": 0,&#xA;          "end": 6.08,&#xA;          "url": "b522db58.mp4?r=dXMtd2VzdDE%3D&amp;range=14435-328375",&#xA;          "size": 313940&#xA;        },&#xA;        {&#xA;

    &#xA;

      &#xA;
    • create a file video_start.mp4 with a value of init_segmet and decode64 it with https://www.base64decode.org/&#xA;. This is our init.m4s starter.
    • &#xA;

    • use hex editor and concatenade video_start.mp4 with all other .m4s files in the right order. (Tools -> File tools -> concatenate). Save as video.mp4
    • &#xA;

    &#xA;

    You can identify the right segments by looking a their size

    &#xA;

      &#xA;
    • repeat the same procedure for audio stream :
    • &#xA;

    &#xA;

    "audio": [&#xA;    {&#xA;      "id": "d27f1f72",&#xA;      "base_url": "audio/",&#xA;      "format": "dash",&#xA;      "mime_type": "audio/mp4",&#xA;      "codecs": "mp4a.40.2",&#xA;      "bitrate": 191000,&#xA;      "avg_bitrate": 191000,&#xA;      "duration": 6787.84,&#xA;      "channels": 2,&#xA;      "sample_rate": 48000,&#xA;      "max_segment_duration": 8,&#xA;      "init_segment": "AAAAIGZ0eXBkYXNoAAAAAGRhc2htcDQybXA0MWlzbzYAAAKmbW9vdgAAAGxtdmhkAAAAAN&#x2B;RBlHfkQZRAAC7gAAAAAAAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAACFpb2RzAAAAABCAgIAQAE///yn//w6AgIAEAAAAAQAAAdV0cmFrAAAAXHRraGQAAAAH35EGUd&#x2B;RBlEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAETa5AAAAAAAAABAAAAAAFNbWRpYQAAACBtZGhkAAAAAN&#x2B;RBlHfkQZRAAC7gAAAAABVxAAAAAAANmhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABMLVNNQVNIIEF1ZGlvIEhhbmRsZXIAAAAA721pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAAAs3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAAAEgICAFEAVAAAAAAAAAAAAAAAFgICAAhGQBoCAgAECAAAAEHN0dHMAAAAAAAAAAAAAABBzdHNjAAAAAAAAAAAAAAAUc3RzegAAAAAAAAAAAAAAAAAAABBzdGNvAAAAAAAAAAAAAAA8bXZleAAAABRtZWhkAQAAAAAAAAATa5AAAAAAIHRyZXgAAAAAAAAAAQAAAAEAAAABAAAAAAABAAA=",&#xA;      "index_segment": "d27f1f72.mp4?r=dXM%3D&amp;range=710-14325",&#xA;      "segments": [&#xA;        {&#xA;          "start": 0,&#xA;          "end": 5.994666666666666,&#xA;          "url": "d27f1f72.mp4?r=dXM%3D&amp;range=14326-157787",&#xA;          "size": 143461&#xA;        },&#xA;

    &#xA;

      &#xA;
    • create a file audio_start.mp4 with a value of init_segmet and decode64 it with https://www.base64decode.org/&#xA;.

      &#xA;

    • &#xA;

    • Concatenade audio_start.mp4 with all other .m4s files in the right order. (Tools -> File tools -> concatenate). Save as audio.mp4

      &#xA;

    • &#xA;

    • use ffmpeg and join both streams

      &#xA;

    • &#xA;

    &#xA;

    ffmpeg -i video.mp4 -i audio.mp4 -c copy output.mp4&#xA;

    &#xA;

      &#xA;
    • done
    • &#xA;

    &#xA;

    &#xA;

  • FFMPEG and MSA1 Codec Issues when Converting WMV to MP4 Video

    30 décembre 2023, par user136819

    I have a WMV video file (around 60 MB size, 01:23:00 length) and I'm running a Windows Server 2016 64-bit machine for testing.
    &#xA;As far as I know, this video file was recorded using Microsoft Live Meeting 2007 back in April 2010 and there is also an associated audio file (which I'm able to play).

    &#xA;

    I tried to play the video file on my machine using VLC player (latest update), however, I always see this weird MSA1 codec error :

    &#xA;

    enter image description here

    &#xA;

    So I tried to resolve this problem by downloading and installing the Combined-Community-Codec-Pack-64bit-2015-10-18, and using its MPC-HC 64-bit player to play the video...&#xA;I still couldn't get it to play ! Here are the logs shown by the MPC player :

    &#xA;

    enter image description here

    &#xA;

    WM ASF Reader::Raw Video 0&#xA;&#xA;Media Type 0:&#xA;--------------------------&#xA;Video: MSA1 1440x900 5fps 164kbps&#xA;&#xA;AM_MEDIA_TYPE: &#xA;majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}&#xA;subtype: Unknown GUID Name {3141534D-0000-0010-8000-00AA00389B71}&#xA;formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}&#xA;bFixedSizeSamples: 0&#xA;bTemporalCompression: 1&#xA;lSampleSize: 0&#xA;cbFormat: 88&#xA;&#xA;VIDEOINFOHEADER:&#xA;rcSource: (0,0)-(1440,900)&#xA;rcTarget: (0,0)-(1440,900)&#xA;dwBitRate: 164794&#xA;dwBitErrorRate: 0&#xA;AvgTimePerFrame: 2000000&#xA;&#xA;BITMAPINFOHEADER:&#xA;biSize: 40&#xA;biWidth: 1440&#xA;biHeight: 900&#xA;biPlanes: 1&#xA;biBitCount: 16&#xA;biCompression: MSA1&#xA;biSizeImage: 66101&#xA;biXPelsPerMeter: 0&#xA;biYPelsPerMeter: 0&#xA;biClrUsed: 0&#xA;biClrImportant: 0&#xA;&#xA;pbFormat:&#xA;0000: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........&#xA0;...„...&#xA;0010: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........&#xA0;...„...&#xA;0020: ba 83 02 00 00 00 00 00 80 84 1e 00 00 00 00 00 &#xBA;ƒ......€„......&#xA;0030: 28 00 00 00 a0 05 00 00 84 03 00 00 01 00 10 00 (...&#xA0;...„.......&#xA;0040: 4d 53 41 31 35 02 01 00 00 00 00 00 00 00 00 00 MSA15...........&#xA;0050: 00 00 00 00 00 00 00 00                         ........&#xA;

    &#xA;

    Since that didn't work, I tried installing the Microsoft MPEG-4 V1/2/3 VKI Codec for ASF files and still couldn't get the players to play the video and saw the same errors as above !

    &#xA;

    As a final attempt, I tried to convert this video to MP4 format using FFMPEG (version from 2020). Even this failed. Here are the logs :

    &#xA;

    D:\ffmpeg-20200403-52523b6-win64-static\bin>ffmpeg.exe -i input-video.wmv -c:v copy -c:a aac -q:a 100 output.mp4&#xA;ffmpeg version git-2020-04-03-52523b6 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200328&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 42.102 / 56. 42.102&#xA;  libavcodec     58. 77.101 / 58. 77.101&#xA;  libavformat    58. 42.100 / 58. 42.100&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 77.101 /  7. 77.101&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.&#xA;[asf @ 000002505bb4b600] Failed to open codec in avformat_find_stream_info&#xA;[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.&#xA;Input #0, asf, from &#x27;input-video.wmv&#x27;:&#xA;  Metadata:&#xA;    WMFSDKNeeded    : 0.0.0.0000&#xA;    WMFSDKVersion   : 10.00.00.4072&#xA;    IsVBR           : 0&#xA;  Duration: 01:22:49.28, start: 0.000000, bitrate: 96 kb/s&#xA;    Stream #0:0(ger): Video: msa1 (MSA1 / 0x3141534D), none, 1440x900, 164 kb/s, 5 tbr, 1k tbn, 1k tbc&#xA;[mp4 @ 000002505bb4ce40] Could not find tag for codec msa1 in stream #0, codec not currently supported in container&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;    Last message repeated 1 times&#xA;&#xA;D:\ffmpeg-20200403-52523b6-win64-static\bin>&#xA;

    &#xA;

    I wish to know, is there any other way I can convert this video to a more modern format so that I can play it on a modern machine and modern video player ?
    &#xA;What other codecs am I missing here ? (if so, where can I get them ?)
    &#xA;FYI, as mentioned earlier at the top, I'm only able to play the associated audio file...

    &#xA;

    I'm fairly new to all this stuff, so any help is appreciated.

    &#xA;

    Thanks in advance ! :)

    &#xA;