
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (47)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (6701)
-
How can I get Python to find ffprobe ?
4 novembre 2018, par tburrows13I have
ffmpeg
andffprobe
installed on my mac (macOS Sierra), and I have added their path to PATH. I can run them from terminal.I am trying to use
ffprobe
to get the width and height of a video file using the following code :import subprocess
import shlex
import json
# function to find the resolution of the input video file
def findVideoResolution(pathToInputVideo):
cmd = "ffprobe -v quiet -print_format json -show_streams"
args = shlex.split(cmd)
args.append(pathToInputVideo)
# run the ffprobe process, decode stdout into utf-8 & convert to JSON
ffprobeOutput = subprocess.check_output(args).decode('utf-8')
ffprobeOutput = json.loads(ffprobeOutput)
# find height and width
height = ffprobeOutput['streams'][0]['height']
width = ffprobeOutput['streams'][0]['width']
return height, width
h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
print(h, w)I am sorry I cannot provide a MCVE, as I didn’t write this code, and I don’t really know how it works.
It gives the following error :
Traceback (most recent call last):
File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 21, in <module>
h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 12, in findVideoResolution
ffprobeOutput = subprocess.check_output(args).decode('utf-8')
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
</module>If python is not reading from the PATH file, how can I specify where
ffprobe
is ?Edit :
It appears the python path is not aligned with my shell path.
Usingos.environ["PATH"]+=":/the_path/of/ffprobe/dir"
at the beginning of each program allows me to use ffprobe, but why might my python path not be the same as my shell path ? -
Android ffmpeg needs android.permission.ACCESS_COARSE_LOCATION for compression
20 septembre 2018, par htafoyaI’m using FFmpegAndroid library (based on C) on a project in order to compress encode some videos.
The library requires the use of
android.permission.ACCESS_COARSE_LOCATION
permission.If I remove it the compression fails, but I get no additional detail on where the lib requires the permission.
The shell command is :
[/data/user/0/app_package/files/ffmpeg, -y, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VIdidi.mp4, -async, 1, -c:v, libx264, -profile:v, high, -preset, ultrafast, -b:v, 1400k, -maxrate, 1400k, -r, 30, -vf, scale=-1:960, /storage/emulated/0/appname/out.mp4]
Do anyone knows on what this is used ? As I don’t want my users to be asked for a permission without clear understanding on the usage.
-
I'm trying to use FFmpeg with command prompt in my python program, but it doesnt execute [on hold]
26 mai 2018, par MilkToastI’ve tried to do it a bunch of different ways but each time it execute. The line works fine in the command prompt, but I cant get it to work from python.
check_output(r"ffmpeg -i C:\Users\jared\Desktop\Rev\videosnshit\howto.mp4 -vn -ar 44100 -ac 1 -b:a 32k -f wav audio.wav", shell=True)
// This is the bit that works fine in command prompt :
ffmpeg -i C:\Users\jared\Desktop\Rev\videosnshit\howto.mp4 -vn -ar 44100 -ac 1 -b:a 32k -f wav audio.wav
I’m probably being dumb, so any help would be great ! thanks !