
Recherche avancée
Autres articles (77)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (5275)
-
use BytesIO into python-ffmpeg or other
3 mai 2022, par Tlaloc-ESHello I have the following poc to develop


Given two S3 paths, origin and destination, I need to download from origin apply a conversion and upload to destination.


The idea is not to use a temporary local folder and use stream data ur another better option if you know.


In order to do this I have the following code :


import ffmpeg
import boto3
from io import BytesIO

origin = 'ah/a.mkv'
destination = 'av/a.mp4'

s3_client = boto3.client('s3')

f = BytesIO()
s3_client.download_fileobj('bucket', origin, f)

stream = ffmpeg.input(f)
stream = ffmpeg.output(stream, 'a.mp4', codec='copy')

(stream.run())



The problem is that


Input doesn' this library looks like that this operation is not possible.


https://kkroening.github.io/ffmpeg-python/




TypeError : expected str, bytes or os.PathLike object, not _io.BytesIO




But when another library like


https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming#opening-a-resource


I don't know how do the conversion too.


So do you know any way of do this ?


Thanks


-
Error when concatenating video files from different sub directories using ffmpeg in win10 command prompt ? [closed]
30 avril 2024, par Roasty247I have thousands of videos that are written by a device (RP116) in structured subfolders :


device > date > hour > minute.mp4


Every folder has up to 60 minute-long videos.


I would like to combine them into a single .mp4 file with ffmpeg in windows command prompt.


I can do this within a single folder with the following :


C:\Users\mjroa\Desktop\RP116\20220513\20>(for %i in (*.mp4) do @echo file '%i') > mylist.txt


ffmpeg -acodec aac -hide_banner -f concat -i mylist.txt -c copy test.video.concat.mp4


The text file is in the format :


file '00.mp4'
file '01.mp4'
file '02.mp4'
file '03.mp4'
file '04.mp4'



This then works fine to concatenate files within a single directory :


To concatenate videos across all the subdirectories I've tried using :


(FOR /F "delims=" %A IN ('DIR *.mp4 /B /S') DO @ECHO file '%A') > mylist.txt


ffmpeg -acodec aac -hide_banner -f concat -i mylist.txt -c copy test.video.concat.mp4


The text file is in the format


file 'C:\Users\mjroa\Desktop\RP116\20220513\20\00.mp4'
file 'C:\Users\mjroa\Desktop\RP116\20220513\20\01.mp4'
file 'C:\Users\mjroa\Desktop\RP116\20220513\20\02.mp4'
file 'C:\Users\mjroa\Desktop\RP116\20220513\20\03.mp4'
file 'C:\Users\mjroa\Desktop\RP116\20220513\20\04.mp4'



This solution apparently works on another stackoverflow question here.


I can't get this to work for me though, and I keep getting the following error :


[concat @ 00000205c6ccdb40] Unsafe file name 'C:\Users\mjroa\Desktop\RP116\20220513\20\00.mp4'
[in#0 @ 00000205c6ccd980] Error opening input: Operation not permitted
Error opening input file mylist.txt.
Error opening input files: Operation not permitted



Does anyone have any ideas why this is an issue or a solution ? I have no idea what an unsafe file name is referring to !


Thanks


-
Anomalie #2572 : Erreur à l’activation des plugins : "Erreur... Fichier actionner introuvable"
8 mars 2012, par Hervé Le Dantec"failed to open stream" et "Failed opening ’../tmp/cache/charger_plugins_chemins.php’" Problème de droit en écriture ? si oui, que dois-je choisir comme droit, sans compromettre la sécurité du site.