
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (52)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (9193)
-
Blog series part 1 : How to use Matomo to increase customer acquisitions for your business
2 septembre 2020, par Joselyn Khor — Analytics Tips, Marketing -
Song name under video
2 septembre 2020, par ottpeterI'm trying to write the song name under the video with ffmpeg. My mp3 files are running in a loop like this :

-stream_loop -1 -i music.txt

My workaround would be to write an SRT file with timecodes, a script would determine when next song is comming, and I would repeat this, let's say, a 1000 times (time codes adjusted), then I would get song names for a month for example. (this would be done before ffmpeg is started)
Obviously this is not optimal, especially because I can't loop the SRT file as well, because of the timecode. It would be better to do this with a filter complex.

Is there a way to know the name of the mp3 that is currently playing, in ffmpeg ?


-
How to burn in subtitles onto a webm video with ffmpeg ?
7 mai 2014, par IcanFLYI am trying to set up a livestream with ffserver and ffmpeg. The problem is I am using webm, and I need to burn in subtitles, which are located in a mkv. I am not quite sure how to do this, but here is my ffmpeg config (ffstream.sh) that I am using :
#Livestream script for FFMpeg/FFServer
FPS=24 # Stream FPS.
GOP=48 # GOP Should be double of FPS.
THREADS=4 # How many threads.
DEADLINE=realtime # Speed preset, realtime is fastest.
FRAMELAG=16 # How many frames to seek ahead (max 25)
QMAX=52 # More = less quality.
QMIN=10 # Less = more quality.
VBITRATE=1M # Target Bitrate.
BITRATE=3000k # Bitrate.
AUDIBR=48k # Audio Bitrate.
SERVER=<myserver>:8090/feed.ffm # Server stream endpoint.
LOGLEVEL=verbose # Logging verbosity level.
for f in $@; do ffmpeg -re -i $f\
-vf subtitles=$f\
-g $GOP -loglevel $LOGLEVEL\
-c:v:0 libvpx -threads $THREADS -b:v $BITRATE -vb $VBITRATE -bufsize $BITRATE\
-qmax $QMAX -qmin $QMIN -deadline $DEADLINE -lag-in-frames $FRAMELAG\
-c:a libvorbis -b:a $AUDIBR\
"http://$SERVER"
done
</myserver>Everything connects fine and I can get audio and video to play, however I cannot seem to get the subtitles to show up. Here is my output (I quit out of it) :
Stream mapping:
Stream #0:1 -> #0:0 (flac -> libvorbis)
Stream #0:0 -> #0:1 (h264 -> libvpx)
Press [q] to stop, [?] for help
[output stream 0:0 @ 0x1e77dc0] 100 buffers queued in output stream 0:0, something may be wrong.
frame= 232 fps= 23 q=0.0 Lsize= 816kB time=00:00:09.67 bitrate= 690.8kbits/s
video:758kB audio:41kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 2.113806%
Input file #0 (<file>.mkv):
Input stream #0:0 (video): 242 packets read (3343775 bytes); 242 frames decoded;
Input stream #0:1 (audio): 118 packets read (391060 bytes); 118 frames decoded (483328 samples);
Input stream #0:2 (audio): 8 packets read (20480 bytes);
Input stream #0:3 (subtitle): 1 packets read (182 bytes);
Input stream #0:4 (subtitle): 1 packets read (52 bytes);
Input stream #0:5 (attachment): 0 packets read (0 bytes);
Total: 370 packets (3755549 bytes) demuxed
Output file #0 (http://<myserver>/feed.ffm):
Output stream #0:0 (audio): 3233 frames encoded (206912 samples); 406 packets muxed (41937 bytes);
Output stream #0:1 (video): 232 frames encoded; 232 packets muxed (776350 bytes);
Total: 638 packets (818287 bytes) muxed
Received signal 2: terminating.
</myserver></file>Also here is my ffserver config, not sure if there is something in here stopping the subtitles from showing up :
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
<feed>
File /path/to/folder/tmp/feed.ffm
FileMaxSize 100M
#Allow localhost
ACL allow 127.0.0.1
ACL allow <myip>
#It might be a good idea to add your stream source here.
</myip></feed>
<stream>
Feed feed.ffm
Format webm
VideoSize hd720 #Must be set here, all input files will be scaled to fit.
AVOptionVideo flags +global_header
AVOptionAudio flags +global_header
StartSendOnKey
</stream>
<stream>
Format status
ACL allow localhost
</stream>
# Redirect index.html to the appropriate site
<redirect>
URL http://<myserver>
</myserver></redirect>Any help on how to do this, would be grateful.