Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (56)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (9439)

  • 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