Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (44)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (3428)

  • FFMPEG - can you have comments in script files ?

    23 juillet 2024, par rossmcm

    Because of batch's poor ability to handle multi-line strings, I'm using FFMPEG script files more and more for filter_complex arguments. I'm wondering if there is any way to include comments in these files. They seem to be quite tolerant of white space and line breaks. I've tried :

    


    #
#   comment
#


    


    and

    


    ;
;   comment
;


    


    and

    


    `
`   comment
`


    


    and

    


    '
'   comment
'


    


    with no success. It doesn't look as if comments are officially supported, but I'm wondering of there is some syntax quirk that allows them ?

    


    *** CLARIFICATION ***

    


    I'm not talking about comments in batch files here, but comments in filter_complex_script files. FFMPEG supports specifying the filter_complex argument string in a separate file. So instead of :

    


    ffmpeg -i "input.mp4" -filter_complex "[0:v] crop=w=100:h=100:x=12:y=34 " "output.mp4"


    


    you can specify :

    


    ffmpeg -i "input.mp4" -filter_complex_script "crop.txt" "output.mp4"


    


    where crop.txt contains

    


    [0:v] crop=w=100:h=100:x=12:y=34


    


    This is really handy when the filter_complex string gets more complicated (I routinely deal with arguments 10,000 characters in length).

    


  • Converting .mp3 to wav in python script

    25 décembre 2016, par DhruvArora

    I am trying to create spectograms of audio files for a speech recognition project. For the same, I am using a command line tool called ffmpeg to convert mp3 to wav. I am using the os.system() command in my python script but it does not work. The same command works perfectly fine on the terminal. What can be the possible issue ?

    PS : I have also tried the subprocess package and ffmpeg is in my $PATH.

    Traceback (most recent call last):
    File "/Users/dhruvarora/Documents/test.py", line 7, in <module>
      subprocess.call(['ffmpeg','-i','./Users/dhruvarora/Documents/0a0p10uya0h.mp3','tmpsue1234.wav'])
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 523, in call
      return Popen(*popenargs, **kwargs).wait()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in __init__
      errread, errwrite)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1343, in _execute_child
      raise child_exception
    OSError: [Errno 2] No such file or directory
    </module>
  • Bash script not working with ffmpeg + images

    30 mars 2017, par user1816546

    I created a bash file with the name "run.sh" with the following instructions :

    ffmpeg -i texture/texture%03d.bmp -vf "scale='min(1920,iw)':min'(1080,ih)':force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" pad_texture/pad_texture%03d.bmp
    ffmpeg -i depth/depth%03d.bmp -vf "scale='min(1920,iw)':min'(1080,ih)':force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" ../pad_depth/pad_depth%03d.bmp

    However, when I run my bash file I get the following error :

    Input #0, image2, from 'texture/texture%03d.bmp':
     Duration: 00:00:20.00, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: bmp, bgr24, 1024x768, 25 fps, 25 tbr, 25 tbn, 25 tbc
    [NULL @ 0x1defec0] Unable to find a suitable output format for 'pad_texture/pad_'exture%03d.bmp
    : Invalid argumentxture%03d.bmp

    I cannot understand why when I copy and paste the commands line by line into the command prompt, they are accepted, but in a bash script they are not. Any feedback is greatly appreciated !