Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (68)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

Sur d’autres sites (7309)

  • Problems with timeout when there is no video source with RTP format in java openCV

    15 février 2019, par Javier Dalmau Fajardo

    I have problems with the timeout when there is no video source with RTP format.

    If I execute the code and there is no video, the program stays waiting in the grabber.Start () function all the time.

    FFmpegFrameGrabber grabber;
    try{
       Frame img;        
       grabber = new FFmpegFrameGrabber("rtp://" + ip + ":1234");
       grabber.setOption("stimeout", String.valueOf(5*1000000));
       grabber.Start ();
       img = grabber.grab();
       Java2DFrameConverter converter = new Java2DFrameConverter();
    BufferedImage bufferedImag;
    bufferedImag = converter.convert(img);
       grabber.stop();
    }catch (FrameGrabber.Exception ex) {
       throw new IOException("Could not open video file ", ex);
    }

    As I said before, when the video exists, everything works perfectly, but when there is no video source, the program stays in the grabber.start () and I can not get out of there.

    I would like that when 5 seconds pass, it generates an exception and leaves the grabber.satart () function. I use grabber.setOption("stimeout", String.valueOf(5*1000000)) ; to controlate it but don’t work in RTP.

    I have checked the operation with RTSP video source and the code works perfectly, that is, after 5 seconds it generates an exception ... but I need to control the RTP video source.

    Someone could help me, thanks.

  • How to redirect -progress option output of ffmpeg to stderr ?

    27 janvier 2019, par gerrBen

    I’m writing my own wraping for ffmpeg on Python 3.7.2 now and want to use it’s "-progress" option to read current progress since it’s highly machine-readable. The problem is "-progress" option of ffmpeg accepts as its parameter file names and urls only. But I don’t want to create additional files not to setup the whole web-server for this purpose.

    I’ve google a lot about it, but all the "progress bars for ffmpeg" projects rely on generic stderr output of ffmpeg only. Other answers here on Stackoverflow and on Superuser are being satisfied with just "-v quiet -stats", since "progress" is not very convenient name for parameter to google exactly it’s cases.

    The best solution would be to force ffmpeg write it’s "-progress" output to separate pipe, since there is some useful data in stderr as well regarding file being encoded and I don’t want to throw it away with "-v quiet". Though if there is a way to redirect "-progress" output to stderr, it would be cool as well ! Any pipe would be ok actually, I just can’t figure out how to make ffmpeg write it’s "-progress" not to file in Windows. I tried "ffmpeg -progress stderr ...", but it just create the file with this name.

  • How to use ffmpeg with laravel 5.7 on a shared hosting with limited resources/access

    29 novembre 2018, par DestinyB

    I have search through different forums and online resources on how I can use ffmpeg on my laravel 5.7 application on a shared host but have not gotten any solution. I actually installed ffmpeg on my project following the instructions from this link How to Install FFMPEG in Laravel.

    I also downloaded the binary files and save them to my local drive C :// in my system with windows 8.1 Operating System. Then I connected my binary as show bellow ;

     $ffprobe = FFMpeg\FFProbe::create([
           'ffmpeg.binaries'  => 'C:/FFmpeg/bin/ffmpeg.exe', // the path to the FFMpeg binary
           'ffprobe.binaries' => 'C:/FFmpeg/bin/ffprobe.exe', // the path to the FFProbe binary
           'timeout'          => 3600, // the timeout for the underlying process
           'ffmpeg.threads'   => 12,   // the number of threads that FFMpeg should use
       ]);

    I also did the path setting in the system environmental variables settings and everything was working great while serving the website from XAMPP Server.

    The problem I have is that I have uploaded the project to a shared host that I dont have access to check if they have the ffmpeg on the server or not and the host provider could not really give me a helpful information about that. So, I uploaded the binary files into a folder in my filemanger on the cpanel and named it "binary files". Then I changed my codes as given bellow ;

    $ffmpeg = FFMpeg\FFMpeg::create([
           'ffmpeg.binaries'  => '/home/username/binary_files/bin/ffmpeg.exe', // the path to the FFMpeg binary
           'ffprobe.binaries' => '/home/username/binary_files/bin/ffprobe.exe',  // the path to the FFProbe binary
           'timeout'          => 3600, // the timeout for the underlying process
           'ffmpeg.threads'   => 1,   // the number of threads that FFMpeg should use
       ]);

    But still I get error that Unable to load FFProbe as shown in this Image from the code

       public static function create($configuration, LoggerInterface $logger = null)
    {
       if (!$configuration instanceof ConfigurationInterface) {
           $configuration = new Configuration($configuration);
       }

       $binaries = $configuration->get('ffprobe.binaries', array('avprobe', 'ffprobe'));

       try {
           return static::load($binaries, $logger, $configuration);
       } catch (BinaryDriverExecutableNotFound $e) {
           throw new ExecutableNotFoundException('Unable to load FFProbe', $e->getCode(), $e);
       }
    }

    The major thing I am doing on my project is to convert video into proper encoded streaming video as well as automatically generate a .png or .jpg thumbnail from the video while uploading. So in case if there is an alternative other than ffmpeg to solve this or anyone that have use the ffmpeg library on a shared hosted before should help.
    Please !