
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 (81)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (11102)
-
Hide subprocess output and store it in a variable in Python [duplicate]
6 juillet 2022, par Dev01I would like to call a FFmpeg command, which produces a very big output.


I need to store the output in order to make a regex on it.


On the first command (echo), nothing is printed in my terminal, but for the ffmpeg command, huge output is produced (which I want to store in a variable, I don't want to have the output in my terminal)


So my code looks like this for example :


import subprocess
output = subprocess.check_output("echo a lot of wooooords")
output = subprocess.check_output("ffmpeg -i audio.mp3 -f null -", shell=True)



Is it possible to hide the output for this command ? Why does it show me an output ? Thank you


-
How can I run FFPROBE in a Python script without triggering the Windows Command window ?
1er mars, par fnord12I am using ffmeg/ffprobe to get video durations (in an addon for Kodi). The code :


result = subprocess.run(["ffprobe", "-hide_banner", "-v", "quiet", "-show_entries",
 "format=duration", "-of",
 "default=noprint_wrappers=1:nokey=1", filename], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)



The above code and the file importing that code both have a .pyw extension (after first trying regular .py).


This works fine but in Windows 11 it causes the black Windows Command window to briefly flash for each video, despite the -hide_banner flag and loglevel being set to quiet. In Linux Mint it runs without any such window popping up.


Found the answer : subprocess.run just needed a final shell=True as the last argument.


-
Getting "Unrecognized option '1'" when using "-map_metadata -1" to erase metadata with ffmpeg [closed]
20 novembre 2024, par Nautilus EraEdit :

As said in the header, this question is not about programing and I will ask it on the appropriate Stack.

My confusion came from the fact that I am using Python to make my calls to the shell, however, it has nothing to do with the problem I am trying to solve.

Thank you for your time and sorry for the bother.


I was trying to erase metadata from a file using ffmpeg using the
following command :


ffmpeg –i $file_path –map_metadata -1 –c copy $stripped_video_output



Where $file_path and $stripped_video_output are variables containing
their respective path.


ffmpeg gave the answer :


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



I am using Debian 12.


I tried with both the repository's version as well as a compiled version
of ffmpeg and I tried on two different computers.


If anyone can help with that, I would appreciate it.


Thank you in advance and have a good one.