Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (70)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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

Sur d’autres sites (8046)

  • lavu/hwcontext_vulkan : support mapping VUYX, P012, and XV36

    20 août 2022, par Philip Langdale
    lavu/hwcontext_vulkan : support mapping VUYX, P012, and XV36
    

    If we want to be able to map between VAAPI and Vulkan (to do Vulkan
    filtering), we need to have matching formats on each side.

    The mappings here are not exact. In the same way that P010 is still
    mapped to full 16 bit formats, P012 has to be mapped that way as well.

    Similarly, VUYX has to be mapped to an alpha-equipped format, and XV36
    has to be mapped to a fully 16bit alpha-equipped format.

    While Vulkan seems to fundamentally lack formats with an undefined,
    but physically present, alpha channel, it has have 10X6 and 12X4
    formats that you could imagine using for P010, P012 and XV36, but these
    formats don't support the STORAGE usage flag. Today, hwcontext_vulkan
    requires all formats to be storable because it wants to be able to use
    them to create writable images. Until that changes, which might happen,
    we have to restrict the set of formats we use.

    Finally, when mapping a Vulkan image back to vaapi, I observed that
    the VK_FORMAT_R16G16B16A16_UNORM format we have to use for XV36 going
    to Vulkan is mapped to Y416 when going to vaapi (which makes sense as
    it's the exact matching format) so I had to add an entry for it even
    though we don't use it directly.

    • [DH] libavutil/hwcontext_vulkan.c
    • [DH] libavutil/version.h
  • PHP HTML5 compatible MP4 video using FFMPEG

    9 août 2013, par Annie

    Hi I am using FFMPEG to convert the uploaded video with PHP.

    echo "conversion exercise started...<br /><br />";

    /* looping through all files in the directory */
    if ($handle = opendir(&#39;assets/uploaded_videos&#39;)) {
       while (false !== ($entry = readdir($handle))) {

           /* filtering the desired extensions */
           if ($entry != "." &amp;&amp; $entry != ".." &amp;&amp; in_array(substr($entry, strrpos($entry, &#39;.&#39;)), array(".wmv", ".mpg", ".mpeg", ".flv", ".ogg", ".mp4")))
           {
               $filename = substr($entry, 0, strrpos($entry, &#39;.&#39;));

               //$command = "ffmpeg -i assets/uploaded_videos/$entry -vcodec libx264 assetss/videos/$filename.mp4";

               $command = "ffmpeg -i assets/uploaded_videos/$entry -vcodec mpeg4 -acodec libfaac files/videos/$filename.mp4";

               echo $command."<br />";

               shell_exec($command."> /dev/null 2>/dev/null &amp;");
           }
       }
       closedir($handle);
    }

    I have embedded the player in view file like this :

    <video width="350" poster="&lt;?php echo $first_video[&#39;thumb_path&#39;];?>" controls="controls">
       <source src="&lt;?php echo $first_video[&#39;video_path&#39;]; ?>"></source>
       <span></span>
    </video>

    Now, when I run in IE10, the player gives me invalid source error. I am having this issue with both libx264 and mpeg4 MP4 codecs.

    Any ideas whats going wrong ?

    Update

    Following Ian's direction, I finally get it working. I have used baseline-level3 profile with libx264. You can provide extra parameters but I guess profile is the key ! I experimented couple of profiles and observed that all HTML5 videos on vimeo and youtube use this baseline L3 profile.

    Anyone struggling with MP4 can consider the following command for conversion :

    /* following command converted all my uploaded *.wmv files to mp4 */
    $command = "ffmpeg -i files/uploaded_videos/$entry -vcodec libx264 -profile:v baseline -level 3 files/videos/$filename.mp4";
  • ffmpeg/ffprobe input as buffer stream, get an error always

    13 décembre 2023, par hhk

    &#xA;

    Code to reproduce

    &#xA;

    I attached the test.gif file on https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/assets/122068264/e1f3aa31-5386-4dab-a409-9a224e0610fe

    &#xA;

    &#xA;const ffprobeInstaller = require(&#x27;@ffprobe-installer/ffprobe&#x27;);&#xA;const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;const { Readable } = require(&#x27;stream&#x27;);&#xA;const fs = require(&#x27;fs&#x27;);&#xA;&#xA;&#xA;(async () => {&#xA;&#xA;    const buffer = fs.readFileSync(&#x27;test.gif&#x27;);&#xA;    let readableStream = new Readable();&#xA;    readableStream._read = () => { };&#xA;    readableStream.push(buffer);&#xA;    readableStream.push(null);&#xA;&#xA;    // console.log(ffprobe.path, ffprobe.version);&#xA;    ffmpeg.setFfprobePath(ffprobeInstaller.path);&#xA;    let metadata = await get_video_meta_data(readableStream);&#xA;&#xA;    async function get_video_meta_data(stream) {&#xA;        return new Promise((resolve, reject) => {&#xA;            new ffmpeg()&#xA;                .input(stream)&#xA;                .ffprobe((err, data) => {&#xA;                    // console.log(err);&#xA;                });&#xA;            resolve();&#xA;        });&#xA;    }&#xA;})();&#xA;&#xA;&#xA;&#xA;

    &#xA;

    (note : if the problem only happens with some inputs, include a link to such an input file)

    &#xA;

    Expected results

    &#xA;

    data should include duration but empty.

    &#xA;

    Observed results

    &#xA;

    data is empty and err happens.&#xA;Here is error data :

    &#xA;

    &#xA;  libavutil      58.  1.100 / 58.  1.100&#xA;  libavcodec     60.  2.100 / 60.  2.100&#xA;  libavformat    60.  2.100 / 60.  2.100&#xA;  libavdevice    60.  0.100 / 60.  0.100&#xA;  libavfilter     9.  1.100 /  9.  1.100&#xA;  libswscale      7.  0.100 /  7.  0.100&#xA;  libswresample   4.  9.100 /  4.  9.100&#xA;  libpostproc    57.  0.100 / 57.  0.100&#xA;pipe:0: Input/output error&#xA;

    &#xA;

    I only need the metadta for the input gif file. specifically, duration field.

    &#xA;