Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (40)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (3515)

  • java.lang.UnsatisfiedLinkError : Couldn't load ffmpeg library findLibrary returned null

    22 février 2017, par Muthukumar Subramaniam

    I am new to live streaming from android to youtube in android. I mentioned my Project Structrue and build the gradle file in android. FFmpeg library could not load in runtime.

    Note : I am working in windows 10 and android studio 2.1.2

       apply plugin: 'com.android.application'

    android {
       compileSdkVersion 23
       buildToolsVersion "23.0.1"

       packagingOptions {
           exclude 'META-INF/DEPENDENCIES'
           exclude 'META-INF/NOTICE'
           exclude 'META-INF/NOTICE.txt'
           exclude 'META-INF/LICENSE'
           exclude 'META-INF/LICENSE.txt'
       }

       defaultConfig {
           applicationId "com.ephron.mobilizerapp"
           minSdkVersion 14
           targetSdkVersion 23
           versionCode 1
           versionName "1.4"
           multiDexEnabled true
       }
       dexOptions {
           javaMaxHeapSize "4g"
       }


       buildTypes {
           release {
               minifyEnabled false
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
           }
       }
       sourceSets {
           main {
               assets.srcDirs = ['src/main/assets', 'src/main/assets/']

           }
       }
       sourceSets { main {
           jni.srcDirs = ['src/main/jni', 'src/main/jni/libs']
           jni.srcDirs = ['libs']
           jni.srcDirs = []
       } }
    }

    dependencies {
       testCompile 'junit:junit:4.12'
       compile files('libs/httpclient-4.5.2.jar')
       compile files('libs/httpcore-4.4.4.jar')
       compile files('libs/httpmime-4.2.1.jar')
       compile files('libs/YouTubeAndroidPlayerApi.jar')
       compile 'com.android.support:appcompat-v7:23.1.0'
       compile 'com.google.android.gms:play-services:10.0.1'
       compile 'com.google.code.gson:gson:2.2.2'
       compile 'com.google.firebase:firebase-messaging:9.2.0'
       compile 'testfairy:testfairy-android-sdk:1.+@aar'
       compile 'com.android.support:multidex:1.0.0'
       compile 'com.mcxiaoke.volley:library:1.0.19'
       compile 'com.squareup.picasso:picasso:2.5.2'
       compile 'cn.aigestudio.wheelpicker:WheelPicker:1.1.2'
       compile 'com.google.android.gms:play-services-maps:10.0.1'
       compile 'com.google.apis:google-api-services-youtube:v3-rev182-1.22.0'
       compile 'com.google.api-client:google-api-client-android:1.22.0'
       compile 'com.google.http-client:google-http-client-gson:1.19.0'
       compile 'com.google.android.gms:play-services-ads:10.0.1'
       compile 'com.google.android.gms:play-services-auth:10.0.1'
       compile 'com.google.android.gms:play-services-gcm:10.0.1'
       compile files('libs/ffmpeg-android.jar')
    }
    apply plugin: 'com.google.gms.google-services'

    My Project Structure mentioned below Link

    https://www.screencast.com/t/E0TFsMUi1

    Application.mk file

       APP_OPTIM := release
    APP_ABI := all
    APP_STL := gnustl_static
    APP_CPPFLAGS := -frtti -fexceptions

    Android.mk file

      #
    # Copyright (c) 2014 Google Inc.
    #
    # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
    # in compliance with the License. You may obtain a copy of the License at
    #
    # http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software distributed under the License
    # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
    # or implied. See the License for the specific language governing permissions and limitations under
    # the License.


    # set NDK_PROJECT_PATH := D:/MobilizerApp/app/src/main/jni

    WORKING_DIR := $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_PATH := $(WORKING_DIR)/../third_party/lame/libmp3lame
    LOCAL_MODULE    := lame
    LOCAL_C_INCLUDES := $(WORKING_DIR)/../third_party/lame/libmp3lame \
                       $(WORKING_DIR)/../third_party/lame/include
    LOCAL_CFLAGS := -DSTDC_HEADERS -std=c99
    LOCAL_ARM_MODE := arm
    APP_OPTIM := release

    LOCAL_SRC_FILES := VbrTag.c \
                      bitstream.c \
                      encoder.c \
                      fft.c \
                      gain_analysis.c \
                      id3tag.c \
                      lame.c \
                      mpglib_interface.c \
                      newmdct.c \
                      presets.c \
                      psymodel.c \
                      quantize.c \
                      quantize_pvt.c \
                      reservoir.c \
                      set_get.c \
                      tables.c \
                      takehiro.c \
                      util.c \
                      vbrquantize.c \
                      version.c


    #include $(BUILD_STATIC_LIBRARY)

    include $(BUILD_STATIC_LIBRARY)

    #include $(CLEAR_VARS)
    #LOCAL_MODULE  := mp3lame_a
    #LOCAL_STATIC_LIBRARIES := lame

    #include $(BUILD_EXECUTABLE)

    include $(CLEAR_VARS)
    LOCAL_PATH := $(WORKING_DIR)
    LOCAL_MODULE    := ffmpeg
    LOCAL_CFLAGS := -DHAVE_AV_CONFIG_H -std=c99 -D__STDC_CONSTANT_MACROS -DSTDC_HEADERS -Wno-deprecated-declarations
    LOCAL_SRC_FILES := ffmpeg-jni.c
    LOCAL_C_INCLUDES := $(WORKING_DIR)/libavcodec $(WORKING_DIR)/libavcodec/arm $(WORKING_DIR)/libavformat $(WORKING_DIR)/libavutil $(WORKING_DIR)/libavutil/arm

    LOCAL_STATIC_LIBRARIES := lame

    LOCAL_LDLIBS := -llog -lm -lz $(WORKING_DIR)/../third_party/lib/libavformat.a $(WORKING_DIR)/../third_party/lib/libavcodec.a $(WORKING_DIR)/../third_party/lib/libavfilter.a $(WORKING_DIR)/../third_party/lib/libavresample.a $(WORKING_DIR)/../third_party/lib/libswscale.a $(WORKING_DIR)/../third_party/lib/libavutil.a $(WORKING_DIR)/../third_party/lib/libx264.a $(WORKING_DIR)/../third_party/lib/libpostproc.a $(WORKING_DIR)/../third_party/lib/libswresample.a $(WORKING_DIR)/../third_party/lib/libfdk-aac.a

    APP_OPTIM := release

    include $(BUILD_SHARED_LIBRARY)

    FFMPEG.Java

    package com.ephronsystem.mobilizerapp;


    public class Ffmpeg {


       static {
           System.loadLibrary("ffmpeg");
       }

       public static native boolean init(int width, int height, int audio_sample_rate, String rtmpUrl);

       public static native void shutdown();

       // Returns the size of the encoded frame.
       public static native int encodeVideoFrame(byte[] yuv_image);

       public static native int encodeAudioFrame(short[] audio_data, int length);
    }
  • FFmpeg error Unable to load FFMpeg during parallel encoding

    1er janvier 2021, par DrJohn

    I'd like to build web service on the Laravel platform which allows users upload some videos on a server. During uploading video files I use ffmpeg to encode them and compress.
