Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (36)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6202)

  • Unresolved symbols when linking ffmpeg 2.7.1 on OSX 10.10.4/amd64 with Xcode 6.4

    9 juillet 2015, par Corey Brenner

    I am seeing a problem linking against ffmpeg 2.7.1 (as installed by homebrew just today). Though the libraries in question are referenced on the command line, and though the linker admits to pulling in the correct libraries, and though the libraries themselves have the desired symbols (verified with NM), the symbols I need from the ffmpeg libraries do not show up.

    My host and target platform is Mac x86_64, Xcode 6.4, OS X v10.10.4.

    ("ERROR (LINK.dll) : " is from my build system)

    Thanks in advance !

    ERROR (LINK.dll): /usr/bin/clang -dynamiclib -single_module -install_name @loader_path/ourapp_ffmpeg_test.5.0.0.dylib -compatibility_version 5.0.0 -current_version 5.0.0 -v -Wl,-t -arch x86_64 -mmacosx-version-min=10.7 -g -o "/Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/dll/shared/ourapp_ffmpeg_test.5.0.0.dylib" /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/pic/main.o /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a -L"/usr/local/lib" -lavformat -lavcodec -lswscale -lavutil -framework IOKit -framework CoreServices -liconv -lstdc++
    ERROR (LINK.dll): Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
    ERROR (LINK.dll): Target: x86_64-apple-darwin14.4.0
    ERROR (LINK.dll): Thread model: posix
    ERROR (LINK.dll):  "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -dylib -dylib_compatibility_version 5.0.0 -dylib_current_version 5.0.0 -arch x86_64 -dylib_install_name @loader_path/ourapp_ffmpeg_test.5.0.0.dylib -macosx_version_min 10.7.0 -single_module -o /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/dll/shared/ourapp_ffmpeg_test.5.0.0.dylib -L/usr/local/lib -t /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/pic/main.o /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a -lavformat -lavcodec -lswscale -lavutil -framework IOKit -framework CoreServices -liconv -lstdc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/lib/darwin/libclang_rt.osx.a
    ERROR (LINK.dll): Undefined symbols for architecture x86_64:
    ERROR (LINK.dll):   "av_frame_free(AVFrame**)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_read_frame(AVFormatContext*, AVPacket*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
    ERROR (LINK.dll):   "avcodec_close(AVCodecContext*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "avcodec_open2(AVCodecContext*, AVCodec const*, AVDictionary**)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_dump_format(AVFormatContext*, int, char const*, int)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_frame_alloc()", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_free_packet(AVPacket*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
    ERROR (LINK.dll):   "avpicture_fill(AVPicture*, unsigned char const*, AVPixelFormat, int, int)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_register_all()", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_init() in main.o
    ERROR (LINK.dll):   "avpicture_get_size(AVPixelFormat, int, int)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "avformat_open_input(AVFormatContext**, char const*, AVInputFormat*, AVDictionary**)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "avcodec_copy_context(AVCodecContext*, AVCodecContext const*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "avcodec_find_decoder(AVCodecID)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "avformat_close_input(AVFormatContext**)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "sws_getCachedContext(SwsContext*, int, int, AVPixelFormat, int, int, AVPixelFormat, int, SwsFilter*, SwsFilter*, double const*)", referenced from:
    ERROR (LINK.dll):       get_scalecontext(SwsContext**, AVStream const*, int, int, AVPixelFormat) in main.o
    ERROR (LINK.dll):   "avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, AVPacket const*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
    ERROR (LINK.dll):   "avcodec_alloc_context3(AVCodec const*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "sws_getColorspaceDetails(SwsContext*, int**, int*, int**, int*, int*, int*, int*)", referenced from:
    ERROR (LINK.dll):       get_scalecontext(SwsContext**, AVStream const*, int, int, AVPixelFormat) in main.o
    ERROR (LINK.dll):   "sws_setColorspaceDetails(SwsContext*, int const*, int, int const*, int, int, int, int)", referenced from:
    ERROR (LINK.dll):       get_scalecontext(SwsContext**, AVStream const*, int, int, AVPixelFormat) in main.o
    ERROR (LINK.dll):   "avformat_find_stream_info(AVFormatContext*, AVDictionary**)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_free(void*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "av_malloc(unsigned long)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
    ERROR (LINK.dll):   "sws_scale(SwsContext*, unsigned char const* const*, int const*, int, int, unsigned char* const*, int const*)", referenced from:
    ERROR (LINK.dll):       ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
    ERROR (LINK.dll): ld: symbol(s) not found for architecture x86_64
    ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/pic/main.o
    ERROR (LINK.dll): /usr/local/lib/libavformat.dylib
    ERROR (LINK.dll): /usr/local/lib/libavcodec.dylib
    ERROR (LINK.dll): /usr/local/lib/libswscale.dylib
    ERROR (LINK.dll): /usr/local/lib/libavutil.dylib
    ERROR (LINK.dll): /System/Library/Frameworks//IOKit.framework/IOKit
    ERROR (LINK.dll): /System/Library/Frameworks//CoreServices.framework/CoreServices
    ERROR (LINK.dll): /usr/lib/libiconv.dylib
    ERROR (LINK.dll): /usr/lib/libSystem.dylib
    ERROR (LINK.dll): /usr/lib/libstdc++.dylib
    ERROR (LINK.dll): /System/Library/Frameworks//CFNetwork.framework/CFNetwork
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    ERROR (LINK.dll): /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    ERROR (LINK.dll): /usr/lib/system/libcache.dylib
    ERROR (LINK.dll): /usr/lib/system/libcommonCrypto.dylib
    ERROR (LINK.dll): /usr/lib/system/libcompiler_rt.dylib
    ERROR (LINK.dll): /usr/lib/system/libcopyfile.dylib
    ERROR (LINK.dll): /usr/lib/system/libcorecrypto.dylib
    ERROR (LINK.dll): /usr/lib/system/libdispatch.dylib
    ERROR (LINK.dll): /usr/lib/system/libdyld.dylib
    ERROR (LINK.dll): /usr/lib/system/libkeymgr.dylib
    ERROR (LINK.dll): /usr/lib/system/liblaunch.dylib
    ERROR (LINK.dll): /usr/lib/system/libmacho.dylib
    ERROR (LINK.dll): /usr/lib/system/libquarantine.dylib
    ERROR (LINK.dll): /usr/lib/system/libremovefile.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_asl.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_blocks.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_c.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_configuration.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_coreservices.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_coretls.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_dnssd.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_info.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_kernel.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_m.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_malloc.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_network.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_networkextension.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_notify.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_platform.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_pthread.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_sandbox.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_secinit.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_stats.dylib
    ERROR (LINK.dll): /usr/lib/system/libsystem_trace.dylib
    ERROR (LINK.dll): /usr/lib/system/libunc.dylib
    ERROR (LINK.dll): /usr/lib/system/libunwind.dylib
    ERROR (LINK.dll): /usr/lib/system/libxpc.dylib
    ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a(ourbaselib_memory.o)
    ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a(ourbaselib_atomic.o)
    ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a(ourbaselib_stacktrace.o)
    ERROR (LINK.dll): clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • ffmpeg Progress Bar - Encoding Percentage in PHP

    11 juillet 2016, par Jimbo

    I’ve written a whole system in PHP and bash on the server to convert and stream videos in HTML5 on my VPS. The conversion is done by ffmpeg in the background and the contents is output to block.txt.

    Having looked at the following posts :

    Can ffmpeg show a progress bar ?

    and

    ffmpeg video encoding progress bar

    amongst others, I can’t find a working example.

    I need to grab the currently encoded progress as a percentage.

    The first post I linked above gives :

    $log = @file_get_contents('block.txt');

    preg_match("/Duration:([^,]+)/", $log, $matches);
    list($hours,$minutes,$seconds,$mili) = split(":",$matches[1]);
    $seconds = (($hours * 3600) + ($minutes * 60) + $seconds);
    $seconds = round($seconds);

    $page = join("",file("$txt"));
    $kw = explode("time=", $page);
    $last = array_pop($kw);
    $values = explode(' ', $last);
    $curTime = round($values[0]);
    $percent_extracted = round((($curTime * 100)/($seconds)));

    echo $percent_extracted;

    The $percent_extracted variable echoes zero, and as maths is not my strong point, I really don’t know how to progress here.

    Here’s one line from the ffmpeg output from block.txt (if it’s helpful)

    time=00:19:25.16 bitrate= 823.0kbits/s frame=27963 fps= 7 q=0.0 size=
    117085kB time=00:19:25.33 bitrate= 823.1kbits/s frame=27967 fps= 7
    q=0.0 size= 117085kB time=00:19:25.49 bitrate= 823.0kbits/s
    frame=27971 fps= 7 q=0.0 size= 117126kB

    Please help me output this percentage, once done I can create my own progress bar. Thanks.

  • Get Proper Progress Updates on Two Long Waited Concurrent Processes in ASP.NET

    17 juillet 2012, par irfanmcsd

    I implemented background video processing using .net ffmpeg wrapper http://www.mediasoftpro.com with progress bar indication to calculate how much video is processed and send information to web page to update progress bar indicator. Its working fine if only single process works at a time, but in case of two concurrent processes (start two video publishing at once let say from two different computers), progress bar suddenly mixed progress status.
    Here is my code where i used static objects to properly send information of single instance to progress bar.

    static string FileName = "grey_03";
    protected void Page_Load(object sender, EventArgs e)
    {
       if (!Page.IsPostBack)
       {
           if (Request.Params["file"] != null)
           {
               FileName = Request.Params["file"].ToString();
           }
       }
    }
    public static double ProgressValue = 0;
    public static MediaHandler _mhandler = new MediaHandler();

    [WebMethod]
    public static string EncodeVideo()
    {
       // MediaHandler _mhandler = new MediaHandler();
       string RootPath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath);
       _mhandler.FFMPEGPath = HttpContext.Current.Server.MapPath("~\\ffmpeg_july_2012\\bin\\ffmpeg.exe");
       _mhandler.InputPath = RootPath + "\\contents\\original";
       _mhandler.OutputPath = RootPath + "\\contents\\mp4";
       _mhandler.BackgroundProcessing = true;
       _mhandler.FileName = "Grey.avi";
       _mhandler.OutputFileName =FileName;
       string presetpath = RootPath + "\\ffmpeg_july_2012\\presets\\libx264-ipod640.ffpreset";
       _mhandler.Parameters = " -b:a 192k -b:v 500k -fpre \"" + presetpath + "\"";
       _mhandler.OutputExtension = ".mp4";
       _mhandler.VCodec = "libx264";
       _mhandler.ACodec = "libvo_aacenc";
       _mhandler.Channel = 2;
       _mhandler.ProcessMedia();
       return _mhandler.vinfo.ErrorCode.ToString();
    }

    [WebMethod]
    public static string GetProgressStatus()
    {
       return Math.Round(_mhandler.vinfo.ProcessingCompleted, 2).ToString();
       // if vinfo.processingcomplete==100, then you can get complete information from vinfo object and store it in database and perform other processing.
    }

    Here is jquery functions responsible for updating progress bar indication after every second etc.

    $(function () {
            $("#vprocess").on({
                click: function (e) {
                    ProcessEncoding();
                    var IntervalID = setInterval(function () {
                        GetProgressValue(IntervalID);
                    }, 1000);
                    return false;
                }
            }, '#btn_process');

        });
        function GetProgressValue(intervalid) {
            $.ajax({
                type: "POST",
                url: "concurrent_03.aspx/GetProgressStatus",
                data: "{}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {
                    // Do something interesting here.
                    $("#pstats").text(msg.d);
                    $("#pbar_int_01").attr('style', 'width: ' + msg.d + '%;');
                    if (msg.d == "100") {
                        $('#pbar01').removeClass("progress-danger");
                        $('#pbar01').addClass("progress-success");
                        if (intervalid != 0) {
                            clearInterval(intervalid);
                        }
                        FetchInfo();
                    }
                }
            });
        }

    The problem arises due to static mediahandler object

    public static MediaHandler _mhandler = new MediaHandler();

    I need a way to keep two concurrent processes information separate from each other in order to update progress bar with value exactly belong to that process.