
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (82)
-
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (11298)
-
Python : Error Combining Audio and Video Files using ffmpeg concat
4 juillet 2022, par AmanI have a function that downloads videos using pytube. I have to download both the audio and the video files separately and then combine them using ffmpeg. This is what I have :


def DownloadVideo(video_link,folder,maxres=None):
 if maxres==None: 
 print("Video Started") 
 video_file = YouTube(video_link).streams.order_by('resolution').desc().first().download()
 print("Video Done")
 
 else:
 print("Video Started") 
 video_file = YouTube(video_link).streams.filter(res=maxres).order_by('resolution').desc().first().download(output_path=folder) 
 print("Video Done", video_file)
 
 
 video_name = slugify(video_file.replace(".webm","").split("/")[-1]) 
 print("Audio Started")

 audio_file = YouTube(video_link).streams.filter(only_audio=True).order_by('abr').desc().first().download(filename_prefix="audio_", output_path=folder)

 print("Audio Done")
 
 source_audio = ffmpeg.input(audio_file)
 source_video = ffmpeg.input(video_file)

 print("source audio: ", source_audio)
 print("source video: ", source_video)

 print("Concatenation Started")

 ffmpeg.concat(source_video, source_audio, v=1, a=1).output(f"{folder}/{video_name}.mp4").run()

 # Combine the video and audio
 
 print("Concatenation Done")
 return None



However, this gives me the following error :


...
Video Started
Video Done D:/Data Projects/downloads/videos\The media.webm
Audio Started
Audio Done
source audio: input(filename='D:/Data Projects/downloads/videos\\audio_The media.webm')[None] <1792faaa507b>
source video: input(filename='D:/Data Projects/downloads/videos\\The media.webm')[None] <1f47beb69b93>
Concatenation Started
Traceback (most recent call last):
 File "<stdin>", line 4, in <module>
 File "<stdin>", line 20, in DownloadVideo
 File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 313, in run
 process = run_async(
 File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 284, in run_async
 return subprocess.Popen(
 File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
 self._execute_child(args, executable, preexec_fn, close_fds,
 File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
</stdin></module></stdin>


But both
The media.webm
andaudio_The media.webm
exist in the folder.

What am I doing wrong and how can I fix this ?


-
Evolution #4170 : Visibilité icônes des auteurs
24 août 2018, par erational 鬼Voici un 1er essai :
- ligne 1 : l’existant les auteurs 32
- ligne 2 : la proposition pour des couleurs plus lisibles un peu à la mode "flat design"
-
Creating an MP4 video with ffmpeg from timestamped JPEG frames received by pipe
16 août 2024, par Denis FevralevI need to create a video with following conditions :


- 

- It can only be made from a sequence of JPEG files, each having its timestamp (milliseconds) in the name. The images' durations are not the same, they differ, so i cannot just concat them all and use particular fps
- There are several tar archives with the images sequences, the archives are kind of huge so I read them from a file storage as an async steam of data and cannot save them on the disk as files. The frames are read and right away put to ffmpeg running process stdin.
- The images may have different aspect ratios so it's required to make a NxN square and scale the images to fit in with filling the empty space with pads








My current solution :


ffmpeg -r $someFpsValue -i - -vf scale=w=$w:h=$h:force_original_aspect_ratio=1,pad=$w:$h:(((ow-iw)/2)):(((oh-ih)/2)) result.mp4



As you can see, it doesn't let me concat the images with correct durations. I know that the concat demuxer can solve the problem of merging images with different durations but seemingly it doesn't work with pipe protocol. I have an idea of evaluating an average fps as (videoFramesCount) / (videoDurationInSeconds) for
-r
argument, or maybe even counting the fps for each video's second and then getting the avg, but maybe there is a more reliable solution (like some concat demuxer analogue) ?

Thanks in advance :)