
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 (109)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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
Sur d’autres sites (12787)
-
regex for files recognition for ffmpeg command
10 avril 2015, par Vishal DesaiI’m trying to use ffmpeg command to create a time-lapse from a bunch of images in a folder. The images are named in the format -
folder_number ;timestamp.jpg
eg,
0 ;1423116000.jpg
0 ;1423137600.jpgI run the following command,
ffmpeg -i %*.jpg -q:v 2 output.mpeg
the video is getting formed but it is a 30seconds video with only the first image in the folder.
I only assume the regex i’m using - %*.jpg is wrong. Please help.
ps : I’m newbie to ffmpeg
-
How to print Continuous output of Popen when reset character is used
25 août 2022, par cclloydI have a snippet of code that runs a video conversion using
ffmpeg
.

I read the output to analyze it later in the application, and also want to print it to console, for user feedback.


So I have


p = Popen(['ffmpeg', *args], stderr=STDOUT, stdout=PIPE)
while True:
 line = p.stdout.readline()
 if not line: 
 break
 print(line.decode('utf-8'), end='')

p.wait()
if p.returncode == 0:
 pass




Which works, somewhat. It prints the initial output of the ffmpeg command, as those are simple print statements.


But once the conversion starts, all the output is updated on one line, presumably using some reset character to move the cursor position back to the start of the line.


Is there a way to continue to print that output ?


Edit :


Answer


p = subprocess.Popen(args, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, universal_newlines=True)

with p.stdout:
 for line in iter(p.stdout.readline, None):
 if not line:
 break
 if line.startswith('frame'):
 print(f'\033[2K{line.strip()}\r', end='')
 else:
 print(line, end='')



This includes the cursor return, and clears the current line before printing to it again. And still prints the part I want on the same line, like it normally does.


-
How to get video stream information with RtspClientSharp library ?
13 septembre 2022, par theateistI use RtspClientSharp to receive video frames from rtsp stream. The library allows just to receive the frames. But, I need to get information about the stream, such as bitrate, codec and etc. I don't see that there is currently an option for this in the library.


- 

- Do I miss something or I need to modify the RtspClientSharp code to support this ?
- Other alternative is to write a helper code in c++ which uses ffmpeg. I can use pinvoke to call c++ code which will connect to the rtsp stream (in addition to RtspClientSharp client), get the stream information and send it back to my c# code. Is this a better alternative ?