
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (61)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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 -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (10481)
-
Capturing terminal output into pandas dataframe without creating external text file
4 septembre 2024, par tavalendoI am using ffmpeg's extract_mvs file to generate some text information. I would use a command like this in the terminal :



/extract_mvs input.mp4 > output.txt




I would like to use this command with
Popen
or other subprocess in python such that instead of output.txt, the data is passed straight to a pandas data frame without actually generating the text file.


The idea is to automate this multiple times, so, I am trying to avoid many .txt files from being generated and thus having to
open()
them one by one.


I thought of something like this :



import subprocess
cmd = ['./extract_mvs', 'input.mp4']
a = subprocess.Popen(cmd, stdout=subprocess.PIPE)
df = pd.read_csv(a.communicate()[0], sep=',')




But then I get an error :
OSError: Expected file path name or file-like object, got <class> type</class>



Can it be fixed and extended so as to read straight from subprocess to pandas ?


-
grep on a running terminal buffer
25 décembre 2013, par killerI did ffmpeg -i file.mp4 -y file.mp3 2>&1 | grep "time=" , but it seems that grep shows output only on completion of ffmpeg command, so how could i grep here ,I will later need to save this value of time in a variable every second
-
Terminal output text into pandas dataframe without creating external file
23 février 2018, par helmoI am using ffmpeg’s extract_mvs file to generate some text information. I would use a command like this in the terminal :
/extract_mvs input.mp4 > output.txt
I would like to use this command with
Popen
or other subprocess in python such that instead of output.txt, the data is passed straight to a pandas data frame without actually generating the text file.The idea is to automate this multiple times, so, I am trying to avoid many .txt files from being generated and thus having to
open()
them one by one.I thought of something like this :
import subprocess
cmd = ['./extract_mvs', 'input.mp4']
a = subprocess.Popen(cmd, stdout=subprocess.PIPE)
df = pd.read_csv(a.communicate()[0], sep=',')But then I get an error :
OSError: Expected file path name or file-like object, got <class> type</class>
Can it be fixed and extended so as to read straight from subprocess to pandas ?