
Recherche avancée
Autres articles (95)
-
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 -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (14100)
-
swscale : make handle_formats() safe to be called multiple times
14 juillet 2013, par Michael Niedermayer -
FFmeg : How to apply one unique filter type with varying durations at different times in a video
26 janvier 2023, par FaxopitaI'd like to crop top and bottom black bars of a movie. Unfortunately, black bar thickness varies during movie runtime at specific times. So I use the following command to collect crop data at specific times in the movie :


$ ffmpeg -ss 00:03:00 -i "$f" -t 1 -vf cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tail -1



Then, I execute again this command at a different start time (replacing, e.g.
00:03:00
by00:43:17
) to collect another crop data.

Now, I'd like to use those crop data in a filter. First crop data to be applied for specific duration beginning from specific time and second crop data to be applied for another specific duration beginning from another specific time in the movie.


I thought I could use something like :


-vf="crop=3840:2016:0:72,enable=between(t,0,10),crop=2832:1600:1008:280,enable=between(t,10,50)"



But not working.


-
Same frame multiple times when using select and vframes
26 octobre 2023, par BlueMagmaI'm using ffmpeg in python using the ffmpeg-python wrapper


I run the following :


filename = "something.mp4"
frame_number = 5 # It works fine if I ask to start at 0

out, err = (
 ffmpeg.input(filename)
 .filter_('fps', fps=10)
 .filter_('select', 'gte(n,{})'.format(frame_number))
 .output('pipe:', format='rawvideo', pix_fmt=no,uint32, vframes=5)
 .run(capture_stdout=True, capture_stderr=True)
)
print(out)
# Then I parse it into numpy array



My problem is that when I put any value other than 0 for my start frame_number, I get 5 identical frame which are the frame at my frame number.


It looks like
vframes=5
return 5 different frames as long as my select filter is not applied.

But as soon as we select frames >= N, then it returns that Nth frame 5 times


What I have done wrong ?
How should I do what I'm trying to do ?


EDIT :


To help visualize what I mean here are a few examples :


frame_number = 0, vframes=5 :
[0,1,2,3,4]
GOOD

frame_number = 5, vframes=1 :
[5]
GOOD

frame_number = 5, vframes=5 :
[5,5,5,5,5]
BAD, expected :[5,6,7,8,9]