Recherche avancée

Médias (0)

Mot : - Tags -/gis

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (112)

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

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • 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 (16379)

  • lavc/libxavs2 : fix intra period meaning conflict

    18 octobre 2018, par hwren
    lavc/libxavs2 : fix intra period meaning conflict
    

    Signed-off-by : hwren <hwrenx@126.com>

    • [DH] libavcodec/libxavs2.c
  • ffmpeg can't record Webview Edge in window form

    20 juin 2021, par Sôn Gô Ku

    I have a window form application with browser control is Webview Edge as link bellow :&#xA;https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/winforms

    &#xA;

    This command use for record tab :&#xA;ffmpeg -f gdigrab -framerate 60 -i title="xo" -y -b:v 10M a.mp4&#xA;p\s : "xo" is window form title

    &#xA;

    But after record, video doesn't have webview control&#xA;Please see attached image

    &#xA;

    Please help me this case. Thank you so much !

    &#xA;

  • Output video like Instagram stories with ffmpeg

    1er novembre 2024, par arman naeimi

    I'm trying to build a small component like Instagram stories with React & Vite & Typescript. The user can zoom in, zoom out and rotate their videos easily on the screen with a touch.

    &#xA;

    Using ffmpeg I want to get an output like what user sees in his browser. definitely what the user sees on the screen of his phone and the area he is working on is smaller and our output is a video with larger dimensions in the size of 1080 x 1920. So I adjusted the values before sending them to server.

    &#xA;

    Front-end Code :

    &#xA;

      const handleUpload = async () => {&#xA;    if (isVideo &amp;&amp; video &amp;&amp; canvasRef.current &amp;&amp; mediaDimensions) {&#xA;      const TARGET_WIDTH = 1080; // Target output width&#xA;      const TARGET_HEIGHT = 1920; // Target output height&#xA;&#xA;      const scaleX = TARGET_WIDTH / mediaDimensions.width;&#xA;      const scaleY = TARGET_HEIGHT / mediaDimensions.height;&#xA;&#xA;      const adjustedScale = Math.min(scaleX, scaleY) * scale;&#xA;&#xA;      const adjustedRotate = rotation * (180 / Math.PI);&#xA;&#xA;      const adjustedOffsetX =&#xA;        ((offset.x * mediaDimensions.width) / canvasRef.current.width) *&#xA;        adjustedScale;&#xA;      const adjustedOffsetY =&#xA;        ((offset.y * mediaDimensions.height) / canvasRef.current.height) *&#xA;        adjustedScale;&#xA;&#xA;      const formData = new FormData();&#xA;      formData.append(&#x27;video&#x27;, video);&#xA;      formData.append(&#xA;        &#x27;transform&#x27;,&#xA;        JSON.stringify({&#xA;          scale: adjustedScale,&#xA;          rotate: adjustedRotate,&#xA;          offsetX: adjustedOffsetX,&#xA;          offsetY: adjustedOffsetY,&#xA;        })&#xA;      );&#xA;&#xA;      const response = await axios.post(&#x27;/api/watermark&#x27;, formData, {&#xA;        responseType: &#x27;blob&#x27;,&#xA;      });&#xA;&#xA;      const url = URL.createObjectURL(new Blob([response.data]));&#xA;      setVideoUrl(url);&#xA;    }&#xA;  };&#xA;

    &#xA;

    The ffmpeg command that I wrote :

    &#xA;

      const command = `&#xA;  ffmpeg -i ${file.path} -vf "&#xA;  scale=&#x27;min(1080/${transform.scale}, iw*${transform.scale}):min(1920/${transform.scale}, ih*${transform.scale})&#x27;,&#xA;  fps=30,&#xA;  format=yuv420p,&#xA;  rotate=${transform.rotate}*PI/180:ow=rotw(${transform.rotate}*PI/180):oh=roth(${transform.rotate}*PI/180),&#xA;  pad=1080:1920:(1080-iw*${transform.scale})/2&#x2B;${transform.offsetX}:(1920-ih*${transform.scale})/2&#x2B;${transform.offsetY},&#xA;  crop=1080:1920:(max((iw-1080)/2\\,0) &#x2B; ${transform.offsetX}):(max((ih-1920)/2\\,0) &#x2B; ${transform.offsetY})&#xA;  " -c:v libx264 -preset fast -crf 28 -y ${outputPath}&#xA;`;;&#xA;

    &#xA;

    I wrote different commands but did not get the desired output and kept getting errors. I want a command that behaves exactly like Instagram. If the user zooms the video out of the canvas, the output is still 1080x1920 and only outputs as much as is visible. If it was smaller, its place is only adjusted.

    &#xA;