Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (76)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (5980)

  • Ffmpeg not working for larger size file in PHP

    29 juillet 2019, par MrinmoyMk

    I want to upload different audio formats files and compress and convert them into mp3 file using ffmpeg in php. I have already installed ffmpeg and is working fine for files below 0.9 mb. Whenever I try to submit files larger than 0.9 mb then the action is not completed. It may be there is some mistake in my VPS server configuration or mistake in my PHP codes. Could you please help me. My code is

    if (isset($_POST['submit'])) {

    $path = "song/"; //set your folder path
    $mp3_local=$_FILES['mp3_local']['name'];

    $tmp = $_FILES['mp3_local']['tmp_name'];


    exec("ffmpeg -i ".$tmp." -ab 96k ./out96/$mp3_local.mp3");}

    My php configuration is

  • lavf : add transpose_opencl filter

    28 novembre 2018, par Ruiling Song
    lavf : add transpose_opencl filter
    

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>
    Signed-off-by : Mark Thompson <sw@jkqxz.net>

    • [DH] configure
    • [DH] libavfilter/Makefile
    • [DH] libavfilter/allfilters.c
    • [DH] libavfilter/opencl/transpose.cl
    • [DH] libavfilter/opencl_source.h
    • [DH] libavfilter/transpose.h
    • [DH] libavfilter/vf_transpose.c
    • [DH] libavfilter/vf_transpose_opencl.c
  • Why does my nginx endpoint streaming audio via ffmpeg fail with "An unexpected TLS packet was received"

    6 décembre 2020, par rajaman0

    I'm using nginx to proxy requests to a flask/gunicorn API. For most of my endpoints, it works perfectly - however, I have one endpoint which serves an audio response (through ffmpeg) which doesn't seem to work no matter what I try. Running everything through docker.

    &#xA;

    Here's my nginx config :

    &#xA;

    server {&#xA;  listen $PORT;&#xA;  root /usr/share/nginx/html;&#xA;  index index.html index.html;&#xA;&#xA;  access_log /var/log/nginx/reverse-access.log;&#xA;  error_log /var/log/nginx/reverse-error.log;&#xA;&#xA;  location / {&#xA;    try_files $uri /index.html =404;&#xA;  }&#xA;&#xA;  location /api/stream_audio_file {&#xA;    proxy_pass          http://backend;&#xA;    proxy_http_version  1.1;&#xA;    proxy_set_header    Connection "keep-alive";&#xA;    proxy_set_header    Host $host;&#xA;&#xA;    proxy_set_header    X-Real-IP $remote_addr;&#xA;    proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;&#xA;    proxy_set_header    X-Forwarded-Host $server_name;&#xA;  }&#xA;

    &#xA;

    Here's the core of the python code for http://backend/api/stream_audio_file (run through flask, gunicorn)

    &#xA;

    ffmpeg_options =  [&#x27;-i&#x27;, &#x27;https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3&#x27;]&#xA;ffmpeg_options &#x2B;= ["-f", "mp3"]&#xA;ffmpeg_options &#x2B;= ["-to", &#x27;00:00:02.000&#x27;]&#xA;ffmpeg_options &#x2B;= ["-vn"]&#xA;ffmpeg_options &#x2B;= ["-ab",  "256k"]&#xA;ffmpeg_options &#x2B;= ["-strict", "-2"]&#xA;ffmpeg_options &#x2B;= ["-loglevel", "trace"]&#xA;p = Popen(["ffmpeg"] &#x2B; ffmpeg_options &#x2B; ["-"],&#xA;                      stdout=PIPE)&#xA;max_bytes = 256000&#xA;output = p.stdout.read(max_bytes)&#xA;return Response(output, headers={&#xA;     "Content-Type": "audio/mp3",&#xA;     "icy-name": yt_info[&#x27;title&#x27;].encode(&#x27;latin-1&#x27;, &#x27;ignore&#x27;),&#xA;     "icy-bitrate": "256",&#xA;     "ice-audio-info": "bitrate=256",&#xA;     "Cache-Control": "no-cache"&#xA;})&#xA;

    &#xA;

    When I test out this endpoint, I've pasted the full ffmpeg logs here : https://pastebin.com/wMMpmL6M&#xA;Of import, it seems to fetch the mp3 url appropriately but fails with error :

    &#xA;

    [tls @ 0x555bf3011a80] An unexpected TLS packet was received.&#xA;https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3: I/O error&#xA;[out_0_0 @ 0x555bf302ab00] EOF on sink link out_0_0:default.&#xA;No more output streams to write to, finishing.&#xA;

    &#xA;

    I've tried quite a few things :

    &#xA;

      &#xA;
    1. This endpoint works without nginx. I tried querying just the endpoint running w/ just gunicorn, and responses are streamed back correctly. Thus the error HAS to be nginx related ?
    2. &#xA;

    3. The error being TLS related is confusing - I've tried setting up nginx w/ ssl on and adding certs, but that doesn't help / change the error in any way.
    4. &#xA;

    5. I've tried playing around with headers in both nginx and on the python side, following some of the examples here : https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/. Doesn't work.
    6. &#xA;

    7. Response(stream_with_context(..) in flask doesn't work either.
    8. &#xA;

    9. Don't know much about nginx, but tried some other suggestions e.g. buffering / no buffering through nginx, etc, nothing seems to work :(.
    10. &#xA;

    11. When I ssh into my docker container, and run the same ffmpeg command ffmpeg -i https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3 -f mp3 -to 00:00:02.000 -vn -ab 256k -strict -2 -loglevel trace outside of the request context, it works !
    12. &#xA;

    13. Tried compiling ffmpeg with both openssl and gnutls, neither works. However : the openssl version fails w/&#xA;tls @ error:1408F1BB:SSL routines:ssl3_get_record:bad record type instead.
    14. &#xA;

    &#xA;

    Please let me know what other debugging info would be helpful / if anyone has any hypothesis I can test out.

    &#xA;