
Recherche avancée
Autres articles (101)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (14577)
-
Catch refreshing Terminal output in Python
26 janvier 2019, par AaroknightI have written a python script which converts movies with
ffmpeg
from anything to h265 (hevc). Works fine so far now and I get catch a terminal output (How can I get terminal output in python ? - Stackoverflow). I already tried this solution as well : Catching Terminal Output in Python - Stackoverflow But none of them is really what I need.Current code is following :
def convert(path):
if os.path.getsize(path) < 500000000:
pass
name = path.split("/")[-1]
os.mkdir(path.replace(name, "hevc/"))
outvid = path.replace(name, "hevc/" + name)
cmd = ["ffmpeg", "-hwaccel", "cuvid", "-i", path, "-c:v", "hevc_nvenc", "-preset",
"slow", "-rc", "vbr_hq", "-max_muxing_queue_size", "1000", "-map", "0", "-map_metadata",
"0", "-map_chapters", "0", "-c:a", "copy", "-c:s", "copy", outvid]
process = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
print(process)While
ffmpeg
is converting something, the bottom terminal line usually actualizes itself every second showing fps, time, etc. See screenshot bottom line.In Python I just get a static output :
So do you guys have any idea how to catch that refreshing output ?
-
C++ code for ffmpeg terminal command [on hold]
17 janvier 2018, par KingWealthPlatform - Linux
I created a v4l2loopback device by following the guide.
The following terminal command is used to write the video testsrc.avi into the loopback device /dev/video1ffmpeg -re -i testsrc.avi -f v4l2 /dev/video1
Now the question is, I want the c++ code for the above mentioned to terminal comment.
Note - c++ code for
-f v4l2 /dev/video1
is enough too.The actual program and logic is really long and irrelevant to explain.
The problem is, i want to write ffmpeg avframes into the loopback device but using fwrite is giving disturbed output. -
avoiding running of FFmpeg on terminal/cmd
14 janvier 2021, par Education 4FunI'm using FFmpeg for a small project so I built a GUI basic application for video editing
here is the image



Everything is working fine but I just want to avoid opening the terminal for the FFmpeg process the reason the terminal is opening is because


I used os.system("FFmpeg command here")



so is there a way to import FFmpeg completely and avoid using terminal and run in code

if u have any idea please suggest and let me know

for gui i used PYQT5 and python to code

Thank you

Tried using subprogram but didn't work (worked for normal commands but not for ffmpeg)
I need the output to print also to store in a python variable
Please check the image for more info