Recherche avancée

Médias (91)

Autres articles (87)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (10181)

  • YouTube Live not working with FFMPEG

    29 septembre 2020, par Benedikt Neumayr

    EDIT : It already works. My new router seems to block rtmp traffic. I edited the firewall config and now it works !
    
I'm trying to stream to YouTube with ffmpeg with the following command :

    



    ffmpeg -f alsa -ac 2 -i hw:0,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video0 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -strict experimental -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/45ee-qka9-0djm-796z   


    



    My ffmpeg version 2.8.11 on Linux Mint 18.2 then says :

    



    Input #0, alsa, from 'hw:0,0':
  Duration: N/A, start: 1511081240.166016, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s 
[video4linux2,v4l2 @ 0xacba60] The driver changed the time per frame from 1/10 to 2/15
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 5907.755626, bitrate: 110592 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 110592 kb/s, 7.50 fps, 7.50 tbr, 1000k tbn, 1000k tbc


    



    After that it does nothing for about 3 minutes,then it finally returns the following error :

    



    RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
rtmp://a.rtmp.youtube.com/live2: Unknown error occurred


    



    I used these instructions :

    



    


  • Use ffmpeg to encode AUDIO+IMAGE into a VIDEO for YouTube

    2 février 2016, par pablosz

    I need to generate a video containing a single image throughout the duration of the audio comming from an audio file. This video should be compatible with the parameters supported by YouTube.

    I’m using ffmpeg.

    I was trying various configurations explained right here and in other forums but not all have worked well.

    I’m currently using these settings :

    ffmpeg -i a.mp3 -loop 1 -i a.jpg -vcodec libx264 -preset slow -crf 20 -threads 0 -acodec copy -shortest a.mkv

    Where a.mp3 containing audio, a.jpg contains the image and a.mkv is the name of the resulting video.

    Using these parameters a.mkv works well on YouTube and can be played with Media Player Classic ; but KMPlayer only recognizes the audio, showing a blank image as background.

    My questions are two :
    1 - There is something wrong that causes KMPlayer to fail ?
    2 - Is there any configuration that can deliver the video faster, of course losing some compression ?

    Muchas gracias !

  • c# pipe using youtube-dl to ffmpeg

    1er janvier 2017, par lilscarecrow

    I am trying to pipe the audio stream from youtube-dl into ffmpeg for a program using discord.NET. I am not sure exactly how to achieve this in c#, though. Currently, I can play ffmpeg with a url or path from this code on the docs for discord.NET :

    var process = Process.Start(new ProcessStartInfo
           {                                                      
               FileName = "ffmpeg",
               Arguments = $"-i {outLine.Data}" +                                              
                           " -f s16le -ar 48000 -ac 2 pipe:1",                                        
               UseShellExecute = false,
               RedirectStandardOutput = true                                                                                  
           });
           Thread.Sleep(2000);                                                                                                                    
           int blockSize = 3840;                                                                                                        
           byte[] buffer = new byte[blockSize];
           int byteCount;

           while (!playing)                                                                                                  
           {
               byteCount = process.StandardOutput.BaseStream                                                  
                       .Read(buffer, 0, blockSize);                                                                          

               if (byteCount == 0)                                                                                                            
                   break;                                                                                                                          

               _vClient.Send(buffer, 0, byteCount);                                                                    
           }
           _vClient.Wait();

    So, I am trying to pipe the youtube-dl audio to this I assume. I just have no idea how to achieve piping in this format and for the file while it is downloading. Also, the program works on async if that helps.