
Recherche avancée
Autres articles (48)
-
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (10105)
-
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 ?