Recherche avancée

Médias (91)

Autres articles (81)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (6988)

  • Cannot run ffmpeg in subproces.call

    27 juin 2012, par Richard Knop

    So, I have a simple class where I am trying to save a string response from a terminal ffmpeg command into an object property :

    import os
    import subprocess

    class Movie(object):

       absolute_path = None
       movie_info = None

       def __init__(self, path):
           self.absolute_path = "%s/%s" % (os.getcwd(), path)
           if(os.path.exists(self.absolute_path) is False):
               raise IOError("File does not exist")

       def get_movie_info(self):
           ffmpeg_command = "ffmpeg -i %s" % self.absolute_path
           self.movie_info = subprocess.call(ffmpeg_command)
           print self.movie_info

    When I then run this command in cmd :

    import os
    import sys
    sys.path.append(os.getcwd())

    from Encode.Movie import Movie

    try:
       movie = Movie("tests/test_1.mpg")
       movie.get_movie_info()
    except IOError as e:
       print e

    I get this exception :

    richard@richard-desktop:~/projects/hello-python$ python main.py
    Traceback (most recent call last):
     File "main.py", line 9, in <module>
       movie.get_movie_info()
     File "/home/richard/projects/hello-python/Encode/Movie.py", line 16, in get_movie_info
       self.movie_info = subprocess.call(ffmpeg_command)
     File "/usr/lib/python2.7/subprocess.py", line 493, in call
       return Popen(*popenargs, **kwargs).wait()
     File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
       errread, errwrite)
     File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
       raise child_exception
    OSError: [Errno 2] No such file or directory
    </module>

    The path is correct because when I do print self.absolute_path before subprocess.call(), I get :

    /home/richard/projects/hello-python/tests/test_1.mpg

    And this file exists.

  • Core : Don't call submitHandler when in debug mode (#2193)

    29 juillet 2018, par Arkni
    Core : Don’t call submitHandler when in debug mode (#2193)
    

    Fixes #2042

  • ffmpeg cannot open connection tcp ://a.rtmp.youtube.com

    13 mars 2024, par Hiji Deui

    I want to live stream using ffmpeg, when live on Facebook it runs normally, but when I live on YouTube there is an error, is there anything wrong with the command I entered ? even though the command is the same as live on Facebook, but only the RTMP link has been changed

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    ffmpeg -re -i out.mp4 -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags &#x2B;global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv "rtmp://a.rtmp.youtube.com/live2/my-key-streaming"

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

    and the output is

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    ffmpeg version N-55112-g7eb9cf593e-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;  libavutil      56. 61.100 / 56. 61.100&#xA;  libavcodec     58.114.100 / 58.114.100&#xA;  libavformat    58. 64.100 / 58. 64.100&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7. 91.100 /  7. 91.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;out.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    creation_time   : 2020-12-26T11:13:27.000000Z&#xA;    com.android.version: 10&#xA;  Duration: 00:00:03.27, start: 0.000000, bitrate: 21344 kb/s&#xA;    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 1920x1080, 20225 kb/s, SAR 1:1 DAR 16:9, 29.99 fps, 30.01 tbr, 90k tbn, 180k tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      creation_time   : 2020-12-26T11:13:27.000000Z&#xA;      handler_name    : VideoHandle&#xA;    Side data:&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-12-26T11:13:27.000000Z&#xA;      handler_name    : SoundHandle&#xA;[tcp @ 0x58bf880] Connection to tcp://a.rtmp.youtube.com:1935 failed: Connection timed out&#xA;[rtmp @ 0x5893140] Cannot open connection tcp://a.rtmp.youtube.com:1935&#xA;rtmp://a.rtmp.youtube.com/live2/my-key: Connection timed out

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

    how to fix this, btw i use vps, sorry, my english so bad and this is the first time i asked on this website

    &#xA;