Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (46)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (2593)

  • Laravel ffmpeg failed to execute command

    4 septembre 2022, par John smith

    I'm using protonemedia/laravel-ffmpeg package everything works fine on localhost but on the live server, there is an error message shown.

    


    ProtoneMedia\ LaravelFFMpeg\ Exporters\ EncodingException

ffmpeg failed to execute command '/usr/bin/ffmpeg' '-y' '-threads' '12' '-i' '/www/wwwroot/hamza/storage/app/upload/videos/uofH50IWXt3Doqacxkd2tATboUT5gLfVGaAWyvsS.mp4' '-map' '0' '-vcodec' 'libx264' '-b:v' '1000k' '-sc_threshold' '0' '-g' '48' '-hls_playlist_type' 'vod' '-hls_time' '10' '-hls_segment_filename' '/www/wwwroot/hamza/storage/app/streamable_videos/21_0_1000_%05d.ts' '-master_pl_name' 'temporary_segment_playlist_0.m3u8' '-acodec' 'aac' '-b:a' '128k' '/www/wwwroot/hamza/storage/app/streamable_videos/21_0_1000.m3u8': Error Output: ffmpeg version 3.4.11 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/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 ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 Unrecognized option 'master_pl_name'. Error splitting the argument list: Option not found


    


    I'm using a job to do conversation

    


    ConvertVideoForStreaming.php Job :

    


    <?php

namespace App\Jobs;
set_time_limit(60000);

use FFMpeg;
use Carbon\Carbon;
use App\Models\Video;
use FFMpeg\Format\Video\X264;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Storage;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;

