Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (78)

  • 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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (4690)

  • FireFox Video throws warning but video actually works ?

    21 février 2021, par SdBill
      

    • OS : Ubuntu 18.04
    • 


    • FF : 85.0.1
    • 


    • Error/warning : Cannot play media. No decoders for requested formats : video/mp4, video/mp4
    • 


    


    Same error for video/ogg

    


    Here are my questions : 1) The video still plays fine once loaded, and there is no error in Chrome or Chromium. Why does the video work fine after loading but throws the error on load ? 2) Is there anything that can be done without re-encoding over 2 gigs of video ?

    


    Context : this is an old no-profit site that used Flash for video and we really don't want to throw a lot of time at, but there are gigs of videos. I converted all .flv files and .mpg files to .mp4 using the most simple of ffmpeg commands, examples :

    


    ffmpeg -i video-source.flv video-source.mp4
ffmpeg -i video-source.mpg video-source.mp4
ffmpeg -i video-source.mpg video-source.ogg


    


    As I watched the ffmpeg output, it looked to me like the codec was H264 (at least, I think that is what I am seeing, not a video expert.)

    


    Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> theora (libtheora))
  Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))


    


    Server response in a direct request to the mp4 files is

    


    Content-Type
    video/mp4


    


    I have seen the documentation and posts on fragmented mp4 and if re-encoding is the only option, we're probably going to abandon as it does play once loaded.

    


    Code is simplistic, using an html5 doctype :

    


      <video width="320" height="240" controls="controls">&#xA;   <source src="/images/video/mp4/video-source.mp4" type="video/mp4">&#xA;   <source src="/images/video/ogg/video-source.ogg" type="video/ogg">&#xA;   Your browser does not support the video tag.&#xA;  </source></source></video>&#xA;

    &#xA;

    Is the only option here to pander to FireFox and re-encode everything since as mentioned, it plays fine once loaded and throws no error in Chrome ?

    &#xA;

  • fluent-ffmpeg unable to achieve consistent audio bitrate

    20 septembre 2020, par Martin

    I am working on an electron app that runs ffmpeg commands to combine an audio file + image file into a video file. I'm using an fluent-ffmpeg command I wrote, which works, but the outputted video fiels always have a lower audio bit rate, even though I specify 320kbps in my command.

    &#xA;

    I've been running multiple tests with mp3/flac/wav files that I logged below ; using my fluent-ffmpeg command as follows :

    &#xA;

    ffmpeg()&#xA;            .input(imgPath)&#xA;            .loop()&#xA;            .addInputOption(&#x27;-framerate 2&#x27;)&#xA;            .input(audioPath)&#xA;            .videoCodec(&#x27;libx264&#x27;)&#xA;            .audioCodec(&#x27;aac&#x27;)&#xA;            //.audioCodec(&#x27;copy&#x27;)&#xA;            .audioBitrate(&#x27;320k&#x27;)&#xA;            .videoBitrate(&#x27;8000k&#x27;, true)&#xA;            .size(&#x27;1920x1080&#x27;)&#xA;            .outputOptions([&#xA;                &#x27;-preset medium&#x27;,&#xA;                &#x27;-tune stillimage&#x27;,&#xA;                &#x27;-crf 18&#x27;,&#xA;                &#x27;-b:a 320k&#x27;,&#xA;                &#x27;-pix_fmt yuv420p&#x27;,&#xA;                &#x27;-shortest&#x27;&#xA;            ])&#xA;&#xA;            .on(&#x27;progress&#x27;, function (progress) {&#xA;                document.getElementById(updateInfoLocation).innerText = `Generating Video: ${Math.round(progress.percent)}%`&#xA;                console.info(`vid() Processing : ${progress.percent} % done`);&#xA;            })&#xA;            .on(&#x27;codecData&#x27;, function (data) {&#xA;                console.log(&#x27;vid() codecData=&#x27;, data);&#xA;            })&#xA;            .on(&#x27;end&#x27;, function () {&#xA;                document.getElementById(updateInfoLocation).innerText = `Video generated.`&#xA;                console.log(&#x27;vid()  file has been converted succesfully; resolve() promise&#x27;);&#xA;                resolve();&#xA;            })&#xA;            .on(&#x27;error&#x27;, function (err) {&#xA;                document.getElementById(updateInfoLocation).innerText = `Error generating video.`&#xA;                console.log(&#x27;vid() an error happened: &#x27; &#x2B; err.message, &#x27;, reject()&#x27;);&#xA;                reject(err);&#xA;            })&#xA;            .output(vidOutput).run()&#xA;

    &#xA;

    1) 320bkps mp3 file

    &#xA;

      &#xA;
    • imgPath = C :\Users\marti\Documents\projects\mp3 audio\img.jpg
    • &#xA;

    • audioPath = C :\Users\marti\Documents\projects\mp3 audio\08. Strange - Gigi D'Agostino.mp3
    • &#xA;

    • vidOutput = C :\Users\marti\Documents\projects\mp3 audio\08. Strange - Gigi D'Agostino.mp4
    • &#xA;

    &#xA;

    My audio file has a bit rate of 320kbps :&#xA;enter image description here

    &#xA;

    If I use my above ffmpeg function with .audioCodec(&#x27;aac&#x27;), the output video file has an audio bitrate of 300kbps. If I use .audioCodec(&#x27;copy&#x27;) instead, my output video file has an audio bitrate of 317kbps.

    &#xA;

    2) 1411kbps wav file

    &#xA;

      &#xA;
    • audioPath = C :\Users\marti\Documents\projects\wav audio\01 Nem Kaldi.wav
    • &#xA;

    • imgPath = C :\Users\marti\Documents\projects\wav audio\cover.jpg
    • &#xA;

    • vidOutput = C :\Users\marti\Documents\projects\wav audio\01 Nem Kaldi.mp4
    • &#xA;

    &#xA;

    My wav file has an audio bit rate of 1411kbps ; enter image description here&#xA;When I run my ffmpeg command using .audioCodec(&#x27;aac&#x27;), my output video file is again only 303kbps&#xA;enter image description here

    &#xA;

    3) 937kbps flac file

    &#xA;

      &#xA;
    • audioPath = C :\Users\marti\Documents\projects\flac audio\02 - ryokika.flac
    • &#xA;

    • imgPath = C :\Users\marti\Documents\projects\flac audio\R-1042328-1388635895-5022.jpeg.jpg
    • &#xA;

    • vidOutput = C :\Users\marti\Documents\projects\flac audio\02 - ryokika.mp4
    • &#xA;

    &#xA;

    When I run my ffmpeg command with.audioCodec(&#x27;aac&#x27;), the outputted video file is only 304kbps

    &#xA;

    is there any command or additional flag I need to add to ensure my output video files have a high quality audio bitrate ?

    &#xA;

  • Batch converting multiple video formats in nested directories

    1er octobre 2020, par Dave Coffin

    I'm running Arch/Gnome and am trying to convert a few hundred gigs of family videos from various formats (mov, wmv, mkv, avi mainly, but a few curveballs too) into trusty mp4s.

    &#xA;

    My scripting knowledge is strictly amateur, so far I have ;

    &#xA;

    for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done

    &#xA;

    That works fine for one directory. There are hundreds. I'd like to replace that one-liner with something more encompassing that I can just run and go to bed.

    &#xA;

    Wish list ;

    &#xA;

      &#xA;
    • run recursively

      &#xA;

    • &#xA;

    • convert from mov, wmv, mkv and avi without having to run separate scripts

      &#xA;

    • &#xA;

    • delete old file upon successful completion

      &#xA;

    • &#xA;

    • keep the same file name

      &#xA;

    • &#xA;

    • if it finds an error, just skip the file and keep going - don't stop the process

      &#xA;

    • &#xA;

    &#xA;

    Any help with any and/or all of these bits to cobble something together that'll work would be most appreciated.

    &#xA;