Recherche avancée

Médias (91)

Autres articles (86)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (12388)

  • ffmpeg livestream from static image and audio

    23 mai 2017, par boygiandi

    I’m trying to livestream by ffmpeg using static image and audio file. The ffmpeg command like this

    ffmpeg -re -loop 1 -f image2 -i ’/tmp/11.jpg’ -f lavfi -i amovie=/tmp/5117.mp3:loop=999 -video_size 600x480 -c:v libx264 -x264-params keyint=60 -bufsize 500k -c:a aac -ar 44100 -b:a 128k -r 30 -g 60 -pix_fmt yuv420p -f flv "rtmp ://"

    /tmp/11.jpg was generated by another process and keep updated twice per second. The ffmpeg command doesn’t look right, first, it show status like this

    frame= 85 fps=9.4 q=29.0 size= 2261kB time=00:02:24.19 bitrate= 128.4kbits/s speed= 16x

    As you see, 16x is not good, 1x is the right value for livestream. Then, after a while, it show many warning log like this

    [flv @ 0x322bd60] Non-monotonous DTS in output stream 0:1 ; previous : 335993, current : 297752 ; changing to 335993. This may result in incorrect timestamps in the output file.

    Please help to fix it.

  • PHP - How to track video conversion progress - Stop ffmpeg process in PHP web [closed]

    21 mai 2022, par Mursaleen Ahmad

    I am working on a PHP web project where multiple users will be able upload and convert their videos bitrate using ffmpeg. And if users go to watch page before full conversion then "Video is being processed" message should show up.
I am using jQuery with AJAX and a watch link generated to watch online.

    


    1) How can I find the process is still running and show "Video is being processed" message to the users ?

    


    2) How can I stop ffmpeg process ?

    


    3) How can I get conversion percentage (how much video is converted) from file (as multiple users are using the site so can't work on single file named output.txt) ?

    


  • exec RTMP stream to HLS nginx server not working

    26 février 2019, par Serg Port

    I’m trying to convert an RMTP stream to HLS using ffmpeg in an nginx server
    This is my basic nginx configuration.
    If use push rtmp ://localhost/show/ instead of exec is saving data, but exec it’s not doing nothing.
    I can see the stream with ffplay,
    error —> RTMP_ReadPacket, failed to read RTMP packet header
    rtmp ://localhost/live/key : Invalid data found when processing input
    To test it I’m using OBS and ffplay

    #user  root;
    worker_processes  auto;


    events {
       worker_connections  1024;
    }


    # RTMP configuration
    rtmp {
       server {
           listen 1935; # Listen on standard RTMP port
           chunk_size 4000;

           # This application is to accept incoming stream
           application live {
               live on; # Allows live input

               # Once receive stream, transcode for adaptive streaming
               exec ffmpeg -i rtmp://localhost/$app/$name -async 1 -vsync -1 -c:v libx264 -c:a libvo_aacenc -b:v 256k -b:a 32k -vf "scale=480:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost/show/$name_low 2>>/tmp/ffmpeg.error;
           }

           # This application is for splitting the stream into HLS fragments
           application show {
               live on; # Allows live input from above
               hls on; # Enable HTTP Live Streaming

               hls_path /mnt/hls/;

               # Instruct clients to adjust resolution according to bandwidth
               hls_variant _low BANDWIDTH=288000; # Low bitrate, sub-SD resolution
           }
       }
    }