
Recherche avancée
Autres articles (99)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (8841)
-
ffmpeg crop detect python using subprocess
12 mai 2015, par JRMI want to use python subprocess to call ffmpeg and use crop detect to find all black in a video. The crop detect return I want to put into a string variable and put in a database. At the moment I can get the process running in terminal and but I am unsure about how to grab the specific part of the terminal (stdout) output :
the script :
def cropDetect():
p = subprocess.Popen(["ffmpeg", "-i", "/Desktop/ffprobe_instance/Crop_detect/video_file.mpg", "-vf", "cropdetect=24:16:0", "-vframes", "10", "dummy.mp4"], stdout=subprocess.PIPE)
result = p.communicate()[0]
print result
# SCRIPT
cropDetect()Result in terminal :
[Parsed_cropdetect_0 @ 0x7fa1d840cb80] x1:719 x2:0 y1:575 y2:0 w :-704 h :-560 x:714 y:570 pos:432142 pts:44102 t:0.490022 crop=-704 :-560:714:570How do I take "crop=-704 :-560:714:570" and put it into a variable that I can store in a database ?
As per update :
def cropDetect1():
p = subprocess.check_output(["ffmpeg", "-i", "/Desktop/ffprobe_instance/Crop_detect/video_file.mpg", "-vf", "cropdetect=24:16:0", "-vframes", "10", "dummy.mp4"])
match = re.search("crop\S+", p)
crop_result = None
if match is not None:
crop_result = match.group()
print "hello %s" % crop_resultI can’t seem to print out the "crop_result" - I am presuming that means that the variable is empty ?
UPDATE : Found it :
def detectCropFile(localPath):
fpath = "/xxx/xx/Desktop/Crop_detect/videos/USUV.mp4"
print "File to detect crop: %s " % fpath
p = subprocess.Popen(["ffmpeg", "-i", fpath, "-vf", "cropdetect=24:16:0", "-vframes", "500", "-f", "rawvideo", "-y", "/dev/null"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
infos = p.stderr.read()
print infos
allCrops = re.findall(CROP_DETECT_LINE + ".*", infos)
print allCrops
mostCommonCrop = Counter(allCrops).most_common(1)
print "most common crop: %s" % mostCommonCrop
print mostCommonCrop[0][0]
global crop
crop = mostCommonCrop[0][0]
video_rename()Use :
p = subprocess.Popen(["ffmpeg", "-i", fpath, "-vf", "cropdetect=24:16:0", "-vframes", "500", "-f", "rawvideo", "-y", "/dev/null"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
to pipe it out -
set permissions (PHP5) shell_exec("wine ffmpeg.exe") in ubuntu version 14
22 mars 2019, par user235423423424How to start wine in php
shell_exec("wine ffmpeg.exe");
?(ubuntu version 14 server)
install
sudo apt-get install wine -y
php5 code :
$cmd = "/usr/bin/wine /var/www/html/ffmpeg.exe upload/image.jpg"
shell_exec($cmd);ffmpeg.exe
location :
/var/www/html/wine is not starting ?
Linux version of FFmpeg ?, how to run PHP
shell_exec()
?Server domain is not on shared hosting
permissions on
www-data
could be problem ?command ffmpeg successfull in terminal !
there is a permission issue, just tested and command is correct.
either ffmpeg.exe or wine have incorrect permissions.Command (ffmpeg.exe)
chmod 755 ffmpeg.exe
chown www-data ffmpeg.exeCommand (/usr/bin/wine)
chmod 755 wine
chown www-data winesudo service apache2 restart
still not working, could be more ’wine’ files to apply permissions to.
I’m not able to output any error, and command to ffmpeg is correct from terminal the problem must be permissions -
ffmpeg concat loses audio after first clip only in browser, audio plays good on player like vlc etc
1er octobre 2019, par Rajan Tpssi am trying to combine or concatenate audio file one after other like after concatenation of two audio files, both file will downloaded as a single file wheres audio will be played in a queue one after other.
after some research i found the package FFmpeg i.e dealt with mp3,mp4 etc files.i tried to run FFmpeg commands in terminal but file is created and playing good on VLC but not playing accurately in browser.
Some Commands tried by me in terminal are as follow :-
ffmpeg -i "concat:a.mp3|b.mp3" -acodec copy output.mp3
ffmpeg -f concat -i files.txt -c copy output.mp3
ffmpeg -i a.mp3 -i b.mp3 -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=0:a=1 [v] [a]" -map "[v]" -map "[a]" output.mp3
ffmpeg -y -i "concat:a.mp3|b.mp3" -ar 22050 -ab 512 -b 800k -f mp4 -s 514*362 -strict -2 -c:a aac "OUTPUT.mp4"
Library Link followed by me :- https://ffmpeg.org/ffmpeg-filters.html
Note :- I am using Ubuntu based system
file is created successfully from above commands and playing well on VLC player.
where in browser first clip is playing well but after first clip browser stops. somehow second audio clip is not playing in browser. i don’t know why may be there is same kind of pattern error.
if anyone can help, i shall be very thankful to him/her.
Thanks