
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (45)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (6268)
-
I am streaming mp3 music via ffmpeg to a local rtmp server then converting to hls, but am having difficulties end to end testing
12 avril 2020, par SquirrelSenpaiI am streaming mp3 music via ffmpeg to a local rtmp server then converting to hls, but am having difficulties end to end testing. I am know test.m3u8 playlist should be produce, however I am unable to check inside /nginx/hls/ as it is locked by www-data during operation. I have tried multiple permutation of what I thought the output hls stream would be in vlc with no luck. localhost:8080/live/test.m3u8, localhost:8080/hls/test.m3u8



Any tips on effective testing would be much appreciated.



Technologies involved :



- 

- FFMPEG
- NGINX (This and the below 3 are part of a module)
- HLS
- RTMP











Working :



ffmpeg -hide_banner -i http://149.255.59.164:8138 -f mp3 test.mp3




Seemingly working, correctly reads files, shows conversion of some kind

size= 362kB time=00:00:23.09 bitrate= 128.3kbits/s speed=3.21x


fmpeg -hide_banner -i http://x.x.x.x:8138 -f mp3 rtmp://localhost:1935/live/test




Nginx.conf



user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
 worker_connections 768;
 # multi_accept on;
}

rtmp_auto_push on;

rtmp{

 server{

 listen 1935;

 chunk_size 4000;

 #one publisher, many subscribers

 application live {

 # enable live streaming
 live on;
 record off;

 # publish only from localhost
 allow publish 127.0.0.1;
 deny publish all;

 # hls - required for web browser consumption
 hls on;
 hls_path /tmp/hls;
 hls_fragment 3;
 hls_playlist_length 60;

 # disable consuming the streaming from nginx as rtmp
 deny play all;

 }

 }

}

# HTTP can be used for accessing RTMP stats
http {

 server {

 listen 8080;

 # This URL provides RTMP statistics in XML
 location /stat {
 rtmp_stat all;

 # Use this stylesheet to view XML as web page
 # in browser
 rtmp_stat_stylesheet stat.xsl;
 }

 location /stat.xsl {
 # XML stylesheet to view RTMP stats.
 # Copy stat.xsl wherever you want
 # and put the full directory path here
 root /path/to/stat.xsl/;
 }

 location /hls {
 # Serve HLS fragments
 types {
 application/vnd.apple.mpegurl m3u8;
 video/mp2t ts;
 }
 root /tmp;
 add_header Cache-Control no-cache;
 }

 location /dash {
 # Serve DASH fragments
 root /tmp;
 add_header Cache-Control no-cache;
 }
 }
}



-
Problem when adding background music to video without sound
27 avril 2020, par Nguyễn TrọngI am trying to cut a piece of background music and loop them into a video and change the speed of the video with the command below.



String[] cmd = {"-y", "-i", input, "-i", shortsound,
 "-filter_complex",
 "[0:v]trim=0:120,setpts=1/2*(PTS-STARTPTS)[v1]," +
 "[0:v]trim=120:240,setpts=1/2*(PTS-STARTPTS)[v2];" +
 "[1:a]atrim=0:6,asetpts=PTS-STARTPTS," +
 "asetrate=44100,aloop=-1:2e+09," +
 "aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=1.0[bg];" +
 "[0:a]atrim=0:120,asetpts=PTS-STARTPTS,atempo=2.0" +
 ",aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[a1]," +
 "[0:a]atrim=120:240,asetpts=PTS-STARTPTS,atempo=2.0," +
 "aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[a2];" +
 "[v1][a1][v2][a2]concat=n=2:v=1:a=1[video][audio];[audio]volume=0.5[avolume];" +
 "[avolume][bg]amerge=2,pan=stereo|c0code>



Everything was fine until I tried with a video without sound, it didn't work.
How when input is a video without sound ?


-
Use ffmpeg to create a music video with the cover on a black background
21 septembre 2020, par user6329530I am trying to use this tutorial to create youtube videos with ffmpeg
https://trac.ffmpeg.org/wiki/Encode/YouTube


When using this example, I get a video that works however the background is white


ffmpeg -loop 1 -framerate 2 -i albumcover.png -i audio.wav -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv



I tried to add a color filter but that makes the whole video output black :


ffmpeg -loop 1 -framerate 2 -i albumcover.png -filter_complex "color=s=1920x1080:c=black" -i audio.wav -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv



I find it very difficult to find something about this on the internet as most ask for just a black video or a transparent background for a gif ect.


So how do I get the albumcover.png on a black background ?


EDIT : I just realized that the video format is of course the image format (square) and therefore it's white on youtube. The question therefore is now how do I create a black background 16:9 and put the albumcover centered on it...