Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (88)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (11708)

  • FFMpeg build -lavdevice error on mac [on hold]

    5 novembre 2013, par Ilya Kharlamov

    I'm trying to build ffmpeg for kxmovie, but in the end I get the message here is :

    Build settings from command line:
       ARCHS = armv7s
       SDKROOT = iphoneos7.0
       SYMROOT = tmp/build

    === BUILD TARGET kxmovie OF PROJECT kxmovie WITH CONFIGURATION Release ===

    Check dependencies

    Libtool tmp/build/Release-iphoneos/libkxmovie.a normal armv7s
       cd /Volumes/Files/Kharlamov/Desktop/kxtorrent/submodules/kxmovie
       setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
       setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7s -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Volumes/Files/Kharlamov/Desktop/kxtorrent/submodules/kxmovie/tmp/build/Release-iphoneos -L/Volumes/Files/Kharlamov/Desktop/kxtorrent/submodules/kxmovie/libs -filelist /Volumes/Files/Kharlamov/Desktop/kxtorrent/submodules/kxmovie/tmp/build/kxmovie.build/Release-iphoneos/kxmovie.build/Objects-normal/armv7s/kxmovie.LinkFileList -ObjC -all_load -framework Foundation -framework CoreGraphics -lavcodec -lavdevice -lavformat -lavutil -lswresample -lswscale /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libz.dylib -framework MediaPlayer -framework CoreAudio -framework AudioToolbox -framework Accelerate -framework QuartzCore -framework OpenGLES -o /Volumes/Files/Kharlamov/Desktop/kxtorrent/submodules/kxmovie/tmp/build/Release-iphoneos/libkxmovie.a
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified, -all_load invalid
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavdevice
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavdevice is not an object file (not allowed in a library)
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libz.dylib is a dynamic library, not added to the static library
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libz.dylib is a dynamic library, not added to the static library
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libz.dylib is a dynamic library, not added to the static library
    Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1

    ** BUILD FAILED **


    The following build commands failed:
       Libtool tmp/build/Release-iphoneos/libkxmovie.a normal armv7s
    (1 failure)
    rake aborted!
    ******** Build failed ********

    Help please, what is the problem and how to fix it ?
    P.S. I'm sorry for my english, I'm just learning :)

  • libavfi/dnn : add LibTorch as one of DNN backend

    15 mars 2024, par Wenbin Chen
    libavfi/dnn : add LibTorch as one of DNN backend
    

    PyTorch is an open source machine learning framework that accelerates
    the path from research prototyping to production deployment. Official
    website : https://pytorch.org/. We call the C++ library of PyTorch as
    LibTorch, the same below.

    To build FFmpeg with LibTorch, please take following steps as
    reference :
    1. download LibTorch C++ library in
    https://pytorch.org/get-started/locally/,
    please select C++/Java for language, and other options as your need.
    Please download cxx11 ABI version :
    (libtorch-cxx11-abi-shared-with-deps-*.zip).
    2. unzip the file to your own dir, with command
    unzip libtorch-shared-with-deps-latest.zip -d your_dir
    3. export libtorch_root/libtorch/include and
    libtorch_root/libtorch/include/torch/csrc/api/include to $PATH
    export libtorch_root/libtorch/lib/ to $LD_LIBRARY_PATH
    4. config FFmpeg with ../configure —enable-libtorch \
    —extra-cflag=-I/libtorch_root/libtorch/include \
    —extra-cflag=-I/libtorch_root/libtorch/include/torch/csrc/api/include \
    —extra-ldflags=-L/libtorch_root/libtorch/lib/
    5. make

    To run FFmpeg DNN inference with LibTorch backend :
    ./ffmpeg -i input.jpg -vf \
    dnn_processing=dnn_backend=torch:model=LibTorch_model.pt -y output.jpg

    The LibTorch_model.pt can be generated by Python with torch.jit.script()
    api. https://pytorch.org/tutorials/advanced/cpp_export.html. This is
    pytorch official guide about how to convert and load torchscript model.
    Please note, torch.jit.trace() is not recommanded, since it does
    not support ambiguous input size.

    Signed-off-by : Ting Fu <ting.fu@intel.com>
    Signed-off-by : Wenbin Chen <wenbin.chen@intel.com>
    Reviewed-by : Guo Yejun <yejun.guo@intel.com>

    • [DH] configure
    • [DH] libavfilter/dnn/Makefile
    • [DH] libavfilter/dnn/dnn_backend_torch.cpp
    • [DH] libavfilter/dnn/dnn_interface.c
    • [DH] libavfilter/dnn_filter_common.c
    • [DH] libavfilter/dnn_interface.h
    • [DH] libavfilter/vf_dnn_processing.c
  • varying RTP stream result from custom SIP implementation

    1er février, par Nik Hendricks

    I am in the process of creating my own SIP implementation in Node.js. As well as a b2bua as a learning project.

    &#xA;

    Finding people wise in the ways of SIP has proved to be difficult elsewhere but here I have had good results

    &#xA;

    this is the GitHub of my library so far node.js-sip

    &#xA;

    this is the GitHub of my PBX so far FlowPBX

    &#xA;

    Currently, everything is working as I expect. Although I really have some questions on possible errors in my implementation.

    &#xA;

    My main issue is with RTP streams. Currently I am utilizing ffmpeg.

    &#xA;

    my function goes as follows

    &#xA;

    start_stream(call_id, sdp){&#xA;        console.log(&#x27;Starting Stream&#x27;)&#xA;        let port = sdp.match(/m=audio (\d&#x2B;) RTP/)[1];&#xA;        let ip = sdp.match(/c=IN IP4 (\d&#x2B;\.\d&#x2B;\.\d&#x2B;\.\d&#x2B;)/)[1];&#xA;        let codec_ids = sdp.match(/m=audio \d&#x2B; RTP\/AVP (.&#x2B;)/)[1].split(&#x27; &#x27;);&#xA;        let ffmpeg_codec_map = {&#xA;            &#x27;opus&#x27;: &#x27;libopus&#x27;,&#xA;            &#x27;PCMU&#x27;: &#x27;pcm_mulaw&#x27;,&#xA;            &#x27;PCMA&#x27;: &#x27;pcm_alaw&#x27;,&#xA;            &#x27;telephone-event&#x27;: &#x27;pcm_mulaw&#x27;,&#xA;            &#x27;speex&#x27;: &#x27;speex&#x27;,&#xA;            &#x27;G722&#x27;: &#x27;g722&#x27;,&#xA;            &#x27;G729&#x27;: &#x27;g729&#x27;,&#xA;            &#x27;GSM&#x27;: &#x27;gsm&#x27;,&#xA;            &#x27;AMR&#x27;: &#x27;amr&#x27;,&#xA;            &#x27;AMR-WB&#x27;: &#x27;amr_wb&#x27;,&#xA;            &#x27;iLBC&#x27;: &#x27;ilbc&#x27;,&#xA;            &#x27;iSAC&#x27;: &#x27;isac&#x27;,&#xA;        }&#xA;&#xA;        let codecs = [];&#xA;        sdp.split(&#x27;\n&#x27;).forEach(line => {&#xA;            if(line.includes(&#x27;a=rtpmap&#x27;)){&#xA;                let codec = line.match(/a=rtpmap:(\d&#x2B;) (.&#x2B;)/)[2];&#xA;                let c_id = line.match(/a=rtpmap:(\d&#x2B;) (.&#x2B;)/)[1];&#xA;                codecs.push({                    &#xA;                    name: codec.split(&#x27;/&#x27;)[0],&#xA;                    rate: codec.split(&#x27;/&#x27;)[1],&#xA;                    channels: codec.split(&#x27;/&#x27;)[2] !== undefined ? codec.split(&#x27;/&#x27;)[2] : 1,&#xA;                    id: c_id&#xA;                })&#xA;            }&#xA;        })&#xA;&#xA;        console.log(&#x27;codecs&#x27;)&#xA;        console.log(codecs)&#xA;&#xA;        let selected_codec = codecs[0]&#xA;        if(selected_codec.name == &#x27;telephone-event&#x27;){&#xA;            selected_codec = codecs[1]&#xA;            console.log(selected_codec)&#xA;        }&#xA;&#xA;        //see if opus is available&#xA;        codecs.forEach(codec => {&#xA;            if(codec.name == &#x27;opus&#x27;){&#xA;                selected_codec = codec;&#xA;            }&#xA;        })&#xA;&#xA;        if(selected_codec.name != &#x27;opus&#x27;){&#xA;            //check if g729 is available&#xA;            codecs.forEach(codec => {&#xA;                if(codec.name == &#x27;G729&#x27;){&#xA;                    selected_codec = codec;&#xA;                }&#xA;            })&#xA;        }&#xA;&#xA;        console.log(&#x27;selected_codec&#x27;)&#xA;        console.log(selected_codec)&#xA;&#xA;        let spawn = require(&#x27;child_process&#x27;).spawn;&#xA;        let ffmpegArgs = [&#xA;            &#x27;-re&#x27;,&#xA;            &#x27;-i&#x27;, &#x27;song.mp3&#x27;,&#xA;            &#x27;-acodec&#x27;, ffmpeg_codec_map[selected_codec.name],&#xA;            &#x27;-ar&#x27;, selected_codec.rate,&#xA;            &#x27;-ac&#x27;, selected_codec.channels,&#xA;            &#x27;-payload_type&#x27;, selected_codec.id,&#xA;            &#x27;-f&#x27;, &#x27;rtp&#x27;, `rtp://${ip}:${port}`&#xA;        ];&#xA;&#xA;        let ffmpeg = spawn(&#x27;ffmpeg&#x27;, ffmpegArgs);&#xA;&#xA;        ffmpeg.stdout.on(&#x27;data&#x27;, (data) => {&#xA;            console.log(`stdout: ${data}`);&#xA;        });&#xA;        ffmpeg.stderr.on(&#x27;data&#x27;, (data) => {&#xA;            console.error(`stderr: ${data}`);&#xA;        });&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;

    &#xA;

    When using zoiper to test it works great. I have seen the mobile version negotiate speex&#xA;and the desktop version negotiate opus mostly for the codec.

    &#xA;

    today I tried to register a grandstream phone to my pbx and the rtp stream is blank audio.&#xA;opus is available and I have tried to prefer that in my stream but still even when selecting that I cannot get audio to the grandstream phone. This is the same case for a yealink phone. I can only get zoiper to work so far.

    &#xA;

    what could be causing this behavior ? there is a clear path of communication between everything just like the zoiper client's I have used.

    &#xA;

    Additionally in my sip implementation,&#xA;how important is the concept of a dialog ? currently, I just match messages by Call-ID

    &#xA;

    and then choose what to send based on the method or response. is there any other underlying dialog functionality that I may need to implement ?

    &#xA;

    It would just be awesome to get someone who really knows what they are talking about eyes on some of my code to direct this large codebase in the right direction but I realize that a big ask lol.

    &#xA;