Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (86)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (12344)

  • Learning Shell - creating a script with parameters that runs two separate cli apps

    16 mai 2013, par GuilhermeNagatomo

    I want to learn shell script, so I'm trying to download a youtube video using youtube-dl then convert it to mp3 using ffmpeg.

    I do it manually running youtube-dl http://youtube.com/watch?v=...
    then
    ffmpeg -i downloadedFile -ab 256000 -ar 44100 audioFile.mp3.

    I know that I need to pass two arguments to my script, one for the video url and another for the audio file to keep things as simple as possible, but I don't know how to start. Maybe grep the video id in the url and using it to know which file to use to convert into mp3 ? (since youtube-dl saves the video named by it's id)

    Can someone recommend me an article or documentation that can help me ?

  • Error issuing complex shell command in python via subprocess

    4 juillet 2018, par user16171

    I’ve converted about 100 video tapes and now have 100 folders full of .dv files (each folder’s name is a date). In each folder, I want to combine all of the .dv files into one x265 mp4. I have figured out the ffmpeg command to do this, and I’ve written a simple Python script to traverse the folder hierarchy and print out the ffmpeg command to do each folder’s conversion. I’d like to set it up to just run each folder in series - it will take about a week to do the entire conversion, leaving me with about 5GB of video to use/post, etc. vs the 1.5TB of raw .dv files.

    The shell command looks like this :

    ffmpeg -f concat -i <(for f in FULL_PATH_TO_FILES/*.dv; do echo "file '$f'"; done) \
     -c:v libx265 -crf 28 -c:a aac -b:a 128k \
     -strict -2 FULL_PATH_TO_FILES/FOLDERNAME.mp4

    I can run that as a shell command, and it works fine. I could use the python script to generate the 100 commands and just copy and paste them into my shell one at a time. But I’d rather just have them run in series.

    I’ve tried various incarnations of os.system and subprocess.call or subprocess.Popen, and they all error.

    I build up the command and issue subprocess.call(command), which gives this error :

    "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init
    errread, errwrite)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
    OSError : [Errno 2] No such file or directory

    I’ve also tried building up the command, as described in many of the other threads I’ve read, but it does not work, and I assume it’s because of the for-loop I have in the shell command.

    So, what’s the best way to do this ? Obviously, a shell-jockey could just tell me how to do this via the shell, but I’m more comfortable using Python to traverse the directories and build up the ffmpeg command.

    For what it’s worth, here is the whole script :

    import os
    import subprocess
    t1 = "ffmpeg -f concat -i <(for f in "
    t2 = "/*.dv; do echo \"file '$f'\"; done) -c:v libx265 -crf 28 -c:a aac -b:a 128k -strict -2 "
    t3 = ".mp4"
    rootDir = ROOTDIR
    for dirName, subdirList, fileList in os.walk(rootDir):
       S = dirName.split('/')    
       if S[-1] == "Media":
           moviename = S[-2].split(".")[0] # e.g. "19991128_Thanksgiving"
           command = t1 + dirName + t2 + dirName + "/" + moviename + t3
           if sum([".mp4" in fname for fname in fileList]) == 0: # don't bother if there is already a mp4 file in the folder
               cmd_list = [t1,dirName,t2,dirName,"/",moviename,t3]
               print command
               print
               print
               subprocess.call(command)
  • shell scripting no such file or directory

    15 mars 2018, par Toto Tata

    I wrote a shell script that calls the ffmpeg tool but when I run it, it says No such file or directory yet it does !

    Here is my script :

    #!/bin/bash

    MAIN_DIR="/media/sf_data/pipeline"

    FFMPEG_DIR="/media/sf_data/livraison_transcripts/ffmpeg-git-20180208-64bit-static"

    for file in MAIN_DIR/audio_mp3/*.mp3;
    do
       cp -p file FFMPEG_DIR;
    done

    for file in FFMPEG_DIR/*.mp3;
    do
       ./ffmpeg -i ${file%.mp3}.ogg
       sox $file -t raw --channels=1 --bits=16 --rate=16000 --encoding=signed-
    integer --endian=little ${file%.ogg}.raw;
    done

    for file in FFMPEG_DIR/*.raw;
    do
       cp -p file MAIN_DIR/pipeline/audio_raw/;
    done

    and here is the debug response :

    cp: cannot stat ‘file’: No such file or directory
    ./essai.sh: line 14: ./ffmpeg: No such file or directory
    sox FAIL formats: can't open input file `FFMPEG_DIR/*.mp3': No such file or
    directory
    cp: cannot stat ‘file’: No such file or directory

    FYI I’m running CentOS7 on VirtualBox

    Thank you