Recherche avancée

Médias (91)

Autres articles (112)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (7475)

  • FFMPEG 'Invalid data found when processing input' while scaling an Image

    22 février 2020, par priya verma

    I just installed FFMPEG on a server and I am testing it to see if it works. I am new to this, so I don’t know if I’m doing it correctly. I want to scale and compress an image. I am doing it by following php code -

    exec("ffmpeg -i $inputImg -vf \"scale='-2':'min(480, ih)\" $outputImg 2>&1", $output, $returnStatus);
       print_r($output);
       echo '<br />'.$returnStatus;

    The thing is it works for some images and for images it gives an error. For ex. I have tried to compress an image and it returns with error -

    ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
    [1] => built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
    [2] => configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
    --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
    --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
    -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
    -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb
    --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3
    --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa
    --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfdk-aac
    --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm
    --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus
    --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex
    --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264
    --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter
    --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping
    --shlibdir=/usr/lib64 --enable-runtime-cpudetect
    [3] => libavutil 54. 31.100 / 54. 31.100
    [4] => libavcodec 56. 60.100 / 56. 60.100
    [5] => libavformat 56. 40.101 / 56. 40.101
    [6] => libavdevice 56. 4.100 / 56. 4.100
    [7] => libavfilter 5. 40.101 / 5. 40.101
    [8] => libavresample 2. 1. 0 / 2. 1. 0
    [9] => libswscale 3. 1.101 / 3. 1.101
    [10] => libswresample 1. 2.101 / 1. 2.101
    [11] => libpostproc 53. 3.100 / 53. 3.100
    [12] => /tmp/phpjLYmRd: Invalid data found when processing input

    Am I doing it incorrectly or what ? Because it does work with some images and for some it doesn’t ! Also, is this the correct way to scale and compress an Image using FFMPEG, would love to get some insights.

  • libx264 not found when compiling 64 bit ffmpg

    11 juillet 2017, par Tamilraj
    export PLATFORM=$NDK_BASE/platforms/android-21/arch-arm64
    export PREBUILT=$NDK_BASE/toolchains/aarch64-linux-android-4.9/prebuilt
    export PREFIX=/android-lib/arm64

    ./configure --cross-prefix=$PREBUILT/windows-x86_64/bin/aarch64-linux-android- \
    --sysroot=$PLATFORM \
    --host=aarch64-linux \
    --enable-pic \
    --enable-static \
    --extra-cflags="-fPIE -pie" \
    --extra-ldflags="-fPIE -pie" \
    --disable-cli \
    --disable-asm \
    --prefix=$X264_OUT_PATH/arm64 \

    This is my setup_x264_arm64.sh and when i compile it does not show any error and compiled successfully.But when compile

     export PLATFORM=$NDK_BASE/platforms/android-21/arch-arm64
    export PREBUILT=$NDK_BASE/toolchains/aarch64-linux-android-4.9/prebuilt
    export PREFIX=../android-lib/arm64

    echo $X264_OUT_PATH/arm64/include
    sh configure --prefix=$FFMPEG_OUT_PATH/arm64 \
    $DEBUG_FLAG \
    --arch=arm64 \
    --cpu=cortex-a53 \
    --target-os=linux \
    --enable-runtime-cpudetect \
    --enable-pic \
    --enable-shared \
    --enable-nonfree \
    --enable-cross-compile \
    --enable-static \
    --cross-prefix=$PREBUILT/windows-x86_64/bin/aarch64-linux-android- \
    --sysroot=$PLATFORM \
    --extra-cflags="-I$X264_OUT_PATH/arm64/include -Wno-deprecated-declarations -Wno-format-extra-args -Wno-pointer-sign -Wno-implicit-function-declaration -Wno-parentheses  -Wno-format-extra-args -Wno-unused-result -Wno-traditional -fPIE -pie" \
    --extra-ldflags="-L$X264_OUT_PATH/arm64/lib" \
    \
    --enable-version3 \
    --enable-gpl \
    --disable-opencl \
    \
    --disable-doc \
    --enable-yasm \
    \
    --enable-decoders \
    --enable-encoders \
    --enable-muxers \
    --enable-demuxers \
    --enable-parsers \
    --enable-protocols \
    --enable-filters \
    --enable-avresample \
    --disable-libfreetype \
    \
    --disable-indevs \
    --disable-indev=lavfi \
    --disable-outdevs \
    \
    --enable-hwaccels \
    \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-network \
    \
    --enable-thumb \
    --enable-encoder=libx264 \
    --enable-libx264 \
    --disable-muxer=md5


    popd; popd

    this one i got libx264 not found error .Can anyone pls help me .Thanks in advance

  • aacenc_pred : rework the way prediction is done

    29 août 2015, par Rostislav Pehlivanov
    aacenc_pred : rework the way prediction is done
    

    This commit completely alters the algorithm of prediction.
    The original commit which introduced prediction was completely
    incorrect to even remotely care about what the actual coefficients
    contain or whether any options were enabled. Not my actual fault.

    This commit treats prediction the way the decoder does and expects
    to do : like lossy encryption. Everything related to prediction now
    happens at the very end but just before quantization and encoding
    of coefficients. On the decoder side, prediction happens before
    anything has had a chance to even access the coefficients.

    Also the original implementation had problems because it actually
    touched the band_type of special bands which already had their
    scalefactor indices marked and it’s a wonder the asserion wasn’t
    triggered when transmitting those.

    Overall, this now drastically increases audio quality and you should
    think about enabling it if you don’t plan on playing anything encoded
    on really old low power ultra-embedded devices since they might not
    support decoding of prediction or AAC-Main. Though the specifications
    were written ages ago and as times change so do the FLOPS.

    Signed-off-by : Rostislav Pehlivanov <atomnuker@gmail.com>

    • [DH] libavcodec/aac.h
    • [DH] libavcodec/aaccoder.c
    • [DH] libavcodec/aacenc.c
    • [DH] libavcodec/aacenc.h
    • [DH] libavcodec/aacenc_pred.c
    • [DH] libavcodec/aacenc_pred.h