
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (79)
-
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 ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (9920)
-
python ffmpeg "The system cannot find the file specified" [on hold]
5 avril 2016, par k7zhengI’m pretty new to Python but I’ve been stuck on this for a while.
Whenever I run :
import subprocess, os
os.ffmpeg = "/absolute/path/to/ffmpeg"
subprocess.ffmpeg = "/absolute/path/to/ffmpeg"
subprocess.call(['ffmpeg', '-i', 'C://Users//k7zheng//Desktop//A1//1.avi', '-r', '0.05', "newfiles//%02d.png"])I get the following :
Traceback (most recent call last):
File "C:/Users/k7zheng/Desktop/FT1.py", line 4, in <module>
subprocess.call(['ffmpeg -i C:\\Users\k\Desktop\A1\1.avi -r 0.05 "newfiles\%02d.png"'])
File "C:\Python34\lib\subprocess.py", line 537, in call with Popen(*popenargs, **kwargs) as p:
File "C:\Python34\lib\subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1114, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
</module>Can you help me spot my issue ?
I’ve tried :- changing slashes / to \ to double \ slashes
- getting rid of the 2nd and 3rd lines
- adding os.chdir(r"C :\software\ffmpeg\ffmpeg-20160330-git-be746e-win64-static\bin")
- changing line 4 to subprocess.call(’ffmpeg -i c :\users\k7zheng\desktop\c1\1 -r -0.05 "newfiles\%02d.png"’, shell=True)
I’m running Python 3.4.4
-
C# on linux : FFmpeg (FFMediaToolkit) on linux System.IO.DirectoryNotFoundException : Cannot found the default FFmpeg directory
6 mai 2021, par Jan ČernýI have C# project in rider and
FFMediaToolkit
installed via NuGet. I made instance ofMediaBuilder
. When I hit run I get this error message :

/home/john/Projects/Slimulator/bin/Debug/net5.0/Slimulator /home/john/Projects/Slimulator/test_mazes/small-maze-food2.png
Loading file /home/john/Projects/Slimulator/test_mazes/small-maze-food2.png
Unhandled exception. System.IO.DirectoryNotFoundException: Cannot found the default FFmpeg directory.
On Windows you have to set "FFmpegLoader.FFmpegPath" with full path to the directory containing FFmpeg shared build ".dll" files
For more informations please see https://github.com/radek-k/FFMediaToolkit#setup
 at FFMediaToolkit.FFmpegLoader.LoadFFmpeg()
 at FFMediaToolkit.Encoding.Internal.OutputContainer.Create(String extension)
 at FFMediaToolkit.Encoding.MediaBuilder..ctor(String path, Nullable`1 format)
 at FFMediaToolkit.Encoding.MediaBuilder.CreateContainer(String path)
 at Slimulator.AnimationBuffer..ctor(String videoPath, Int32 height, Int32 width, Int32 frameRate) in /home/john/Projects/Slimulator/AnimationBuffer.cs:line 11
 at Slimulator.Simulation..ctor(Space space, String seed, String outputVideoPath) in /home/john/Projects/Slimulator/Simulation.cs:line 12
 at Slimulator.Launcher.Main(String[] args) in /home/john/Projects/Slimulator/Launcher.cs:line 8

Process finished with exit code 134.



When I go to https://github.com/radek-k/FFMediaToolkit#setup I find just this :




Linux - Download FFmpeg using your package manager.


You need to set FFmpegLoader.FFmpegPath with a full path to FFmpeg libraries.


If you want to use 64-bit FFmpeg, you have to disable the Build -> Prefer 32-bit option in
Visual Studio project properties.




I have already installed
FFmpeg
package via pacman and I am still getting these error.

How can I fix this so I can use
FFMediaToolkit
without problem on linux ?

Thank you for help

EDIT1 : I use Arch linux.
EDIT2 : There is related issue on github : https://github.com/radek-k/FFMediaToolkit/issues/80


-
ffmpeg crashes in electron on mac apple store ; no suitable image found file system sandbox blocked open() of 'libass'
20 février 2021, par MartinI am trying to release an electron app on the Mac Apple Store (mas), my electron app uses ffmpeg to render videos. In order to release my app on the mac apple store, It needs to be sandboxed, and by default ffmpeg makes calls to external libraries so I need to statically build ffmpeg and package it with my app. I have successfully built my app, submitted it to the app store, had it approved, and downloaded/used it but my ffmpeg fails with this errir :


Uncaught (in promise) Error: Command was killed with SIGABRT (Aborted): /Users/martinbarker/Documents/projects/digify-new/dist/mas/Digify.app/Contents/Resources/ffmpeg -i /Users/martinbarker/Downloads/Steve Leach With The Crystal Grass Orchestra – Ocean Potion/9. Get Out In The Sun.flac -i /Users/martinbarker/Downloads/Steve Leach With The Crystal Grass Orchestra – Ocean Potion/10. Golden Hues.flac -y -filter_complex concat=n=2:v=0:a=1 -c:a libmp3lame -b:a 320k /Users/martinbarker/Downloads/Steve Leach With The Crystal Grass Orchestra – Ocean Potion/output-261020.mp3
dyld: Library not loaded: /usr/local/opt/libass/lib/libass.9.dylib
 Referenced from: /Users/martinbarker/Documents/projects/digify-new/dist/mas/Digify.app/Contents/Resources/ffmpeg
 Reason: no suitable image found. Did find:
 file system sandbox blocked open() of '/usr/local/opt/libass/lib/libass.9.dylib'
 /usr/local/opt/libass/lib/libass.9.dylib: stat() failed with errno=1
 file system sandbox blocked open() of '/usr/local/lib/libass.9.dylib'
 file system sandbox blocked open() of '/usr/local/Cellar/libass/0.15.0/lib/libass.9.dylib'
 at makeError (/Users/martinbarker/…eca/lib/error.js:59)
 at handlePromise (/Users/martinbarker/…/execa/index.js:114)
 at async file:/Users/ma…js/newindex.js:1151



I think this line is important ;
file system sandbox blocked open() of '/usr/local/opt/libass/lib/libass.9.dylib'
but I'm not sure what I should change with my static ffmpeg build so that it works in production and so that I can avoid the above error.

My code is available on the branch mas-attempt-after-redesign here : https://github.com/MartinBarker/digify/tree/mas-attempt-after-redesign


Inside my package.json I have the command
download-ffmpeg
which clones the ffmpeg repo, runs a configure command with some flags, and then builds ffmpeg into a folder called 'ffmpeg-mac', this folder gets packaged with the app for the mac apple store build.

git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg-mac && cd ffmpeg-mac && ./configure pkg_config='pkg-config --static' --pkg-config-flags='--static' --libdir=/usr/local/lib --extra-version=ntd_20150128 --disable-shared --disable-lzma --enable-gpl --enable-pthreads --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-static --enable-filters --enable-runtime-cpudetect && make && cd ..



You can see in the above ffmpeg command the flag
--enable-libass
, but even though I have that flag included, after I build and sign my mac apple store build by runningsudo rm -rf dist/mas/ && npm run build-mas && sh mas-sign-script.sh
, the production build (once approved) fails with the above included error.