
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (11)
-
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (2198)
-
Revision c6b8fce22a : Merge "Revert "VP8 for ARMv8 by using NEON intrinsics 06" This reverts commit 81
14 mai 2014, par JohannMerge "Revert "VP8 for ARMv8 by using NEON intrinsics 06" This reverts commit
81ad047ee57ecb0e2c1ee4dcebda54a44ea54ae9. Revert "VP8 for ARMv8 by using NEON
intrinsics 15" This reverts commit 727af7cebe3698b8493ba6c1360b0a6606c310fb." -
Popen ffmpeg process hang if run in shell and leaves a defunct process if run in background
12 janvier 2023, par dr__noobI have a script that runs the FFmpeg command. When I run the command in the background using the
&
operator it runs fine but leaves a zombie process. And when I remove the operator the process hangs and goes into thepipe_wait
state.

The code used to execute the FFmpeg command


def run_cmd(cmd:str,
 check:bool=False, 
 capture:bool=False,
 timeout:float=None,
 ) -> tuple[int,bytearray,bytearray]:
 import subprocess

 stdout_data,stderr_data = (bytearray(),bytearray()) if capture else (None,None)
 try:
 sp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, )
 while any(data:=(sp.stdout.readline(),sp.stderr.readline())):
 out,err = data
 if out: stdout_data += out
 if err: stderr_data += err
 sp.communicate(timeout=timeout)
 return sp.returncode,stdout_data,stderr_data
 except subprocess.CalledProcessError as e:
 print("Called process error")
 raise e
 except subprocess.TimeoutExpired as e:
 sp.kill()
 print(f"{sp.pid} killed")
 if check:
 raise e
 except PermissionError as e:
 print("Permission error")
 if check:
 raise e



The command which is causing the issue is


nice -n 10 ffmpeg -loglevel verbose -hide_banner -y -threads 0 -i "/dev/shm/480TEST-1999963.dfw.480_1673030704/SBS_Plus_Test_Feed.480TEST-1999963.480.eng.p.intermediate.mp4" -map 0:v:0? -q:v 1 -f rawvideo -pix_fmt "yuv420p" -an ./SBS_Plus_Test_Feed.480TEST-1999963.480.eng.p_fifo_video.yuv -map 0:a:0? -q:a 1 -ac 2 -af "aresample=async=1:first_pts=0" -vn ./SBS_Plus_Test_Feed.480TEST-1999963.480.eng.p_fifo_audio.wav > "./SBS_Plus_Test_Feed.480TEST-1999963.480.eng.p.ffmpeg.demux.log" 2>&1 &



However, other FFmpeg commands are running fine without the last
&
. But this command will block if I remove the&
. If I keep it as it is, the process will later become a zombie(defunct). Can it be because it is actually anice -n 10
causing the issue ?

Example of a command running fine


ffmpeg -loglevel verbose -hide_banner -y -threads 0 -i "./SBS_Plus_Test_Feed.480TEST-1999963.480.eng.p.ts" -r "59.94" -s:v "1280"x"720" -pix_fmt "yuv420p" -vcodec libx264 -x264-params qp="30" -af "aresample=async=1:first_pts=0" -crf 0 -q:a 1 -vf yadif=1 ./SBS_Plus_Test_Feed.480TEST-1999963.480.eng.p.intermediate.mp4 > "./p.intermediate.mp4.intermediate.ffmpeg.log" 2>&1



Till now I have tried other options like
-nostdin
andnull
suggested in ffmpeg hangs when run in background

Is there any other way run this without creating a zombie ?


-
fate : Split fate-siff test into demuxer and VB video decoder test
1er décembre 2012, par Diego Biurrunfate : Split fate-siff test into demuxer and VB video decoder test