Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (12122)

  • Nginx + rtmp + ffmpeg best practice to publish multiple resolutions streaming from video file

    7 novembre 2019, par youssef hamdane

    I want to make livestream from video file to multiple resolutions (480,720) using nginx and rtmp, what is the best practice that I can do for that :

    1 - transcode video and store it with all resolutions that I need when user upload it using ffmpeg, and then publish every file directly

    example :

    rtmp {
       server {
           listen 1935;
           notify_method get;

           application live {
               live on;
               ffmpeg -re -i /path/video_720.mp4
              -re -i /path/video_480.mp4
              -map 0 vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -f flv rtmp://localhost:1935/show/${name}_720
              -map 0 vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -f flv rtmp://localhost:1935/show/${name}_480
           }

          application show {

               live on;

               hls on;
               hls_path /stream/live/hls;
               hls_nested on;
               record off;

               # Instruct clients to adjust resolution according to bandwidth

               hls_variant _720 BANDWIDTH=2048000; # High bitrate, HD 720p resolution
               hls_variant _480 BANDWIDTH=448000; # Medium bitrate, SD resolution

           }

       }
    }

    2 - keep original video and publish it on different resolutions with ffmpeg

    example :

    rtmp {
       server {
           listen 1935;
           notify_method get;

           application live {
               live on;    

               exec_pull ffmpeg -re -i http://server_ip/$app/$name -vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -b:v 1920k -b:a 128k -vf "scale=1280:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/show/${name}_720
               -vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -b:v 1024k -b:a 128k -vf "scale=854:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/show/${name}_480;
           }

          application show {

               live on;

               hls on;
               hls_path /home/stream/live/hls;
               hls_nested on;
               record off;

               # Instruct clients to adjust resolution according to bandwidth

               hls_variant _720 BANDWIDTH=2048000; # High bitrate, HD 720p resolution
               hls_variant _480 BANDWIDTH=448000; # Medium bitrate, SD resolution

           }

       }
    }
  • ffmpeg concat video and image issue

    11 octobre 2018, par Dion Russell

    I have a video it’s 190 seconds long.
    I want to show a part of the video with audio and a watermark (from 28th second to 154th second)
    and then the video fades out, and then show an image for 5 seconds at the end of the video.

    everything was working fine until i added concat and endpic.jpg

    Here is the script it wrote but it’s not working. It’s really driving me crazy.

    ffmpeg -y -ss 28 -i input.mp4 -loop 1 -i watermark.png -loop 1 -t 5 -i endpic.jpg -f lavfi -t 5 -i anullsrc -filter_complex "[1]fade=in:st=3:d=1:alpha=1,fade=out:st=20:d=1:alpha=1[w]; [0][w]overlay=main_w-overlay_w-10:main_h-overlay_h-10[sonh];[sonh]fade=out:st=154:d=1[sonhh];[sonhh:v][sonhh:a][2:v][3:a]concat=n=2:v=1:a=1[v][a]" -t 155 -map "[v]" -map "[a]" output.mp4
  • avformat/hlsenc : optimize help message default value.

    5 juillet 2017, par Steven Liu
    avformat/hlsenc : optimize help message default value.
    

    show the hls_segment_type default always 0, show the flag name better

    Signed-off-by : Steven Liu <lq@chinaffmpeg.org>

    • [DH] libavformat/hlsenc.c