
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (74)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
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 (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (7524)
-
Ubuntu 16.04 python installing 3rd party module ffmpeg-3.0.2
3 juin 2016, par vanoccupantherHave tried installing this package multiple times. Initially I installed it to a directory where I am running scripts that call it but I get an error message "ImportError : No module named ’ffmpeg’".
I then tried putting it in one of my python paths listed in sys.path and again I got the same message.
I then opened .bashrc and added the home directory path and still got the same error message when I ran my script.
import sys
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import ffmpeg
from PIL import Image
img = sys.argv[1] # ignore this
im = Image.open(img) # ignore this
imarray = np.array(im) # ignore this
ffmpeg -i ('flame.avi') -f image2 -c:v mjpeg ('image-%d.jpg')
avconv -i ('flame.avi') -vsync ('1') -r ('100') ('image%03d.tif')I’m really not sure where to go, what are my options here ? And what am I doing that is glaringly wrong ?
-
ffmpeg moving text but only within Y limits
28 décembre 2022, par Yoav MorI need to add text to a video that will scroll from bottom to top ; I managed to do it with something similar to this :


ffmpeg -i vid.mp4 -vf "drawtext=fontfile=tahoma.ttf:fontsize=20:fontcolor=green:x=(w-text_w)/2+20:y=if(lt(t\,2)\,480\,(h-400-(40*t))):textfile=scroll.txt:bordercolor=white:borderw=1" -c:v libx264 -y -preset ultrafast scrolling.mp4


The original video is 960x540, so the text starts at position y=480 and, after 2 seconds, starts moving up.
That bit works fine, and the text "vanishes" at the top of the frame as it scrolls up.
What I need to achieve is for the text to scroll only within certain Y limits, imagine a virtual box around the text, so it scrolls up only from a certain Y position in the bottom (but not the very bottom) and disappears into a line on the top that isn't the top part of the frame.
Can that be achieved with ffmpeg ?


EDIT : Maybe the trick here should be to put the text on top of a transparent video that's smaller in height, and then within the same command somehow merge this new video that has the text with the original video. Not sure how achieve that though.


-
Combining multiple pcm files with different starting times
18 juillet 2021, par BelMatHow do I combine multiples pcm files, with different starting times and compress it into wav with ffpmeg.js.


I know I can :


Transform pcm to wav


ffmpeg -f s16le -ac 2 -ar 44.1k -i file.pcm file.wav



Merge files with different starting times :


ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp3
 -filter_complex "[2]adelay=10000|10000[s2];[3:a][1:a][s2]amix=3[a]"
 -map 0:v -map "[a]" -c:v copy result.mp4



but how would I combine all of this inside JS, plus getting the files with FS (Node) and the starting time from the file name ?


This is a small snippet where I tried to do all of this :


function MakeAudioFile(){
 const audios = fs.readdirSync('./sound/').filter(file => file.endsWith(".pcm"));
 let result = ffmpeg({
 MEMFS: [],
 arguments: ["-f", "s16le", "-ac", "2", "--ar", "44.1k"],
 });
 audios.forEach(file =>{
 result.arguments.push('-i')
 result.arguments.push(file)
 result.MEMFS.push(fs.readFileSync(`./sound/${file}.pcm`))
 })
}



But didn't get the expected result and had no idea on how to also add the starting time