
Recherche avancée
Autres articles (92)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Liste des distributions compatibles
26 avril 2011, parLe tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (6335)
-
How do I write a batch file that opens a msys shell and then run commands in the shell ?
19 septembre 2024, par cxuI'm trying to automate the process of building ffmpeg on Windows 10. I'm following the guide here : https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC



Everything works fine when I do it manually, however I want to write a batch file that I can run to go through the entire process automatically.



Building requires me to set up the Visual Studio environment and the MSYS environment. This is where I'm having trouble, since running the MSYS environment opens up a new shell. I want to pass the configure/make/make install commands to the MSYS shell after it is opened.



I've tried the solution here : How to open a new shell in cmd,then run script in a new shell ?



The problem they had looks similar to mine, but the solutions posted there didn't work for me.



Here is the bat file currently :



call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\vcvars64.bat"
call "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" start cmd.exe /k bscript
pause




and bscript :



./configure --enable-shared --toolchain=msvc --arch=amd64
make
make install




I've tried all sorts of variations like :



call "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" /k bscript
call "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" bscript
start "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" /k bscript
start "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" bscript




And I've also tried leaving the bscript code in the original batch file.



The configure/make commands will either run in the original cmd window, a new cmd window or wont run at all.



Is there a way to pass commands to the MSYS shell like that ?


-
FFMPEG [SHELL CMD] cutting last x frames [SHELL CMD] combining videos
25 avril 2014, par user1708604.mp4 videos in 1920 x 1080, 25 frames / second
different lengthTwo commands needed :
0) One command should delete x frames from the end of the video and create a new video without the last x frames as .mp4, save it in folder y
1) One command should combine x amount of videos to one new videoJust for info : I am using Python to call ffmpeg.
Platform : Windows or CentOS.Many thanks in advance. :)
-
subprocess.Popen can't find the file when shell=False and doesn't know ffmpeg when shell=True [duplicate]
26 novembre 2023, par WaschbrettwadeI am trying to get an offline speech-to-text library called "vosk" running following this tutorial : https://medium.com/@johnidouglasmarangon/automatic-speech-recognition-with-vosk-828569219f2b


In this, subprocess.Popen is being used like this :


ffmpeg_command = [
 "ffmpeg",
 "-nostdin",
 "-loglevel",
 "quiet",
 "-i",
 filename,
 "-ar",
 str(SAMPLE_RATE),
 "-ac",
 "1",
 "-f",
 "s16le",
 "-",
 ]

 with subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE) as process:



When running this in Jupyter Notebook, no problem at all. But whenever I run this in VSCode, it produces the error :


FileNotFoundError: [WinError 2] The system couldn't find the specified file (translated to English by me)



When using shell=True as in


with subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE, shell=True) as process:



it tells me in the terminal (translated) :


The command "ffmpeg" ist either written wrong or couldn't be found. 



Do you have any idea what's causing these issues and how to fix them ?