Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (78)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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 (7395)

  • fate : disable globbing when calling shell functions.

    2 janvier 2013, par Nicolas George

    fate : disable globbing when calling shell functions.

  • Python Popen shell=False causes OSError : [Errno 2] No such file or directory FFREPORT

    19 janvier 2015, par speedyrazor

    I am adding a FFREPORT command on the front of an already working ffmpeg command in python 2.7 on OSX, this is to redirect the report log file, but am getting an error and can’t figure out how to fix it.

    Here is the command :

    command = 'FFREPORT="level=48:file=/Users/myself/Desktop/TESTFFMPEGOUTPUT.txt" /Users/myself/Desktop/Python/ffmpeg/ffmpeg -i /Volumes/GRAID/TestInput.mov /Volumes/GRAID/TestOutput.mov'

    self.process1 = Popen(shlex.split(command), shell=False)

    This is giving me the error :

       raise child_exception
       OSError: [Errno 2] No such file or directory

    UPDATE :

    I have now changed it to incorperate the answer below, but am getting another issue. I need the path of the logfile as a variable, so am trying :

    ffreportCommand = 'FFREPORT=level=48:file=' + self.logFilePath
    self.process1 = Popen(shlex.split(command), shell=False, env=dict(ffreportCommand))

    But am getting the below error :

    self.process1 = Popen(shlex.split(command), shell=False, env=dict(ffreportCommand))
    ValueError: dictionary update sequence element #0 has length 1; 2 is required

    UPDATE :
    Fixed with :

    ffreportCommand = "level=48:file=" + self.logFilePath
    self.process1 = Popen(shlex.split(command), shell=False, env=dict(FFREPORT='%s' % ffreportCommand))
  • Python - Popen(shlex.split(command), shell=False) - not working with ffmpeg

    1er octobre 2014, par speedyrazor

    I am using Popen(shlex.split(command) to run an ffmpeg command which saves out wav files from a quicktime mov file and also save an ffmpeg log file at the same time. if I use this :

    command = './ffmpeg/ffmpeg -i /Users/me/Documents/MOVS/source.mov -map 0:1 -acodec pcm_s16le -y /Users/me/Documents/MOVS/source_01.wav'

    p = Popen(shlex.split(command), shell=False)

    Then the command completes correctly, but if I add the line which saves out a logfile then it no longer works, so if I use :

    command = './ffmpeg/ffmpeg -i /Users/me/Documents/MOVS/source.mov -map 0:1 -acodec pcm_s16le -y /Users/me/Documents/MOVS/source_01.wav 2> /Users/me/Documents/MOVS/lofFile.txt'

    p = Popen(shlex.split(command), shell=False)

    Then it no longer works. Using either command in the command line, without python, works fine. If I just use :

    p = Popen(command, shell=True)

    Then all works well, but I need to use the shell=False for other reasons.

    I just can’t understand why it breaks by adding the ’correct’ end line of 2> /Users/me/Documents/MOVS/lofFile.txt