Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (74)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (6166)

  • ffserver + ffmpeg, out rtsp stream : why ffplay cannot play the stream, but movie player can

    18 juillet 2014, par user1914692

    Ubuntu 12.04
    I use ffserver + ffmpeg.

    There are a little revision of the original /etc/ffserver.conf :

    RTSPPort 5454
    RTSPBindAddress 0.0.0.0

    # ...

    <stream>
    Format rtp
    # coming from live feed 'feed1'
    Feed feed1.ffm
    </stream>

    The command of ffmpeg (Option 1) is :

    ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv'  http://localhost:8090/feed1.ffm

    BTW, if I use Option 2 as below, it does not work :

    ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv'  http://192.168.1.105:8090/feed1.ffm
    ## not work:
    [http @ 0x21a9c80] HTTP error 404 Not Found
    http://192.168.1.105:8090/feed1.ffm: Input/output error

    So now I need to display the stream.
    On the other computer :

    (Option 1) ffplay rtsp://192.168.1.105:5454/test2-rtsp.mpg

    Not work. [Output] rtsp UDP timeout, retrying with TCP.
    Why ?

    (Option 2) movie player : Open location : rtsp ://192.168.1.105:5454/test2-rtsp.mpg
    it works !

  • create multiple movie thumbnails using ffmpeg (one at a time) failing

    2 septembre 2013, par Christopher Johnson

    I'm using this small bit of code to create thumbnails of videos being uploaded to my site :

    public static void GetThumbnail(string video, string thumbnail)
    {
       var cmd = "ffmpeg  -itsoffset -1  -i " + &#39;"&#39; + video + &#39;"&#39; + " -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 " + &#39;"&#39; + thumbnail + &#39;"&#39;;
       var startInfo = new ProcessStartInfo
       {
           WindowStyle = ProcessWindowStyle.Hidden,
           FileName = "cmd.exe",
           Arguments = "/C " + cmd
       };

       var process = new Process
       {
           StartInfo = startInfo
       };

       process.Start();
    }

    I'm uploading the videos one at a time asynchronously. The first video thumbnail gets created just fine, but each subsequent one does not get created. I've noticed that if I try to delete subsequent videos from the file system, it says it can not delete them because they are in use by ffmpeg. I can delete the first one that finished processing just fine. I have to kill the ffmpeg process from task manager for all of the others that it's holding open. Why is ffmpeg only working the first time through and then holding the video's open in an open process afterwards ?

    I also tried creating multiple thumbnails one at a time from the command prompt and that worked fine (the process does not stay open either).

    What am I missing in my c# code to make sure the process finishes, and then terminates ?

  • Increase the bitrate tolerance of ffmpeg for creating screenshots of a movie

    21 septembre 2012, par rekire

    I'm getting the error bitrate tolerance too small for bitrate so far no problem. I know that there are several switches to increase that but nothing works.

    ffmpeg -y -r 1/30 -b:v 999999k -bt 999999k -maxrate 999999k -i in.flv out%03d.jpg

    The source of that commandline is directly from ffmpeg. But that crashes :

    ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers
     built on Sep  2 2012 20:23:29 with gcc 4.7.1 (GCC)
     [...]
    Input #0, flv, from &#39;in.flv&#39;:
     Duration: 00:05:00.13, start: 0.000000, bitrate: 259 kb/s
       Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
       Stream #0:1: Audio: nellymoser, 22050 Hz, mono, s16
    [mjpeg @ 04356860] bitrate tolerance too small for bitrate
    [mjpeg @ 04317540] ff_frame_thread_encoder_init failed
    Output #0, image2, to &#39;out%03d.jpg&#39;:
       Stream #0:0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 0.03 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (flv -> mjpeg)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    Some ideas what I'm doing wrong ?