class ConvertVideoForStreaming implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    public $video;

    public function __construct(Video $video)
    {
        $this->video = $video;
    }

    public function handle()
    {
        // create some video formats...
        $lowBitrateFormat  = (new X264)->setKiloBitrate(500);
        $highBitrateFormat = (new X264)->setKiloBitrate(3000);

        // open the uploaded video from the right disk...
        FFMpeg::fromDisk($this->video->disk)
            ->open($this->video->path)

            // call the 'exportForHLS' method and specify the disk to which we want to export...
            ->exportForHLS()
            ->withRotatingEncryptionKey(function ($filename, $contents) {
                Storage::disk('streamable_keys')->put($filename, $contents);
            })
            // we'll add different formats so the stream will play smoothly
            // with all kinds of internet connections...
            ->addFormat($lowBitrateFormat)
            ->addFormat($highBitrateFormat)

            // call the 'save' method with a filename...
            ->toDisk('streamable_videos')
            ->save($this->video->id . '.m3u8');

        // update the database so we know the convertion is done!
        $this->video->update([
            'converted_for_streaming_at' => Carbon::now(),
        ]);
    }
}


    


    I'm storing the key at custom disk "streamable_keys", and converted videos should be stored in "streamable_videos".

    


    the streamable keys are generated and saved to a directory without any issues, but streamable videos are not saved to the directory.

    


    after some tracks I found that the problem happens in this line of code :

    


            ->save($this->video->id . '.m3u8');


    


    all the lines before that line work perfectly.

    


    any ideas on how to fix that ?

    


    Full error screenshot

    


    ConvertVideoForStreaming.php

    


  • problems for building FFMPEG library for android on windows

    6 février 2014, par user3275506

    I am developing application for video which supports all formats.
    After much research I came to conclusion that I have to use FFMPEG library
    I have downloaded that I followed some steps I am geting unexpected end of the file.

    #!/usr/bin/env bash
    NDK=cygdrive/C/AndroidNDKx86/android-ndk-r9b
    SYSROOT=$NDK/platforms/android-18/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/windows
    function build_one
    {  
    ./configure \
    --prefix=$PREFIX \
    --enable-shared \
    --disable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG

    make clean
    make -j4
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    Please tell me is the code wrong it gives output unexpected end of file

    I tried another one it was almost compile but during make at the end it got some errors
    Here is the updated script

    #!/bin/bash
       export TMPDIR=C:/cygwin/tmp
       ANDROID_API=android-18
       export ANDROID_NDK=C:/AndroidNDKx86/android-ndk-r9b
       export ANDROID_SDK=E:/Android/Android/Data/Android/AndroidADT/sdk
       SYSROOT=$ANDROID_NDK/platforms/$ANDROID_API/arch-arm
       ANDROID_BIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin
       CROSS_COMPILE=${ANDROID_BIN}/arm-linux-androideabi-
       export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools
       export ARM_ROOT=$ANDROID_NDK
       export ARM_INC=$ARM_ROOT/platforms/android-18/arch-arm/usr/include
       export ARM_LIB=$ARM_ROOT/platforms/android-18/arch-arm/usr/lib
       export LIB_INC=${HOME}/include
       export LIB_LIB=${HOME}/lib

       FLAGS="--target-os=linux
       --enable-cross-compile
       --cross-prefix=$CROSS_COMPILE
       --arch=arm --prefix=$HOME
       --disable-shared
       --enable-static
       --extra-libs=-static
       --extra-cflags=--static
       --enable-small
       --disable-asm
       --disable-yasm
       --disable-amd3dnow
       --disable-amd3dnowext
       --disable-mmx
       --disable-sse
       --disable-debug
       --disable-ssse3
       --disable-indevs"    
    ./configure $FLAGS \
    --cc="${CROSS_COMPILE}gcc
    --sysroot=${SYSROOT}"  \
    --cxx="${CROSS_COMPILE}g++ --sysroot=${SYSROOT}" \
    --nm="${CROSS_COMPILE}nm" \
    --ar="${CROSS_COMPILE}ar"
    make clean
    make -j4 || exit 1
    make install || exit 1

    Following is the output
    OUTPUT :

    WARNING: C:/AndroidNDKx86/android-ndk-r9b/toolchains/arm-linux-androideabi-
    4.8/prebuilt/windows/bin/arm-linux-androideabi-pkg-config not found, library detection
    may fail.
    CC      libavdevice/alldevices.o
    CC      libavdevice/avdevice.o
    CC      libavfilter/af_aconvert.o
    In file included from libavdevice/avdevice.c:19:0:
    ./libavutil/avassert.h:30:20: fatal error: stdlib.h: No such file or directory
    #include
                       ^
    compilation terminated.
    In file included from libavdevice/alldevices.c:21:0:
    ./config.h:8:18: warning: missing terminating " character [enabled by default]
    (GCC)"e CC_IDENT "gcc 4.8
                     ^
    ./config.h:9:7: warning: missing terminating " character [enabled by default]
    #define av_restrict restrict
          ^
    ./config.h:9:2: error: missing terminating " character
    #define av_restrict restrict
     ^
    common.mak:48: recipe for target 'libavdevice/avdevice.o' failed
    make: *** [libavdevice/avdevice.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from libavdevice/version.h:28:0,
                    from libavdevice/avdevice.h:22,
                    from libavdevice/alldevices.c:22:
    ./libavutil/avutil.h:120:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before 'unsigned'
    unsigned avutil_version(void);
    ^
    In file included from ./libavutil/avutil.h:238:0,
                    from libavdevice/version.h:28,
                    from libavdevice/avdevice.h:22,
                    from libavdevice/alldevices.c:22:
    ./libavutil/common.h:29:19: fatal error: errno.h: No such file or directory
    #include
                      ^
    compilation terminated.
    CC      libavfilter/af_afade.o
    common.mak:48: recipe for target 'libavdevice/alldevices.o' failed
    make: *** [libavdevice/alldevices.o] Error 1
    In file included from ./libavutil/channel_layout.h:25:0,
                    from libavfilter/af_aconvert.c:29:
    c:\androidndkx86\android-ndk-r9b\toolchains\arm-linux-androideabi-
    4.8\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.8\include\stdint.h:9:26: fatal  
    error: stdint.h: No such file or directory
    # include_next
                             ^
    compilation terminated.
    common.mak:48: recipe for target 'libavfilter/af_aconvert.o' failed
    make: *** [libavfilter/af_aconvert.o] Error 1
    In file included from ./libavutil/rational.h:31:0,
                    from ./libavutil/opt.h:30,
                    from libavfilter/af_afade.c:26:
    c:\androidndkx86\android-ndk-r9b\toolchains\arm-linux-androideabi-  
    4.8\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.8\include\stdint.h:9:26: fatal    
    error: stdint.h: No such file or directory
    # include_next
                             ^
    compilation terminated.
    common.mak:48: recipe for target 'libavfilter/af_afade.o' failed
    make: *** [libavfilter/af_afade.o] Error 1

    Is the script wrong ??

  • Error in building FFMPEG-3.4 with Android-NDK-16.1

    30 avril 2018, par Sagar Trehan

    Trying to compile the FFMPEG-3.4 with Android-NDK-16.1.

    Compiling the source on Mac.

    Getting below Warnings/Errors :

    1. WARNING : /Users/strehan/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.

    2. Error : In file included from libavdevice/avdevice.c:19:0 :./libavutil/avassert.h:30:20 : fatal error : stdlib.h : No such file or directory

    3. Error : /Users/strehan/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26 : fatal error : stdint.h : No such file or directory

    4. Error : /libavutil/common.h:33:19 : fatal error : errno.h : No such file or directory

    Below is the build_script.sh using for build :

    #!/bin/bash
    NDK=/Users/strehan/Library/Android/sdk/ndk-bundle
    SYSROOT=$NDK/platforms/android-21/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
    function build_one
    {
    ./configure \
    --prefix=$PREFIX \
    --enable-shared \
    --disable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-doc \
    --disable-symver \
    --enable-protocol=concat \
    --enable-protocol=file \
    --enable-muxer=mp4 \
    --enable-demuxer=mpegts \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make -j3
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    Terminal output :

    Enabled indevs:
    lavfi

    Enabled outdevs:

    License: LGPL version 2.1 or later

    WARNING: /Users/strehan/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.
    config.h is unchanged
    libavutil/avconfig.h is unchanged
    libavcodec/bsf_list.c is unchanged
    libavformat/protocol_list.c is unchanged
    ffbuild/config.sh is unchanged
    GEN libavutil/libavutil.version
    GEN libswscale/libswscale.version
    GEN libswresample/libswresample.version
    GEN libavcodec/libavcodec.version
    GEN libavformat/libavformat.version
    GEN libavfilter/libavfilter.version
    GEN libavdevice/libavdevice.version
    CC  libavdevice/alldevices.o
    CC  libavdevice/avdevice.o
    CC  libavdevice/lavfi.o
    In file included from libavdevice/avdevice.c:19:0:
    ./libavutil/avassert.h:30:20: fatal error: stdlib.h: No such file or directory
    #include
                       ^
    compilation terminated.
    make: *** [libavdevice/avdevice.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from ./libavutil/avutil.h:296:0,
                    from ./libavutil/log.h:25,
                    from libavdevice/avdevice.h:48,
                    from libavdevice/alldevices.c:23:
    ./libavutil/common.h:33:19: fatal error: errno.h: No such file or directory
    #include
                      ^
    compilation terminated.
    In file included from ./libavutil/avstring.h:25:0,
                    from ./libavutil/bprint.h:27,
                    from libavdevice/lavfi.c:30:
    /Users/strehan/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
    # include_next
                             ^
    make: *** [libavdevice/alldevices.o] Error 1
    compilation terminated.
    make: *** [libavdevice/lavfi.o] Error 1
    INSTALL doc/examples/avio_dir_cmd.c
    INSTALL doc/examples/avio_reading.c
    INSTALL doc/examples/decode_audio.c
    INSTALL doc/examples/decode_video.c
    INSTALL doc/examples/demuxing_decoding.c
    INSTALL doc/examples/encode_audio.c
    INSTALL doc/examples/encode_video.c
    INSTALL doc/examples/extract_mvs.c
    INSTALL doc/examples/filter_audio.c
    INSTALL doc/examples/filtering_audio.c
    INSTALL doc/examples/filtering_video.c
    INSTALL doc/examples/http_multiclient.c
    INSTALL doc/examples/hw_decode.c
    INSTALL doc/examples/metadata.c
    INSTALL doc/examples/muxing.c
    INSTALL doc/examples/qsvdec.c
    INSTALL doc/examples/remuxing.c
    INSTALL doc/examples/resampling_audio.c
    INSTALL doc/examples/scaling_video.c
    INSTALL doc/examples/transcode_aac.c
    INSTALL doc/examples/transcoding.c
    INSTALL doc/examples/vaapi_encode.c
    INSTALL doc/examples/README
    INSTALL doc/examples/Makefile
    INSTALL doc/examples/avio_dir_cmd.c
    INSTALL doc/examples/avio_reading.c
    INSTALL doc/examples/decode_audio.c
    INSTALL doc/examples/decode_video.c
    INSTALL doc/examples/demuxing_decoding.c
    INSTALL doc/examples/encode_audio.c
    INSTALL doc/examples/encode_video.c
    INSTALL doc/examples/extract_mvs.c
    INSTALL doc/examples/filter_audio.c
    INSTALL doc/examples/filtering_audio.c
    INSTALL doc/examples/filtering_video.c
    INSTALL doc/examples/http_multiclient.c
    INSTALL doc/examples/hw_decode.c
    INSTALL doc/examples/metadata.c
    INSTALL doc/examples/muxing.c
    INSTALL doc/examples/qsvdec.c
    INSTALL doc/examples/remuxing.c
    INSTALL doc/examples/resampling_audio.c
    INSTALL doc/examples/scaling_video.c
    INSTALL doc/examples/transcode_aac.c
    INSTALL doc/examples/transcoding.c
    INSTALL doc/examples/vaapi_encode.c
    INSTALL doc/examples/README
    INSTALL doc/examples/Makefile
    CC  libavdevice/alldevices.o
    In file included from ./libavutil/avutil.h:296:0,
                    from ./libavutil/log.h:25,
                    from libavdevice/avdevice.h:48,
                    from libavdevice/alldevices.c:23:
    ./libavutil/common.h:33:19: fatal error: errno.h: No such file or directory
    #include
                      ^
    compilation terminated.
    make: *** [libavdevice/alldevices.o] Error 1

    Please help to fix these errors. Due to these errors/warnings compilation is getting terminated.

    Note :
    Android directory is getting created even after these errors. But I think library is not compiled properly due to above errors.

    Let me know if anything else needed. Please help.