
Recherche avancée
Autres articles (83)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (10254)
-
How to use temporary files and replace the input when using ffmpeg in batch ?
18 juin 2020, par Fabio FreitasWhat I did so far :



I learned with this answer that I can use negative mapping to remove unwanted streams (extra audio, subtitles) from my video files.



I them proceeded to apply it to a few dozen files in a folder using a simple
for /r
loop on Windows' cmd. Since I thought this process as some kind of trim, I didn't care about my original files and wanted ffmpeg to replace them, which of course it cannot.


I tried to search a bit further and find ways to work around this issue without simply using a new destination an manually replacing files afterwards, but had no luck.



However a lot of my findings seemed to indicate that ffmpeg has capabilities to use external temporary files for some of it's functions, even though I couldn't really find more onto it.



What I want to do :



So is there any way that I can make ffmpeg remove those extra streams and them replace the original file somehow. I'll also be needing to use this to multiple file, by I don't think this would be a big issue...



I really need this to be done with ffmpeg, as learning the tool to it's full extent is a long-therm goal of mine and I want to keep working on that curve, but as for batch/cmd, I prefer it because I haven't properly learned a programming language yet (even if I often meddle with a few), but I would be happy to use suggestions of any kind for handling ffmpeg !



Thank you !


-
Java, serve HLS live video streams
12 février 2016, par momoI know the topic is not an easy one, but I am looking for a Java class to send an HLS stream from the server to the client.
I have files being generated greater and greater :
out.m3u8
out0.ts
out1.ts
out2.ts
out3.ts
out4.ts
out5.ts
out6.tsThis is generated using ffmpeg from an original source :
ffmpeg -i http://sourceurl.com:9981/stream/channel/1232131 out.m3u8
I can play it using VLC.
Somehow, I need to stream this live to the clients.
At this point, I do not really care about different bit rates, i just want live streaming to work, in mobile browsers and on desktop browsers.
I found this class :
https://github.com/Red5/red5-hls-plugin/blob/master/plugin/src/main/java/org/red5/stream/http/servlet/PlayList.java
Which might be doing something like that.
I have pulled in hls.js into my application in hopes of using it for desktops.
HLS should however work IOS devices without hls.js right now.
How should one serve HLS content from the server ? It’s very difficult to find any good and simple example to do that.
Anyone knows of the steps needed to do that ?
I’ve looked into Wowza and Red5 just a little bit, but unsure what they can provide for me at this stage and seems to be overly complicated to setup just to serve some files. But please explain to me why that’s not the case.
-
Python moviepy, CompositeVideoClip is Slow and Wierd
4 mars 2023, par DanI want to add a
.mov
transparent overlay on top of a.mp4
video, and for that I am usingmovipy
andCompositeVideoClip
, but it's too slow.

The speed is
40 it/s
when only the video is rendering but when it comes to the overlay it is only5 it/s
. To speed it up I have useduse_bgclip=True
and now I get90 it/s
but when the overlay comes I still get5 it/s
, and when I useuse_bgclip=True
there are 2 'bugs' that appears :

- 

- The video freezes after the overlay is done playing.
- The audio of the video is lost and the overlay sound is the only one left






For the two 'bugs', I found a good enough solution, but I want to speed up the process when the overlay comes, because
5 it/s
it's way too slow. I have tried to usecodec="h264_nvenc"
or highercrf
but the speed is the same.

Is there a way to speed this up ? (I don't care if I need to use other libraries)


import moviepy.editor as mp
video = mp.VideoFileClip("video.mp4")

overlay = mp.VideoFileClip("overlay.mov", has_mask=True)
overlay = overlay.set_start(5) # start the overlay 5 seconds after the video starts

compose = mp.CompositeVideoClip([video, overlay], use_bgclip=True, size=video.size)
compose = compose.set_duration(video.duration) # fix bug 1
compose = compose.set_audio(video.audio) # fix bug 2 (but I lost the audio from the overlay)

compose.write_videofile("cf15.mp4", codec="libx264", preset="veryfast", ffmpeg_params=["-crf", "15"])

compose.close()
video.close()