Recherche avancée

Médias (91)

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (12662)

  • java.io.IOException : Cannot run program "/data/user/0/packagename/files/ffmpeg" : FFMPEG error=13, Permission denied in android Q API level 29

    11 septembre 2020, par Android198

    I am using FFMPEG since long and using internal file location for inputs its working fine if i build apk with API level 28 but in API level 29 its give error=13 permission denied. I opted out scoped storage by android:requestLegacyExternalStorage="true" in manifest though this error is coming.

    


    `java.io.IOException: Cannot run program "/data/user/0/packagename/files/ffmpeg": error=13, Permission denied&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)&#xA;        at java.lang.Runtime.exec(Runtime.java:698)&#xA;        at java.lang.Runtime.exec(Runtime.java:563)&#xA;        at e.h.a.a.n.a(:10)&#xA;        at e.h.a.a.f.b(:38)&#xA;        at e.h.a.a.f.doInBackground(:10)&#xA;        at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA;        at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA;        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)&#xA;        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA;        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA;        at java.lang.Thread.run(Thread.java:919)&#xA;     Caused by: java.io.IOException: error=13, Permission denied&#xA;        at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;        at java.lang.UNIXProcess.<init>(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:698)&#xA0;&#xA;        at java.lang.Runtime.exec(Runtime.java:563)&#xA0;&#xA;        at e.h.a.a.n.a(:10)&#xA0;&#xA;        at e.h.a.a.f.b(:38)&#xA0;&#xA;        at e.h.a.a.f.doInBackground(:10)&#xA0;&#xA;        at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA0;&#xA;        at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA0;&#xA;        at android.os.AsyncTas k$SerialExecutor$1.run(AsyncTask.java:289)&#xA0;&#xA;        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA0;&#xA;        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA0;&#xA;        at java.lang.Thread.run(Thread.java:919)&#xA0;&#xA;2020-09-09 14:37:27.079 22619-22619/E/MediaMetadataRetriever: setDataSource - FileNotFoundException`&#xA;</init>

    &#xA;

    my command is

    &#xA;

    command : [-i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically_data/93_garmi/img_0.jpg, -i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/cache/PictureCrop1599802574.jpg, -i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically_data/93_garmi/img_2.jpg, -i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically_data/93_garmi/background_video.mp4, -filter_complex, [3]split=2[color][alpha] ;[color]crop=iw/2:ih:0:0[color] ;[alpha]crop=iw/2:ih:iw/2:0[alpha] ;[color][alpha]alphamerge[ovrly] ;[0]scale=540:960,setsar=1[0_scalled] ;[1]scale=540:960,setsar=1[1_scalled] ;[2]scale=540:960,setsar=1[2_scalled] ;[0_scalled]zoompan=z='if(lte(zoom,-1.0),1.2,min(zoom+0.0006,1.2))':d=2510.41:s=540x960[v0] ;[1_scalled]zoompan=z='if(lte(zoom,1.0),1.2,max(1.001,zoom-0.0008))':d=2510.65:s=540x960[v1] ;[2_scalled]zoompan=z='if(lte(zoom,-1.0),1.2,min(zoom+0.0008,1.2))':d=25*9.94:s=540x960[v2] ;[v0][v1][v2]concat=n=3:v=1:a=0,format=yuv420p[concatenated_video] ;[concatenated_video][ovrly]overlay=0:0, -t, 31, -strict, -2, -c:a, copy, -flags, +global_header, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically/Lyrically_1599802581317.mp4]

    &#xA;

  • Python convert mp3 to mp4 with static image

    15 octobre 2020, par αԋɱҽԃ αмєяιcαη

    I do have x file which contain a list of mp3 files where i would like to convert each mp3 file to mp4 file with a static .png photo.

    &#xA;

    Seems the only way here is to use ffmpeg but idk how to achieve it.

    &#xA;

    i made the script to take an input of mp3 folder and one .png photo`.

    &#xA;

    then it's will create new folder x-converted where i would like to convert each mp3 to mp4 with the static png with same name such as file1.mp3 to became file1.mp4

    &#xA;

    here's my code :

    &#xA;

    import os&#xA;import sys&#xA;from pathlib import Path&#xA;import shutil&#xA;&#xA;if len(sys.argv) != 3 or not sys.argv[2].endswith("png"):&#xA;    print("Make sure to provide two arguments only\nSecond arugment should be .png")&#xA;    exit()&#xA;&#xA;&#xA;def CheckFile():&#xA;    try:&#xA;        files = []&#xA;        for path in os.listdir(sys.argv[1]):&#xA;            full_path = os.path.join(sys.argv[1], path)&#xA;            if os.path.isfile(full_path):&#xA;                files.append(full_path)&#xA;        mp3 = [x for x in files if x.endswith(".mp3")]&#xA;        if len(mp3) >= 1:&#xA;            return mp3, sys.argv[2], sys.argv[1]&#xA;        else:&#xA;            print(&#xA;                "Make Sure That You&#x27;ve at least 1 Mp3 file")&#xA;            exit()&#xA;    except FileNotFoundError:&#xA;        print("Sorry, This File Is Not Exist!")&#xA;        exit()&#xA;&#xA;&#xA;def Convert():&#xA;    mp3, jpg, name = CheckFile()&#xA;    name = f"{Path(name).name}-converted"&#xA;    shutil.rmtree(name, ignore_errors=True)&#xA;    os.mkdir(name)&#xA;    os.chdir(name)&#xA;    # from here i don&#x27;t know how to use `ffmpeg`&#xA;&#xA;&#xA;Convert()&#xA;

    &#xA;

  • How to run a bat file when clicking a button in an electron + react application ?

    12 novembre 2020, par Артем

    I am using Windows 7
    &#xA;I want to write a windows app using electron + react.
    &#xA;The essence of the application is to run bat files.
    &#xA;Bat files will execute their script.
    &#xA;In this case, I have already written baht files, they work with the FFMPEG.
    &#xA;I like FFMPEG and I would like to make it easy to use on Windows with such an application.
    &#xA;At this stage, I have two folders Your_files and Result, next to these folders are ready-made baht files and ffmpeg.exe.

    &#xA;

      &#xA;
    1. In the folder Your_files I put the files to convert.
    2. &#xA;

    3. I click on the desired baht file, it converts.
    4. &#xA;

    5. I take the finished files from the Result folder.
    6. &#xA;

    &#xA;

    I would like to write a nice application now.
    &#xA;There will be one window with buttons in the CMD style - minimalism. On the buttons, the labels are similar (mp4 - mkv) and others.
    &#xA;I also plan to place two folders Your_files and Result next to the application.
    &#xA;The principle is the same, only here is a beautiful visual interface with buttons for the place of many baht files.
    &#xA;It will be easier to visually choose what you need.
    &#xA;The crux of the question : How to launch a baht file when you click on a button in the application ?
    Perhaps you have some ideas on how to implement this even better .. I welcome your suggestions with a detailed description.
    &#xA;------------------------
    &#xA;P.S. I originally planned the following... But I decided to abandon this implementation. ))
    &#xA;I recorded a cycle in a baht file.
    &#xA;The cycle was launched in the bat file mshta.exe with HTML layout (visual interface). lol
    &#xA;Received the value of a variable, which he entered in the visual interface of the mshta.exe window.
    &#xA;The variable returned to the loop and the baht file was executed.
    &#xA;But I don't think this is the best approach. Use a similar hybrid.
    &#xA;Take a look at this for fun.

    &#xA;

    &#xA;&#xA;&#xA;&#xA;&#xA;&#xA;    &#xA;    &#xA;    &#xA;    &#xA;    <code class="echappe-js">&lt;script type=&quot;text/javascript&quot;&gt;&amp;#xA;        function myFunction() {&amp;#xA;            var copyText = document.getElementById(&quot;myInput&quot;);&amp;#xA;            copyText.select();&amp;#xA;            document.execCommand(&quot;copy&quot;);&amp;#xA;        }&amp;#xA;    &lt;/script&gt;&#xA;&#xA;&#xA;&#xA;    &lt;script language=&amp;#x27;javascript&amp;#x27;&gt;&amp;#xA;        window.resizeTo(800, 300);&amp;#xA;&amp;#xA;        function entperPressed(e) {&amp;#xA;            if (e.keyCode == 13) {&amp;#xA;                pipePass();&amp;#xA;            }&amp;#xA;        }&amp;#xA;&amp;#xA;        function pipePass() {&amp;#xA;            var pass = document.getElementById(&amp;#x27;pass&amp;#x27;).value;&amp;#xA;            var fso = new ActiveXObject(&amp;#x27;Scripting.FileSystemObject&amp;#x27;).GetStandardStream(1);&amp;#xA;            close(fso.Write(pass));&amp;#xA;&amp;#xA;        }&amp;#xA;    &lt;/script&gt;&#xA;    

    Enter time of frame. Введите время кадра

    &#xA;

    hh:mm:ss.mss – 00:00:00.000

    &#xA;

    (colons can be omitted as well as milliseconds)

    &#xA;

    (двоеточия при вводе можно опустить как и миллисекунды)

    &#xA;

    &#xA; &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA; &#xA;

    &#xA;&#xA;&#xA;&#xA;

    &#xA;

    Photo

    &#xA;