
Recherche avancée
Autres articles (21)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4282)
-
mismatching process id from process execution. Why do they not match and how to fix script to get the correct pid ?
26 février 2013, par buggedcomI'm running a script that executes ffmpeg and outputs stout to a temp file. Along side the output from ffmpeg I'm sending two tokens. one a marker for a failed execution. The other for marking when ffmpeg is completed. I'm trying to output the process id back to the executing script (which is php) however the process id being returned is not that of ffmpeg, rather the bash script.
The script is as below.
((/opt/local/bin/ffmpeg -i '/Users/ollie/Sites/@Projects/PHPVideoToolkit/v2/git/examples/media/BigBuckBunny_320x180.mp4' -y -t '20' -strict 'experimental' -s '142x80' -aspect '16:9' -b:v '10000k' '/Users/ollie/Sites/@Projects/PHPVideoToolkit/v2/git/examples/output/test-1361797899.mp4' && echo '') || echo '' '') 2>&1 > '/Users/ollie/Sites/@Projects/PHPVideoToolkit/v2/git/examples/tmp/phpvideotoolkit_GmxT4T' 2>&1 & echo $!
Example output from the script is as follows :
[19] 19316
However querying
ps
. The process id of ffmpeg is different. For example :Olivers-Mac-Pro:~ ollie$ ps
PID TTY TIME CMD
19025 ttys002 0:00.00 -bash
19026 ttys002 0:00.00 -bash
19316 ttys002 0:00.00 -bash
19317 ttys002 0:00.00 -bash
19318 ttys002 0:46.56 /opt/local/bin/ffmpeg -i /Users/ollie/Sites/@Projects/PHPVideoToolkit/v2/git/examples/media/BigBuckBunny_320x180.mp4 -y -strict experimental -s 142x80 -aspect 16:9 -b:v 10000k /Users
849 ttys003 0:00.12 -bash
7558 ttys004 0:00.03 -bashYou see that the process id returned by the script does not match the ffmpeg process id given by ps. Why is this and how can I ammend the original script to get the correct process id ?
-
How to convert a video format into mp3 format using back end language script
20 juillet 2017, par GeorgeTheGoodI want to convert mp4 into mp3 with back end script (language doesn’t matter but preferably java or php). I know that there exists ffmpeg but I don’t want it to be done by hand. I want to build a website which requires link of a video and then converts it to mp3.
-
TCL script unable to work with multiple camera on windows 7 platform
27 novembre 2017, par M. D. PMy TCL script works properly for single camera. the TCL script is as follow :
proc liveStreaming {} {
#open the config file.
set f [open "C:/main/video_config.txt" r]
#To retrive the values from the config file.
while {![eof $f]} {
set part [split [gets $f] "="]
set props([string trimright [lindex $part 0]]) [string trimleft [lindex $part 1]]
}
close $f
#camera selection to live streaming.
set camera "video"
append cctv $camera "=" $props(cctv)
#ffmpeg command to capture live streaming in background
exec ffmpeg -f dshow -s 1280x720 -i $cctv c:/test/sample.avi >& c:/test/temp.txt &
}
liveStreaming
//above code is to capture video using ffmpeg and tcl.My text file "video_config" is as follow :
cctv=Logitech HD Webcam C525
as, i want it to run with multiple camera : the text file should be as follow :
cctv=Integrated Webcam,Logitech HD Webcam C525
The problem is "," (comma), my TCL script is unable to predict the coma (,) . can any one provide me the proper TCL script which can predict the coma, so that my TCL script can work with multiple camera.
Error Report :
ffmpeg version N-89127-g8f4702a93f Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 3.103 / 58. 3.103
libavformat 58. 2.100 / 58. 2.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 2.100 / 7. 2.100
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
[dshow @ 05944ac0] Could not find video device with name [Integrated Webcam,Logitech HD Webcam C525] among source devices of type video.
video=Integrated Webcam,Logitech HD Webcam C525: I/O error