Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (31)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

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

  • 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

Sur d’autres sites (5625)

  • nginx.conf with RTMP module : Add watermark on MULTIPLE video streams withh ffmpeg

    16 mai 2023, par Frederick Eyland

    I need to add a watermark in nginx.conf on all my output streams. This is what I found from the documentation from ffmpeg but it is not working.

    



    exec ffmpeg -i rtmp://localhost/$app/$name -i /mnt/pictures/flowtech.png -filter_complex "overlay=10:10,split=5[out1][out2][out3][out4][out5]"
-map '[out1]' -map 0:a -c:v libx264 -c:a aac -ac 1 -strict -2 -b:v 256k -b:a 32k -vf "scale=480:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost/hlsall/$name_low
-map '[out2]' -map 0:a -c:v libx264 -c:a aac -ac 1 -strict -2 -b:v 768k -b:a 96k -vf "scale=720:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost/hlsall/$name_mid
-map '[out3]' -map 0:a -c:v libx264 -c:a aac -ac 1 -strict -2 -b:v 1024k -b:a 128k -vf "scale=960:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost/hlsall/$name_high
-map '[out4]' -map 0:a -c:v libx264 -c:a aac -ac 1 -strict -2 -b:v 1920k -b:a 128k -vf "scale=1280:trunc(ow/a/2)*2" -tune zerolatency -preset veryfast -crf 23 -f flv rtmp://localhost/hlsall/$name_hd720
-map '[out5]' -map 0:a -c copy -f flv rtmp://localhost/hlsall/$name_src 1>>/tmp/rtmp_log;


    


  • Processing Camera stream in Opencv, pushing it over RTMP (NGINX RTMP Module) using FFMPEG

    12 août 2019, par Asymptote

    Output video :
    https://youtu.be/VxfoBQjoY6E

    Explanation :

    I want to : Process camera stream in Opencv and push it over to RTMP server. I already have NGINX (RTMP module) set up and I have tested streaming videos with both RTMP (Flash Player) and HLS.

    I am reading the frames in a loop and using ’subprocess’ in python to execute ffmpeg command. Here’s the command I am using :

    command = [ffmpeg,
       '-y',
       '-f', 'rawvideo',
       '-vcodec','rawvideo',
       '-pix_fmt', 'bgr24',
       '-s', dimension,
       '-i', '-',
       '-c:v', 'libx264',
       '-pix_fmt', 'yuv420p',
       '-preset', 'ultrafast',
       '-f', 'flv',
       'rtmp://10.10.10.80/live/mystream']


    import subprocess as sp
    ...
    proc = sp.Popen(command, stdin=sp.PIPE,shell=False)
    ...
    proc.stdin.write(frame.tostring()) #frame is read using opencv

    Problem :

    I can see the stream fine but it freezes and resumes frequently. Here’s the output of FFMPEG terminal log :

    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    frame=  117 fps= 16 q=22.0 size=     344kB time=00:00:04.04 bitrate= 697.8kbits/s speed=0.543x  

    It mentions speed at the end. I believe it should be close to 1x. I am not sure how to achieve that.

    And I am on the same network as server, I can post my python code if required. Need some ffmpeg guru to give me some advise.

    EDIT

    My input fps is actually 3.
    With '-use_wallclock_as_timestamps', '1' I can see in the log that speed is close to 1x.
    But HLS is not streaming live there’s 2 min delay, it halts and . Chris’s advise partially worked. I am not sure where exactly is the problem, I am starting to believe it has something to do with nginx-rtmp module.

    Here’s the final output, on left it’s flash and on right it’s hls. I am showing the ffmpeg options at the end.
    https://youtu.be/jsm6XNFOUE4

  • avformat/options_table : Change the seek2any location in opt table.

    1er avril 2018, par Jun Zhao
    avformat/options_table : Change the seek2any location in opt table.
    

    Change the seek2any location in avformat_options to make code more
    readable.

    Signed-off-by : Jun Zhao <mypopydev@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/options_table.h