Recherche avancée

Médias (91)

Autres articles (75)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (8774)

  • How to run a python code via Django templates ?

    18 novembre 2018, par Iskender Berdiev

    I want to execute code below when the is submitted (project on Django) :

    from os import system, listdir, remove
    link = 'https://www.youtube.com/watch?v=ME9yO1KEVoo'

    def download(): ## Downloading a video from YouTube using youtube-dl
       system("youtube-dl -o download {}".format(link))

    def convert():  ## Converting downloaded video to mp3 format via ffmpeg.exe(same directory)
       listOfFiles = listdir('.')
       for i in listOfFiles:
           if i.startswith("download"):
               name = i
               system("ffmpeg -i {} download.mp3".format(name))

    def main():
       download()
       convert()

    main()

    I have tried to put this code into views.py :

    class download(TemplateView):
       def main(request):
           if request.method == 'POST':
               link = 'https://www.youtube.com/watch?v=ME9yO1KEVoo'
               system("youtube-dl -o download {}".format(link))
               listOfFiles = listdir('.')
               for i in listOfFiles:
                   if i.startswith("download"):
                       name = i
                       system("ffmpeg -i {} download.mp3".format(name))
           return redirect ('loader/wait.html')

    urls.py :

    path('wait/', views.download.as_view(), name='wait')

    and the html form which is submitted to run views.download.as_view() :

    <form action="{% url " method="POST">{% csrf_token %}
    <input type="submit" value="Yes" />
    </form>
  • FFMpeg Commands definition in library source code

    25 janvier 2013, par SKC

    I tried running the ffmpeg commands from Android activity using an emulator in Windows OS, but i get errors.
    I tried keeping both my resource files in /mnt/sdcard as well the application package within /data/data, but none of the options worked out for running the ffmpeg commands.

    These are the following approach i had taken while running the command through an android activity.
    (Command to convert a series if images into a video)
    Approach 1 :

       String[] cmd =new String[4];
       cmd[0]="/data/data/com.example.commandlineffmpeg/files/ffmpeg";
       cmd[1]="-i";
       cmd[2]="/data/data/com.example.commandlineffmpeg/images/bpc_%03d.png";
       cmd[3]="/data/data/com.example.commandlineffmpeg/out/out.avi";

       Process p = Runtime.getRuntime().exec(cmd, null, new File("/data/data/com.example.ffmpegnew/out"));

    I have solved this, basically there was system permission issues and hence we were not allowed to access the system properties required to run the FFMpeg commands.
    Thus we need to sign the apps with the system certificates and hence we can use FFMpeg commands directly from any android activity.

  • Build cpp code to run FFMPEG command in Anroid after generating .so file

    22 octobre 2020, par Nikhil Solanki

    I built FFMPEG so files(libavcode.so, libavfilter.so, libavformat.so,libavutil.so, libswscale.so) by following this tutorial. This tutorial is nice is helpful to build your own .so files as per your library requirement.

    &#xA;

    Why I am building own one ?&#xA;I know that there is some already available libraries in github like bravobit's, tanersener's and also microshow's. These all have certain limitations like some of this will not work for target SDK 29 & 30 and tanersener's lib is good but there is problems with -filter_complex command's output and micrshow's lib is crashing in android 10 and 11 beta ! So, all have specific problems. So, I am considering to create own one.

    &#xA;

    What I have and already done&#xA;After following tutorial(mention in above) I successfully generated .so files and put it into my App.

    &#xA;

    Here is the screenshot of which I already done .so files :&#xA;Put all files in cpp dir

    &#xA;

    So, you can see that I put all files into cpp folder. As per version I only need ARMV7 and AMR64.

    &#xA;

    What is the problem ?

    &#xA;

    Problem is that I have no idea how to create .cpp file to execute command and what is it actually and how to use it ? I also tried some other libraries .c code but it didn't work for me. So, what is the code of cpp which can execute command ? Is there any other way of this ?

    &#xA;

    Note of this requirement&#xA;We can't run any executable file directly from directory in Android because its restricted in target Android 10 and 11. So, we compulsory need to build native code and call class or it's function.

    &#xA;