Recherche avancée

Médias (91)

Autres articles (77)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (12429)

  • Could not write header for output file #0 (incorrect codec parameters ?) : Broken pipe

    23 mai 2020, par Laura

    I'm trying to generate audio waveform from an mp4 file as described here : https://github.com/bbc/audiowaveform.

    



    My mp4 file looks like

    



    <?xml version="1.0" encoding="UTF-8"?>


    



    http://www.w3.org/2001/XMLSchema-instance' ;>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


    



    <format filename="/cache/1268.mp4" duration="40.112000" size="10610125">&#xA;    <tag key="major_brand" value="isom"></tag>&#xA;    <tag key="minor_version" value="512"></tag>&#xA;    <tag key="compatible_brands" value="isomiso2avc1mp41"></tag>&#xA;    <tag key="encoder" value="Lavf58.20.100"></tag>&#xA;</format>&#xA;

    &#xA;&#xA;

    &#xA;&#xA;

    I wrote this command line :&#xA;/ffmpeg-4.1.1/ffmpeg -i /cache/1268.mp4 -map 0:1 -f wav - | /opt/audiowaveform/audiowaveform —input-format wav —pixels-per-second 25 -b 16

    &#xA;&#xA;

    But it fails with the folliwing error :&#xA;Could not write header for output file #0 (incorrect codec parameters ?) : Broken pipe&#xA;Error initializing output stream 0:0 —&#xA;Conversion failed !

    &#xA;&#xA;

    Complete log is :

    &#xA;&#xA;

            ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers&#xA;      built with gcc 8 (Debian 8.3.0-6)&#xA;      configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;      libavutil      56. 31.100 / 56. 31.100&#xA;      libavcodec     58. 54.100 / 58. 54.100&#xA;      libavformat    58. 29.100 / 58. 29.100&#xA;      libavdevice    58.  8.100 / 58.  8.100&#xA;      libavfilter     7. 57.100 /  7. 57.100&#xA;      libswscale      5.  5.100 /  5.  5.100&#xA;      libswresample   3.  5.100 /  3.  5.100&#xA;      libpostproc    55.  5.100 / 55.  5.100&#xA;    Error: unrecognised option &#x27;--input-format&#x27;&#xA;    See &#x27;/opt/audiowaveform/audiowaveform --help&#x27; for available options&#xA;    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/cache/1268.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : isom&#xA;        minor_version   : 512&#xA;        compatible_brands: isomiso2avc1mp41&#xA;        title           : Big Buck Bunny - test 8&#xA;        encoder         : Lavf57.72.101&#xA;        comment         : Matroska Validation File 8, secondary audio commentary track, misc subtitle tracks&#xA;      Duration: 00:00:46.07, start: 0.000000, bitrate: 2111 kb/s&#xA;        Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1908 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)&#xA;        Metadata:&#xA;          handler_name    : VideoHandler&#xA;        Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default)&#xA;        Metadata:&#xA;          handler_name    : SoundHandler&#xA;        Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 67 kb/s&#xA;        Metadata:&#xA;          handler_name    : SoundHandler&#xA;    Stream mapping:&#xA;      Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))&#xA;    Press [q] to stop, [?] for help&#xA;    Could not write header for output file #0 (incorrect codec parameters ?): Broken pipe&#xA;    Error initializing output stream 0:0 --&#xA;    Conversion failed!&#xA;

    &#xA;&#xA;

    Can anyone help me ?

    &#xA;&#xA;

    Note : I read the answer here ffmpeg Could not write header for output file #0 but I need to preserve audio codec.

    &#xA;

  • Shaka Player returns 4001 error - Node.js local web server playing MPEG-DASH

    27 mai 2020, par salgarji

    I've used Chrome inspection tool to access 'Console' and analyze what is happening. Complete error information :

    &#xA;&#xA;

    D {severity: 2, category: 4, code: 4001, data: Array(1), handled: false}&#xA;category: 4&#xA;code: 4001&#xA;data: Array(1)&#xA;0: "http://localhost:8080/dash_segmentos/video.mpd"&#xA;length: 1&#xA;__proto__: Array(0)&#xA;handled: false&#xA;severity: 2&#xA;__proto__: Object&#xA;

    &#xA;&#xA;

    My Server.js file :

    &#xA;&#xA;

    var http = require(&#x27;http&#x27;);&#xA;var fs = require(&#x27;fs&#x27;);&#xA;&#xA;console.log(__dirname);&#xA;&#xA;var path=&#x27;dash_segmentos/video.mpd&#x27;;&#xA;fs.access(path, fs.constants.R_OK | fs.constants.W_OK, (err) => {&#xA;    if (err) {&#xA;        console.log("%s doesn&#x27;t exist", path);&#xA;    } else {&#xA;        console.log(&#x27;can read/write %s&#x27;, path);&#xA;    }&#xA;});&#xA;&#xA;const PORT=8080; &#xA;&#xA;fs.readFile(&#x27;./player.html&#x27;, function (err, html) {&#xA;&#xA;    if (err) throw err;    &#xA;&#xA;    http.createServer(function(request, response) {  &#xA;        response.setHeader("Access-Control-Allow-Headers", "authorization, content-type");&#xA;        response.setHeader("Access-Control-Allow-Origin", "*");&#xA;        response.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");&#xA;        response.writeHeader(200, {"Content-Type": "text/html"}); &#xA;        response.write(html);  &#xA;        response.end();&#xA;    }).listen(PORT);&#xA;});&#xA;

    &#xA;&#xA;

    As you can see I've added CORS (I guess it's correct) and a console.log to see if it's in the proper location. Furthermore, I've verified that file is accessible with fs.access and it returns can read/write dash_segmentos/video.mpd For this reason, I'm sure I am in the correct path and referencing the right file.

    &#xA;&#xA;

    The HTML code (player.html) provided to Server.js :

    &#xA;&#xA;

    &#xA;&#xA; &#xA; <code class="echappe-js">&lt;script type=&quot;text/javascript&quot;&amp;#xA;src=&quot;https://cdnjs.cloudflare.com/ajax/libs/shaka-player/2.5.11/shaka-player.compiled.js&quot;&gt;&lt;/script&gt;&#xA; &#xA; &#xA; 
    &#xA; &#xA;

    &#xA;&#xA; &lt;script&gt;&amp;#xA;function initApp() { &amp;#xA;shaka.polyfill.installAll(); &amp;#xA;if (shaka.Player.isBrowserSupported()) { &amp;#xA; initPlayer(); &amp;#xA; } else { &amp;#xA; console.error(&amp;#x27;Browser not supported!&amp;#x27;);&amp;#xA; }}&amp;#xA;&amp;#xA;function initPlayer() { &amp;#xA;var video = document.getElementById( &amp;#x27;video&amp;#x27; );&amp;#xA;var player = new shaka.Player( video );&amp;#xA; window.player = player; &amp;#xA;player.addEventListener(&amp;#x27;error&amp;#x27;, onErrorEvent); &amp;#xA;player.load(path).then(function (){&amp;#xA;    console.log(&amp;#x27;Video loaded correctly&amp;#x27;);&amp;#xA; }).catch(onError);&amp;#xA;&amp;#xA;function onErrorEvent(event) {&amp;#xA; onError(event.detail); &amp;#xA; }&amp;#xA;function onError(error) {&amp;#xA; console.error(&amp;#x27;Codigo de error: &amp;#x27;, error.code, &amp;#x27; en &amp;#x27;, error);&amp;#xA; }&amp;#xA;}&amp;#xA;&lt;/script&gt;&#xA;&#xA;&lt;script&gt;&amp;#xA;var path=&amp;#x27;dash_segmentos/video.mpd&amp;#x27;;&amp;#xA;//var path=&amp;#x27;https://dash.akamaized.net/dash264/TestCases/2c/qualcomm/1/MultiResMPEG2.mpd&amp;#x27;;&amp;#xA;//the URL above is working! but it won&amp;#x27;t read my local mpd&amp;#xA;&amp;#xA;document.addEventListener(&amp;#x27;DOMContentLoaded&amp;#x27;, initApp);&amp;#xA;&amp;#xA; &lt;/script&gt;&#xA; &#xA;&#xA;

    &#xA;&#xA;

    I've tried changing the URL to an online resource and the player is properly working.

    &#xA;&#xA;

    My fluent-ffmpeg command which generates the video is :

    &#xA;&#xA;

    var ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;&#xA;var grabacion = new ffmpeg();&#xA;&#xA;grabacion.addInput(&#x27;0&#x27;)&#xA;.inputOptions([&#x27;-y -nostdin&#x27;, &#x27;-f avfoundation&#x27;, &#x27;-video_size 1280x720&#x27;, &#x27;-framerate 30&#x27;])&#xA;.outputOptions([&#x27;-vcodec libx264&#x27;, &#x27;-keyint_min 0&#x27;, &#x27;-g 100&#x27;, &#x27;-map 0:v&#x27;, &#x27;-b:v 1000k&#x27;, &#x27;-f dash&#x27;,&#xA; &#x27;-use_template 1&#x27;, &#x27;-use_timeline 0&#x27;, &#x27;-init_seg_name video0-$RepresentationID$-$Number$.mp4&#x27;,&#xA; &#x27;-media_seg_name video0-$RepresentationID$-$Number$.mp4&#x27;,&#x27;-single_file 0&#x27;, &#x27;-remove_at_exit 0&#x27;, &#x27;-window_size 20&#x27;, &#x27;-seg_duration 4&#x27;])&#xA;.output(&#x27;/path/to/files/dash_segmentos/video.mpd&#x27;)&#xA;.run();&#xA;

    &#xA;&#xA;

    The mpd manifest file is :

    &#xA;&#xA;

    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT26.7S" maxsegmentduration="PT4.0S" minbuffertime="PT13.2S">&#xA;    <programinformation>&#xA;    </programinformation>&#xA;    <servicedescription>&#xA;    </servicedescription>&#xA;    <period start="PT0.0S">&#xA;        <adaptationset contenttype="video" startwithsap="1" segmentalignment="true" bitstreamswitching="true" framerate="30000/1001" maxwidth="1280" maxheight="720" par="16:9">&#xA;            <representation mimetype="video/mp4" codecs="avc1.7a001f" bandwidth="1000000" width="1280" height="720" sar="1:1">&#xA;                <segmenttemplate timescale="1000000" duration="4000000" initialization="video0-$RepresentationID$-$Number$.mp4" media="video0-$RepresentationID$-$Number$.mp4" startnumber="1">&#xA;                </segmenttemplate>&#xA;            </representation>&#xA;        </adaptationset>&#xA;    </period>&#xA;</mpd>&#xA;

    &#xA;&#xA;

    Is something about ffmpeg ? Permissions ? Pixel format ? Encoding ? I've tried with other mpd file provided by my Raspberry Pi using video4linux (v4l) and it returns the same error !

    &#xA;&#xA;

    I know that's a lot of code, but maybe you find it quicker than me. I guess it's a Shaka Player thing with the XML, but I can't explain how ffmpeg is wrongly creating XML code.

    &#xA;&#xA;

    Thank you in advance !!

    &#xA;

  • FFmpeg filter complex add audio file to video at specific points

    4 juin 2020, par steve

    atrim=0:2 starts fine when I play the video it plays the mp3 now how do I add a working end time say finish at 9 seconds ?

    &#xA;&#xA;

    Summary I want to start at 2 seconds and finish at 9 seconds.

    &#xA;&#xA;

    ffmpeg -y -i "C:\Users\test\Desktop\vidz\New folder (2)\target\vaastav song .mp4" -i "C:\Users\test\Desktop\vidz\New folder (2)\target\2.mp3" -filter_complex "[0]atrim=0:2[Apre];[0]atrim=5,asetpts=PTS-STARTPTS[Apost];[Apre][1][Apost]concat=n=3:v=0:a=1" -vcodec copy -y "C:\Users\test\Desktop\vidz\New folder (2)\target\output1.mp4"&#xA;

    &#xA;&#xA;

    log file

    &#xA;&#xA;

    ffmpeg version git-2020-04-13-59e3a9a 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 --disable-w32threads --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. 78.102 / 58. 78.102&#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;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;C:\Users\test\Desktop\vidz\New folder (2)\target\vaastav song .mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    creation_time   : 2018-09-02T04:28:46.000000Z&#xA;  Duration: 00:05:08.80, start: 0.000000, bitrate: 2289 kb/s&#xA;    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2160 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2018-09-02T04:28:46.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 09/01/2018.&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2018-09-02T04:28:46.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 09/01/2018.&#xA;Input #1, mp3, from &#x27;C:\Users\test\Desktop\vidz\New folder (2)\target\2.mp3&#x27;:&#xA;  Metadata:&#xA;    genre           : Electronic;Indie&#xA;    title           : A Distorted Noise With A Little Bit Of Sense&#xA;    artist          : Lenin Was A Zombie&#xA;    encoder         : Lavf56.19.100&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;  Duration: 00:00:54.00, start: 0.025057, bitrate: 192 kb/s&#xA;    Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc56.21&#xA;Stream mapping:&#xA;  Stream #0:1 (aac) -> atrim&#xA;  Stream #0:1 (aac) -> atrim&#xA;  Stream #1:0 (mp3float) -> concat:in1:a0&#xA;  concat -> Stream #0:0 (aac)&#xA;  Stream #0:0 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;Output #0, mp4, to &#x27;C:\Users\test\Desktop\vidz\New folder (2)\target\output1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    encoder         : Lavf58.42.100&#xA;    Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.78.102 aac&#xA;    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 2160 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2018-09-02T04:28:46.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 09/01/2018.&#xA;frame=  737 fps=0.0 q=-1.0 size=    7936kB time=00:00:29.44 bitrate=2208.1kbits/s speed=58.9x    &#xA;[out_0_0 @ 000000000312c900] 100 buffers queued in out_0_0, something may be wrong.&#xA;[out_0_0 @ 000000000312c900] 1000 buffers queued in out_0_0, something may be wrong.&#xA;frame= 1401 fps=876 q=-1.0 size=   16640kB time=00:01:46.85 bitrate=1275.7kbits/s speed=66.8x    &#xA;frame= 2281 fps=1086 q=-1.0 size=   26112kB time=00:02:22.01 bitrate=1506.3kbits/s speed=67.6x    &#xA;frame= 3152 fps=1212 q=-1.0 size=   35584kB time=00:02:56.58 bitrate=1650.8kbits/s speed=67.9x    &#xA;frame= 4011 fps=1294 q=-1.0 size=   45824kB time=00:03:31.32 bitrate=1776.4kbits/s speed=68.2x    &#xA;frame= 4882 fps=1356 q=-1.0 size=   56320kB time=00:04:06.03 bitrate=1875.2kbits/s speed=68.3x    &#xA;frame= 5753 fps=1403 q=-1.0 size=   66560kB time=00:04:40.79 bitrate=1941.8kbits/s speed=68.5x    &#xA;frame= 6622 fps=1440 q=-1.0 size=   77056kB time=00:05:15.37 bitrate=2001.6kbits/s speed=68.6x    &#xA;frame= 7482 fps=1467 q=-1.0 size=   85248kB time=00:05:50.20 bitrate=1994.1kbits/s speed=68.7x    &#xA;frame= 7720 fps=1479 q=-1.0 Lsize=   87248kB time=00:05:59.79 bitrate=1986.5kbits/s speed=68.9x    &#xA;video:81451kB audio:5634kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.186449%&#xA;[aac @ 0000000003017ac0] Qavg: 648.065&#xA;

    &#xA;&#xA;

    I tried messing about with the line of code but no success so I turn to you for additional support

    &#xA;