
Recherche avancée
Autres articles (90)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (9900)
-
Is there any way to trim YouTube video without downloading it to local machine ?
12 août 2020, par Sonu BamniyaI 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 usingFFmpeg
.


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 boygiandiI’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 ParamonovI 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 :- FFMPEG
speed
falls from 1x to something like0.998x
- 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
- FFMPEG