Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (72)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (10116)

  • Converting .aif to mp3 using pydub

    22 mars 2019, par Nick Wetaski

    I want to convert a bunch of music files located on my desktop (however trying to convert just one of them is the first step) from .aif to .mp3 however I am receiving an error code 1 from ffmpeg.

    I have ffmpeg and pydub installed

    Code :

    from os import path
    from pydub import AudioSegment
    from pydub.utils import which

    AudioSegment.converter = which("ffmpeg")

    aif_audio = AudioSegment.from_file("C:/Users/Nick/Desktop/scratch/landonmusic1.aif", format="aif")

    aif_audio.export("C:/Users/Nick/Desktop/scratch/landonmusic1.mp3", format="mp3")

    I am receiving the following feedback from Python Terminal :

    S C:\Users\Nick\OneDrive\ProgrammingProjects> & C:/Users/Nick/AppData/Local/Programs/Python/Python37-32/python.exe c:/Users/Nick/OneDrive/ProgrammingProjects/Classes/MusicFileConverter.py
    Traceback (most recent call last):
     File "c:/Users/Nick/OneDrive/ProgrammingProjects/Classes/MusicFileConverter.py", line 10, in <module>
       aif_audio = AudioSegment.from_file("C:/Users/Nick/Desktop/scratch/landonmusic1.aif", format="aif")
     File "C:\Users\Nick\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\audio_segment.py", line 704, in from_file
       p.returncode, p_err))
    pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1
    </module>

    Output from ffmpeg/avlib :

    b"ffmpeg version N-93431-g6dc1da416e Copyright (c) 2000-2019 the FFmpeg developers\r\n  built with gcc 8.2.1 (GCC) 20190212\r\n  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt\r\n  libavutil      56. 26.100 / 56. 26.100\r\n  libavcodec     58. 47.105 / 58. 47.105\r\n  libavformat    58. 26.101 / 58. 26.101\r\n  libavdevice    58.  7.100 / 58.  7.100\r\n  libavfilter     7. 48.100 /  7. 48.100\r\n  libswscale      5.  4.100 /  5.  4.100\r\n  libswresample   3.  4.100 /  3.  4.100\r\n  libpostproc    55.  4.100 / 55.  4.100\r\nUnknown input format: 'aif'\r\n"
  • FFmpeg commands work for root only(centos 6.10)

    20 mars 2019, par Prashant Hanamghar

    I have dedicated server. I have installed FFmpeg on my root. All commands related to FFmpeg works if I logged in as root but no command is working if I logged in as user. I have tried adding one user to sudoers also. Also I want to use FFmpeg commands in PHP shell_exec() or exec(). Can someone tell me the solution. Thanks in advance.

    user command :

    $ ffmpeg

    output :

    -bash: ffmpeg: command not found

    root command :

    $ ffmpeg

    output

    ffmpeg version N-93394-g14eea7c Copyright (c) 2000-2019 the FFmpeg
    developers
    built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-23)
    configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --
    extra-cflags=-I/root/ffmpeg_build/include -
    -extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread --extra-
    libs=-lm --bindir=/root/bin --enable-gpl --enab
    le-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --
    enable-libvpx --enable-libx264 --enable-libx
    265 --enable-nonfree
    libavutil      56. 26.100 / 56. 26.100
    libavcodec     58. 47.103 / 58. 47.103
    libavformat    58. 26.101 / 58. 26.101
    libavdevice    58.  6.101 / 58.  6.101
    libavfilter     7. 48.100 /  7. 48.100
    libswscale      5.  4.100 /  5.  4.100
    libswresample   3.  4.100 /  3.  4.100
    libpostproc    55.  4.100 / 55.  4.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
    outfile}...

    Use -h to get full help or, even better, run 'man ffmpeg'
  • ffmpeg convert video in a path with different name

    16 mars 2019, par tour travel

    Using ffmpeg in php with shell_exec and want to convert video in a path that different with where script is run. php script is in /s/m/video.php :

    &lt;?php
    if(isset($_GET["videoTools"])){

       $user = $_GET["user"];
       $uid = $_GET["uid"];
       $vid = $_GET["vid"];

       $uploaddir = '/seller/uploads/'.$user.'/'.$uid.'/';

       echo shell_exec('ffmpeg -i '.$uploaddir.$vid.'-vid.mp4 -i /s/m/logo.png \
       -filter_complex "hflip[flipped];[flipped]overlay=x=20:y=20" \
       -s 480x320 -acodec aac -strict -2 -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 \
       -strict -2 '.$uploaddir.$vid.'-vid-resized.mp4');
    }
    ?>

    And this script called by ajax in /s/a/index.php :

       $.ajax({
           url: "/s/m/video.php?videoTools",
           type: "GET",
           data: {vid: json[0], uid: json[1], user: json[2]},
           success: function(data){
            // success
           }
       });

    And for example I want to convert video in this path /s/uploads/91/768/2019-2-2_668-vid.mp4

    Problems :

    This not working, because look like ffmpeg not find video and logo in a path / Also look like ffmpeg not accepet video with - or _ or etc.

    No related error log, but video not generated and script not working. Any idea ?

    [Sat Mar 16 04:09:26.934114 2019] [php7:warn] [pid 25486] [client
    85.133.232.199:34756] PHP Warning : Unknown : open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php72) is not within the
    allowed path(s) :
    (/home/pedram/ :/tmp :/var/tmp :/usr/local/lib/php/ :/usr/local/php72/lib/php/)
    in Unknown on line 0