Recherche avancée

Médias (91)

Autres articles (62)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (4644)

  • 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.

  • 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 error code 254

    17 septembre 2013, par Akerus

    I try to get file informations via ffprobe in a java-application.

    I am using the following command :

    /usr/bin/ffprobe -v quiet -print_format json -show_format -show_streams TESTVIDEOPATH

    Running that command in bash, it works like a charm : It returns the JSON-String and error code is "0".
    Running that command in Java results in error code "254" and result is :

    \n\n

    When I modify the command, so that ffprobe accepts a stream as input :

    /usr/bin/ffprobe -v quiet -i - -print_format json -show_format -show_streams

    it works in both bash and Java.

    In Java the following is used :

    ProcessBuilder processBuilder = new ProcessBuilder(command.split(" "));
    this.process = processBuilder.start();
    this.process.waitFor();
    int exitCode = this.process.exitValue();
    this.outputOfProcess = this.process.getInputStream();

    Can anyone tell me what the error code 254 means ? I couldn't find anything about it.

    Edit : ffmpeg version 0.10.7-6:0.10.7-0jon1 quantal is used