I can't install ffmpeg on my hosting and so I have downloaded packages and executable files from https://ffmpeg.org/download.html and locate them on my web directory. Then I make all steps to install ffmpeg in my Laravel project.
I try to upload a video file and it's OK. The time to upload and encode is about 20 seconds. During encoding of the first video file I try to upload the second. And the second video file falls with the error "Unable to load FFMpeg". But the first video file is encoded successfully. When the first encoding is completed and I repeat uploading the second file it encoded successfully as well.
So I think that ffmpeg can work only with only one file at the time and I can't build multi-user service.
Please help me to find solution.

    


    Here is a peace of code which use to encode files :

    


        try {&#xA;                            $pub_path = Storage::disk(&#x27;public&#x27;)->getAdapter()->getPathPrefix();&#xA;                            $videopath =$pub_path . $myusertheme->public_reference.&#x27;/&#x27;.$this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                            //echo (Storage::disk(&#x27;public&#x27;)->getAdapter()->getPathPrefix().&#x27;<br />&#x27;);&#xA;                            echo ($videopath);&#xA;                            $ffmpeg = \FFMpeg\FFMpeg::create([&#xA;                                &#x27;ffmpeg.binaries&#x27;  => "./usr/bin/ffmpeg",&#xA;                                &#x27;ffprobe.binaries&#x27; => "./usr/bin/ffprobe",&#xA;                                &#x27;timeout&#x27;          => 3600, // The timeout for the underlying process&#xA;                                &#x27;ffmpeg.threads&#x27;   => 12,   // The number of threads that FFMpeg should use&#xA;                                &#x27;set_command_and_error_output_on_exception&#x27; => true,&#xA;                            ]);&#xA;                            $vid=$ffmpeg->open($request->file(&#x27;videofile&#x27;)->getRealPath());&#xA;                            $vid->save(new \FFMpeg\Format\Video\X264(&#x27;libmp3lame&#x27;, &#x27;libx264&#x27;), $videopath);&#xA;&#xA;/*&#xA;                            $videopath = $myusertheme->public_reference.&#x27;/&#x27;.$this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                            //FFMpeg::fromDisk(&#x27;local_root&#x27;)&#xA;                            $ffmpeg&#xA;                            ->open($request->file(&#x27;videofile&#x27;)->getRealPath())&#xA;                            ->export()&#xA;                            ->onProgress(function ($percentage) {&#xA;                                    //echo ($percentage.&#x27;/n&#x27;);&#xA;                                    if ($percentage===100)&#xA;                                    {&#xA;&#xA;                                        $videopath = $this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                                    }})&#xA;                            ->inFormat(new \FFMpeg\Format\Video\X264(&#x27;libmp3lame&#x27;, &#x27;libx264&#x27;))&#xA;                            ->toDisk(&#x27;public&#x27;)&#xA;                            ->save($videopath);&#xA;&#xA;*/&#xA;&#xA;                        } catch (EncodingException $exception) {&#xA;                            $videopath = null;&#xA;                            $command = $exception->getCommand();&#xA;                            $errorLog = $exception->getErrorOutput();&#xA;                            echo $errorLog;&#xA;                            return \Response::json(&#x27;Ошибка кодировки файла&#x27;, 500);&#xA;&#xA;                        }&#xA;

    &#xA;

  • Merge remote-tracking branch ’qatar/master’

    13 janvier 2014, par Michael Niedermayer
    Merge remote-tracking branch ’qatar/master’
    

    * qatar/master :
    lavf : make av_probe_input_buffer more robust

    Conflicts :
    libavformat/utils.c

    Not merged as it depends on previous buggy changes

    See : e74cd2f4706f71da5e9205003c1d8263b54ed3fb
    See : ececbedaa86cddd883f6cdc12cdd1a75a0023550
    Merged-by : Michael Niedermayer <michaelni@gmx.at>