Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (83)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • ffmpeg for x264 core 136 lib in iOS [closed]

    23 août 2013, par 官承翰

    I want to develop a service (written in php) to provide mobile platforms(iOS/android/..etc) or desktop PCs to stream videos.

    I have tried a lot and found.

    My iPhone4 didn't support core 136 lib based on x264...it would crash or freeze when I tried playing it.

    Here is my question :

    Can ffmpeg decode video so that iOS can play ?
    Or is there another way to solve it ?
    I am new to these things...

    Thanks in advance

  • avformat/utils : Fix memleaks

    24 septembre 2019, par Andreas Rheinhardt
    avformat/utils : Fix memleaks
    

    ff_read_packet had potential memleaks :
    1. If av_packet_make_refcounted fails, it means that the packet is not
    refcounted, but it could nevertheless carry side data and therefore
    needs to be unreferenced.
    2. If putting a packet on a packet list fails, it wasn't unreferenced.

    Furthermore, read_frame_internal leaked a packet's (side) data if a
    context update was required and failed.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavformat/utils.c
  • Format video to upload on instagram API (Nodejs)

    6 octobre 2022, par Rafael de Carvalho

    I'm trying to automate the process of posting photos and videos on instagram but I constantly get errors when uploading to instagram.

    &#xA;

    I will leave a video duration error here but several others happen, I need to follow the following requirements :

    &#xA;

      &#xA;
    • Container : MOV or MP4 (MPEG-4 Part 14), no edit lists, atom moov in front of file
    • &#xA;

    • Audio codec : AAC, 48 kHz maximum sampling rate, 1 or 2 channel (mono or stereo)
    • &#xA;

    • Video codec : HEVC or H.264, progressive scan, closed GOP, 4:2:0 chroma subsampling
    • &#xA;

    • Frame rate : from 23 to 60 FPS
    • &#xA;

    • photo size :&#xA;
        &#xA;
      • Maximum columns (horizontal pixels) : 1,920
      • &#xA;

      • Minimum aspect ratio [columns/rows] : 4/5
      • &#xA;

      • Maximum aspect ratio [columns/rows] : 9/16
      • &#xA;

      &#xA;

    • &#xA;

    • Video bitrate : 5Mbps maximum VBR
    • &#xA;

    • Audio bitrate : 128 kbps
    • &#xA;

    • Duration : maximum 60 seconds and minimum 3 seconds
    • &#xA;

    • File size : max 100 MB
    • &#xA;

    &#xA;

    My code :

    &#xA;

    import { S3 } from &#x27;aws-sdk&#x27;;&#xA;import { IgApiClient } from &#x27;instagram-private-api&#x27;;&#xA;import fs from &#x27;fs&#x27;;&#xA;&#xA;const s3 = new S3();&#xA;const ig = new IgApiClient();&#xA;const bucket = &#x27;posts&#x27;;&#xA;const { INSTA_USER, INSTA_PASS } = process.env;&#xA;&#xA;ig.state.generateDevice(INSTA_USER);&#xA;&#xA;export const main = async () => {&#xA;  try {&#xA;    await ig.account.login(INSTA_USER, INSTA_PASS);&#xA;&#xA;    const { Contents } = await s3.listObjectsV2({ Bucket: bucket, MaxKeys: 2, Prefix: &#x27;memes/geral&#x27; }).promise();&#xA;&#xA;    const files = await Promise.all(Contents.map(async ({ Key }) => {&#xA;      const file = await s3.getObject({&#xA;        Bucket: bucket,&#xA;        Key,&#xA;      }).promise();&#xA;&#xA;      return file.Body;&#xA;    }));&#xA;&#xA;    const publishResult = await ig.publish.video({&#xA;      video: files[0],&#xA;      coverImage: await fs.readFileAsync("../../src/assets/cover.png")&#xA;    });&#xA;&#xA;    console.dir({ publishResult }, { depth: null })&#xA;  } catch (error) {&#xA;    console.error(error);&#xA;    throw error;&#xA;  }&#xA;}&#xA;

    &#xA;

    When I get a file from s3, it comes in the following format.&#xA;I'm taking the content of the body property and put it in the video property of the publish method.&#xA;Is it right ?&#xA;I also tried to save the file with fs.writeFile and dps use readFileSync like in the example but it also gave the same error.

    &#xA;

    {&#xA;    AcceptRanges: &#x27;bytes&#x27;,&#xA;    LastModified: 2022-08-04T23:15:24.000Z,&#xA;    ContentLength: 3252472,&#xA;    ETag: &#x27;"c491cfe2fb5bc29777fc34391fc1d56a"&#x27;,&#xA;    ContentType: &#x27;application/octet-stream&#x27;,&#xA;    Body: Buffer(3252472) [Uint8Array] [&#xA;        0,   0,   0,  32, 102, 116, 121, 112, 105, 115, 111, 109,&#xA;        0,   0,   2,   0, 105, 115, 111, 109, 105, 115, 111,  50,&#xA;       97, 118,  99,  49, 109, 112,  52,  49,   0,   0, 209,   0,&#xA;      109, 111, 111, 118,   0,   0,   0, 108, 109, 118, 104, 100,&#xA;        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,&#xA;        0,   0,   3, 232,   0,   0, 250,  17,   0,   1,   0,   0,&#xA;        1,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,&#xA;        0,   1,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,&#xA;        0,   0,   0,   0,&#xA;      ... 3252372 more items&#xA;    ]&#xA;  }&#xA;

    &#xA;

    Error :

    &#xA;

    {&#xA;    "errorMessage": "POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; server processing error: VideoSourceDurationCheckException",&#xA;    "errorType": "IgUploadVideoError",&#xA;    "stackTrace": [&#xA;        "IgUploadVideoError: POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; server processing error: VideoSourceDurationCheckException",&#xA;        "    at C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\instagram-private-api\\dist\\services\\publish.service.js:26:1",  &#xA;        "    at tryCatcher (C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\bluebird\\js\\release\\util.js:16:1)"&#xA;}&#xA;

    &#xA;

    when I try to post a video under 60 seconds (apparently within the requirements) :

    &#xA;

    {&#xA;    "errorMessage": "POST /api/v1/media/configure/?video=1 - 403 Forbidden; ",&#xA;    "errorType": "IgConfigureVideoError",&#xA;    "stackTrace": [&#xA;        "IgConfigureVideoError: POST /api/v1/media/configure/?video=1 - 403 Forbidden; ",&#xA;        "    at PublishService.video (C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\instagram-private-api\\dist\\services\\publish.service.js:123:1)",        &#xA;        "    at C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\src\\functions\\cronFreefireMemes.js:71:31",&#xA;        "    at async Promise.all (index 1)",&#xA;        "    at main (C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\src\\functions\\cronFreefireMemes.js:47:5)"&#xA;    ]&#xA;}&#xA;

    &#xA;

    I know that the error above is happening because of the size of the video which is longer than 60 seconds.

    &#xA;

    But I would like to know if there is any way I can format any video to fit the instagram requirements.

    &#xA;

    Any nodejs library ?

    &#xA;