
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (31)
-
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 ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 (...)
Sur d’autres sites (4458)
-
Extract list of specific frames using ffmpeg
8 juillet 2016, par John AllardI’m trying to use ffmpeg on a video to extract a list of specific frames, denoted by their frame numbers. So lets say I want to extract just one frame from ’test_video.mp4’, frame number 150 to be exact. I can use the following command
ffmpeg -i test_video.mp4 -vf "select=gte(n\, 150)" -vframes 1 ~/test_image.jpg
But what if I want to exact a list of frames, such as
[100, 110, 127, 270, 300]
? I have been looking at this page (https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect) and can see that there are ways to extract multiple frames based on parity of frame number, timestamps, etc, but I can’t find the syntax for doing what I need to do.Ideally I would extract the list of given frames under the naming convention
out_image%03d.jpg
where the%03d
is replaced by the given frame number, although a timestamp would also work.Is there a way to do this ?
-
FFMPEG, Blur an area of a video using Image Select Areas Plugin
12 juillet 2016, par DrupalistI am building an online video editor. I need to allow the users to blur an area of movies. This must be done graphically, I mean user should be able to select an area of a video, using an screenshot, then the selected area must be blurred. Some thing like this
Is there anyway to map this selected area dimension and its distance from borders to the real values that must be applied to the video ?
I mean four numbers,
width, length, top, left
will be provided using this plug in and I need to use these numbers to blur an area of videos.I take an screenshot of video. In order to keep the aspect ratio, I will fix the width to
800px
and let the height to be scaled up/down. It is clear that thewidth, length, top, left
of the selected area of the screenshot is a factor of thewidth, length, top, left
of the area that must be blurred in video. but I don’t know how to get this factor. Besides that I don’t know how to get the video resolution.Thanks in advance.
Update
This is my PHP code that gets the selected area dimensions and offsets
$iLeft = $_POST['left'];
$iTop = $_POST['top'];
$iWidth = $_POST['width'];
$iHeight = $_POST['height'];
exec('ffmpeg -i '.$url.' -filter_complex "[0:v]scale=iw*sar:ih,setsar=1,split[bg][bb];[bb]crop='.$iWidth.'*iw/800:iw*'.$iHeight.'/800:'.$iWidth.'*iw/800:'.$iHeight.'*iw/800,boxblur=10[b0];[bg][b0]overlay='.$iLeft.'*W/800:'.$iTop.'*W/800"" '.$name.' > block.txt 2>&1');$iLeft, $iTop, $iWidth, $iHeight
are the left, top, width and height of the selected area via the image plugin.It blurs many selected areas very well, but areas like this
The Image
Left, Top, Width, Height
is257, 39.26666259765625, 10, 391
don’t get blurred. Also a video with Dimension
207x207
didn’t get blurred as well. -
tensorflow ffmpeg contrib output
24 juin 2016, par ha_1694First, I want to say that I’m completely new to TensorFlow and machine learning in general.
I’m looking at the ffmpeg contrib section and I see the example of decoding an audio file and I was wondering what is the vector output of decoding an audio file ? The code I’m running looks like :import tensorflow as tf
from tensorflow.contrib import ffmpeg
with tf.Session() as sess:
audio_binary = tf.read_file('test.wav')
waveform = ffmpeg.decode_audio(audio_binary, file_format='wav',
samples_per_second=16000, channel_count=1)
audio = waveform.eval()The
audio
variable then becomes anumpy.ndarray
type that is a list of single element lists (about 620,000 elements total) that are all floats between (in my case) -0.50218207 and 0.39030123. My question is : What do these numbers mean ? Is this some sort of standard audio representation that I’m completely missing ?