
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (99)
-
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 -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (5470)
-
Extract closed captions VTT from stream using ffmpeg
15 avril 2021, par EK0I can extract closed caption information from an mp4 file using ffmpeg v. 3.4.7 thus :


ffmpeg -f lavfi -i movie="sample.mp4[out+subcc]" -map 0:1 -c:s webvtt /tmp/output.vtt



The file was obtained by capturing a live HLS stream containing closed captions. I would like to extract the closed captions directly from the stream, instead after storing the video in a file. I've tried various things, including :


ffmpeg -f lavfi -i movie="http://example.com/stream.m3u8[out+subcc]" -map 0:0 -c:s webvtt /tmp/output.vtt



But the movie filter does not recognize the URL, even though the ffmpeg filter documentation says that the file name for the movie filter is "not necessarily a file ; it can also be a device or a stream accessed through some protocol" :




[Parsed_movie_0 @ 0x264ad80] Failed to avformat_open_input 'http'

[lavfi @ 0x2647e80] Error initializing filter 'movie' with args 'http://example.com/stream.m3u8' ;

movie=http://example.com/stream.m3u8[out+subcc] : No such file or directory



When I capture the video form the stream like this :


ffmpeg -i http://example.com/stream.m3u8 /tmp/output.mp4



ffmpeg reports that the stream does contain closed captions (which is where the captured video file sample.mp4 got them) :




Stream #0:0 : Video : h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 480x270 [SAR 1:1 DAR 16:9], Closed Captions, 14.99 fps, 14.99 tbr, 90k tbn, 29.97 tbc




Is it possible to do this ? Thanks for any pointers.


-
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.
-
Revision ee4649ded2 : Simplify vp9_adapt_nmv_probs Remove the temporary branch count arrays and build
11 mars 2013, par John KoleszarChanged Paths : Modify /vp9/common/vp9_entropymv.c Simplify vp9_adapt_nmv_probs Remove the temporary branch count arrays and build the adapted probabilities while walking the tree. Gives an additional 1.5% or so on CIF. Change-Id : (...)