
Recherche avancée
Autres articles (40)
-
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 (4500)
-
ffmpeg shell script to squeeze videos for twitter
12 juin 2018, par André LevyHere’s a pretty rookie attempt at creating a shell script to squeeze videos into twitter’s 140s limitation :
for f in "$@"
do
/Applications/ffmpeg -i $f -filter_complex "[0:v]setpts=140 / \
$(/Applications/ffprobe -i $f -show_entries format=duration -v quiet -of csv="p=0") \
* PTS[v];[0:a]atempo= \
$(/Applications/ffprobe -i $f -show_entries format=duration -v quiet -of csv="p=0") \
/ 140[a]" -map "[v]" -map "[a]" "${f%.*}_twitter.mp4"
doneIt works, but it’s pretty badly written. Can you help me improve it ?
- How can I run ffprobe only once ?
- Do I need ffprobe at all, or does ffmpeg have the duration of the input amongst its arguments ?
- Will it encode faster with other settings (e.g. HW acceleration) ?
- Any twitter upload scripts out there to pipe this into ?
Needless to say, I looked for this answers all around, to no avail.
Cheers.
-
Revision 3810bca9a9 : Fix Android ndk-build Add the config directory to the rtcd generation script. l
17 avril 2013, par JohannChanged Paths : Modify /build/make/Android.mk Modify /libs.mk Fix Android ndk-build Add the config directory to the rtcd generation script. libvpx is configured in the jni directory but ndk-build is intended to be run from the next directory up. Currently it needs to be run from the jni directory (...)
-
Tkinter window and script freeze when filedialog is used
11 décembre 2020, par RandomInternetPersonIm developing a audio player for python. Unfortunately, it appears as if after a modification, the file dialog portion of the script ceased working. The code below is a minimum reproducible example of the offending bit.


# -----------------------Setup-----------------------
# Imports
from tkinter import * 
from tkinter.ttk import * 
from tkinter import filedialog

import simpleaudio
import subprocess

# GUI
root = Tk() 
root.title("CupPlayer") 
menubar = Menu(root)
file = Menu(menubar, tearoff = 0)
root.config(menu = menubar)
# ----------------------Functions---------------------
def file_selector(): 
 filename = filedialog.askopenfilename()
 
 root.update()
 if filename.endswith('.mp3'):
 subprocess.call(['ffmpeg', '-i', filename,
 'audio.wav'])
btn = Button(root, text = 'search file !', bd = '5', 
 command = file_selector) 

mainloop()