Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (79)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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, par

    La 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, par

    Par 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 k7zheng

    I’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 of MediaBuilder. When I hit run I get this error message :

    &#xA;

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

    &#xA;

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

    &#xA;

    &#xA;

    Linux - Download FFmpeg using your package manager.

    &#xA;

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

    &#xA;

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

    &#xA;

    &#xA;

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

    &#xA;

    How can I fix this so I can use FFMediaToolkit without problem on linux ?
    &#xA;Thank you for help

    &#xA;

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

    &#xA;

  • ffmpeg crashes in electron on mac apple store ; no suitable image found file system sandbox blocked open() of 'libass'

    20 février 2021, par Martin

    I 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 :

    &#xA;

    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&#xA;dyld: Library not loaded: /usr/local/opt/libass/lib/libass.9.dylib&#xA;  Referenced from: /Users/martinbarker/Documents/projects/digify-new/dist/mas/Digify.app/Contents/Resources/ffmpeg&#xA;  Reason: no suitable image found.  Did find:&#xA;    file system sandbox blocked open() of &#x27;/usr/local/opt/libass/lib/libass.9.dylib&#x27;&#xA;    /usr/local/opt/libass/lib/libass.9.dylib: stat() failed with errno=1&#xA;    file system sandbox blocked open() of &#x27;/usr/local/lib/libass.9.dylib&#x27;&#xA;    file system sandbox blocked open() of &#x27;/usr/local/Cellar/libass/0.15.0/lib/libass.9.dylib&#x27;&#xA;    at makeError (/Users/martinbarker/…eca/lib/error.js:59)&#xA;    at handlePromise (/Users/martinbarker/…/execa/index.js:114)&#xA;    at async file:/Users/ma…js/newindex.js:1151&#xA;

    &#xA;

    I think this line is important ; file system sandbox blocked open() of &#x27;/usr/local/opt/libass/lib/libass.9.dylib&#x27; 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.

    &#xA;

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

    &#xA;

    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.

    &#xA;

    git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg-mac &amp;&amp; cd ffmpeg-mac &amp;&amp; ./configure pkg_config=&#x27;pkg-config --static&#x27; --pkg-config-flags=&#x27;--static&#x27; --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 &amp;&amp; make &amp;&amp; cd ..&#xA;

    &#xA;

    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 running sudo rm -rf dist/mas/ &amp;&amp; npm run build-mas &amp;&amp; sh mas-sign-script.sh, the production build (once approved) fails with the above included error.

    &#xA;