Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (57)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

Sur d’autres sites (6945)

  • Nodejs youtube-dl ffmpeg audio stream

    19 septembre 2015, par Majster

    I have an issue with streaming video from YouTube. I have a http server which attempts to grab the raw video url, pull out the audio, convert it to mp3 and stream it to clients. The issue is that I’m not getting any audio on my client. Code is below (it’s all work in progress so there’s a lot of hardcoded stuff in there).

    // The obvious stuff
    var exec = require('child_process').exec;
    var spawn = require('child_process').spawn;
    var request = require('request');
    var http = require('http');

    //Listen for requests
    var server = http.createServer(function(req, response) {
      //This command runs youtube-dl and gets the video url
      var command = './node_modules/youtube-dl/bin/youtube-dl --simulate --get-url http://www.youtube.com/watch?v=5qF_qbaWt3Q';
      var exc = exec(command, function(error, stdout, stderr) {
         var downloadUrl = stdout.toString(); //Convert the buffer to string
         downloadUrl = downloadUrl.substring(0, downloadUrl.length - 1); //And strip the '\n' sign at the end
         console.log("This thing is: '" + downloadUrl + "'");
         response.writeHead(200, {
            'Content-Type': 'audio/mpeg'
         }); //When this is mpeg3 browser will download a blank .mp3 file now it tries to stream it

         //Spawn the ffmpeg child process
         var child = spawn('ffmpeg', ['-i', 'pipe:0', '-acodec', 'libmp3lame','-f', 'mp3', '-']);
         child.stdout.pipe(response); //Pipe it so it writes to our response

         // fs.createReadStream(filePath).pipe(child.stdin); - this is a testing thing ---> fs is filesystem and filePath is a link to a file - works
         request({url: downloadUrl, headers: {'Youtubedl-no-compression': 'True'}}).pipe(child.stdin); //Request the data and pipe it to ffmpeg for processing
      });
    });

    I can provide any additional info if needed. But the thing works if I try to use a file instead of request call so there is no problem with ffmpeg and other settings. Is it possible that YouTube has a protection against downloading videos this way ? I tried to paste the URL of console.log into my browser and nothing happens - no video. How can I fix this ?

  • Youtube WatchMe android project Login issue

    16 septembre 2015, par Kichu

    I created live streaming application using https://github.com/youtube/yt-watchme. And its installed on android phone.If I logged into this app.I’s still shows the "Not Signed in" Message. After login its showing the following error in android studio console

    09-16 16:48:01.970   25937-3107/com.google.android.apps.watchme E/WatchMe﹕ com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
       {
       "code": 403,
       "errors": [
       {
       "domain": "usageLimits",
       "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
       "reason": "accessNotConfigured",
       "extendedHelp": "https://console.developers.google.com"
       }
       ],
       "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
       }
               at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
               at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
               at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1056)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
               at com.google.android.apps.watchme.util.YouTubeApi.getLiveEvents(YouTubeApi.java:155)
               at com.google.android.apps.watchme.MainActivity$GetLiveEventsTask.doInBackground(MainActivity.java:312)
               at com.google.android.apps.watchme.MainActivity$GetLiveEventsTask.doInBackground(MainActivity.java:295)
               at android.os.AsyncTask$2.call(AsyncTask.java:288)
               at java.util.concurrent.FutureTask.run(FutureTask.java:237)
               at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
               at java.lang.Thread.run(Thread.java:841)

    How can i solve this issue please help.

    This application is connecting to YouTube Watch Me project.Is it possible to connect my project using client Id and client secret(How can i configure my client id to this app ?) ?

    Please suggest

  • ffmpeg adding jpg and mp3 together to make a video for upload on YouTube

    16 août 2016, par Daniel Meyer

    I am trying to take album art and join it with a track. The file formats in question are jpg and mp3. I have a working ffmpeg command

    ffmpeg -y -i *.jpg -i *.mp3 -c:a copy result.avi

    that creates a video that plays well in VLC, but when I upload it to YouTube, it gets stuck in processing.
    The video will play on YouTube in low 240p, but I would like the image to be of 1440 pixel quality.
    I know YouTube prefers mp4, and that the video I am creating only has a single image. How can I make some changes so the video will be accepted by YouTube and display correctly ?
    YouTube test link : https://www.youtube.com/watch?v=0t2A4erG4II&feature=youtu.be