
Recherche avancée
Autres articles (11)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
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 (...)
Sur d’autres sites (3507)
-
Wrong path returned from MPV player using mp.get_property("path") spaces on Windows
15 août 2018, par user2432166I have my video in the following locaton with spaces on Windows.
"c :\GoogleDrive\CMD Scripts_video\test.mp4"
MPV function in Lua script returns cut path with special characters 1
video_path = mp.get_property("path")
"c :\GOOGLE 1\CMDSCR 1_video\test.mp4"
How can I get on Windows full path to use it as input for FFMPEG in my LUA script ?
Thank you
Peter -
Using FFmpeg to detect alpha channel in PR4444 file [closed]
8 décembre 2023, par Justin MyersI wanted to comment on a thread that already exists on this topic in general, but I just signed up to SO and have not earned my contribution credits yet ! If anyone has advice on how to better handle that in the future, I am all ears !!


None-the-less, here is that thread :


A good way to detect alpha channel in a video using ffmpeg/ffprobe


I tried both the answers listed in that post to detect the presence of an alpha channel in a PR4444 video file.


For Gyan's answer, I get the following pixel format from any PR4444 file (regardless if encoded with alpha or no alpha), when running part 1 :


yuva444p12le


As you will see in Gyan's notes, even if a FFprobe returns an "a" in the return string (for the call for pixel format), that does not equate to the presence of an alpha channel. Hence their note for the subsequent (part 2) call...


I then plugged that into the part 2 of Gyan's answer, but that produced an empty from FFmpeg, and a message providing valid arguments to pair with grep. It seems as though -oP is not a valid arg for grep ? Because it wasn't listed in the returned list of options. This is the template I used (pulled verbatim from Gyan's posted solution) :


ffprobe -v 0 -show_entries pixel_format=name:flags=alpha -of compact=p=0 | grep "$PIX_FMT|" | grep -oP "(?<=alpha=)\d"


Where $PIX_FMT is to be replaced with yuva444p121e (per Gyan's instructions).


I then tried Benji's solution for part 2, but that just returns the following :


pix_fmt=yuva444p12le


Of course, this isn't any more useful than part 1...


I suspect Gyan is on the right track as he mentions part 2 should produce a boolean result for the presence of an alpha channel. However, either I am misunderstanding the syntax of his template, or something has changed in FFprobe since. There is so limited information out there for this specific task. Hoping someone with more experience and knowledge can help shed some light for me ??


-
the ffmpeg python library doesn't work on heroku
24 mars 2020, par Androeed HackThere is a python application (3.6.10) on Heroku. The app has functions for playing music in voice chat when using the FfmegAudio module. When calling the command, it returns an error :
...
raise CommandInvokeError(exc) from discord.ext.commands.errors ... AttributeError 'NoneType' object has no attribute 'stop'My app has a buildpack package
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
Localy everthing works.