Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (73)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (8736)

  • FFmpeg downscale video while maintaining aspect ratio SAR and DAR

    12 avril 2023, par Solaris

    How can I resize the video (eg 1080x ? to 480x ?) while maintain aspect ratio (SAR and DAR) ?
I want to use the output video to create Dash MPD

    


    I tried multiple filters
-filter:v 'scale=854:480'
-filter:v 'scale=-1:480'
-filter:v 'scale=-2:480'
-filter:v 'scale=854:480:force_original_aspect_ratio=decrease,pad=854:480:(ow-iw)/2:(oh-ih)/2,setsar=sar=1'

    


    But can get exact SAR and DAR , at least ffmpeg -f dash doesn't allow both streams to be in same adaptation set

    


  • avformat/matroskaenc : Don't waste bytes on ChapterAtoms length fields

    14 janvier 2022, par Andreas Rheinhardt
    avformat/matroskaenc : Don't waste bytes on ChapterAtoms length fields
    

    Also check the (user-provided) metadata tags for being too long.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/matroskaenc.c
    • [DH] tests/ref/fate/webm-dash-chapters
  • upload and stream ffmpeg stream chunk and mpd file in s3

    29 juin 2024, par Kamruzzaman Rabeen

    i want to make ann web app where i can upload a video. After uploading video its should be compress by ffmpeg after that i want to keep the data on aws S3.

    &#xA;

    I can compress by ffmpeg. but i have no idea which file i should keep in s3 because after compress its create many chunk file and one mpd xml file.

    &#xA;

    Also i want to stream the video from mpd file after fetching data from s3.&#xA;here is my upload function code.&#xA;const videoPath = req.file.path; const outputDir = path.join(__dirname, &#x27;dash&#x27;); const uniqueId = uuidv4(); const outputFilePath = path.join(outputDir, $uniqueId_stream.mpd); const bucketName = process.env.S3_BUCKET_NAME; const s3Key = dash/$uniqueId_stream.mpd` ;

    &#xA;

    // Ensure the output directory exists&#xA;if (!fs.existsSync(outputDir)) {&#xA;    fs.mkdirSync(outputDir, { recursive: true });&#xA;}&#xA;&#xA;ffmpeg(videoPath)&#xA;    .outputOptions([&#xA;        &#x27;-profile:v main&#x27;,&#xA;        &#x27;-use_template 1&#x27;,&#xA;        &#x27;-use_timeline 1&#x27;,&#xA;        &#x27;-b:v 1000k&#x27;,&#xA;        &#x27;-b:a 128k&#x27;,&#xA;        &#x27;-f dash&#x27;&#xA;    ])&#xA;    .on(&#x27;end&#x27;, async () => {&#xA;        console.log(&#x27;DASH file created successfully&#x27;);&#xA;        try {&#xA;            const s3Url = await uploadToS3(outputFilePath, bucketName, s3Key);&#xA;            res.status(200).json({ message: &#x27;Video uploaded and DASH file created&#x27;, url:    s3Url });&#xA;        } catch (err) {&#xA;            console.error(&#x27;Error uploading to S3: &#x27;, err);&#xA;            res.status(500).json({ message: &#x27;Error uploading to S3&#x27;, error: err.message });&#xA;        }&#xA;    })&#xA;    .on(&#x27;error&#x27;, (err) => {&#xA;        console.error(&#x27;Error processing video: &#x27;, err);&#xA;        res.status(500).json({ message: &#x27;Error processing video&#x27;, error: err.message });&#xA;    })&#xA;    .save(outputFilePath);`&#xA;&#xA;`const uploadToS3 = (filePath, bucketName, key) => {&#xA;return new Promise((resolve, reject) => {&#xA;    fs.readFile(filePath, (err, data) => {&#xA;        if (err) return reject(err);&#xA;&#xA;        const params = {&#xA;            Bucket: bucketName,&#xA;            Key: key,&#xA;            Body: data,&#xA;            ContentType: &#x27;application/dash&#x2B;xml&#x27;&#xA;        };&#xA;&#xA;        s3.upload(params, (err, data) => {&#xA;            if (err) return reject(err);&#xA;            resolve(data.Location);&#xA;        });&#xA;    });&#xA;});&#xA;

    &#xA;

     ;`

    &#xA;

    i have tried this version of code.

    &#xA;

    now i want to know what is the best to way to keep data in s3 for compress video after ffmpeg.

    &#xA;