
Recherche avancée
Autres articles (94)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (8568)
-
How to process video stream ?
27 avril 2016, par sharpenerI would like to ask some experienced multimedia professional how to proceed with following task :
Given URL provides video stream and we would like to get access to decoded frames (byte stream in memory) in managed
Win7+
application (C#
). We don’t want to render/present the frames the standard way. The video format is known but not fixed (might get changed between two successive sessions, but we will know the parameters).So far, I have found there are several methods and I have build following picture in my mind :
ffmpeg
wrapper- Pros
- Self contained (no dependency to windows technologies)
- Powerful
- Cons
- Little more complex to understand
- Lot of different wrapping variants (
FFmpeg.NET
,ffmpeg-sharp
,ffmpeg-shard
,FFmpeg.AutoGen
, ...)
- Pros
DirectShow
wrapper- Pros
- Widely used/supported technology (variaous filters freely available)
- Nice/detailed documentation on
MSDN
- Cons
- Quite old
- Considered obsolete from the point of author’s view (available only for
desktop
model on runtime >= Win8)
- Pros
MediaFoundation
wrapper- Pros
- Theoretical successor of
DirectShow
, so should be available in the future
- Theoretical successor of
- Cons
- Seems to be not as good as
DirectShow
- Not very popular, limited "community" support
- Seems to be not as good as
- Pros
FFmpegInterop
wrapper- Pros
- Microsoft’s open source wrapper alternative
- Cons
- Not available for runtime < Win8
- Pros
-
Extract alpha from video ffmpeg android
24 juin 2018, par Yarik DenisykI want to overlay transparent video on the background image. I have a video where the top half is RGB object and bottom half is an alpha mask.
Now, for making this I do next steps :
1) I am extracting all frames from video and save to the folder
2) Each frame splitting to top and bottom half bitmap
3) Top bitmap composite with bottom mask for extract alpha and get a frame with transparent background
3) I am drawing each frame on the background and save to a folder
4) Create a video using FFmpeg
The problem is step 2, 3 and 4, they very slow. Maybe has another way to overlay transparent video on the background image ?
-
ffmpeg zoompan + crop
24 février 2021, par andykaisI need to pan across a video that is also being cropped by ffmpeg. How can I accomplish this in a single ffmpeg command ?


So far I see two possible options :


Option #1 : use crop variables pan across the video. This is choppy, but possibly fixed by upscaling the input.


ffmpeg -i input.mp4 -vf 'crop=w=in_w/2:h=in_h:x=t*10' crop_panned_output.mp4



Option #2 : create an alpha mask in the shape of the crop, and then apply it on top of the input video with a zoompan filter. ffmpeg is doing extra work in this case, because we have to pad the input, then zoom in on it, then pan across it, then apply the alpha mask. This is actually using the "zoompan" feature to "pan" though.


magick -size 1920x1080 xc:none -fill black -draw "rectangle 480,0 1440,1080" rectangular-alpha-mask.png
ffmpeg -i input.mp4 -i rectangular-alpha-mask.png -filter_complex "
 [0:v]pad=2112:1188,zoompan=z=1.1:px+0.5:d=1:fps=60:s=1920x1080[input_pan];
 [1:v]alphaextract[alf];
 [input_pan][alf]alphamerge[masked];
 color=s=1920x1080:color=red[base];
 [base][masked]overlay=shortest=1
" mask_panned_output.mp4



Are either of these the right way to do it or are they incredibly inefficient ? Is there another option ? Cropping & panning together feels like a fairly common workflow, but these solutions feel a bit hacky.


Here is a visual description of what panning and cropping a video looks like :


First start with a video. Here is a simple one.



I want to crop the video to a certain width/height, and move from the left to the right across the video. The background is colored red for clarity



The video moves from left to right across the original video, and keeps the same crop ratio.