Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (64)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (10173)

  • ffmpeg rtmp streaming process exit

    12 août 2013, par Samson

    I'm using ffmpeg to capture jpeg images from an rtmp stream. Here is the command I use :

    /usr/local/bin/ffmpeg -threads 4 -i rtmp://..../chat/mp4:<variable>.mp4
    -q:v 0.6 -r 15 -s 320x240 /frames/10021237_data/frame-%0999d.jpg

    ffmpeg version N-55388-g9386f33 Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug  8 2013 14:07:38 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
     configuration:
     libavutil      52. 41.100 / 52. 41.100
     libavcodec     55. 24.100 / 55. 24.100
     libavformat    55. 13.102 / 55. 13.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
    Input #0, flv, from &#39;rtmp://......./mp4:10021237.mp4&#39;:
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (Main), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1.92 tbr, 1k tbn, 40 tbc
       Stream #0:1: Audio: nellymoser, 44100 Hz, mono, flt
    [swscaler @ 0x1910000] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to &#39;/frames/10021237_data/frame-%0999d.jpg&#39;:
     Metadata:
       encoder         : Lavf55.13.102
       Stream #0:0: Video: mjpeg, yuvj420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 15 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> mjpeg)
    Press [q] to stop, [?] for help
    </variable>

    However after a few minutes I get this line (before the process exits) :

    video:5264kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000408%

    What exactly is the "muxing overhead" and why is it causing a crash ? Can I solve this or get it some other way (by restarting the process when it exits) ?

    EDIT :

    Actually it's not a crash. I'm running this command from a PHP CLI when a stream starts :

    $command = "/usr/local/bin/ffmpeg -i ".$rtmp." -q:v 0.6 -r 12 -s 320x240 ".__DIR__."/".$dir."/".$naming." >/dev/null 2>/dev/null &amp;";
    shell_exec($command);

    but when one stops streaming all the ffmpeg processes end. Is there a way to make them independent ?

    Even opening 2 terminals and running the command (with different rtmp s)in each (for different streams), killing one of them closes the other one also.

    Bottom line is : How can I make 2 ffmpeg instances independent so as killing one does not kill the other. Is this behaviour expected ?

  • FFmpeg CPU utilization

    9 août 2013, par user2565986

    I have a server running Scientific Linux. I'm trying to convert a large amount of videos and want to maximize cpu usage. My ffmpeg version is git-2013-08-06-a68b6ec.

    FFmpeg command :

    ffmpeg -y -i "$i" -c:v libx264 -preset fast -b:v "$VID_BIT" -threads 0 -c:a libfdk_aac -b:a "$AUD_BIT" -f mp4 /"$OUT_DIR"/"$MD5"

    top output :

    top - 10:47:25 up 3 days, 22:05,  5 users,  load average: 1.94, 0.49, 0.16
    Tasks: 578 total,   1 running, 574 sleeping,   3 stopped,   0 zombie
    Cpu0  :  0.0%us,  0.6%sy, 63.2%ni, 36.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu1  :  0.0%us,  0.6%sy, 60.1%ni, 39.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu2  :  0.0%us,  0.3%sy, 59.5%ni, 40.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu3  :  0.0%us,  0.6%sy, 57.1%ni, 42.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu4  :  0.0%us,  0.3%sy, 55.0%ni, 44.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu5  :  0.0%us,  0.6%sy, 50.2%ni, 49.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu6  :  0.0%us,  0.3%sy, 56.4%ni, 43.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu7  :  0.0%us,  0.6%sy, 50.3%ni, 49.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu8  :  0.0%us,  0.6%sy, 47.7%ni, 51.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu9  :  0.3%us,  0.3%sy, 46.8%ni, 52.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu10 :  0.0%us,  0.3%sy, 50.2%ni, 49.5%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu11 :  0.0%us,  0.7%sy, 49.0%ni, 50.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu12 :  0.0%us,  0.6%sy, 49.4%ni, 50.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu13 :  0.0%us,  0.6%sy, 43.2%ni, 56.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu14 :  0.0%us,  0.3%sy, 44.5%ni, 55.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu15 :  0.0%us,  0.6%sy, 46.3%ni, 53.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu16 :  0.0%us,  0.7%sy, 44.6%ni, 54.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu17 :  0.0%us,  0.3%sy, 43.3%ni, 56.4%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu18 :  0.0%us,  0.3%sy, 41.6%ni, 58.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu19 :  0.0%us,  0.3%sy, 34.3%ni, 65.4%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu20 :  0.0%us,  0.6%sy, 32.5%ni, 66.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu21 :  0.0%us,  0.3%sy, 37.9%ni, 61.4%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu22 :  0.0%us,  0.3%sy, 36.9%ni, 62.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Cpu23 :  0.0%us,  1.0%sy, 37.6%ni, 61.4%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:  198345032k total, 10135568k used, 188209464k free,   144212k buffers
    Swap: 55640056k total,        0k used, 55640056k free,  5066724k cached

    I'm not sure why user usage is at 0% and the niced usage is all I see, but either way I'm looking for a way to get the usage up to 100%. Is there anyway to bolster the usage or is this the best I'm gonna get ?

  • ffmpeg error when cutting video (aac bitstream error)

    15 août 2013, par user4455

    I'm trying to use ffmpeg to cut out a 5 minute chunk from a video. For some reason on this particular video I get an error "aac bitstream error". The resulting video is 5 minutes long with no audio or video.

    ffmpeg -i testvideo.mp4 -ss 00:05:00 -t 00:10:00 -c:v copy -c:a copy testvideo_5min_test.mp4
    ffmpeg version N-55540-g93f4277 Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug 14 2013 12:15:34 with gcc 4.3.2 (Debian 4.3.2-1.1)
     configuration: --enable-libx264 --enable-gpl --enable-shared --enable-libfaac --enable-nonfree
     libavutil      52. 42.100 / 52. 42.100
     libavcodec     55. 28.100 / 55. 28.100
     libavformat    55. 13.102 / 55. 13.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;testvideo.mp4&#39;:
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2013-05-10 17:42:36
     Duration: 00:35:21.47, start: 0.000000, bitrate: 8684 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 8490 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Video Media Handler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Sound Media Handler
    File &#39;testvideo_5min_test.mp4&#39; already exists. Overwrite ? [y/N] y
    Output #0, mp4, to &#39;testvideo_5min_test.mp4&#39;:
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       encoder         : Lavf55.13.102
       Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 8490 kb/s, 29.97 fps, 29970 tbn, 29970 tbc
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Video Media Handler
       Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 189 kb/s
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Sound Media Handler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 0x8088740] aac bitstream error5886kB time=00:01:13.63 bitrate=8442.8kbits/s    
    [mp4 @ 0x8088740] aac bitstream error8357kB time=00:04:15.24 bitrate=8612.9kbits/s    
    [mp4 @ 0x8088740] aac bitstream error6128kB time=00:05:00.25 bitrate=8625.0kbits/s    
    [mp4 @ 0x8088740] aac bitstream error6415kB time=00:07:12.56 bitrate=8643.7kbits/s    
    frame=17952 fps=2429 q=-1.0 Lsize=  635531kB time=00:10:00.01 bitrate=8677.0kbits/s    
    video:621056kB audio:13870kB subtitle:0 global headers:0kB muxing overhead 0.095223%