
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)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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, (...)
Sur d’autres sites (12530)
-
Programmatically using terminal in linux escapes my command
21 février 2023, par David ChavezUsing nodeJS exec function which runs my command from a new process overwrites my backslashes which makes my command invalid. How can I prevent this or use a workaround ?


I need the final command to look like this :

...drawtext=text='timestamp \: %{pts \: localtime...


With that code,
\:
is escaped into:
.

Using\\:
is escaped into\\:
while I'm expecting\:


How do I get
...drawtext=text='timestamp \: %{pts \: localtime...
to be ran ?

// This command works if pasted directly into terminal
const ffmnpegCode = `ffmpeg -i /path/input.mp4 -y -r 25 -ss 0 -to 124 -c:v libx264 -c:a aac -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,drawtext=text='timestamp \: %{pts \: localtime \: 1665679092.241 \: %m-%d-%Y %H\\\\\:%M\\\\\:%S}': x=(w-text_w-10): y=(h-text_h-5): fontsize=45: fontcolor=white@0.9: box=1: boxcolor=black@0.6: fontfile='/path/OpenSans-Regular.ttf'" /path/output.mp4`
const encode = async ffmpegCode => {
 try {
 await execPromise(ffmpegCode);
 return 200
 } catch (err) {
 console.log(err)
 }
}



JS adds extra
\
which breaks my command

-
Why does ffmpeg command work in terminal but not subprocess.call
4 août, par BrianI reviewed the "similar questions", but those seem to refer to using the full path for ffmpeg to ensure using the same version, which I am already doing so posting my question.


I am using a Mac runnning Sequoia 15.5, python 3, and ffmpeg 4.2.1.


I'm trying to write a script that can convert flac to mp3 320k.


If I use the following command in terminal everything works as intended :


/usr/local/bin/ffmpeg -i "/Volumes/MainData/Media/Media Server/_Stage/03 - People Like Us - Aaron Tippin.flac" -b:a 320k -map_metadata 0 -id3v2_version 3 "/Volumes/MainData/Media/Media Server/_Stage/03 - People Like Us - Aaron Tippin.mp3"



But when trying to do the same thing with subprocess.call with the following :


command = ['/usr/local/bin/ffmpeg', '-i', '/Volumes/MainData/Media/Media Server/_Stage/03 - People Like Us - Aaron Tippin.flac', '-b:a 320k', '-map_metadata 0', '-id3v2_version 3', '/Volumes/MainData/Media/Media Server/_Stage/03 - People Like Us - Aaron Tippin.mp3']
p = subprocess.call(command)



I get this as a result :


Unrecognized option 'id3v2_version 3'.
Error splitting the argument list: Option not found



If I remove the '-id3v2_version 3', then the subprocess.call results in the following error :


[mp3 @ 0x7fae2c008200] Invalid stream specifier: a 320k.



Why does Terminal understand but subprocess.call doesn't when I've verified I'm using the same version of ffmpeg ?


-
What does the variable ${i%.*} mean in terminal ?
17 mars 2020, par wongzThis shell command converts all .avi to .mp4 as per this answer by @llogan
Can someone explain how $i%.* works ?
In particular, what does % do ?for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done