Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (67)

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

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

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

Sur d’autres sites (10309)

  • Events after FFmpeg in Cmd command is completed in C#

    30 juin 2017, par Манаф Иракский

    I am creating windows form application using C# to manage cmd arguments of FFMPEG, also, I am using FileWatcher, my application as long as its running after clicking the button "start watching" is will watch if any new file landed in the folder, its will open CMD.exe and the argument will use FFMPEG to convert this Video file. its working but the issue is my C# application sends the command to cmd and thats it but I want to handle other tasks like if FFMPEG completed the task delete the original file ? how I can determine in my app thats CMD command completed and then start next task. here is my cod

    namespace WindowsFormsApplication1

    public partial class Form1 : Form

    public Form1()

    InitializeComponent() ;

       private void button1_Click(object sender, EventArgs e)
       {

           FileSystemWatcher watcher = new System.IO.FileSystemWatcher();
           watcher.Path = @"MY PATH";
           watcher.NotifyFilter = NotifyFilters.LastWrite;
           watcher.Filter = "*.*";
           watcher.Changed += new FileSystemEventHandler(OnChanged);
           watcher.EnableRaisingEvents = true;


       }

       private void fileSystemWatcher1_Changed(object sender, System.IO.FileSystemEventArgs e)
       {


       }
       private void OnChanged(object source, FileSystemEventArgs e)
       {

            DirectoryInfo d = new DirectoryInfo(InPath .Text );
           FileInfo[] Files = d.GetFiles("*.*");
           string str = "";
           foreach (FileInfo file in Files)
           {
               str = str + file.Name;
           }

           var strout = Path.GetFileNameWithoutExtension(str);
           string strCmdText;
           strCmdText = @"/C ffmpeg.exe -i X.mp4 -Vcodec X Xout.mp4"; /// this is just argument example
           System.Diagnostics.Process.Start("CMD.exe", strCmdText);


       }



       private void Form1_Load(object sender, EventArgs e)
       {



       }

    }
  • Streaming from Icecast to Facebook Live with ffmpeg on Ubuntu 16.04

    14 janvier 2017, par Matthieu

    I have a webradio streamed by Liquidsoap+Icecast on a DigitalOcean droplet (Ubuntu 16.04), and I want to combine this audio stream with a simple jpeg image with ffmpeg, transform it to a video stream and send it to Facebook live.

    Facebook Live specifications :

    Video Format :

    We accept video in maximum 720p (1280 x 720) resolution, at 30 frames
    per second. (or 1 key frame every 2 seconds). You must send an I-frame
    (keyframe) at least once every two seconds throughout the stream..
    Recommended max bit rate is 4000 Kbps. Titles must be less than 255
    characters otherwise the stream will fail. The Live API accepts H264
    encoded video and AAC encoded audio only.

    Video Length :

    240 minute maximum length, with the exception of continuous live (see
    above). 240 minute maximum length for preview streams (either through
    Live dialog or publisher tools). After 240 minutes, a new stream key
    must be generated.

    Advanced Settings :

    Pixel Aspect Ratio : Square. Frame Types : Progressive Scan. Audio
    Sample Rate : 44.1 KHz. Audio Bitrate : 128 Kbps stereo. Bitrate
    Encoding : CBR.

    And the ffmpeg command I tried :

    ffmpeg -loop 1 -i radio-background.jpg -thread_queue_size 20480 -i http://localhost:8000/radio -framerate 30 -r 30 -acodec aac -strict -2 -c:v libx264 -strict experimental -b:a 128k -pix_fmt yuvj444p -x264-params keyint=60 -b:v 256k -minrate 128k -maxrate 512k -bufsize 768k -f flv 'rtmp://rtmp-api.facebook.com:80/rtmp/'

    This is actually working, as Facebook receives the live video and allows me to publish it. But I can’t figured out why there is a lag almost every 2 or 3 seconds. I asked different people to watch the test video, and everyone gets the same problem : every 2 or 3 seconds the playing "freezes" for half a second and seems to load the video, I even can see the loading icon spinning on the screen.

    I tried different combinations of values for the following options : -thread_queue_size / -b:v / -minrate / -maxrate / -bufsize. Nothing seems to produce any change.

    Video streaming is new for me, I’m not really confortable with the options listed before, so I think I’m missing something here...

    Also, note that the icecast audio stream perfectly works, and according to DigitalOcean graphs, the server is not overloaded. So I think my ffmpeg command is wrong.

    What ffmpeg parameters would be working for that case ?

  • Live Video Facebook API with FFMPEG nodejs

    27 octobre 2016, par user3709908

    I have created Object Live Video as Facebook’s document.

    "stream_url": "rtmp://rtmp-api.facebook.com:80/rtmp/641310872699778?ds=1&a=AaYx3JYoFLTXAvBK"

    I using https://github.com/fluent-ffmpeg/node-fluent-ffmpeg for stream but I failed.

    Does anyone have solutions to stream video file (eg : mp4) to Object Video Facebook API ?

    var ffmpeg = require('fluent-ffmpeg'),
     fs = require('fs');

     // open input stream
    var infs = fs.createReadStream(__dirname + '/2.mp4');

    infs.on('error', function(err) {
     console.log(err);
    });
    var publish = "rtmp://rtmp-api.facebook.com:80/rtmp/641310872699778?ds=1&a=AaYx3JYoFLTXAvBK";
    // make sure you set the correct path to your video file
    var proc = ffmpeg(infs)

     .format('mp4')
     .size('320x?')
     .videoBitrate('512k')
     .videoCodec('libx264')
     .fps(24)
     .audioBitrate('96k')
     .audioCodec('aac')
     .audioFrequency(22050)
     .audioChannels(2)
     // setup event handlers
     .on('end', function() {
       console.log('file has been converted succesfully');
     })
     .on('error', function(err) {
       console.log('an error happened: ' + err.message);
     })
     // save to stream
     .save(publish); //end = true, close output stream after writing

    an error happened: ffmpeg exited with code 1: rtmp://rtmp-api.facebook.com:80/rtmp/641310872699778?ds=1&a=AaYx3JYoFLTXAvBK: Operation not permitted