Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (77)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (7937)

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

  • MovieWriter FFwriter unavailable. Trying to use pillow instead

    17 février 2020, par Life is Good

    I have created a bar chart race in Matplotlib and now I am trying to save it into a gif file. I have imported the relevant library :

    import matplotlib.animation as animation
    plt.rcParams['animation.ffmpeg_path'] = '‪C:\\Program Files\\FFmpeg\\bin\\ffmpeg.exe'
    FFwriter = animation.FFMpegWriter()

    Here is the code I used to create my animation :

    fig, ax = plt.subplots(figsize=(15, 8))
    animator = animation.FuncAnimation(fig, draw_barchart, frames=range(1999, 2015))
    HTML(animator.to_jshtml())

    However, when I searched for the writers, there are only two of them :

    animation.writers.list()

    enter image description here

    I had already installed FFmpeg following a tutorial on Wikihow, and I am also able to run FFmpeg from the command line, so I don’t understand why it is not showing up. When I try to save my animation into a gif, I get this error message :
    enter image description here

    Would anybody be familiar with this error message, please ? Thank you very much.

  • Record web browser with sound as a service on linux server with puppeteer

    12 septembre 2021, par NA GUY

    I'm trying to build a service on a linux server to record video a web browser with its sound.

    &#xA;

    The first step I did with the source code below (using xvfb, puppeteer and ffmpeg) to record successfully.

    &#xA;

    However when I do a recording with different processes at a same time (different websites) the audio gets mixed up between the processes.&#xA;I know this is happening because I used the same default audio output for all processes.

    &#xA;

    The question is : how can I record the browser with sound that doesn't get mixed up between different processes ?

    &#xA;

    My sample code below :

    &#xA;

    var Xvfb = require(&#x27;xvfb&#x27;);&#xA;var puppeteer = require(&#x27;puppeteer&#x27;);&#xA;const { spawn, spawnSync } = require(&#x27;child_process&#x27;);&#xA;&#xA;async function record() {&#xA;&#xA;    var xvfb = new Xvfb({&#xA;        displayNum: 99,&#xA;        reuse: false,&#xA;        xvfb_args: [&#xA;            "-screen", "0", "1920x1080x24",&#xA;            "-ac",&#xA;            "-nolisten", "tcp",&#xA;            "-dpi", "96",&#xA;            "&#x2B;extension", "RANDR"&#xA;        ]&#xA;    });&#xA;&#xA;    xvfb.startSync();&#xA;&#xA;    var browser = await puppeteer.launch({&#xA;        headless: false,&#xA;        defaultViewport: null,&#xA;        ignoreDefaultArgs: [&#xA;            "--mute-audio",&#xA;            "--enable-automation"&#xA;        ],&#xA;        args: [&#xA;            "--use-fake-ui-for-media-stream",&#xA;            "--window-size=1920,1080",&#xA;            "--start-fullscreen"&#xA;        ]&#xA;    });&#xA;    const page = await browser.newPage();&#xA;&#xA;    var url = "http://www.noiseaddicts.com/free-samples-mp3/?id=2544";&#xA;    await page.goto(url);&#xA;    await page.click(&#x27;span.map_play&#x27;);&#xA;&#xA;    var time = new Date().getTime();&#xA;&#xA;    var options = [&#xA;        "-video_size", "1920x1080",&#xA;        "-framerate", "30",&#xA;        "-f", "x11grab",&#xA;        "-draw_mouse", "0",&#xA;        "-i", ":99",&#xA;&#xA;        "-f", "pulse",&#xA;        "-ac", "2",&#xA;        "-i", "1",&#xA;        "./output" &#x2B; time &#x2B; ".mkv"&#xA;    ];&#xA;&#xA;    var cmd = &#x27;ffmpeg&#x27;;&#xA;&#xA;    var proc = spawn(cmd, options);&#xA;&#xA;    proc.stdout.on(&#x27;data&#x27;, function (data) {&#xA;        console.log(data);&#xA;    });&#xA;&#xA;    proc.stderr.setEncoding("utf8")&#xA;    proc.stderr.on(&#x27;data&#x27;, function (data) {&#xA;        console.log(data);&#xA;    });&#xA;&#xA;    proc.on(&#x27;close&#x27;, async function () {&#xA;        console.log(&#x27;finished&#x27;);&#xA;        xvfb.stopSync();&#xA;    });&#xA;}&#xA;&#xA;record();&#xA;

    &#xA;