
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (111)
-
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 (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
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 (7133)
-
Make ffplay leave video on GPU
6 février 2019, par tmlenIs there a way to use
ffplay
to decode a video on GPU (using theh264_cuvid
decoder, for example), and then show the output onscreen, without copying each frame to the host first ?I’m using the following command to launch
ffplay
decoding+playing a sequence ofh264
files on the GPU through CUVID :ffplay -v 64 -loop 0 -vcodec h264_cuvid video.mkv
It plays the video properly, but if I run the NVidia Profiler (
nvpp
), the timeline looks like this :It seems that it does the decoding on the GPU, but then copies the output to host memory (
Memcpy DtoH
) for each frame.Is it possible to have
ffplay
skip this step, and instead directly show the image on GPU using its graphics context ? -
How to create UI for Terminal [y/n] Prompts ?
22 juin 2023, par itsRitsI am working with FFmpeg and I want to create a responsive user interface for terminal prompts.


Here's the main function.


#converter.py

def convert_video(input_video, output_video=None, new_fps=None, new_container=None):

 if not output_video:
 if new_container is not None:
 output_video = "output." + new_container
 else:
 output_video = "output." + input_video.split('.')[-1]
 
 command = f"ffmpeg -i {input_video}"

 if new_fps:
 command += f' -r {new_fps}'

 command += f' {output_video}'

 subprocess.call(command, shell=True)



On running the above code, if the video at the output destination with the same name already exists.
the terminal prompts :
File 'output.mp4' already exists. Overwrite? [y/N].

I want to implement same using the message box in pyside2. I can create a message box in such a fashion

#ui.py
 message_box = QMessageBox()
 message_box.setText("Do you want to proceed?")
 message_box.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
 message_box.setDefaultButton(QMessageBox.No)



But I am unable to figure how to make the message box pop once this prompt is found in terminal. Further how to send response back to it ?


-
Process Multiple Streams using ffmpeg-python
27 novembre 2019, par C DormanI have a MPEG-2 TS with a stream of video and a steam of KLV metadata. I can use ffmpeg-python to process each of these streams independently. For example, I can get the video stream, process each frames using numpy as shown in the docs. I can also get the data stream and show it in following way (using the library klvdata) :
process = (
ffmpeg
.input(in_filename)
.output('pipe:', format='data', codec='copy', map='data-re')
.run_async(pipe_stdout=True, pipe_stderr=True)
)
for packet in klvdata.StreamParser(process.stdout.read()):
packet.structure()
process.wait()How do I do these at the same time ? I need to split the TS data into its streams and process them both, keeping them in sync. ffmpeg by itself can demultiplex the streams into separate files, but how do I handle the streams in python. The KLV has information that I want to show on top of the video stream (recognition boxes).