
Recherche avancée
Autres articles (52)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
Installation basique
On installe les fichiers de SPIP sur le serveur.
On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
< ?php (...) -
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)
Sur d’autres sites (2974)
-
Nginx RTMP/HLS - stream to ffmpeg and output HLS
20 novembre 2018, par kanazacaAt this point my solution is working but only as RTMP, i can watch perfectly my stream using the URL :
rtmp://X.X.X.X:1935/show/name
But the problem is that my LG Smart Tv which uses WebOS don’t support RTMP and i would really like to play my stream there. The only solution that i can see right now is to use HLS. With HLS all works fine too, but i need to execute my ffmpeg command before open the HLS stream in TV, otherwise it will not create the files necessary to display the stream on my TV.
So my goal is to serve a stream as HLS without having to trigger the RTMP endpoint or the FFMPEG manually.
I’m really struggling with this, waste 3 days trying to make it work :(
http
{
location /hls
{
# Disable cache
add_header Cache-Control no-cache;
# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length';
# allow CORS preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
root /mnt/;
}
}
}
rtmp {
server {
listen 1935;
chunk_size 4000;
buflen 5s;
application show {
live on;
exec_pull ffmpeg -re -i http://stream-coming.com/$name.ts -c:v libx264 -preset faster -pix_fmt yuv420p -c:a aac -f flv rtmp://localhost/show/$name;
# Turn on HLS
hls on;
hls_path /mnt/hls/;
hls_fragment 3;
hls_playlist_length 60;
# disable consuming the stream from nginx as rtmp
deny play all;
}
}}
Thanks for your time ;)
-
Adding a text overlay with constant size to a video with varying resolutions using ffmpeg
22 décembre 2020, par BetaLixTI have a video with different resolutions at different points of the video and need to add a text overlay to it. I'm new with ffmpeg, the following is one of the commands I've tried


ffmpeg -i input.mp4 -vf "drawtext=text='Hello World'" -c:a copy output.mp4



But the output has blurry text with it resizing every few seconds (I'm guessing because of the various resolutions in the video) and some parts of the video have their aspect ratios altered.


Information on input file


The
input.mp4
video is generated from some .h264 raw data converted to mp4 and some blank mp4 generated that are all concatenated together, following are the commands

h264 to mp4 :


ffmpeg a.h264 -c copy a.mp4



blank mp4


ffmpeg -t 5 -f lavfi -i color=c=black:s=200x200 -c:v libx264 -tune stillimage -pix_fmt yuv420p -video_track_timescale 1200000 b.mp4



Concat :


ffmpeg -safe 0 -f concat -i list.txt -s 720x960 -c copy input.mp4



I'd be thankful for any advice on how I could achieve this


-
AWS Lambda tmp memory limit with ffmpeg
19 avril 2022, par AlmajuI am using AWS Lambda to render videos using ffmpeg. It is a basic function that downloads external clips, merges those, then uploads the result to S3.


This function needs to be able to scale quickly because I need to generate a lot of videos in a short time period.


The problem is that I reach the
/tmp
disk limit of 512MB because the same lambda environment is reused by the different requests. I have increased that memory limit to temporarily solve the problem but it does not feel scalable.

I have looked into EFS but the requirement to use a VPC and a NAT to have internet access sounds really heavy for my simple needs.


Is there a way to output the result of ffmpeg directly in S3 (thus not needing the temporary folder) ? Or perhaps force to respawn a clean lambda environment if the memory is about to be full ?