Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (63)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (14461)

  • avcodec/dvbsubdec : Check object position

    5 mars 2019, par Michael Niedermayer
    avcodec/dvbsubdec : Check object position
    

    Reference : ETSI EN 300 743 V1.2.1 7.2.2 Region composition segment

    Fixes : Timeout
    Fixes : 13325/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVBSUB_fuzzer-5143979392237568

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/dvbsubdec.c
  • Separate simultaneously changing regions of video into individual videos

    17 juillet 2019, par Elle Fie

    Given a single video stream (up to 4K resolution), where only small displayed portions may change, I’d like to identify these changing sections and create separate video streams, one for each changing section of the input video stream, in real time.

    Note that this is spatial extraction, not time slicing !

    Q1 : Is there a better name to address this process ?

    Q2 : Is this an already solved problem ?

    It seems ImageMagick’s Compare program supports diffing two images, which I can process to identify regions as coordinates for an ffmpeg crop (launched in parallel for each discovered diff region), but this method relies on having a PNG stream to avoid false positive diffs due to lossy encoding. Also, too slow to happen in real time.

    Q3 : Is there any way ffmpeg can dump out the causal regions influencing scene-change detection ?

  • how to download portion of video which was uploaded into AWS s3 bucket, though Nodejs SDKs

    22 février 2024, par rama rangeswara reddy

    I have uploaded a 1GB .mp4 file to an AWS S3 bucket. Using the AWS-SDK provided by the npm package, I am able to download the entire video. However, I have a specific requirement to generate a thumbnail at the 6-second mark of the video. Currently, I download the entire 1GB video to my local machine and then generate the thumbnail at the desired duration.

    &#xA;

    To optimize server resources and reduce disk load, I plan to download only the first 10 seconds of the video, which should be approximately 10MB or less in size. By doing so, I can significantly reduce download time and server load while still fulfilling my requirement of generating the thumbnail at the 6-second mark. Therefore, instead of downloading the entire 1GB video, I aim to download only the 10MB segment corresponding to the first 10 seconds of the video.

    &#xA;

    I am using nodejs, expressJS, as backed Technologies.

    &#xA;

    `

    &#xA;

    `async function downloadS3FileToLocalDirAndReturnPath(videoKey) {&#xA;    return new Promise(async (resolve, reject) => {&#xA;        try {&#xA;            AWS.config.update({&#xA;                accessKeyId: config.AWS.KEYS.accessKeyId,&#xA;                secretAccessKey: config.AWS.KEYS.secretAccessKey,&#xA;                region: config.AWS.KEYS.region,&#xA;                httpOptions: config.AWS.KEYS.httpOptions&#xA;            });&#xA;            const s3 = new AWS.S3();&#xA;&#xA;            // Specify the local file path where you want to save the downloaded video&#xA;            const localFilePath = `${os.tmpdir()}/${Date.now()}_sre.mp4`;&#xA;&#xA;            // Configure the parameters for the S3 getObject operation&#xA;            const params = {&#xA;                Bucket: config.AWS.S3_BUCKET,&#xA;                Key: videoKey&#xA;            };&#xA;&#xA;            const result = await s3.getObject(params).promise();&#xA;            const fileContent = result.Body;&#xA;            fs.writeFileSync(localFilePath, fileContent);&#xA;            resolve(localFilePath);&#xA;        } catch (error) {&#xA;            reject(error);&#xA;        }&#xA;    });&#xA;}`&#xA;

    &#xA;

    this code was working fine to download the whole video , but i need to download only first 10 seconds duration

    &#xA;

    S3 : How to do a partial read / seek without downloading the complete file ?

    &#xA;

    I tried this ,before posting this question with above post, video was downloading , it was not playing , by throwing this error , the file contains no playable streams

    &#xA;

    async function generateThumbnails(videoKey) {&#xA;&#xA;const s3 = new AWS.S3();&#xA;&#xA;const params = {&#xA;    Bucket: KEYS.bucket,&#xA;    Key: videoKey, // Specify the key of the video file in S3&#xA;    Range: `bytes=0-${1024 * 800}`, // Specify the range of bytes you want to retrieve&#xA;};&#xA;&#xA;const file = fs.createWriteStream(`/tmp/${Date.now()}_rama.mp4`);&#xA;&#xA;const s3Stream = s3.getObject(params).createReadStream();&#xA;&#xA;s3Stream.pipe(file);&#xA;&#xA;s3Stream.on("error", (error) => {&#xA;    console.log("Error Occured while File downloading!! ");&#xA;});&#xA;&#xA;s3Stream.on("finish", () => {&#xA;    console.log("File downloaded Successfully ");&#xA;});&#xA;

    &#xA;

    }

    &#xA;