
Recherche avancée
Autres articles (56)
-
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 ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (7208)
-
ffmpeg : is there a fast way for extracting several thumbnails from a video without parsing the video from the beginning every time ?
18 mars, par archieI tried several ways for extracting sample frames from a video file with ffmpeg. I found out that the fastest way is by placing the following command in a loop :


ffmpeg -ss $frame_time -i "$input_video" -frames:v 1 -vf scale=256:-1 "$Work_dir/thumb$thumb_index.jpg"



(I have omitted the parts of the command that are not relevant to the question, such as drawtext, hide_banner, loglevel). The variables frame_time and thumb_index are initialized before the loop and incremented by a fixed amount at every step : +1 for thumbs_index and $duration/25 for frame_time. I read in the ffmpeg documentation (https://trac.ffmpeg.org/wiki/Seeking) that having the -ss part before the -i part is very fast because the input is parsed by keyframe. For the same reason, the loop containing the command above is also much faster than commands based on "-vf fps=$thumbs_number/$duration".


In fact, the code works pretty well. However, I can't escape a feeling of programming discomfort, because ffmpeg is called several times for each video file, and every time it has to parse the file from the beginning. I mean, if I had a function doing the same as the command above — it would parse a video from the beginning to search for a frame at a certain time — calling it n times to extract a regular sequence of n frames would be bad programming. I should change the function to parse the video file once and get all the frames I need in a single pass.


My question is : is there a fast way for having ffmpeg parse a video file a single time, searching by keyframes and extracting a given number of frames at a given distance from one another ? I am ready to take No for an answer, but one who is deeper into ffmpeg than I am might know a way. Thanks


-
ffmpeg video freezes some seconds the output video
7 septembre 2022, par FreddicMattersI'm using the program ffmpeg on windows, I just downloaded the binaries setted the path variable of windows to be able of use it.


I'm ran ffmpeg with python and also just running the command in the cmd


#videos.txt


file C:/Users/freddydev/Videos/video1.mp4
file C:/Users/freddydev/Videos/video2.mp4
file C:/Users/freddydev/Videos/video3.mp4
file C:/Users/freddydev/Videos/video4.mp4



#python script :


import subprocess
import shlex

subprocess.run(shlex.split('ffmpeg -f concat -safe 0 -i videos.txt -c:v libx264 -c copy output.mp4'))



#cmd


ffmpeg -f concat -safe 0 -i videos.txt -c:v libx264 -c copy output.mp4



The output video plays fine the half of the video and after some 5 seconds it freezes and the final seconds of the video there is not sound.


I have downloaded multiple ffmpeg binaries from https://ottverse.com/ffmpeg-builds and I'm getting the same result.


My laptop is a core i5 with 12GB of RAM.
The rendering is very fast only takes 2 seconds, I also used moviepy library with python and it takes more than 20sg to render the video but when I concatenate large videos this give me wrong frames in the video at the end.


What could I do to fix this problem with ffmpeg.
Thanks so much.


-
Overlay a 16/9 video to a 9/16 ratio and shrink the original video [closed]
6 avril 2024, par thanhboI assume the video has an aspect ratio of 16/9 (size 1920:1080). I want to convert it to 9/16 ratio and shrink the original video. The formula I wrote is as follows but there is an error. I hope someone can help, thank you.


ffmpeg -y -i A1.mp4 -filter_complex "split[crp0][crp1];[crp0]scale=iw:2*trunc(iw*16/18),boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=11,setsar=1[bg],[1:v]scale=(iw-100):-1[bg2];[bg][bg2]overlay=(W-w)/2:(H-h)/2[bg3]" -map "[bg3]" bg3.mp4

ffmpeg -y -i A1.mp4 -filter_complex "split[crp0][crp1];[crp0]scale=iw:2*trunc(iw*16/18),boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=11,setsar=1[bg],[1:v]scale=(iw-100):-1[bg2];[bg][bg2]overlay=(W-w)/2:(H-h)/2[bg3]" -map "[bg3]" bg3.mp4