Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (64)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (9926)

  • Run avconv in python and direct stdout/stderr to a file

    19 février 2016, par tdk

    I wish to run Avconv commands and record the logs in a file. In the Ubuntu terminal this can be accomplished using &>> operator after the actual command enclosed in parenthesis i.e.

    (avconv -i SRCFILE -ss 00:15:00 -t 00:30:00 TARGETFILE -threads auto) &>> LOGFILE

    The above command works perfectly when run in the terminal.

    Now I have a number of such commands to run, and thought running them through Python would be good.

    1. I tried using the os.system(command_string) way
      , which when run does not pack the Avconv output to the LOGFILE, and the avconv command seems to execute after the Python script is done - evidenced by some string outputs I put in for debugging. I’m also getting some permission errors. Here is how the first portion of output looks like

      AVCONV COMMAND EXECUTED
      sh: 1: : Permission denied
      sh: 1: : Permission denied
      sh: 1:


      PROGRAM DONE
      : Permission denied
      $ avconv version 11.2-6:11.2-1, Copyright (c) 2000-2014 the Libav developers
       built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
      Trailing options were found on the commandline.
      Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ...
    2. I also tried using the subprocess.call() method for which I get the following error (NOTE : all files exist)

      Traceback (most recent call last):
       File "/home/usr/cnv.py", line 61, in <module>
         main()
       File "/home/usr/cnv.py", line 46, in main
         subprocess.call(newcmd)
       File "/usr/lib/python2.7/subprocess.py", line 522, in call
         return Popen(*popenargs, **kwargs).wait()
       File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
         errread, errwrite)
       File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
         raise child_exception
      OSError: [Errno 2] No such file or directory
      </module>

    I wish to run multiple (think 50+) commands of Avconv similar to the version shown at the top, and have the logs saved in a file instead of in stdout. How do I do this - in Python or otherwise ?

  • How to make ffmeg automatically overwrite a file with the same name in python ?

    27 janvier 2021, par tkinterpy

    I have a script that downloads audio and video from a Youtube link,&#xA;Then ffmpeg merges them together, but if I want to merge again, it will output&#xA;a file with the same name, and it will ask me in the terminal&#xA;enter image description here

    &#xA;

    how can I make it so it automatically overwrites ?

    &#xA;

  • Issues with ffmpeg2theora- Please port your application to avcodec_decode_audio4()

    8 août 2016, par sudheerpaturi

    I am using the latest versions of ffmpeg and ffmpeg2theora for windows. I try to convert an mp4 file(with audio) to an ogv file using this command on terminal

    ffmpeg2theora.exe -v 10 input_file_name.mp4

    Then its giving out this error.
    Image for the Output

    I am totally new to using this tool. From my investigation I found that this is because of the new versions. This problem doesn’t exist with the old versions.

    Is there any way to get rid of this issue ?

    Thanks in advance.