
Recherche avancée
Médias (91)
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Echoplex (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Discipline (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Letting you (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
999 999 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (56)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (6132)
-
I am getting error "FileNotFoundError : [WinError 2] The system cannot find the file specified" in subprocess python
6 mai 2020, par FAHAD SIDDIQUII am getting error
FileNotFoundError: [WinError 2] The system cannot find the file specified
in subprocess python. I searched it on stack overflow but don't find any answer relating to my situation. Basically, I am trying to calculate duration of a video through python code. I searched it on stack overflow and found a piece of code. When I tried to execute this code, I am gettingFileNotFoundError: [WinError 2] The system cannot find the file specified
. I check a file and its path it is correct and the file is correct. Here is a code I am trying to run and I got it from here.


import subprocess

def get_length(filename):
 result = subprocess.run(["ffprobe", "-v", "error", "-show_entries",
 "format=duration", "-of",
 "default=noprint_wrappers=1:nokey=1", filename],
 stdout=subprocess.PIPE,
 stderr=subprocess.STDOUT)
 return float(result.stdout)

get_length("video.avi")




Any suggestion will be appreciated. Here is full error :



---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
 in <module>
 9 return float(result.stdout)
 10 
---> 11 get_length("video.avi")

 in get_length(filename)
 6 "default=noprint_wrappers=1:nokey=1", filename],
 7 stdout=subprocess.PIPE,
----> 8 stderr=subprocess.STDOUT)
 9 return float(result.stdout)
 10 

~\Anaconda3\envs\FYP\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
 421 kwargs['stdin'] = PIPE
 422 
--> 423 with Popen(*popenargs, **kwargs) as process:
 424 try:
 425 stdout, stderr = process.communicate(input, timeout=timeout)

~\Anaconda3\envs\FYP\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
 727 c2pread, c2pwrite,
 728 errread, errwrite,
--> 729 restore_signals, start_new_session)
 730 except:
 731 # Cleanup if the child failed starting.

~\Anaconda3\envs\FYP\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
 1015 env,
 1016 os.fspath(cwd) if cwd is not None else None,
-> 1017 startupinfo)
 1018 finally:
 1019 # Child is launched. Close the parent's copy of those pipe

FileNotFoundError: [WinError 2] The system cannot find the file specified
</module>



I am confused that why I am getting this error although my this code is working perfectly.



import subprocess
process = subprocess.Popen(['vlc', 'video.avi'], 
 stdout=subprocess.PIPE,
 universal_newlines=True)



-
Start ffmpeg sound recording at system start doesn't work
3 octobre 2022, par CheatingBoyI made a python script to record sound at System boot, but it doesn't work. I've tried using crontab and systemd but it doesn't work. If I start the program manually it works out fine.


#!/bin/python3
import RPi.GPIO as GPIO
import time
import datetime
import subprocess
import os
import signal
GPIO.setmode(GPIO.BCM)
GPIO.setup(24, GPIO.IN)
GPIO.setup(23, GPIO.OUT)
print("Started Sound_Recorder_ULtimate_Control")
p = None
while True:
 time.sleep(0.5)
 if GPIO.input(24) == 1:
 if p is None:
 print("Preparing to recorde")
 today = datetime.datetime.now()
 time1 = "{}.{}.{}_{}:{}:{}".format(today.day , today.month, today.year, today.hour, today.minute, today.second)
 # Aufname starten
 command = "sh -c 'ffmpeg -f pulse -nostdin -i alsa_input.usb-FuZhou_Kingwayinfo_CO._LTD_TONOR_TC30_Audio_Device_20200707-00.mono-fallback /home/pi/sound_recorder/Recordes/'" + time1 + ".mp3"
 print(command)
 #subprocess.Popen(command)
 p = subprocess.Popen(command, stdout=subprocess.PIPE, 
 shell=True, preexec_fn=os.setsid)
 print("Recording...")
 GPIO.output(23, GPIO.HIGH)
 time.sleep(2) 

 else:
 print("Terminate")
 os.killpg(os.getpgid(p.pid), signal.SIGTERM)
 GPIO.output(23, GPIO.LOW)
 p = None
 time.sleep(2)




-
Anomalie #4174 (Résolu) : Affichage du logo des auteurs dans le formulaire de connection
8 septembre 2018, par nico d_