Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (81)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (5285)

  • Is there any way to trim YouTube video without downloading it to local machine ?

    12 août 2020, par Sonu Bamniya

    I am creating an app to trim video where a user either can upload the video file or can paste YouTube URL.
I am able to make the trimmer work for upload video using FFmpeg, but for YouTube URL, firstly I need to download the video to the local machine and then trim it using FFmpeg.

    



    I am using youtube-dl NodeJS library to save the video file to locally, but the issue is as I am allowing the user to download only 15Sec video no more than that, and I have applied validation of 60m long video, yet when I get 1080p video there are two issues.

    



    1. There is no audio in the 1080p video.


    



    and

    



    2. The video is taking too long to download locally and the process is taking almost 7-8mins to complete.


    



    For the first one, I can get the audio and video separately and then merge both of them in the video, but the second one is where I am stacked.

    



    I have added a time log I can see the trimming is taking only about 3-4 seconds, but the downloading is taking too long.

    



    Is there any way to make it work faster ? Or, Is there any way I can download only that part of the video, not the full video, in any technology.

    



    I am open to using any technology until it is working faster than my current implementation.

    



    If this is something related to server configuration, please suggest which one would work better.

    


  • ffmpeg streaming to youtube slow

    1er avril 2017, par boygiandi

    I’m trying to send a video file to youtube as livestreaming. The stream command look like this

    ffmpeg -re -i "/tmp/4745.mkv" -acodec aac -pix_fmt yuv420p -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset fast -g 60 -r 30 -crf 1 -f flv "rtmp ://...."

    The last line of output log look like this

    [ sh : 2017-04-01 7:19:54 ]size= 242706kB time=00:21:08.11 bitrate=1567.9kbits/s speed=0.882x

    As I understand, the speed=0.882x mean it send data to youtube slower than expected ( 1x mean streaming fine, lower mean buffering ). I tried to change some params of ffmpeg command, like change -preset fast to superfast, ultrafast : it faster but quality very bad and I still can’t control the out put speed. Sometime it’s 1x, sometime lower.
    Note that I run more than 1 ffmpeg instants at the same time, it may problem of CPU, RAM or Network, I checked them all.

    • CPU 40% ( top command )
    • RAM used 3Gb/7Gb
    • Network upload Avg : 8.45 MBit/s ( Max Upload : 70.76 Mbit/s - speedtest )

    So I don’t know what’s problem. Anyone can help ?

  • FFMPEG : Youtube streaming quality and speed issues

    25 février 2020, par Alex Paramonov

    I am trying to make a reliable stream from my Icecast/Shoutcast servers to Youtube live. The command that I use is :

    ffmpeg -v verbose -framerate 30 -loop 1 -i /var/image.jpg -re -i http://127.0.0.1:4700/radio -c:v libx264 -preset ultrafast -b:v 2250k -maxrate 6000k -bufsize 6000k -c:a copy -ab 128k -s 1920x1080 -framerate 30 -g 60 -keyint_min 60 -f flv  rtmp://a.rtmp.youtube.com/live2/xxx

    As you can see I am using recommended bitrate for Youtube, insert keyframes every 2 seconds and streaming at 30 frames per second.
    The stream is working but after running for some time two thing are happening :

    1. FFMPEG speed falls from 1x to something like 0.998x
    2. Youtube starts complaining that video stream speed is slow, markes the quality as bad and sometimes video starts buffering.

    Why is this happening ? CPU load is normal, connectivity is ok (the stream is running on a 1Gg/s dedicated server).

    Since in my example above I am streaming a single image as a logo of the stream I also tried to generate a short 30 seconds video with that image and broadcast that video instead of an image, but that did not help as well.

    The command I used for conversion :

    ffmpeg -framerate 30 -loop 1 -i /var/image.jpg -c:v libx264 -preset ultrafast -tune stillimage  -b:v 2250k -minrate 2250k -maxrate 6000k -bufsize 6000k -framerate 30 -g 60 -keyint_min 60 -t 30 out4.mp4

    And broadcast with

    ffmpeg -stream_loop -1 -i out4.mp4  -re -i http://127.0.0.1:4700/radio -c:v copy -c:a copy  -framerate 30 -g 60 -keyint_min 60 -f flv  rtmp://a.rtmp.youtube.com/live2/xxx

    ffmpeg version is 4.1.1