
Recherche avancée
Autres articles (24)
-
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 -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (8146)
-
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 ?


-
Send command to terminal with appelscript
16 mars 2017, par BjörnI have this ffmpeg command that I would like to send to terminal through appelscript. It works when I run it directly in terminal.
ffmpeg -i score.mov -i palette.png -filter_complex \
"fps=8,scale=600:-1:flags=lanczos[x];[x][1:v]paletteuse" -f image2pipe -vcodec ppm - | convert -delay 15 -loop 0 -layers Optimize - output39.gifThis doesn’t compile in scripteditor.
tell application "Terminal"
do script "ffmpeg -i score.mov -i palette.png -filter_complex \
"fps=8,scale=600:-1:flags=lanczos[x];[x][1:v]paletteuse" -f image2pipe -vcodec ppm - | convert -delay 15 -loop 0 -layers Optimize - output39.gif"
end tellI get "Expected end of line but found identifier"
Anyone have an idea what to do ?
-
lavfi/drawtext : ignore final LF of textfile.
30 novembre 2020, par Nicolas Georgelavfi/drawtext : ignore final LF of textfile.
A standard text file ends with a final LF.
Without this change, it is interpreted as an empty final line,
and visible with the box option.
The current behavior can be achieved by actually having
an empty line at the end of the file.Fix trac ticket #7948.