Recherche avancée

Médias (91)

Autres articles (87)

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

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

Sur d’autres sites (5507)

  • How to calculate byte/index ranges for mpeg-dash MPD file ?

    7 avril 2016, par TheSHEEEP

    I basically know how an .mpd file would have to be structured to support streaming from separate .mp4 (or webm) files.

    However, I would like to implement the "static" (aka "on-demand") method, thus only having one file per quality that I want to offer in the stream.

    In all samples, this is done by supplying the indexRange & range values within a Representation like this :

    <representation bandwidth="2073921" codecs="avc1.4d401f" height="720" mimetype="video/mp4" width="1280">
           <baseurl>car-20120827-88.mp4</baseurl>
           <segmentbase indexrange="708-1183">
             <initialization range="0-707"></initialization>
           </segmentbase>
    </representation>

    What I could not find out anywhere is how one would calculate the indexRange/range values here, using only ffmpeg (or ffprobe).
    What exactly would one have to do to get those numbers right for arbitrary (yet supported, of course) video files to create the .mpd file for them ?

    Or am I trying to figure out something in vain here and those values are just arbitrary ?

  • ffmpeg not returning anything on Dash

    10 janvier 2021, par whatcrisis

    I am trying to extract subtitles from an MPD, but ffmpeg is not returning anything. If I try first a simple command such as :

    &#xA;

    ffmpeg -i Downloads\Manifest.mpd&#xA;

    &#xA;

    After just 2 seconds it stops. This is the log :

    &#xA;

    ffmpeg version 4.3.1-2021-01-01-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;

    &#xA;

    So basically, it did nothing. I have libxml2 installed and I am confused since there is no error at all. Any help ? Thank you !

    &#xA;

  • FFMPEG php HLS and DASH conversion

    21 juillet 2020, par Angus Simons

    I'm using this repo https://github.com/aminyazdanpanah/PHP-FFmpeg-video-streaming to encode video in hls and then reproduce on the front end.

    &#xA;

    After creating all the hls segments correctly the php script fail to execute the command below.&#xA;The command getting error is the next one :

    &#xA;

    &#x27;/usr/bin/ffmpeg&#x27; &#x27;-y&#x27; &#x27;-i&#x27; &#x27;source.mp4&#x27; &#x27;-c:v&#x27; &#x27;libx264&#x27; &#x27;-c:a&#x27; &#x27;aac&#x27; &#x27;-bf&#x27; &#x27;1&#x27; &#x27;-keyint_min&#x27; &#x27;25&#x27; &#x27;-g&#x27; &#x27;250&#x27; &#x27;-sc_threshold&#x27; &#x27;40&#x27; &#x27;-use_timeline&#x27; &#x27;1&#x27; &#x27;-use_template&#x27; &#x27;1&#x27; &#x27;-init_seg_name&#x27; &#x27;dash_init_$RepresentationID$.$ext$&#x27; &#x27;-media_seg_name&#x27; &#x27;dash_chunk_$RepresentationID$_$Number%05d$.$ext$&#x27; &#x27;-seg_duration&#x27; &#x27;10&#x27; &#x27;-hls_playlist&#x27; &#x27;0&#x27; &#x27;-f&#x27; &#x27;dash&#x27; &#x27;-adaptation_sets&#x27; &#x27;id=0,streams=v id=1,streams=a&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-s:v:0&#x27; &#x27;256x144&#x27; &#x27;-b:v:0&#x27; &#x27;830k&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-s:v:1&#x27; &#x27;426x240&#x27; &#x27;-b:v:1&#x27; &#x27;969k&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-s:v:2&#x27; &#x27;640x360&#x27; &#x27;-b:v:2&#x27; &#x27;1162k&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-s:v:3&#x27; &#x27;854x480&#x27; &#x27;-b:v:3&#x27; &#x27;1453k&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-s:v:4&#x27; &#x27;1280x720&#x27; &#x27;-b:v:4&#x27; &#x27;1938k&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-s:v:5&#x27; &#x27;1920x1080&#x27; &#x27;-b:v:5&#x27; &#x27;2907k&#x27; &#x27;-strict&#x27; &#x27;-2&#x27; &#x27;-threads&#x27; &#x27;12&#x27; &#x27;dash.mpd&#x27;&#xA;

    &#xA;

    Here there is the error printed executing the command with CLI :

    &#xA;

        ffmpeg version 4.3-2~16.04.york1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609&#xA;    configuration: --prefix=/usr --extra-version=&#x27;2~16.04.york1&#x27; --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;    libavutil      56. 51.100 / 56. 51.100&#xA;    libavcodec     58. 91.100 / 58. 91.100&#xA;    libavformat    58. 45.100 / 58. 45.100&#xA;    libavdevice    58. 10.100 / 58. 10.100&#xA;    libavfilter     7. 85.100 /  7. 85.100&#xA;    libavresample   4.  0.  0 /  4.  0.  0&#xA;    libswscale      5.  7.100 /  5.  7.100&#xA;    libswresample   3.  7.100 /  3.  7.100&#xA;    libpostproc    55.  7.100 / 55.  7.100&#xA;    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;source.mp4&#x27;:&#xA;    Metadata:&#xA;        major_brand     : mp42&#xA;        minor_version   : 0&#xA;        compatible_brands: mp42mp41&#xA;        creation_time   : 2020-07-10T09:13:47.000000Z&#xA;    Duration: 01:03:27.36, start: 0.000000, bitrate: 3298 kb/s&#xA;        Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 2977 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)&#xA;        Metadata:&#xA;        creation_time   : 2020-07-10T09:13:47.000000Z&#xA;        handler_name    : ?Mainconcept Video Media Handler&#xA;        encoder         : AVC Coding&#xA;        Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)&#xA;        Metadata:&#xA;        creation_time   : 2020-07-10T09:13:48.000000Z&#xA;        handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;    Stream mapping:&#xA;    Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;    Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;    Stream #0:0 -> #0:2 (h264 (native) -> h264 (libx264))&#xA;    Stream #0:1 -> #0:3 (aac (native) -> aac (native))&#xA;    Stream #0:0 -> #0:4 (h264 (native) -> h264 (libx264))&#xA;    Stream #0:1 -> #0:5 (aac (native) -> aac (native))&#xA;    Stream #0:0 -> #0:6 (h264 (native) -> h264 (libx264))&#xA;    Stream #0:1 -> #0:7 (aac (native) -> aac (native))&#xA;    Stream #0:0 -> #0:8 (h264 (native) -> h264 (libx264))&#xA;    Stream #0:1 -> #0:9 (aac (native) -> aac (native))&#xA;    Stream #0:0 -> #0:10 (h264 (native) -> h264 (libx264))&#xA;    Stream #0:1 -> #0:11 (aac (native) -> aac (native))&#xA;    Press [q] to stop, [?] for help&#xA;    [libx264 @ 0x55de2d5e6c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;    [libx264 @ 0x55de2d5e6c80] profile High, level 2.0&#xA;    [libx264 @ 0x55de2d5e6c80] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=830 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;    [libx264 @ 0x55de2d09fcc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;    [libx264 @ 0x55de2d09fcc0] profile High, level 2.1&#xA;    [libx264 @ 0x55de2d09fcc0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=969 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;    [libx264 @ 0x55de2d0a4240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;    [libx264 @ 0x55de2d0a4240] profile High, level 3.0&#xA;    [libx264 @ 0x55de2d0a4240] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1162 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;    [libx264 @ 0x55de2d0a8380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;    [libx264 @ 0x55de2d0a8380] profile High, level 3.0&#xA;    [libx264 @ 0x55de2d0a8380] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1453 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;    [libx264 @ 0x55de2d085c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;    [libx264 @ 0x55de2d085c80] profile High, level 3.1&#xA;    [libx264 @ 0x55de2d085c80] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1938 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;    [libx264 @ 0x55de2d089d40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;    [libx264 @ 0x55de2d089d40] profile High, level 4.0&#xA;    [libx264 @ 0x55de2d089d40] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2907 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;    [dash @ 0x55de2cf50900] Opening &#x27;dash_init_0.m4s&#x27; for writing&#xA;    [dash @ 0x55de2cf50900] Opening &#x27;dash_init_1.m4s&#x27; for writing&#xA;    [dash @ 0x55de2cf50900] Opening &#x27;dash_init_2.m4s&#x27; for writing&#xA;    [dash @ 0x55de2cf50900] Conflicting stream par values in Adaptation Set 1&#xA;    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;    Error initializing output stream 0:10 -- &#xA;    [libx264 @ 0x55de2d5e6c80] final ratefactor: 16.04&#xA;    [aac @ 0x55de2d09eb80] Qavg: 65536.000&#xA;    [aac @ 0x55de2d09eb80] 2 frames left in the queue on closing&#xA;    [libx264 @ 0x55de2d09fcc0] final ratefactor: 19.18&#xA;    [aac @ 0x55de2d0a2b00] Qavg: 65536.000&#xA;    [aac @ 0x55de2d0a2b00] 2 frames left in the queue on closing&#xA;    [libx264 @ 0x55de2d0a4240] final ratefactor: 21.16&#xA;    [aac @ 0x55de2d0a6c40] Qavg: 65536.000&#xA;    [aac @ 0x55de2d0a6c40] 2 frames left in the queue on closing&#xA;    [libx264 @ 0x55de2d0a8380] final ratefactor: 21.67&#xA;    [aac @ 0x55de2d084540] Qavg: 65536.000&#xA;    [aac @ 0x55de2d084540] 2 frames left in the queue on closing&#xA;    [libx264 @ 0x55de2d085c80] final ratefactor: 22.63&#xA;    [aac @ 0x55de2d088600] Qavg: 65536.000&#xA;    [aac @ 0x55de2d088600] 2 frames left in the queue on closing&#xA;    [libx264 @ 0x55de2d089d40] final ratefactor: 22.67&#xA;    [aac @ 0x55de2d08c5c0] Qavg: 65536.000&#xA;    [aac @ 0x55de2d08c5c0] 2 frames left in the queue on closing&#xA;    Conversion failed!&#xA;

    &#xA;

    I checked if I have MPEG DASH support enable and it is enabled in FFMPEG

    &#xA;