
Recherche avancée
Autres articles (35)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (8129)
-
Get subdirectory name in bat FOR /R loop and name file accordingly
23 février 2021, par CatTheGrimReaperI know this question sounds like a duplicate, but I couldn't find an answer in all the similar questions.
I have this code in a .bat file :


for /R "C:\Users\XX\XXX\XXXX\XY" %%F in (*.m*) do (
 ffmpeg -i %%F -vf "setpts=N/TB,fps=1,select=not(mod(n\,29)), crop=min(in_w\,in_h):min(in_w\,in_h), scale=1024:1024" -vsync 0 -frame_pts 1 -f image2 %%F-"frame-"%%3d.jpg
 )



Which takes every video file in the given path (C :\Users\XX\XXX\XXXX\XY), splits it into frames (every 29th frame) and saves those frames as "FILENAME-frame-FRAMENUMBER". This works very well, but I'd like to name the file "SUBDIRECTORY-frame-FRAMENUMBER". Is this possible ? Every answer I read had the subdirectory name as its own variable (so in my case in place of the %%F), but I need that %%F to modify each file with FFMPEG.


I appreciate any help ! Thanks in advance.


-
Copy multiple sections of an .mp3 file to a new .mp3 file with ffmpeg [duplicate]
28 août 2021, par Nemo XXXI'd like to copy multiple sections of an .mp3 file to a new .mp3 file using a single
ffmpeg
command.
For example, I only want to keep the following sections of a 60 minute .mp3 file :

00:00:55 00:05:34 00:04:39 || 55.7173 334.888 279.17069999999995
00:16:31 00:38:29 00:21:57 || 991.912 2309.11 1317.198
00:41:29 00:45:04 00:03:34 || 2489.84 2704.37 214.52999999999975



(The values are
start, end, duration
.)

How can I achieve this with a single
ffmpeg
command on a Windows machine ?
(I already know how to create 3 separate .mp3 files and to concatenate them.)

-
Initialise cuda constant memory from a seperate .c file rather than .cu file
19 avril 2020, par andrew pateI am looking to modify a ffmpeg video filter that uses cuda. The filter is comprised of a vf__scale__cuda.c file and a seperate vf_scale_cuda.cu file containing just the the kernel definitions.



In my kernel I want to reference constant memory, so I'm assumning I would have to declare this in vf_scale_cuda.cu using
__constant__
, but I want to initialize this memory (in the vf__scale__cuda.c file) before calling the kernel.


I know there are methods cudaMemcpyToSymbol and cudaGetSymbolAddress, but I'm unclear how to use these within the vf__scale__cuda.c file to set the constant memory declared in the vf_scale_cuda.cu file. How should this be done ?