
Recherche avancée
Autres articles (47)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (7692)
-
Thumb image from video using streamio-ffmpeg gem without loosing aspect ratio and given size while uploading using carrierwave
6 mars 2013, par KrishnaI am working on a project which require user to upload video, While they upload the video I will be converting the video to flv and mp4 format, and I need to take 2 screenshots for thumb image.
I am using streamio-ffmpeg gem and CarrierWave the code for video conversion is below.
movie = FFMPEG::Movie.new(file_name)
movie.transcode("output_mp4.mp4", "-sameq -s 640x480 -deinterlace -b 512000 -vol 320 -ar 44100 -r 25")
movie.transcode("output_flv.flv", "-deinterlace -qscale 1 -b 512000 -vol 320 -ar 44100 -r 25")This will convert the video to mp4 and flv format.
The below code is used for creating thumb image, but the images look like stretched since not maintaining the aspect-ratio.
movie.screenshot("output_thumb1.jpg", :resolution => '40x40')
movie.screenshot("output_thumb2.jpg", :resolution => '80x80')So after looking at streamio-ffmpeg gem documentation, I came up with this solution.
movie.screenshot("output_thumb.jpg", { seek_time: 2, resolution: '80x80' }, preserve_aspect_ratio: :width, preserve_aspect_ratio: :height)
This Will preserve the aspect ratio but the image size is changed, its not '80x80'.
My requirement is I need a thumb image of size 80x80 but it should not look stretched
I am actually looking for something similar to resize_and_pad which CarrierWave::RMagick have.
-
How do I extract parts of a video with a specific aspect ratio with ffmpeg or mencoder ? [on hold]
26 juin 2013, par MinecraftBhilI've got some recordings from TV. The movies are all in 4:3 but the advertisement is in 16:9. My input format is a mpeg 2 transport stream. I would like to convert my movies to mp4 with h264 video and aac audio but delete all frames from the video with 16:9 aspect ratio. The sound should also be deleted at the matching frames.
Converting mts to mp4 is easy with ffmpeg but how do I extract the frames with 4:3 aspect ratio ?converting mts to mp4 :
ffmpeg -i input.mts -b:v 6000k -b:a 256k -vcodec libx264 -acodec aac -o output.mp4
I'm under a gentoo linux with ffmpeg version 0.10.3 and MEncoder 1.1-4.5.4
-
ffmpeg thumbnails with exact size main aspect ratio [migrated]
31 mai 2013, par diogopmsHi need to get one thumbnail with resolution 560x420.
I'm using this command :
ffmpeg -i "file.mp4" -vf "scale=560:-1,pad=max(iw\,ih):420:(ow-iw)/2:(oh-ih)/2" \
-frames:v 1 best.pngThis command works..any other alternative ?? the image cannot be deformed.