
Recherche avancée
Autres articles (111)
-
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" (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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.
Sur d’autres sites (9850)
-
ffmpeg - works through terminal, but not online
13 mars 2014, par stinkysGTII have installed ffmpeg onto the server using the terminal. All I need it for is to generate a thumbnail when someone uploads a video. I tested the command in Terminal, and it works great. However, when I post it to the site, nothing happens. No errors and no thumbnails are generated.
Does anybody know why this is ? I read something about the server is running as a different user than what I log in with. I don't really understand that though, and there was no information on how to gain the proper permissions or switch to a user that has the permissions already. All I found was how to show the current user and list all users through SSH.
When I try and do anything in Terminal using
usermod
, I get the following error :-bash: usermod: command not found
So can I modify permissions for a user, or change the user that it's using somehow ?
-
Remove terminal opened by ffmpeg-python
28 février 2021, par Omid KiI have this program that combines audio and video together and for that I use ffmpeg and ffmpeg-python. The program works really well but when I try to make an exe version, naturally, it pops up a terminal and shows the ffmpeg functioning. I saved the file as .pyw instead of .py so that no window will pop up but it still happens. I also saw another post on how to make the terminal disappear in subprocess but I am using ffmpeg-python and cannot control how subprocess is used unless I modify the source which I do not intend to. Is there anyway to make the terminal window disappear without modifying the source ?


-
Force a vbscript to open command prompt in 64bit instead of 32bit
26 juin 2015, par Arvo BowenI have been trying to get this script to work all day !
Here are some facts about my situation...
- I have a program named "ffmpeg.exe" in my "C :\Windows\System32\" folder.
- I DO NOT have that program in my "C :\Windows\SysWOW64\" folder.
Currently this is the script I have...
Option Explicit
Dim oFSO, oShell, sCommand
Dim sFilePath, sTempFilePath
Set oFSO = CreateObject("Scripting.FileSystemObject")
sFilePath = "C:\test\in_video.mkv"
sTempFilePath = "C:\test\out_video.mp4"
sCommand = "%comspec% /k ffmpeg -n -i """ + sFilePath + """ -c:v copy -c:a copy """ + sTempFilePath + """"
WScript.Echo sCommand
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run sCommand, 1, True
Set oShell = Nothing
Set oFSO = NothingIf I run this script manually at a command prompt then it seems to work just fine. But if I let another app run it (for example in this case uTorrent), it runs the script as expected but when it tries to process the oShell.Run command it runs that in a 32bit environment ! Then I get this...
If I try to open up a new command prompt (nothing special) i seems to default to a 64bit environment and then I can type "ffmpeg" and it shows me the help content as expected.
So for some reason I can’t get the script to run applications (specifically CMD) in the 64bit environment. Anyone know how I can achieve this ?
Update
Seems that my script is in fact being ran in 32bit mode ! Even though the script title bar says "C :\Windows\System32\cscript.exe", which is a 64bit environment !!
I used the following script to determine that it was running in a 32bit environment...
Dim WshShell
Dim WshProcEnv
Dim system_architecture
Dim process_architecture
Set WshShell = CreateObject("WScript.Shell")
Set WshProcEnv = WshShell.Environment("Process")
process_architecture= WshProcEnv("PROCESSOR_ARCHITECTURE")
If process_architecture = "x86" Then
system_architecture= WshProcEnv("PROCESSOR_ARCHITEW6432")
If system_architecture = "" Then
system_architecture = "x86"
End if
Else
system_architecture = process_architecture
End If
WScript.Echo "Running as a " & process_architecture & " process on a " _
& system_architecture & " system."