Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (80)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (8900)

  • Flutter error in Ffmpeg, "Unhandled Exception : ProcessException : No such file or directory" in macOS desktop version

    19 avril 2024, par pratik vekariya

    I'm trying video trim video using ffmpeg, for macOS desktop application.

    


    I have downloaded ffmpeg from here for macOS.

    


    Here is my code

    


        String mainPath = &#x27;Users/apple/Workspace/User/2024/Project/videoapp/build/macos/Build/Products/Debug/&#x27;;&#xA;        mainPath = mainPath.substring(0, mainPath.lastIndexOf("/"));&#xA;    &#xA;                  Directory directoryExe3 = Directory("$mainPath");&#xA;                  var dbPath = path.join(directoryExe3.path,&#xA;                      "App.framework/Resources/flutter_assets/assets/ffmpeg/ffmpegmacos");&#xA;//here in "Products/Debug/" folder desktop app will generate&#xA;&#xA;//directoryExe3 path will be, Users/apple/Workspace/User/2024/Project/videoapp/build/macos/Build/Products/Debug&#xA;&#xA;//and dbPath will be, Users/apple/Workspace/User/2024/Project/videoapp/build/macos/Build/Products/Debug/App.framework/Resources/flutter_assets/assets/ffmpeg/ffmpegmacos&#xA;&#xA;//so when app will run it can access it from this path&#xA;&#xA;//executable code, command for ffmpeg&#xA;&#xA;String transpose_str &#x2B;= "crop=" &#x2B;&#xA;              out_w.toInt().toString() &#x2B;&#xA;              ":" &#x2B;&#xA;              out_h.toInt().toString() &#x2B;&#xA;              ":" &#x2B;&#xA;              x!.toInt().toString() &#x2B;&#xA;              ":" &#x2B;&#xA;              y!.toInt().toString() &#x2B;&#xA;              ",";&#xA;          transpose_str &#x2B;= "scale=960:192";&#xA;&#xA;Future<processresult> result_ = Process.run(dbPath, [&#xA;                "-ss",&#xA;                timestamp,&#xA;                "-i",&#xA;                inputFilePath,&#xA;                "-t",&#xA;                endTime,&#xA;                "-vf",&#xA;                transpose_str,&#xA;                "-an",&#xA;                "./temp.mp4",&#xA;              ]); &#xA;</processresult>

    &#xA;

    Now when I run this in macOS desktop verison, it gives me error at Process.run that in dbPath, Unhandled Exception : ProcessException : No such file or directory.

    &#xA;

    Any help would be appreciate !

    &#xA;

    when i run this as desktop version it should get file from assets.

    &#xA;

  • Apache Tika 2.0.9 programm ffmpeg and exiftool not found ?

    6 avril 2024, par mj44

    I use an JavaFX Maven Project to use Apache Tika Version 2.9.0.&#xA;The Java Test program will be finished and all methods that I create will done right.&#xA;I have in the log file a lot of DEBUG errors and Idon't know why ?&#xA;I habe spent many hours to clear the problem.

    &#xA;

    Here's an excerpt of the logfile

    &#xA;

    2024-04-03 14:56:12 [main] DEBUG org.apache.tika.parser.external.ExternalParser - exception trying to run  ffmpeg&#xA;java.io.IOException: Cannot run program "ffmpeg": CreateProcess error=2, Das System kann die angegebene Datei nicht finden&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1140) ~[?:?]&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1074) ~[?:?]&#xA;...&#xA;2024-04-03 14:56:12 [main] DEBUG org.apache.tika.parser.external.ExternalParser - exception trying to run  exiftool&#xA;java.io.IOException: Cannot run program "exiftool": CreateProcess error=2, Das System kann die angegebene Datei nicht finden&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1140) ~[?:?]&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1074) ~[?:?]&#xA;...&#xA;&#xA;

    &#xA;

    The message says that ffmpeg and exiftool are not found.

    &#xA;

    This is my tika-config.xml

    &#xA;

    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;<properties>&#xA;    <parsers>&#xA;        <parser class="org.apache.tika.parser.DefaultParser"></parser>&#xA;        <parser class="org.apache.tika.parser.pdf.PDFParser"></parser>&#xA;        &#xA;        <parser class="org.apache.tika.parser.external.ExternalParser">&#xA;            <params>&#xA;                true&#xA;                &#xA;                "D:\Tools\ffmpeg-6.1.1\bin\ffmpeg.exe"&#xA;            </params>&#xA;        </parser>&#xA;        &#xA;        <parser class="org.apache.tika.parser.external.ExternalParser">&#xA;            <params>&#xA;                true&#xA;                &#xA;                "D:\Tools\exiftool.exe"&#xA;            </params>&#xA;        </parser>&#xA;    </parsers>&#xA;    <detector>&#xA;        <detector class="org.apache.tika.detect.DefaultDetector"></detector>&#xA;    </detector>&#xA;</properties>&#xA;

    &#xA;

    I tested the path of the programms in a console ant it worked fine ?&#xA;I don't know what I can do now ?

    &#xA;

    Thanks for Help

    &#xA;

    I have downloaded new copies of the ffmpeg and exiftool and installed them.&#xA;I tested it in a console to run and both tools work fine.&#xA;I tested the permissions, no problems with permissions&#xA;I tested that the tika-config.xml will be loaded, it loaded.

    &#xA;

  • java.io.IOException : Cannot run program "/data/user/0/com.voi.myapplication8/files/ffmpeg" : error=13, Permission denied

    1er avril 2024, par Harsha
    &#xA;

    java.io.IOException : Cannot run program&#xA;"/data/user/0/com.voi.myapplication8/files/ffmpeg" : error=13,&#xA;Permission denied

    &#xA;

    &#xA;

    I am using this dependencies&#xA;implementation 'com.writingminds:FFmpegAndroid:0.3.2'

    &#xA;

    &#xA;

    2024-03-31 21:40:31.045 15937-16762 FFmpeg
    &#xA;com.voi.myapplication8 E Exception while trying to run :&#xA;[Ljava.lang.String ;@71d4c0f&#xA;java.io.IOException : Cannot run program&#xA;"/data/user/0/com.voi.myapplication8/files/ffmpeg" : error=13,&#xA;Permission denied&#xA;at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)&#xA;at java.lang.Runtime.exec(Runtime.java:712)&#xA;at java.lang.Runtime.exec(Runtime.java:571)&#xA;at&#xA;com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)&#xA;at&#xA;com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)&#xA;at&#xA;com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)&#xA;at android.os.AsyncTask$3.call(AsyncTask.java:394)&#xA;at java.util.concurrent.FutureTask.run(FutureTask.java:264)&#xA;at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)&#xA;at&#xA;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&#xA;at&#xA;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)&#xA;at java.lang.Thread.run(Thread.java:1012)&#xA;Caused by : java.io.IOException : error=13, Permission denied&#xA;at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;at java.lang.UNIXProcess.(UNIXProcess.java:133)&#xA;at java.lang.ProcessImpl.start(ProcessImpl.java:141)&#xA;at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)&#xA;at java.lang.Runtime.exec(Runtime.java:712) &#xA;at java.lang.Runtime.exec(Runtime.java:571) &#xA;at&#xA;com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) &#xA;at&#xA;com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) &#xA;at&#xA;com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) &#xA;at android.os.AsyncTask$3.call(AsyncTask.java:394) &#xA;at java.util.concurrent.FutureTask.run(FutureTask.java:264) &#xA;at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) &#xA;at&#xA;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) &#xA;at&#xA;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) &#xA;at java.lang.Thread.run(Thread.java:1012)  2024-03-31 21:40:31.045&#xA;15937-15937 FFmpeg com.voi.myapplication8
    &#xA;E Video cropping failed :

    &#xA;

    &#xA;