
Recherche avancée
Autres articles (36)
-
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (4746)
-
[Turmux][ffmpeg] encounter "can't open stat file" when use "-pass"
15 février 2020, par Jackal ZhaoI installed ffmpeg in turmux, in my home directory, ran :
ffmpeg -y -i /sdcard/FFMPEG/in.mp4 -c:v libx264 -b:v 2600k -pass 2 -c:a copy /sdcard/FFMPEG/out3.mp4
the error bumps :
ratecontrol_init: can't open stats file
if I enter
/sdcard/FFMEPG
folder first, then run
ffmpeg -y -i /sdcard/FFMPEG/in.mp4 -c:v libx264 -b:v 2600k -pass 2 -c:a copy /sdcard/FFMPEG/out3.mp4
the task will run successfully.then I went back to turmux home directory, ran
ffmpeg -y -i /sdcard/FFMPEG/in.mp4 -c:v libx264 -b:v 2600k -pass 2 -c:a copy /sdcard/FFMPEG/out3.mp4
, error still happens.so I then added
-strict -2 -passlogfile /tmp/mydummy
and ran ran
ffmpeg -y -i /sdcard/FFMPEG/in.mp4 -c:v libx264 -strict -2 -passlogfile /sdcard/FFMPEG/ -b:v 2600k -pass 2 -c:a copy /sdcard/FFMPEG/out3.mp4
, and same error still happens.My question is, how to use ffmpeg "-pass" in termux successfully without especially entering the target folder ?
-
NGinx RTMP live stream text overlay and play to multiple
25 avril 2020, par chrisaleI have been banging my head against this wall for a long time. Hoping you all can get me over.



I have a live stream coming from an IP Camera to my computer.



Nginx publishes to YouTube and to an FFmpeg stream that takes a frame every minute to use for a static webcam image.



Here is the code with the exec_push that I've tried to use with no success. The YouTube stream and frame capture work fine. I have FFmpeg installed with freetype. This is all on MacOS X 10.15.4 Catalina with home-brew FFmpeg —HEAD installed.



Update : I should also say I have tried outputting the overlay using command line FFmpeg and it works great with this command :



/usr/local/bin/ffmpeg -i rtmp://localhost:1935/live/68.1. -vf drawtext="fontfile=/System/Library/Fonts/Supplemental/Arial.ttf:text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" /Users/user/Desktop/test.mp4




So it seems that the output portion is the part FFmpeg doesn't like in Nginx.conf



My thought is I should be passing the overlayed FFmpeg stream to the "overlay" app and have the stream published to Youtube and the frame capture from there. (And also potentially recorded).



Thanks so much !



Chris



rtmp {
server {
 listen 1935;
 chunk_size 4096;

 application live {
 live on;
 record off;
 exec_static /usr/local/bin/ffmpeg -i rtmp://localhost:1935/live/68.1. -vf drawtext="fontfile=/System/Library/Fonts/Supplemental/Arial.ttf:text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" rtmp://localhost:1935/overlay/test;
 #push rtmp://localhost:1935/overlay;
 #exec ffmpeg -i rtmp://your_localhost_ip/live/test -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 64k -vcodec libx264 -x264-params keyint=60:no-scenecut=1 -r 30 -b:v 500k -s 1280x720 -f flv rtmp://jp.pscp.tv:80/x/your_stream_key;
 }

 application overlay {
 live on;
 record off;
 push rtmp://a.rtmp.youtube.com app=live2 playpath=yjsh-402y-xv3k-2qdj;
 exec_push /usr/local/bin/ffmpeg -i rtmp://localhost:1935/overlay/$name -vf fps=1/60 /Users/Shared/stream/netcam.jpg;
 }

 }

}



-
FFMPEG || NGINX RTMP server not naming MPEG DASH chunks
12 avril 2020, par Mathew KnightFeel like i'm smashing my head against a brick wall here, i've been tryin to figure thisout for so long....



Basically i'm trying to send an RTMP stream to my NGINX server running on Ubuntu 18.04, then transcode it to a custom MPEG DASH stream that muxes the stream into 2 streams for audio and video.



as i need to have the chunks in the same destination folder i need to rename them.



when i try the following FFMPEG script it just keeps giving me chunks named for example :



chunk-stream-audio-%05d.webm



the %05d should be the chunk number running consecutively.



Running a similar script on my Macbook the chunks generate correctly... is this an error of have i done something wrong here ?



Here's my FFMPEG script



exec_push ffmpeg -re -an -i 'rtmp://localhost:1935/live/stream' -map 0:v:0 -c:v libvpx-vp9 -s 1920x1080 -bufsize 15000k -b:v 15000k -keyint_min 150 -g 150 -tile-columns 4 -frame-parallel 1 -an -f dash -init_seg_name 'init-stream$RepresentationID$_video.webm' -chunk_start_index 1 -media_seg_name 'chunk-stream$RepresentationID$-video-$Number$.webm' '/home/mathewknight/Desktop/test/video.mpd' -map 0:a:0 -c:a libopus -mapping_family 255 -b:a 1024k -vn -f dash -init_seg_name 'init-stream$RepresentationID$_audio.webm' -chunk_start_index 1 -media_seg_name 'chunk-stream$RepresentationID$-audio-$Number%05d$.webm' '/home/mathewknight/Desktop/test/audio.mpd' 2>>/var/log/nginx/ffmpeg.log;