Recherche avancée

Médias (91)

Autres articles (3)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (796)

  • Why won’t this mp4 play in a video-js tag any longer

    18 octobre 2019, par Velocedge

    I’m using ffmpeg to convert files to MP4. I’ve made some modifications to the ffmpeg string but now it seems no matter what I use, the video won’t play in an HTML5 tag (Chrome browser). Normally, I just used "-vcodec libx264 -s 1280x720 -ar 22050". When I try to load it in the video tag, I get the following error on http://family.gotsport.net/lmw/GotSport/videoPlayer.asp?WS=1&URL=/VideoFiles/2/4_70_highlight :

    The media could not be loaded, either because the server or network failed or because the format is not supported.

    No matter what parameters I use (or don’t use), it still won’t play. However, if you just call the url directly, it will play in Chrome (http://family.gotsport.net/videofiles/2/2_70_highlight.mp4). I’m using the 7.0.0 version of video-js from their CDN (although older versions give the same result).

    Video tag looks like :

    <video class="video-js vjs-default-skin" autoplay="autoplay" controls="controls" preload="auto">
       <source src="/VideoFiles/2/4_70_highlight.mp4" type="video/mp4"></source>
    </video>

    Here is the MediaInfo output from the file that won’t play :

    General
    Complete name                            : E:\VideoFiles\2\2_70_highlight.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 5.87 MiB
    Duration                                 : 27 s 60 ms
    Overall bit rate                         : 1 820 kb/s
    Writing application                      : Lavf58.29.100

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 27 s 60 ms
    Bit rate                                 : 1 685 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 29.970 (29970/1000) FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.061
    Stream size                              : 5.44 MiB (93%)
    Writing library                          : x264 core 158 r2984 3759fcb
    Encoding settings                        : 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=3 / b_pyramid=2 / 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=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Codec configuration box                  : avcC

    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : mp4a-40-2
    Duration                                 : 27 s 22 ms
    Duration_LastFrame                       : -6 ms
    Bit rate mode                            : Constant
    Bit rate                                 : 128 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 22.05 kHz
    Frame rate                               : 21.533 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 423 KiB (7%)
    Default                                  : Yes
    Alternate group                          : 1

    Do you see anything that would keep this format from playing in an HTML5 video tag ?

  • How to stream and play video automatically using PHP FFmpeg Video Streaming libray

    21 août 2020, par kikabi francis

    Am currently new to ffmpeg video streaming and working on a project to stream mp4 videos using ffmpeg libray https://github.com/aminyazdanpanah/PHP-FFmpeg-video-streaming and Video player https://videojs.com/ using DASH.&#xA;Am currently starting the streaming to mpd using commandline, with streaming.php.&#xA;I want to start streaming automatically when dash.html with video playing.&#xA;and i want to switch between different video qualities on the player, currently it play the same quality set in streaming.php&#xA;Here is my code

    &#xA;

         &#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;    <video height="480" data-setup="&#x27;{&quot;liveui&quot;:" class="video-js vjs-default-skin" controls="controls"></video>&#xA;        <code class="echappe-js">&lt;script src='http://stackoverflow.com/feeds/tag/app/js/plugins/node/video.js/dist/video.js'&gt;&lt;/script&gt;&#xA;        &lt;script src='http://stackoverflow.com/feeds/tag/app/js/plugins/switcher/videojs-resolution-switcher.js'&gt;&lt;/script&gt;&#xA;        &#xA;        &lt;script src='http://stackoverflow.com/feeds/tag/app/js/plugins/node/dashjs/dist/dash.all.min.js'&gt;&lt;/script&gt;&#xA;        &#xA;        &#xA;        &lt;script src='http://stackoverflow.com/feeds/tag/app/js/plugins/node/videojs-contrib-dash/dist /videojs-dash.js'&gt;&lt;/script&gt;&#xA;         &#xA;        &lt;script&gt;&amp;#xA;&amp;#xA;        var player = videojs(&amp;#x27;example-video&amp;#x27;);&amp;#xA;&amp;#xA;        player.ready(function() {&amp;#xA;            player.updateSrc([&amp;#xA;            {&amp;#xA;              src: &amp;#x27;http://localhost/MovieWeb/media/stream/dash-stream.mpd&amp;#x27;,&amp;#xA;              type: &amp;#x27;application/dash&amp;#x2B;xml&amp;#x27;,&amp;#xA;              label: &amp;#x27;144p&amp;#x27;,&amp;#xA;              res: 144&amp;#xA;            },&amp;#xA;            {&amp;#xA;              src: &amp;#x27;http://localhost/MovieWeb/media/stream/dash-stream.mpd&amp;#x27;,&amp;#xA;              type: &amp;#x27;application/dash&amp;#x2B;xml&amp;#x27;,&amp;#xA;              label: &amp;#x27;240p&amp;#x27;,&amp;#xA;              res: 240&amp;#xA;            },&amp;#xA;            {&amp;#xA;              src: &amp;#x27;http://localhost/MovieWeb/media/stream/dash-stream.mpd&amp;#x27;,&amp;#xA;              type: &amp;#x27;application/dash&amp;#x2B;xml&amp;#x27;,&amp;#xA;              label: &amp;#x27;360p&amp;#x27;,&amp;#xA;              res: 360&amp;#xA;            },&amp;#xA;            {&amp;#xA;              src: &amp;#x27;http://localhost/MovieWeb/media/stream/dash-stream.mpd&amp;#x27;,&amp;#xA;              type: &amp;#x27;application/dash&amp;#x2B;xml&amp;#x27;,&amp;#xA;              label: &amp;#x27;480p&amp;#x27;,&amp;#xA;              res: 480&amp;#xA;            },&amp;#xA;            {&amp;#xA;              src: &amp;#x27;http://localhost/MovieWeb/media/stream/dash-stream.mpd&amp;#x27;,&amp;#xA;              type: &amp;#x27;application/dash&amp;#x2B;xml&amp;#x27;,&amp;#xA;              label: &amp;#x27;720p&amp;#x27;,&amp;#xA;              res: 720&amp;#xA;            },&amp;#xA;            {&amp;#xA;              src: &amp;#x27;http://localhost/MovieWeb/media/stream/dash-stream.mpd&amp;#x27;,&amp;#xA;              type: &amp;#x27;application/dash&amp;#x2B;xml&amp;#x27;,&amp;#xA;              label: &amp;#x27;1080p&amp;#x27;,&amp;#xA;              res: 1080&amp;#xA;            }&amp;#xA;          ])&amp;#xA;         &amp;#xA;          player.play();&amp;#xA;        });&amp;#xA;        player.videoJsResolutionSwitcher();&amp;#xA;        &lt;/script&gt; &#xA;    &#xA;    &#xA;&#xA;&#xA;//video.php&#xA;< ?php&#xA;require ('api/libs/ffmpeg_video_stream/vendor/autoload.php') ;&#xA;use Streaming\Representation ;&#xA;$r_144p  = (new Representation)->setKiloBitrate(95)->setResize(256, 144) ;&#xA;$r_240p  = (new Representation)->setKiloBitrate(150)->setResize(426, 240) ;&#xA;$r_360p  = (new Representation)->setKiloBitrate(276)->setResize(640, 360) ;&#xA;$r_480p  = (new Representation)->setKiloBitrate(750)->setResize(854, 480) ;&#xA;$r_720p  = (new Representation)->setKiloBitrate(2048)->setResize(1280, 720) ;&#xA;$r_1080p = (new Representation)->setKiloBitrate(4096)->setResize(1920, 1080) ;&#xA;$config = [&#xA;      'ffmpeg.binaries'  => 'C :/ffmpeg/bin/ffmpeg.exe',&#xA;      'ffprobe.binaries' => 'C :/ffmpeg/bin/ffprobe.exe',&#xA;      'timeout'          => 3600, // The timeout for the underlying process&#xA;      'ffmpeg.threads'   => 12,   // The number of threads that FFmpeg should use&#xA;  ] ;&#xA;$ffmpeg = Streaming\FFMpeg::create($config) ;&#xA;$video = $ffmpeg->open('media/videos/dir686840/1080p_video.mp4') ;&#xA;$video->dash()&#xA;      ->setAdaption('id=0,streams=v id=1,streams=a')&#xA;      ->x264()&#xA;      ->addRepresentations([$r_360p])&#xA;      ->save('media/stream/dash-stream.mpd') ;&#xA; ?>&#xA;

    &#xA;

    Thank you very much !!

    &#xA;

  • libavfilter/libmpcodecs : sync existing filters with mplayer HEAD (ebcacb8b3ca91ef90ac...

    3 mai 2014, par mplayer developers
    libavfilter/libmpcodecs : sync existing filters with mplayer HEAD (ebcacb8b3ca91ef90acb93785b62fd8c5e5dae41)
    

    Authors from svn :
    cehoyos (2) :
    Support playback of JPEG 2000 digital cinema files.
    Add name for image format IMGFMT_440P.

    ib (1) :
    Get rid of VOCTRL_GUI_NOWINDOW.

    Matt Oliver (4) :
    Fix libmpcodecs inline asm on ICL.
    Use DECLARE_ALIGNED helper macros.
    Remove some superfluous commas from inline asm for better compatibility.
    Use numeric labels in inline asm for consistency and better compatibility.

    reimar (10) :
    Fix bpp calculation for XYZ format.
    Avoid duplicating the mouse autohide code.
    Add NV12/NV21 support to some helper functions.
    Add support for rotating the video via OpenGL.
    Add options to determine where borders will be added when adjusting for aspect.
    Apply forgotten move of apply_border_pos function.
    Extract window creation code to common file.
    Make VDPAU support work again with latest FFmpeg.
    img_format : document why mp_get_chroma_shift does not work for NV12/NV21
    Minor spelling/grammar fixes.

    For detailed line by line authorship please see svn log of mplayer
    svn ://svn.mplayerhq.hu/mplayer/trunk

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavfilter/libmpcodecs/img_format.c
    • [DH] libavfilter/libmpcodecs/img_format.h
    • [DH] libavfilter/libmpcodecs/libvo/video_out.h
    • [DH] libavfilter/libmpcodecs/mp_image.c
    • [DH] libavfilter/libmpcodecs/vf_fspp.c
    • [DH] libavfilter/libmpcodecs/vf_ilpack.c
    • [DH] libavfilter/libmpcodecs/vf_pp7.c
    • [DH] libavfilter/libmpcodecs/vf_uspp.c