
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (104)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (10033)
-
ffmpeg minimal requirements configuration for encoding and decoding h264 files
14 novembre 2013, par TheSquadI'm trying to compile ffmpeg with minimal requirements in order to encode/decode with h264.
So far my command line configuration is :
./configure --disable-yasm --disable-everything --enable-encoder=libx264 --enable-encoder=libfaac --enable-decoder=h264 --enable-muxer=h264 --enable-demuxer=h264 --enable-parser=h264 --enable-protocol=file
once compiled, I try this :
./ffmpeg -i ~/Dropbox/TestFile.mov -vcodec libx264 test.mp4
but I get an error :
ffmpeg version N-58081-g2925571 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 14 2013 15:49:58 with Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
configuration: --disable-yasm --disable-everything --enable-encoder=libx264 --enable-encoder=libfaac --enable-decoder=h264 --enable-muxer=h264 --enable-demuxer=h264 --enable-parser=h264 --enable-protocol=file
libavutil 52. 52.100 / 52. 52.100
libavcodec 55. 43.100 / 55. 43.100
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mGs/Dropbox/TestFile.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2013-06-23 14:33:09
model : iPhone 4S
model-fra : iPhone 4S
encoder : 6.0
encoder-fra : 6.0
date : 2013-06-23T16:33:09+0200
date-fra : 2013-06-23T16:33:09+0200
make : Apple
make-fra : Apple
Duration: 00:00:42.09, start: 0.000000, bitrate: 20960 kb/s
Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 20880 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
Metadata:
rotate : 180
creation_time : 2013-06-23 14:33:09
handler_name : Core Media Data Handler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, 63 kb/s (default)
Metadata:
creation_time : 2013-06-23 14:33:09
handler_name : Core Media Data Handler
[NULL @ 0x7fd999802e00] Unable to find a suitable output format for 'test.mp4'
test.mp4: Invalid argumentThis is probably coming from the fact that I have forgot something to enable on the ffmpeg configuration... But I can't found out what.
The test file is a video got from iPhone 4S Camera.
-
FFMPEG android very slow converting raw aac to mp3
24 novembre 2013, par FerasI managed to compile ffmpeg for android from this repo :
https://github.com/aksalj/ffmpeg-android
So you can see the configuration options in here :
https://github.com/aksalj/ffmpeg-android/blob/master/config.shThe only changes I did were to change the darwin-x86_54 to darwin-x86 since the new r9b NDK only comes with it and also change the androideabi-4.4.3 to androideabi-4.6 again because of the new NDK. I am encoding a raw ADTS aac to mp3, the decoder for aac is libav and encoder for mp3 is libmp3lame. Even though the process works a simple 5 minute aac files (44100, 2ch) is taking about 3 minutes to process. The same file on my mac (with the macports ffmpeg) takes a few seconds.
I am not sure but are there any optimizations that can be made to the ffmpeg config script or maybe i need to compile ffmpeg with something like libaacplus(even though i think aacplus is used for encoding only, so shouldnt make a difference).Anyways any performance optimizations will be highly appreciated !
The android device is a US Galaxy S3 (i747m model which has the Snapdragon S4).
-
Permission denied when trying to call ffmpeg on heroku
1er décembre 2013, par chuck wI have a rails 3.1 web app on Heroku (cedar) that that allows users to post stories with photo and video attachments using the paperclip gem (3.5.1). Uploads are stored on s3. This has been working 100% for many months.
I have recently added video transcoding and thumbnailing to my dev machine with the paperclip-ffmpeg gem (1.0.1) and ffmpeg running locally. This is also working.
I've followed these instructions to build and install ffmpeg on heroku, and I've altered my Heroku app's path so that it reads as follows :
PATH: bin:vendor/ffmpeg/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
and my app's LD_LIBRARY_PATH so that it reads as follows :
LD_LIBRARY_PATH: vendor/ffmpeg/lib:/usr/local/lib
Finally, I've vendored ffmpeg into my app with the following structure :
When I commit and push these changes to Heroku and POST a story that has a video I get the following output on Heroku logs :
2013-11-30T22:51:46.711010+00:00 app[web.1]: Started POST "/stories" for 71.80.218.93 at
2013-11-30 22:51:46 +0000
2013-11-30T22:51:47.023119+00:00 app[web.1]: Cocaine::ExitStatusError (Command 'ffprobe
"/tmp/sideways video20131130-2-14w1q4j.mp4" 2>&1' returned 126. Expected 0
2013-11-30T22:51:47.023119+00:00 app[web.1]: Here is the command output:
2013-11-30T22:51:47.023119+00:00 app[web.1]:
2013-11-30T22:51:47.023119+00:00 app[web.1]: app/controllers/stories_controller.rb:11:in
`create'
2013-11-30T22:51:47.023119+00:00 app[web.1]:
2013-11-30T22:51:47.023119+00:00 app[web.1]:
2013-11-30T22:51:47.019228+00:00 heroku[router]: at=info method=POST path=/stories
host=myapp.herokuapp.com fwd="71.80.218.93" dyno=web.1 connect=1ms
service=3130ms status=500 bytes=754
2013-11-30T22:51:47.023119+00:00 app[web.1]:
2013-11-30T22:51:47.023600+00:00 app[web.1]: cache: [POST /stories] invalidate, pass
2013-11-30T22:51:47.023119+00:00 app[web.1]: sh: ffprobe: Permission denied
2013-11-30T22:51:47.023119+00:00 app[web.1]: ):Also, running the console command :
heroku run "ffmpeg -version" -a myapp
returns :Running ffmpeg -version attached to terminal... up, run.6591
bash: vendor/ffmpeg/bin/ffmpeg: Permission deniedHere is my Post model paperclip set-up :
class Post < ActiveRecord::Base
attr_accessible :contents, :photo, :video
belongs_to :story, :touch => true
belongs_to :user, :touch => true
has_attached_file :photo,
:styles => {
:thumb => ["100x140>", :jpg],
:medium => ["400x400>", :jpg],
:large => ["800x800>", :jpg]
},
:processors => [:thumbnail],
:storage => :s3,
:s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
:path => "/:style/:id/:filename"
has_attached_file :video,
:storage => :s3,
:s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
:path => "/video/:id/:filename",
:styles => {
:thumb => { :geometry => "140x100#", :format => 'jpg', :time => 10 },
:medium => { :geometry => "480x360", :format => 'mp4' },
}, :processors => [:ffmpeg]Why am I getting these "permission denieds" ? Any help would be greatly appreciated !!!