
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 (55)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (7986)
-
Error with IO.popen and ffmepg
6 mars 2015, par Florian Dano ClementI received files in mp3 (2 minutes/files) I want to concatenate together and create a bigger file. So I created my model a function to do this using ffmpeg and IO.popen
FileUtils.mkdir_p "#{Rails.root}/tmp/files"
imported_dir = "#{Rails.root}/tmp/files/#{SecureRandom.uuid}"
links.each_with_index do |link, index|
file_path = "#{imported_dir}_#{index}#{File.extname(link)}"
File.open(file_path, 'wb') do |file|
file.write open(link).read
end
concat_list << "file '#{file_path}'\n"
end
File.open("#{imported_dir}.txt", 'w'){ |f| f.write(concat_list)}
io = IO.popen("#{Rails.root}/lib/ffmpeg/ffmpeg -f concat -i #{imported_dir}.txt -c copy #{imported_dir}.mp3").readlines
if sound = Sound.create(user_id: user.id, file: File.open("#{imported_dir}.mp3"), lang: lang, title: title)
audio = FFMPEG::Movie.new("#{imported_dir}.mp3")
if !audio.valid?
puts "//_!_\\\\ Failed reading with ffmpeg (#{sound.id})#{sound.title} //_!_\\\\"
return false
end
endthe problem is that my .txt file containing the file path
file '/home/test/apps/example/releases/20150305224026/tmp/files/4dbe9707-cfef-467b-ab2c-a5e1e1165953_0.mp3'
created files as well but the final file is not created and i got the error message :
No such file or directory @ rb_sysopen - /home/test/apps/example/releases/20150305224026/tmp/files/4dbe9707-cfef-467b-ab2c-a5e1e1165953.mp3
If anyone could help me
-
Processing files and then re-uploading with fog and carrierwave fails on production
2 mars 2015, par LaurieSo I’m trying to get use carrierwave and fog to upload a file to my server, processing that file using ffmpeg to cut it into multiple small files, then upload those to s3.
This works locally (no fog, just file storage), but breaks on production with this error :
NoMethodError: undefined method 'to_file' for #CarrierWave::Storage::Fog::File:0x0000000639a458>
And this trace :
/var/deploy/webapp/web_head/shared/bundle/ruby/2.2.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb 259:in `store'
…gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb: 80:in `store!'
…s/carrierwave-0.10.0/lib/carrierwave/uploader/store.rb: 59:in `block in store!'
…rrierwave-0.10.0/lib/carrierwave/uploader/callbacks.rb: 17:in `with_callbacks'
…s/carrierwave-0.10.0/lib/carrierwave/uploader/store.rb: 58:in `store!'
…2.2.0/gems/carrierwave-0.10.0/lib/carrierwave/mount.rb: 375:in `store!'
…2.2.0/gems/carrierwave-0.10.0/lib/carrierwave/mount.rb: 207:in `store_audio!'
…/20150227144932/app/controllers/podcasts_controller.rb: 60:in `update'
…2.0/gems/actionview-4.2.0/lib/action_view/rendering.rb: 30:in `process'
…_language-2.0.5/lib/http_accept_language/middleware.rb: 14:in `call'
…red/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/etag.rb: 24:in `call'
…/ruby/2.2.0/gems/rack-1.6.0/lib/rack/conditionalget.rb: 38:in `call'
…red/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/head.rb: 13:in `call'
…/2.2.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb: 225:in `context'
…/2.2.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb: 220:in `call'So, I have two uploaders. The uploader for the small chopped up audio files just sets the storage to fog, that’s it.
After uploading the big audio file I run this processing function in the uploader (though the error doesn’t seem to come from here) :
def split
directory = File.dirname(current_path)
tmpfile = File.join(directory,'tmpfile.mp3')
File.rename(current_path,tmpfile)
File.chmod(0644,tmpfile)
sound = FFMPEG::Movie.new(tmpfile)
@model.length = Mp3Info.open(tmpfile).length.round
i=0
number_of_lines= @model.ordered_lines.length
lines = @model.ordered_lines
while icode>Any ideas ?
-
CMTimeGetSeconds doesn't get the right video duration
26 février 2015, par JLCastillosome users don’t get the right duration of videos they capture with their own device. The funny thing is others do actually see it right, using the same device models and OS version. Anyway, we observed it in a iPhone 5c 7.1.2 and an iPhone 5s 8.1.3.
This code works for most users, but not all :
ALAssetRepresentation *representation = [mediaObject.asset defaultRepresentation];
NSURL *url = [representation url];
NSDictionary *options = @{ AVURLAssetPreferPreciseDurationAndTimingKey : @YES };
AVAsset *avAsset = [AVURLAsset URLAssetWithURL:url options:options];
videoDurationTime = CMTimeGetSeconds(avAsset.duration);I asked them to send the input videos, and this is the output from "ffmpeg -i"
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bug_duration1.MOV':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2015-02-23 08:30:01
encoder : 8.1.3
encoder-eng : 8.1.3
date : 2015-02-23T16:30:01+0800
date-eng : 2015-02-23T16:30:01+0800
model : iPhone 5s
model-eng : iPhone 5s
make : Apple
make-eng : Apple
Duration: 00:00:03.67, start: 0.000000, bitrate: 16793 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 16719 kb/s, 29.99 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2015-02-23 08:30:01
handler_name : Core Media Data Handler
encoder : H.264
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 61 kb/s (default)
Metadata:
creation_time : 2015-02-23 08:30:01
handler_name : Core Media Data HandlerThe video is detected with a duration of several minutes. Did anybody face this problem before ?
Thanks in advance.