Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (109)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11467)

  • MPEG Dash output generated by FFMPEG not working

    8 janvier 2019, par Anto Joy

    I created a dash output sample_video.mpd file using ffmpeg, but when I tried to play it using dash js the video was just loading and nothing else.
    Below is the generated mpd file

    <?xml version="1.0" encoding="utf-8"?>
    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT1M2.3S" minbuffertime="PT20.0S">
    <programinformation>
    </programinformation>
    <period start="PT0.0S">
       <adaptationset contenttype="video" segmentalignment="true" bitstreamswitching="true" lang="und">
           <representation mimetype="video/mp4" codecs="avc1.640015" bandwidth="255520" width="426" height="240" framerate="24/1">
               <segmenttemplate timescale="12288" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
                   <segmenttimeline>
                       <s t="198656" d="69120"></s>
                       <s d="75264"></s>
                       <s d="174592"></s>
                       <s d="122880"></s>
                       <s d="125440"></s>
                   </segmenttimeline>
               </segmenttemplate>
           </representation>
           <representation mimetype="video/mp4" codecs="avc1.64001e" bandwidth="726596" width="854" height="480" framerate="24/1">
               <segmenttemplate timescale="12288" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
                   <segmenttimeline>
                       <s t="198656" d="69120"></s>
                       <s d="75264"></s>
                       <s d="174592"></s>
                       <s d="122880"></s>
                       <s d="125440"></s>
                   </segmenttimeline>
               </segmenttemplate>
           </representation>
           <representation mimetype="video/mp4" codecs="avc1.64001f" bandwidth="1433314" width="1280" height="720" framerate="24/1">
               <segmenttemplate timescale="12288" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
                   <segmenttimeline>
                       <s t="198656" d="69120"></s>
                       <s d="75264"></s>
                       <s d="174592"></s>
                       <s d="122880"></s>
                       <s d="125440"></s>
                   </segmenttimeline>
               </segmenttemplate>
           </representation>
       </adaptationset>
       <adaptationset contenttype="audio" segmentalignment="true" bitstreamswitching="true" lang="und">
           <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="341000" audiosamplingrate="48000">
               <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="6"></audiochannelconfiguration>
               <segmenttemplate timescale="48000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
                   <segmenttimeline>
                       <s t="772096" d="270336"></s>
                       <s d="293888"></s>
                       <s d="681984"></s>
                       <s d="480256"></s>
                       <s d="492544"></s>
                   </segmenttimeline>
               </segmenttemplate>
           </representation>
           <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="341000" audiosamplingrate="48000">
               <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="6"></audiochannelconfiguration>
               <segmenttemplate timescale="48000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
                   <segmenttimeline>
                       <s t="772096" d="270336"></s>
                       <s d="293888"></s>
                       <s d="681984"></s>
                       <s d="480256"></s>
                       <s d="492544"></s>
                   </segmenttimeline>
               </segmenttemplate>
           </representation>
           <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="341000" audiosamplingrate="48000">
               <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="6"></audiochannelconfiguration>
               <segmenttemplate timescale="48000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
                   <segmenttimeline>
                       <s t="772096" d="270336"></s>
                       <s d="293888"></s>
                       <s d="681984"></s>
                       <s d="480256"></s>
                       <s d="492544"></s>
                   </segmenttimeline>
               </segmenttemplate>
           </representation>
       </adaptationset>
    </period>
    </mpd>

    The following is the ffmpeg command that i used to generate multi bitrate video

    ffmpeg -y -i sample_video.mp4 ^
    -c:v libx264 -x264opts "keyint=24:min-keyint=24:no-scenecut" -r 24 ^
    -c:a aac -b:a 128k ^
    -bf 1 -b_strategy 0 -sc_threshold 0 -pix_fmt yuv420p ^
    -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 ^
    -b:v:0 250k  -filter:v:0 "scale=-2:240" -profile:v:0 baseline ^
    -b:v:1 750k  -filter:v:1 "scale=-2:480" -profile:v:1 main ^
    -b:v:2 1500k -filter:v:2 "scale=-2:720" -profile:v:2 high ^
    sample_dash.mp4

    and to generate the mpd file

    ffmpeg -y -re -i sample_dash.mp4 ^
    -map 0 ^
    -use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets
    "id=0,streams=v id=1,streams=a" ^
    -f dash sample_video.mpd

    Also I saw in the chrome network tab that only init-stream4.m4s and init-stream5.m4s was called.

  • movenc : use similar logic to DASH when writing bit rate to ISML

    28 septembre 2016, par Jan Ekström
    movenc : use similar logic to DASH when writing bit rate to ISML
    

    This way, in case of bit rate not being set, max_bitrate will be
    used instead. This enables, for example, re-using max_bitrate
    information from the input or doing transcoding with a rate
    control mode that is not bit rate based.

    Signed-off-by : Jan Ekström <jeebjp@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/movenc.c
  • Add watermark-overlay with -filter_complex to multiple outputs (dash)

    13 juillet 2020, par Werner

    I'm creating a set of files for DASH (without audio) with :

    &#xA;

    ffmpeg -i "input.mov"&#xA; -y&#xA; -keyint_min 100 -g 100&#xA; -sc_threshold 0&#xA; -c:v libx264&#xA; -pix_fmt yuv420p&#xA; -map v:0 -s:0 320x180 -b:v:0 681.125k -maxrate:0 681.125k -bufsize:0 340.5625k&#xA; -map v:0 -s:1 640x360 -b:v:1 2724.5k -maxrate:1 2724.5k -bufsize:1 1362.25k&#xA; -map v:0 -s:2 1280x720 -b:v:2 5449k -maxrate:2 5449k -bufsize:2 2724.5k&#xA; -map v:0 -s:3 1920x1080 -b:v:3 10898k -maxrate:3 10898k -bufsize:3 5449k&#xA; -init_seg_name "myname_$RepresentationID$.$ext$"&#xA; -media_seg_name "myname_$RepresentationID$-$Number%05d$.$ext$"&#xA; -use_template 1 -use_timeline 1&#xA; -seg_duration 4 -adaptation_sets "id=0,streams=v"&#xA; -f dash "myname.mpd"&#xA;

    &#xA;

    Now I want to add a watermark. How is it done ? I tried something like :

    &#xA;

    ffmpeg -i "input.mov"&#xA; -y&#xA; -i "watermark.png" // Added&#xA; -filter_complex "overlay=24:960" // Added&#xA; -keyint_min 100 -g 100&#xA; -sc_threshold 0&#xA; -c:v libx264&#xA; -pix_fmt yuv420p&#xA; -map v:0 -s:0 320x180 -b:v:0 681.125k -maxrate:0 681.125k -bufsize:0 340.5625k&#xA; -map v:0 -s:1 640x360 -b:v:1 2724.5k -maxrate:1 2724.5k -bufsize:1 1362.25k&#xA; -map v:0 -s:2 1280x720 -b:v:2 5449k -maxrate:2 5449k -bufsize:2 2724.5k&#xA; -map v:0 -s:3 1920x1080 -b:v:3 10898k -maxrate:3 10898k -bufsize:3 5449k&#xA; -init_seg_name "myname_$RepresentationID$.$ext$"&#xA; -media_seg_name "myname_$RepresentationID$-$Number%05d$.$ext$"&#xA; -use_template 1 -use_timeline 1&#xA; -seg_duration 4 -adaptation_sets "id=0,streams=v"&#xA; -f dash "myname.mpd"&#xA;

    &#xA;

    But this results in only getting the 180p-Version of the video. How can I still get all versions of the video with the overlay ?

    &#xA;

    Added :&#xA;I tried as well :

    &#xA;

    ffmpeg -i "input.mov"&#xA; -y&#xA; -i "watermark.png"&#xA; -filter_complex "[0:v][1:v]overlay=24:960[out0][out1][out2][out3]"&#xA; -keyint_min 100 -g 100&#xA; -sc_threshold 0&#xA; -c:v libx264&#xA; -pix_fmt yuv420p&#xA; -map "[out0]" -s:0 320x180 -b:v:0 681.125k -maxrate:0 681.125k -bufsize:0 340.5625k&#xA; -map "[out1]" -s:1 640x360 -b:v:1 2724.5k -maxrate:1 2724.5k -bufsize:1 1362.25k&#xA; -map "[out2]" -s:2 1280x720 -b:v:2 5449k -maxrate:2 5449k -bufsize:2 2724.5k&#xA; -map "[out3]" -s:3 1920x1080 -b:v:3 10898k -maxrate:3 10898k -bufsize:3 5449k&#xA; -init_seg_name "myname_$RepresentationID$.$ext$"&#xA; -media_seg_name "myname_$RepresentationID$-$Number%05d$.$ext$"&#xA; -use_template 1 -use_timeline 1&#xA; -seg_duration 4 -adaptation_sets "id=0,streams=v"&#xA; -f dash "myname.mpd"&#xA;

    &#xA;

    which results in the error :&#xA;No output pad can be associated to link label 'out1'.

    &#xA;