
Recherche avancée
Autres articles (75)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (7128)
-
running ffmpeg.exe from inside bash file [duplicate]
3 février 2023, par MartinHello I am trying to run ffmpeg from inside a
track_cmd.sh
file which I run inside command prompt using the commandbash track_cmd.sh

My file looks like this :

echo "try1"
C:\Users\marti\Documents\projects\jan2023-rendertune\RenderTune\node_modules\ffmpeg-ffprobe-static\ffmpeg.exe
echo "try2"
# start /d "path" file.exe
start /d "C:\Users\marti\Documents\projects\jan2023-rendertune\RenderTune\node_modules\ffmpeg-ffprobe-static" ffmpeg.exe
echo "try3"
# start "c:\windows\system32" notepad.exe 
start "C:\Users\marti\Documents\projects\jan2023-rendertune\RenderTune\node_modules\ffmpeg-ffprobe-static" ffmpeg.exe 
echo "try4"
#start "" fullPath/file.exe
start "" C:\\Users\\marti\\Documents\\projects\\jan2023-rendertune\\RenderTune\\node_modules\\ffmpeg-ffprobe-static\\ffmpeg.exe
echo "done"



But none of these lines work :


>bash track_cmd.sh
try1
track_cmd.sh: line 2: C:UsersmartiDocumentsprojectsjan2023-rendertuneRenderTunenode_modulesffmpeg-ffprobe-staticffmpeg.exe: command not found
try2
track_cmd.sh: line 5: start: command not found
try3
track_cmd.sh: line 8: start: command not found
try4
track_cmd.sh: line 11: start: command not found
done



I have tried the examples posted in this question :
Bat file to run a .exe at the command prompt


But none work. If I run the command
C:\Users\marti\Documents\projects\jan2023-rendertune\RenderTune\node_modules\ffmpeg-ffprobe-static\ffmpeg.exe
inside command prompt, I get ffmpeg, so I know the path works.

-
Convert m3u8 File URL to a GIF File [closed]
30 juin 2023, par nxsiI have a m3u8 File URL that I got using the MusicKit API (Apple Music) which is an animated cover art for an album. (A quick side question on that. Is m3u8 the only format that Apple Music returns for animated cover arts ?)


So, Now that I have that m3u8 file URL, I want to convert it to a GIF for the ease of use of GIFs.
I've tried using ffmpeg but I don't really seem to make it work at all with NodeJS.


Here is a sample File URL of what Apple Music returns (
https://mvod.itunes.apple.com/itunes-assets/HLSMusic116/v4/cb/ac/9e/cbac9e42-0c8a-9798-0016-52ce447cdc78/P359486356_default.m3u8
)

TLDR ;
1- Is m3u8 the only format of animated cover arts that the MusicKit api returns ?
2- Can I convert that m3u8 file URL to a GIF, If so, How ?
3- Are there any other ways than ffmpeg to use in NodeJS ?


I've tried using ffmpeg and the furthest I got was a GIF that was corrupted and not done correctly.
Here is the command I tried :


ffmpeg -i "https://mvod.itunes.apple.com/itunes-assets/HLSMusic116/v4/cb/ac/9e/cbac9e42-0c8a-9798-0016-52ce447cdc78/P359486356_default.m3u8" -vf "fps=10,scale=320:-1:flags=lanczos" output.gif



-
How to replace the text in the filename and move the file to different directory
2 octobre 2019, par Hugo ShihI’m a newbie to this bash scripting and I’m writing a script with ffmpeg to help my production more efficient. I think I put two questions at once and hope it won’t be confused :
Here is my script :
#!/bin/bash
for file in *.mov
do
ffmpeg -probesize 50M -analyzeduration 100M -ss 00:00:10.00 -i "$file" -map 0:0 -map 0:1 -
c:a aac_at -ab 256k -ar 48000 -ac 2 -strict -2 -async 1 -c:v libx264 -crf 20 -r 24000/1001
-s 1920x1080 -aspect 16:9 -pix_fmt yuv420p -preset fast -partitions
partb8x8+partp4x4+partp8x8+parti8x8 -b-pyramid 1 -weightb 1 -8x8dct 1 -fast-pskip 1 -
direct-pred 1 -coder ac -trellis 1 -motion-est hex -subq 6 -me_range 16 -bf 3 -b_strategy 1
-sc_threshold 40 -keyint_min 24 -g 48 -qmin 3 -qmax 51 -qdiff 4 -metadata creation_time=now
-sn -t 00:01:00.02 -y "${file%.*}_H264_1080".mov
doneBasically what I’m tyring to do is taking a "Movie_ProRes_1080.mov" file and make it as a H264 and rename it as "Movie_H264_1080.mov". The way I work around is Export the file as "Movie" and let it added behind which is really not what I want because I need to export another file to fit this purpose. The main goal is I can use the "Movie_ProRes_1080.mov" convert it to "Movie_H264_1080".
Also, from the script, it rendered out to the same location. Would it be possible to render to a different directory ? Like source at /Users/editor/source, but render out at /Users/editor/output.