
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 (80)
-
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 -
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 (...)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (4896)
-
How do i use libavfilter to deinterlace frames in my video player software
19 juin 2014, par justanothercoderI’m using libavformat/libavcodec/libswscale/libavutil/libavfilter (ffmpeg related libraries) to make a video player.
I’v gotten into issues with interlaced videos, it just pairs them incorrectly... It always draws the previous bottom frame with the current top frame. Which results in things I don’t want. And i’v tried messing about with the variables around this, it just won’t work. (I haven’t found a player which would play the videos I have correctly, no you can’t have them, i’m sorry)
I managed to find a way around this, by re-encoding the video with the following command :
ffmpeg -i video.mp4 -filter:v yadif -vcodec mpeg4 out.avi
Now what i’d need is directions on how to do this with c++ code, inside my video player.
I haven’t found any tutorials on the matter and the ffmpeg.c source code is just too alien to me.
A link to a tutorial would be fine, i just haven’t found it..
Edit :
Also this example was worth checking out :
https://github.com/krieger-od/imgs2video/blob/master/imgs2video.c
It’s by a gentleman named Andrey Utkin
-
ffmpegthumbnailer issue : dyld : Library not loaded : /usr/local/lib/libavutil.52.18.100.dylib
18 octobre 2013, par scientifficWhen I try to run ffmpegthumbnailer, I get the following error :
dyld: Library not loaded: /usr/local/lib/libavutil.52.18.100.dylib
Referenced from: /usr/local/bin/ffmpegthumbnailer
Reason: image not found
Trace/BPT trap: 5I installed ffmpeg using the directions here :
http://ffmpeg.org/trac/ffmpeg/wiki/MacOSXCompilationGuide
In my /usr/local/lib folder, I have the file "libavutil.a", but not the one specified in the error mesage.
How can I solve this error ?
This is what I was using to try to generate a thumbnail :
ffmpegthumbnailer -i /public/uploads/tmp/1382121359-37490-7826/thumb_Untitled.mov -o /public/uploads/tmp/1382121359-37490-7826/tmpfile.png -c png -q 10 -s 158
-
ffmpeg converted video from s3 bucket downloads before playing the video
12 octobre 2020, par RutuI making a video streaming application with react and node js.
I am converting video into different resolution with ffmpeg and storing directly to S3 bucket with the help of piping.


I am streaming uploaded resolution video from S3 bucket directly through cloudfront in HTML5 tag with video.js


When i tried to play original video through cloudfront in player its working fine, But as soon i play ffmpeg converted video to video player in cloudfront i am facing issue :


Video takes a lot load (Downloads in browser) before playing in player.


Below is my ffmpeg command


await loadProcess( [
'i',<s3 url="url" of="of" original="original" video="video">,
 '-movflags',
 'frag_keyframe+empty_moov','-vf', 'scale=-2:360','-c:v','h264','-profile:v','baseline','-r',30,'-g', 60,'-b:v','1M','-f','mp4','-']
, outPath,'video/mp4')

</s3>


this is my loadProcess function : i am using aws cli to direct upload resolution video to S3 bucket :


export function loadProcess(ffmpegOptions, outPath,contentType) {
 return new Promise((resolve, reject) => {
 const videoPath = outPath.replace(/\\/g, "/");
 let ffmpeg = spawn(conf.ffmpeg, ffmpegOptions);
 let awsPipe = spawn('aws', ['s3', 'cp', '--content-type', `${contentType}`, '-', `s3://${process.env.AWS_S3_BUCKET}/${process.env.AWS_S3_VIDEOS_FOLDER}${videoPath}` ])
 ffmpeg.stdout.pipe(awsPipe.stdin)

 // ffmpeg write stream flow
 let ffmpegData = ''
 ffmpeg.stderr.on('data', (_data) => {
 ffmpegData += _data.toString();
 })
 ffmpeg.on('close', (code) => {
 if (code === 0) {
 resolve(outPath)
 }
 else {
 let _dataSplit=ffmpegData.split('\n');
 _dataSplit.pop();
 console.log({action: 'close', message:_dataSplit.pop(), more:[conf.ffmpeg].concat(ffmpegOptions).join(' ')+'\n'+ffmpegData, code})
 }
 });
 ffmpeg.on('error', (err) => {
 reject({action: ' ffmpeg error', message: err});
 });
 
 // aws s3 cli read stream pipe flow
 let awsPipeData = ''
 awsPipe.stderr.on('data', _data => {
 awsPipeData += _data.toString()
 });
 awsPipe.on('close', (code) => {
 if (code === 0) {
 resolve(outPath)
 }else{
 console.log({action: 'close', message: awsPipeData})
 }
 });
 awsPipe.on('error', (err) => {
 reject({action: 'awsPipe error', message: err});
 })

 })
}



I have tried using +faststart option in ffmpeg but getting command failed error.
Can someone please help me this ?


Thanks in advance