Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (40)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

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

Sur d’autres sites (5584)

  • How to make mp4 rendering visible on Mac ?

    24 octobre 2022, par János

    Generating mp4 from gif like this :

    


        await new Promise<void>((resolve, reject) => {&#xA;        ffmpeg&#xA;            .input(`/tmp/input_${name}.gif`)&#xA;            .outputOptions([&#xA;                &#x27;-c:v libx264&#x27;,&#xA;                &#x27;-movflags &#x2B;faststart&#x27;,&#xA;                &#x27;-movflags frag_keyframe&#x2B;empty_moov&#x27;,&#xA;            ])&#xA;            .noAudio()&#xA;            .output(`/tmp/output_${name}.mp4`)&#xA;            .on(&#x27;end&#x27;, () => {&#xA;                console.log(&#x27;MP4 video generated&#x27;)&#xA;                resolve()&#xA;            })&#xA;            .on(&#x27;error&#x27;, (e) => {&#xA;                console.log(e)&#xA;                reject()&#xA;            })&#xA;            .run()&#xA;    })&#xA;</void>

    &#xA;

    will generate mp4, but can be watch only in Chrome, not in Safari or Quicktime Player.

    &#xA;

    We tried many other option like this :

    &#xA;

    &#x27;-pix_fmt yuv420p&#x27;,&#xA;&#x27;-vf "scale=trunc(iw/2)*2:trunc(ih/2)*2"&#x27;,&#xA;

    &#xA;

    but it raise an error :

    &#xA;

    Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;

    &#xA;

    enter image description here

    &#xA;

    Using this framework in a React / Next.js project : https://github.com/eugeneware/ffmpeg-static

    &#xA;

  • Animated Gif using PHP 5 and ffmpeg [closed]

    1er décembre 2012, par user1828200

    I make an Animated Gif, by download a video from youtube with youtube-dl and then convert it into AVI with ffmpegand then make animated gif through convert. It works, but speed is very slow.

    Here is my code

    Youtube Download :

    shell_exec("youtube-dl -o JNJNoaIU7qs.flv --format=5 --audio-quality=9 http://www.youtube.com/watch?v=JNJNoaIU7qs);

    Convert to AVI , because I want to make Small Gif so time manipulation is not done with youtube-dl thats why i convert avi with time manipulation

    shell_exec("ffmpeg -i JNJNoaIU7qs.flv -sameq -ss 00:00:5 -t 00:00:10 JNJNoaIU7qs.avi");

    Make Gif

    shell_exec("convert -quiet -delay 0  JNJNoaIU7qs.avi JNJNoaIU7qs.gif");

    It creates the GIF files, but it is very slow, how can I increase the speed of conversion ?

  • How to calculate the "Range" header for mp4 file to play/download a part of it ? [youtube-dl]

    5 décembre 2016, par supersan

    I’m using youtube-dl to download videos from YouTube. Unfortunately, sometimes I just need to download a part of the video like 10 seconds of a 3 hour video and here is how I see I can do it.

    Step 1 : Get the URL of the mp4 file from youtube-dl.

    youtube-dl -g -f "[ext=mp4]" https://www.youtube.com/watch?v=qOZ1u9VpoMk

    This returns $url : the full URL of mp4 file on server.

    Step 2 : Download part of the video using curl

    curl -r $startBytes-$endBytes $url

    But how to calculate $startBytes and $endBytes. What is the formula for that ?

    P.S I was thinking could be something as simple but this isn’t it..

    $startBytes = (total_size_of_video / total_length_of_video_secs) * start_seconds

    P.P.S. When I play the mp4 video in Chrome and use the scrub bar to jump around in the video, Chrome too send the Range header to the same URL (as I can see in fiddler)