Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (95)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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 (7974)

  • send browser camera to rtmp server

    22 juin 2022, par anamul

    i am using python and in frotnend javascript.

    


    I am using ffmpeg to push video to rtmp server.

    


    ffmpeg -y -f mp4 -stream_loop -1 -re -i myvideo.mp4
-b:v 3M -vcodec libx264 -r 30.0 -s 1280x720
-c:a copy -b:a 96k
-f flv "rtmps://dfdf222.global-contribute.live-video.net:443/app/"


    


    It is working well but i am not getting how to push to rtmp server of my browser camera ? i mean from javascript ?

    


    i am trying like this :

    


    &#xA;    <video autoplay="autoplay"></video>&#xA;&#xA;    <a href="#">open and stream</a>&#xA;&#xA;    <code class="echappe-js">&lt;script&gt;&amp;#xA;        function streamVideo () {&amp;#xA;            console.log(&amp;#x27;ddd&amp;#x27;)&amp;#xA;            navigator.mediaDevices.getUserMedia({&amp;#xA;            video: {&amp;#xA;&amp;#xA;            },&amp;#xA;            audio: {&amp;#xA;                &amp;#xA;            }&amp;#xA;            }).then(stream=&gt;{&amp;#xA;                console.log(stream)&amp;#xA;                document.getElementById(&amp;#x27;vid&amp;#x27;).srcObject = stream; &amp;#xA;            })&amp;#xA;&amp;#xA;        }&amp;#xA;    &lt;/script&gt;&#xA;&#xA;

    &#xA;

    It is working but not getting any way to push from browser to rtmp server. I know browser doesnt support rtmp protocol, we need to send it from the backend but can i push to server so that it push to rtmp server ?

    &#xA;

    Anyone know the way ?

    &#xA;

  • ffmpeg build fails with gcc error even with gcc installed (C compiler test failed)

    15 mars 2023, par Martin

    I am on macos 11.2.3, trying to build ffmpeg in my terminal. When I run my script sh buildffmpeg.sh which is below :

    &#xA;

    #!/bin/bash&#xA;&#xA;# If you get error `c compiler failed` run `sudo apt install libglfw3-dev libglew-dev`&#xA;# apt-get install build-essential&#xA;# apt-get build-dep ffmpeg&#xA;# when running this on mac, you need to install some libraries such as &#x27;brew install opus&#x27;&#xA;&#xA;set -e&#xA;&#xA;CWD=$(pwd)&#xA;PACKAGES="$CWD/packages"&#xA;WORKSPACE="$CWD/workspace"&#xA;ADDITIONAL_CONFIGURE_OPTIONS=""&#xA;&#xA;&#xA;mkdir -p "$PACKAGES"&#xA;mkdir -p "$WORKSPACE"&#xA;&#xA;FFMPEG_TAG="$1"&#xA;FFMPEG_URL="http://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/74c4c539538e36d8df02de2484b045010d292f2c.tar.gz"&#xA;&#xA;FFMPEG_ARCHIVE="$PACKAGES/ffmpeg.tar.gz"&#xA;&#xA;if [ ! -f "$FFMPEG_ARCHIVE" ]; then&#xA;    echo "Downloading tag ${FFMPEG_TAG}..."&#xA;    curl -L -o "$FFMPEG_ARCHIVE" "$FFMPEG_URL"&#xA;fi&#xA;&#xA;EXTRACTED_DIR="$PACKAGES/extracted"&#xA;&#xA;mkdir -p "$EXTRACTED_DIR"&#xA;&#xA;echo "Extracting..."&#xA;tar -xf "$FFMPEG_ARCHIVE" --strip-components=1 -C "$EXTRACTED_DIR"&#xA;&#xA;cd "$EXTRACTED_DIR"&#xA;&#xA;echo "Building..."&#xA;&#xA;# Min electron supported version&#xA;MACOS_MIN="10.10"&#xA;&#xA;./configure $ADDITIONAL_CONFIGURE_OPTIONS \&#xA;    --pkgconfigdir="$WORKSPACE/lib/pkgconfig" \&#xA;    --prefix=${WORKSPACE} \&#xA;    --pkg-config-flags="--static" \&#xA;    --extra-libs=-static \&#xA;    --extra-cflags=--static \&#xA;    --enable-cross-compile \&#xA;    --extra-cflags="-I$WORKSPACE/include -mmacosx-version-min=${MACOS_MIN}" \&#xA;    --extra-ldflags="-L$WORKSPACE/lib -mmacosx-version-min=${MACOS_MIN} -L/usr/local/opt/lame/lib -Wl,-rpath,/usr/local/opt/lame/lib" \&#xA;    --extra-libs="-lpthread -lm" \&#xA;    --enable-static \&#xA;    --disable-securetransport \&#xA;    --disable-debug \&#xA;    --disable-shared \&#xA;    --disable-ffplay \&#xA;    --disable-lzma \&#xA;    --disable-doc \&#xA;    --enable-version3 \&#xA;    --enable-pthreads \&#xA;    --enable-runtime-cpudetect \&#xA;    --enable-avfilter \&#xA;    --enable-filters \&#xA;    --disable-libxcb \&#xA;    --enable-gpl \&#xA;    --disable-libass \&#xA;    --enable-libmp3lame \&#xA;    --enable-libx264 \&#xA;    --enable-libopus&#xA;&#xA;make -j 4&#xA;make install&#xA;&#xA;otool -L "$WORKSPACE/bin/ffmpeg"&#xA;otool -L "$WORKSPACE/bin/ffprobe"&#xA;&#xA;echo "Building done. The binaries can be found here: $WORKSPACE/bin/ffmpeg $WORKSPACE/bin/ffprobe"&#xA;&#xA;mkdir ffmpeg-mac/ &#xA;cp -r "$WORKSPACE/bin/" "$CWD/ffmpeg-mac/"&#xA;&#xA;rm -rf "$PACKAGES"&#xA;rm -rf "$WORKSPACE"&#xA;&#xA;exit 0&#xA;&#xA;

    &#xA;

    It fails with this error :

    &#xA;

    > sh buildffmpeg.sh&#xA;&#xA;Extracting...&#xA;Building...&#xA;gcc is unable to create an executable file.&#xA;C compiler test failed.&#xA;&#xA;If you think configure made a mistake, make sure you are using the latest&#xA;version from Git.  If the latest version fails, report the problem to the&#xA;ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.&#xA;Include the log file "ffbuild/config.log" produced by configure as this will help&#xA;solve the problem.&#xA;

    &#xA;

    I have been trying to solve this error, and have installed gcc with brew, if i run gcc -v I can see my installed gcc version :

    &#xA;

    $ gcc -v&#xA;Using built-in specs.&#xA;COLLECT_GCC=gcc&#xA;COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/12.2.0/bin/../libexec/gcc/x86_64-apple-darwin20/12/lto-wrapper&#xA;Target: x86_64-apple-darwin20&#xA;Configured with: ../configure --prefix=/usr/local/opt/gcc --libdir=/usr/local/opt/gcc/lib/gcc/current --disable-nls --enable-checking=release --with-gcc-major-version-only --enable-languages=c,c&#x2B;&#x2B;,objc,obj-c&#x2B;&#x2B;,fortran --program-suffix=-12 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-zstd=/usr/local/opt/zstd --with-pkgversion=&#x27;Homebrew GCC 12.2.0&#x27; --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --with-system-zlib --build=x86_64-apple-darwin20 --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk&#xA;Thread model: posix&#xA;Supported LTO compression algorithms: zlib zstd&#xA;gcc version 12.2.0 (Homebrew GCC 12.2.0) &#xA;

    &#xA;

    So if gcc is installed correctly (i think) why is it failing with a gcc error when I build ffmpeg ?

    &#xA;

    ffbuild/config.log :

    &#xA;

    ...&#xA;mktemp -u XXXXXX&#xA;9v9a2o&#xA;test_ld cc&#xA;test_cc&#xA;BEGIN /var/folders/p7/w8ysrm_x76v_z4n3nk70yd6m0000gn/T//ffconf.rUw6aGKJ/test.c&#xA;    1   int main(void){ return 0; }&#xA;END /var/folders/p7/w8ysrm_x76v_z4n3nk70yd6m0000gn/T//ffconf.rUw6aGKJ/test.c&#xA;gcc --static -I/Users/martinbarker/Documents/projects/rendertunev1.1.2/workspace/include -mmacosx-version-min=10.10 -c -o /var/folders/p7/w8ysrm_x76v_z4n3nk70yd6m0000gn/T//ffconf.rUw6aGKJ/test.o /var/folders/p7/w8ysrm_x76v_z4n3nk70yd6m0000gn/T//ffconf.rUw6aGKJ/test.c&#xA;gcc -L/Users/martinbarker/Documents/projects/rendertunev1.1.2/workspace/lib -mmacosx-version-min=10.10 -L/usr/local/opt/lame/lib -Wl,-rpath,/usr/local/opt/lame/lib -o /var/folders/p7/w8ysrm_x76v_z4n3nk70yd6m0000gn/T//ffconf.rUw6aGKJ/test /var/folders/p7/w8ysrm_x76v_z4n3nk70yd6m0000gn/T//ffconf.rUw6aGKJ/test.o -lpthread -lm -static&#xA;ld: warning: directory not found for option &#x27;-L/Users/martinbarker/Documents/projects/rendertunev1.1.2/workspace/lib&#x27;&#xA;ld: library not found for -lcrt0.o&#xA;collect2: error: ld returned 1 exit status&#xA;C compiler test failed.&#xA;&#xA;

    &#xA;

    gcc test :

    &#xA;

    apples-MacBook:gcctest apple$ export CC=$(which gcc)&#xA;apples-MacBook:gcctest apple$ export CXX=$(which g&#x2B;&#x2B;)&#xA;apples-MacBook:gcctest apple$ ls&#xA;minimal.c&#xA;apples-MacBook:gcctest apple$ gcc -static -Wall -o minimal minimal.c -v&#xA;Apple LLVM version 10.0.0 (clang-1000.10.44.4)&#xA;Target: x86_64-apple-darwin17.0.0&#xA;Thread model: posix&#xA;InstalledDir: /Library/Developer/CommandLineTools/usr/bin&#xA; "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name minimal.c -static-define -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 409.12 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/10.0.0 -Wall -fdebug-compilation-dir /Users/apple/Documents/projects/gcctest -ferror-limit 19 -fmessage-length 157 -stack-protector 1 -fblocks -fencode-extended-block-signature -fobjc-runtime=macosx-10.13.0 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/7t/d2z0gq194s92vn5xz923gq5h0000gn/T/minimal-8cfbfc.o -x c minimal.c&#xA;clang -cc1 version 10.0.0 (clang-1000.10.44.4) default target x86_64-apple-darwin17.0.0&#xA;#include "..." search starts here:&#xA;#include &lt;...> search starts here:&#xA; /usr/local/include&#xA; /Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include&#xA; /Library/Developer/CommandLineTools/usr/include&#xA; /usr/include&#xA; /System/Library/Frameworks (framework directory)&#xA; /Library/Frameworks (framework directory)&#xA;End of search list.&#xA; "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -static -arch x86_64 -macosx_version_min 10.13.0 -o minimal -lcrt0.o /var/folders/7t/d2z0gq194s92vn5xz923gq5h0000gn/T/minimal-8cfbfc.o&#xA;ld: library not found for -lcrt0.o&#xA;clang: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;

    &#xA;

  • pthread_frame : fix uninitialized variable read

    27 mars 2017, par wm4
    pthread_frame : fix uninitialized variable read
    

    Could lead to random behavior. This possibly happened due to commit
    32a5b631267. This should/could probably be simplified, but for no apply
    a minimal fix to quell the errors.

    Tested-by : Michael Niedermayer <michael@niedermayer.cc>
    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/pthread_frame.c