
Recherche avancée
Autres articles (49)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (7175)
-
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.