Recherche avancée

Médias (91)

Autres articles (39)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (4753)

  • avformat/avr : check channels and bps in probe

    11 novembre 2013, par Michael Niedermayer
    avformat/avr : check channels and bps in probe
    

    Fixes probetest failure

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/avr.c
  • How to convert a script from youtube-dl

    16 janvier 2020, par danilshik

    There is a bash/batch file script :

    ffmpeg -i `youtube-dl https://www.twitch.tv/zero` -vf fps=fps=60, scale=1920x1080 -c:v libx264 -b:v 500k -preset superfast -c:a copy -f segment -segment_time 60 test.mp4

    The script is not mine, but it allows you to record video with a constant frame rate of parts. Unfortunately in cmd it does not work for me. Already tried everything, I do not know what the error is.

    I am getting No such file or directory.

    Tried 'youtube-dl https://www.twitch.tv/zero', the same error

    I tried "youtube-dl https://www.twitch.tv/zero", error : youtube-dl https://www.twitch.tv/zero: Invalid argument

    What am I doing wrong ? The author assures that he works on linux

    Update

    I tried ffmpeg -i $ (youtube-dl -f best -g https://www.twitch.tv/zero) .... The same error

    Update 2

    Why the video size exceeds 500 Mb ? What am I doing wrong ?

    enter image description here
    enter image description here

    Code

    cls &amp;&amp; @echo off &amp; setlocal enableextensions enabledelayedexpansion
    set "_tag_00=https://www.twitch.tv/avagg"
    set "_tag_01=--ignore-errors --abort-on-error --ignore-config --flat-playlist --geo-bypass "
    set "_tag_02=--restrict-filenames --no-part --no-cache-dir --write-thumbnail --prefer-ffmpeg "
    set "_tag_03=--ffmpeg-location .\ --postprocessor-args  -i "%%(title)s.%%(ext)s" -vf fps^=fps^=60^,"
    set "_tag_04=scale^=1920x1080 -c:v libx264 -b:v 500k -preset superfast -c:a copy -f segment -segment_time "
    set "_tag_05=60 %%^(title^)s.mp4"

    youtube-dl "!_tag_00!" -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -o "%%^(title^)s.%%^(ext^)s" !_tag_1!!_tag_2!!_tag_3!!_tag_4!!_tag_5!
    Pause

    Update 3

    enter image description here

  • 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 ?