
Recherche avancée
Autres articles (49)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (5831)
-
Bash script for re-encode file if re-encoded file does not already exist for all in directory
25 octobre 2022, par steveI have a bash script that takes 1 argument (a file) and runs an ffmpeg command to create a duplicate of the file encoded with a different codec.


#!/bin/bash

ffmpeg -i "$1" -vn -acodec aac "$(basename "${1/.wav}").aac"



I just want to modify this bash script so instead of taking an argument, it instead just checks for all files in the directory to see if the re-encoded file already exists, and if it does not, creates it. Does anyone know how to do this ?


Thanks for your help


EDIT : the solution below is working with slight modification :


#!/bin/bash

for file in ./*.wav; do
 [ -e "$file" ] || continue # check if any file exists
 if [[ ! -f "${file}.aac" ]]; then
 ffmpeg -i "${file}" -vn -acodec aac "$(basename "${file}").aac"
 fi;
done;



-
How do I add environment variables to path in python ?
13 mai 2024, par JustThisWeebI made a python script to install FFmpeg and add it to path in Windows, but it seemed to have no effect at all. It doesn't give me any errors or anything. It literally just does nothing at all.


This was the code I used :


os.environ["Path"] += f"{os.getcwd()}/ffmpeg-7.0-essentials_build/bin"
os.environ.update()



and I tried several iterations of "path" including "PATH", "Path", "path" and none of them made a difference.
I also tried making a new variable :


new_environ = os.environ["Path"] + f"{os.getcwd()}/ffmpeg-7.0-essentials_build/bin"
os.environ["Path"] = new_environ
os.environ.update()



Which again made no difference.


I know there are other questions like that, but to be honest none of the ones I saw were helpful.


-
avformat/url : check url root node when rel include double dot and trim double dot
29 avril 2020, par Steven Liu