Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (30)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (5492)

  • Command-line streaming webcam with audio from Ubuntu server in WebM format [closed]

    4 août, par mjtb

    I am trying to stream video and audio from my webcam connected to my headless Ubuntu server (running Maverick 10.10). I want to be able to stream in WebM format (VP8 video + OGG). Bandwidth is limited, and so the stream must be below 1Mbps.

    



    I have tried using FFmpeg. I am able to record WebM video from the webcam with the following :

    



    ffmpeg -s 640x360 \
-f video4linux2 -i /dev/video0 -isync -vcodec libvpx -vb 768000 -r 10 -vsync 1 \
-f alsa -ac 1 -i hw:1,0 -acodec libvorbis -ab 32000 -ar 11025 \
-f webm /var/www/telemed/test.webm 


    



    However despite experimenting with all manner of vsync and async options, I can either get out of sync audio, or Benny Hill style fast-forward video with matching fast audio. I have also been unable to get this actually working with ffserver (by replacing the test.webm path and filename with the relevant feed filename).

    



    The objective is to get a live, audio + video feed which is viewable in a modern browser, in a tight bandwidth, using only open-source components. (None of that MP3 format legal chaff)

    



    My questions are therefore :
How would you go about streaming webm from a webcam via Linux with in-sync audio ? What software you use ?

    



    Have you succeeded in encoding webm from a webcam with in-sync audio via FFmpeg ? If so, what command did you issue ?

    



    Is it worth persevering with FFmpeg + FFserver, or are there other more suitable command-line tools around (e.g. VLC which doesn't seem too well built for encoding) ?

    



    Is something like Gstreamer + flumotion configurable from the command line ? If so, where do I find command line documentation because flumotion doc is rather light on command line details ?

    



    Thanks in advance !

    


  • Issue with image using ffmpeg to combining it on PHP

    8 mai 2017, par 7sega7

    I’m trying to combine images with ffmpeg on PHP.

    First, I save the image with this and resizing then :

    $imagen = file_get_contents($_SESSION['img']);
    file_put_contents('img_prod.jpg', $imagen);
    $img = resize_imagejpg('img_prod.jpg', 650,360);
    imagejpeg($img, 'img_prod.jpg');

    Then I create a png with only a title or info. At the moment I’m giving the text with a form, later I’ll do with BD.
    For this I’m using the imagettftext :

    titulo = explode("-", $_SESSION['title']);
    $im = imagecreatetruecolor(400, 30);
    $white= imagecolorallocate($im, 255, 255, 255);
    $black= imagecolorallocate($im, 0, 0, 0);
    imagefilledrectangle($im, 0, 0, 399, 29, $white);
    $font= 'Comfortaa.ttf';
    imagettftext($im, 10, 0, 15, 10, $black, $font, $titulo[$i]);
    imagepng($im, "img_con_texto.png");
    imagedestroy($im);

    What I’m doing here is, first I get the Title for my form, and with the explode, every time I read a "-", I put all the text in another line. I simplified this on the code quote por easy read.
    Then I create the color, I filled the all rectangle with one color, pick the font and put the font, color font and the text on a image and destroy the variable for using again with another text.

    At the end, I use ffmpeg to put the image for "file_get_contents" and the image with the text.

    echo shell_exec('ffmpeg -y -i marco.png -i img_prod.jpg -filter_complex "overlay=20:(main_h-overlay_h)/2" out_img_prod.jpg')

    The "marco.png" it is just a white image with no contents. I open paint, change the resize pixels for 850/480 and saving that as marco.png.

    Then I add the text on the right side with the last image :

    echo shell_exec('ffmpeg -y -i out_img_prod.jpg -i img_con_texto.png -filter_complex "overlay=500:140" prod_title.jpg');

    The issue is that, when I do this, the text have a light gray color on the background. When I create the img with the text, It have white background color and it is a .png So I don’t know why It have that gray background color.
    This is the image from the last code : image with text

    If I did the same with paint or gimp, adding mannualy the text on the image on the left, the background gray color dissapear so, It is possible to quit that light grey color ?

    PD : I quit some code for a simple read, so maybe I miss to quit variables. Also, If the img is more smaller and the text don’t collide with the text, the light gray color still there.

  • Mirror not found when trying to install FFMPEG on CENTOS7

    31 octobre 2016, par Peter

    I’m on a dedicated server with Root access. not familiar with servers. Im trying to install FFMpeg on my server but following online instructions I’m getting errors can’t figure out how to solve it. So any light on this will be very appreciated.

    [root@ns335004 ~]# yum update
    base                                                                                                           | 3.6 kB  00:00:00    
    http://apt.sw.be/redhat/el7/en/x86_64/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below knowledge base article

    https://access.redhat.com/articles/1320623

    If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/



    One of the configured repositories failed (DAG RPM Repository),
    and yum doesn't have enough cached data to continue. At this point the only
    safe thing yum can do is fail. There are a few ways to work "fix" this:

        1. Contact the upstream for the repository and get them to fix the problem.

        2. Reconfigure the baseurl/etc. for the repository, to point to a working
           upstream. This is most often useful if you are using a newer
           distribution release than is supported by the repository (and the
           packages for the previous distribution release still work).

        3. Disable the repository, so yum won't use it by default. Yum will then
           just ignore the repository until you permanently enable it again or use
           --enablerepo for temporary usage:

               yum-config-manager --disable dag

        4. Configure the failing repository to be skipped, if it is unavailable.
           Note that yum will try to contact the repo. when it runs most commands,
           so will have to try and fail each time (and thus. yum will be be much
           slower). If it is a very temporary problem though, this is often a nice
           compromise:

               yum-config-manager --save --setopt=dag.skip_if_unavailable=true

    failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.
    http://apt.sw.be/redhat/el7/en/x86_64/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

    repolist

    [root@ns335004 ~]# yum repolist all
    http://apt.sw.be/redhat/el7/en/x86_64/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below knowledge base article

    https://access.redhat.com/articles/1320623

    If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

    http://apt.sw.be/redhat/el7/en/x86_64/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    repo id                                  repo name                                                                     status
    C7.0.1406-base/x86_64                    CentOS-7.0.1406 - Base                                                        disabled
    C7.0.1406-centosplus/x86_64              CentOS-7.0.1406 - CentOSPlus                                                  disabled
    C7.0.1406-extras/x86_64                  CentOS-7.0.1406 - Extras                                                      disabled
    C7.0.1406-fasttrack/x86_64               CentOS-7.0.1406 - CentOSPlus                                                  disabled
    C7.0.1406-updates/x86_64                 CentOS-7.0.1406 - Updates                                                     disabled
    C7.1.1503-base/x86_64                    CentOS-7.1.1503 - Base                                                        disabled
    C7.1.1503-centosplus/x86_64              CentOS-7.1.1503 - CentOSPlus                                                  disabled
    C7.1.1503-extras/x86_64                  CentOS-7.1.1503 - Extras                                                      disabled
    C7.1.1503-fasttrack/x86_64               CentOS-7.1.1503 - CentOSPlus                                                  disabled
    C7.1.1503-updates/x86_64                 CentOS-7.1.1503 - Updates                                                     disabled
    base/7/x86_64                            CentOS-7 - Base                                                               enabled:  9,007
    base-debuginfo/x86_64                    CentOS-7 - Debuginfo                                                          disabled
    base-source/7                            CentOS-7 - Base Sources                                                       disabled
    c7-media                                 CentOS-7 - Media                                                              disabled
    centosplus/7/x86_64                      CentOS-7 - Plus                                                               disabled
    centosplus-source/7                      CentOS-7 - Plus Sources                                                       disabled
    cr/7/x86_64                              CentOS-7 - cr                                                                 disabled
    dag/7/x86_64                             DAG RPM Repository                                                            enabled:      0
    epel/x86_64                              Extra Packages for Enterprise Linux 7 - x86_64                                enabled: 10,764
    epel-debuginfo/x86_64                    Extra Packages for Enterprise Linux 7 - x86_64 - Debug                        disabled
    epel-source/x86_64                       Extra Packages for Enterprise Linux 7 - x86_64 - Source                       disabled
    epel-testing/x86_64                      Extra Packages for Enterprise Linux 7 - Testing - x86_64                      disabled
    epel-testing-debuginfo/x86_64            Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug              disabled
    epel-testing-source/x86_64               Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source             disabled
    extras/7/x86_64                          CentOS-7 - Extras                                                             enabled:    393
    extras-source/7                          CentOS-7 - Extras Sources                                                     disabled
    fasttrack/7/x86_64                       CentOS-7 - fasttrack                                                          disabled
    nux-dextop/x86_64                        Nux.Ro RPMs for general desktop use                                           disabled
    nux-dextop-testing/x86_64                Nux.Ro RPMs for general desktop use - testing                                 disabled
    plesk-php-5.6                            PHP v 5.6 for Plesk - x86_64                                                  enabled:     31
    plesk-php-7.0                            PHP v 7.0 for Plesk - x86_64                                                  enabled:     28
    updates/7/x86_64                         CentOS-7 - Updates                                                            enabled:  2,560
    updates-source/7                         CentOS-7 - Updates Sources                                                    disabled
    repolist: 22,783

    I also tried :

    sudo yum clean metadata
    sudo yum clean all

    But still having same 404 Error.

    Thanks.