Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (16)

  • 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

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

  • ANNEXE : Les extensions, plugins SPIP des canaux

    11 février 2010, par

    Un plugin est un ajout fonctionnel au noyau principal de SPIP. MediaSPIP consiste en un choix délibéré de plugins existant ou pas auparavant dans la communauté SPIP, qui ont pour certains nécessité soit leur création de A à Z, soit des ajouts de fonctionnalités.
    Les extensions que MediaSPIP nécessite pour fonctionner
    Depuis la version 2.1.0, SPIP permet d’ajouter des plugins dans le répertoire extensions/.
    Les "extensions" ne sont ni plus ni moins que des plugins dont la particularité est qu’ils se (...)

Sur d’autres sites (3729)

  • Firebase function to convert YouTube to mp3

    9 octobre 2023, par satchel

    I want to deploy to Firebase cloud functions.

    


    However, I get a vague error : “Cannot analyze code” after it goes through the initial pre deploy checks successfully.

    


    But I cannot figure out the problem given the vagueness of the error.

    


    It looks right with these requirements :

    


      

    • receive a POST with JSON body of YouTube videoID as a string
    • 


    • Download locally using the YouTube download package
    • 


    • Pipe to the ffmpeg package and save mp3 to the local temp
    • 


    • Store in default bucket on firestore storage
    • 


    • Apply make public method to make public
    • 


    


    const functions = require('firebase-functions');
const admin = require('firebase-admin');
const ytdl = require('ytdl-core');
const ffmpeg = require('fluent-ffmpeg');
const fs = require('fs');
const path = require('path');
const os = require('os');

admin.initializeApp();

// Set the path to the FFmpeg binary
const ffmpegPath = path.join(__dirname, 'bin', 'ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);

exports.audioUrl = functions.https.onRequest(async (req, res) => {
    if (req.method !== 'POST') {
        res.status(405).send('Method Not Allowed');
        return;
    }

    const videoId = req.body.videoID;
    const videoUrl = `https://www.youtube.com/watch?v=${videoId}`;
    const audioPath = path.join(os.tmpdir(), `${videoId}.mp3`);

    try {
        await new Promise((resolve, reject) => {
            ytdl(videoUrl, { filter: format => format.container === 'mp4' })
                .pipe(ffmpeg())
                .audioCodec('libmp3lame')
                .save(audioPath)
                .on('end', resolve)
                .on('error', reject);
        });

        const bucket = admin.storage().bucket();
        const file = bucket.file(`${videoId}.mp3`);
        await bucket.upload(audioPath, {
            destination: file.name,
            metadata: {
                contentType: 'audio/mp3',
            },
        });

        // Make the file publicly accessible
        await file.makePublic();

        const publicUrl = file.publicUrl();
        res.status(200).send({ url: publicUrl });
    } catch (error) {
        console.error('Error processing video:', error);
        res.status(500).send('Internal Server Error');
    }
});


    


    The following is the package.json file which is used to reference the dependencies for the function, as well as the entry point, which I believe just needs to be the name of the filename with the code :

    


    {
  "name": "firebase-functions",
  "description": "Firebase Cloud Functions",
  "main": "audioUrl.js", 
  "dependencies": {
    "firebase-admin": "^10.0.0",
    "firebase-functions": "^4.0.0",
    "ytdl-core": "^4.9.1",
    "fluent-ffmpeg": "^2.1.2"
  },
  "engines": {
    "node": "18"
  },
  "private": true
}


    


    (Edit) Here is the error :

    


     deploying functions
✔  functions: Finished running predeploy script.
i  functions: preparing codebase default for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔  functions: required API cloudbuild.googleapis.com is enabled
✔  artifactregistry: required API artifactregistry.googleapis.com is enabled
✔  functions: required API cloudfunctions.googleapis.com is enabled
i  functions: Loading and analyzing source code for codebase default to determine what to deploy
Serving at port 8171

shutdown requested via /__/quitquitquit


Error: Functions codebase could not be analyzed successfully. It may have a syntax or runtime error


    


    Failed to load function definition from source: FirebaseError: Functions codebase could not be analyzed successfully. It may have a syntax or runtime error


    


    I get the same error when running the following :

    


    firebase deploy --only functions:audioUrl


    


    And I thought I might get more detailed errors using the emulator :

    


    firebase emulators:start


    


    Under the emulator I had this additional error initially :

    


    Your requested "node" version "18" doesn't match your global version "16". Using node@16 from host.


    


  • libavfilter/dnn : Add scale and mean preprocess to openvino backend

    21 septembre 2023, par Wenbin Chen
    libavfilter/dnn : Add scale and mean preprocess to openvino backend
    

    Dnn models has different data preprocess requirements. Scale and mean
    parameters are added to preprocess input data.

    Signed-off-by : Wenbin Chen <wenbin.chen@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_openvino.c
    • [DH] libavfilter/dnn/dnn_io_proc.c
    • [DH] libavfilter/dnn_interface.h
  • Implementing Live Streaming Webinar Architecture - Need Guidance

    21 septembre 2023, par vishnugpl

    Question : I'm working on a project to implement a live streaming webinar platform, and I'm looking for guidance on the architecture and technologies to use. I have some specific requirements and constraints, and I'd appreciate any advice or pointers on how to get started.

    &#xA;

    Context :&#xA;I'm tasked with building a live streaming webinar platform from scratch for our organization. Here are some key requirements and constraints :

    &#xA;

      &#xA;
    1. Live Video Streaming : We need to support live video streaming for&#xA;webinars, workshops, and conferences. Low latency is crucial for&#xA;real-time interaction between presenters and attendees.

      &#xA;

    2. &#xA;

    3. Scalability : The platform should be able to handle a large number of concurrent attendees, potentially thousands or more,&#xA;without compromising performance.

      &#xA;

    4. &#xA;

    5. Security : Security is a top priority. We need to ensure that only authorized users can access the webinars, and we must protect&#xA;against unauthorized recording or distribution of the content.

      &#xA;

    6. &#xA;

    7. User Interaction : Attendees should be able to ask questions, participate in polls, and interact with presenters in real-time.

      &#xA;

    8. &#xA;

    9. Recording and Playback : We also want to provide recorded versions of past webinars for on-demand viewing (HLS).

      &#xA;

    10. &#xA;

    &#xA;

    Current Tech Stack :

    &#xA;

      &#xA;
    • Frontend : React
    • &#xA;

    • Backend : Node.js with Express
    • &#xA;

    • Database : MongoDB
    • &#xA;

    • Cloud Hosting : AWS
    • &#xA;

    &#xA;

    Questions :

    &#xA;

      &#xA;
    • What technologies or services are best suited for handling live video streaming with low latency ?

      &#xA;

    • &#xA;

    • How can I ensure scalability in terms of both video streaming and handling a large number of users ?

      &#xA;

    • &#xA;

    • What security measures should I consider to protect the content and user data ?

      &#xA;

    • &#xA;

    • Are there any recommended frameworks or libraries for building interactive features like real-time chat and polling ?

      &#xA;

    • &#xA;

    • What's the best approach for recording and serving on-demand webinar content ?

      &#xA;

    • &#xA;

    &#xA;

    Additional Information :

    &#xA;

      &#xA;
    • Budget is a consideration, so cost-effective solutions are preferred.

      &#xA;

    • &#xA;

    • Any open-source or third-party tools that can simplify development are welcome.

      &#xA;

    • &#xA;

    • I have experience with AWS, but I'm open to other cloud providers if they offer advantages for this project.

      &#xA;

    • &#xA;

    &#xA;