Recherche avancée

Médias (91)

Autres articles (46)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (5023)

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

  • 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 && @echo off & 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

  • Live stream failed on Youtube

    20 septembre 2023, par kuldeep chopra

    We are currently running an AWS container that utilizes FFmpeg for live streaming while concurrently saving the stream as an MP4 file. However, we encountered an issue during a recent live stream session that was functioning correctly until approximately 13 minutes in, at which point FFmpeg reported the following error logs :

    


    ffmpeg [flv @ 0x555c4bdfe680] Failed to update header with correct duration.
2023-09-07T23:06:38.490+05:30 [flv @ 0x555c4bdfe680] Failed to update header with correct filesize.
2023-09-07T23:06:38.491+05:30 failed => rtmp://a.rtmp.youtube.com/live2/key......
2023-09-07T23:06:38.491+05:30 ffmpeg [tee @ 0x555c48843700] Slave muxer #1 failed: Broken pipe, continuing with 1/2 slaves.


    


    It's worth noting that we have conducted hundreds of live streams on YouTube without encountering this error before ; this is the first occurrence of such an issue.

    


    We would greatly appreciate it if you could investigate and provide insights into the underlying problem causing these error messages.