Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (22)

  • 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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (7044)

  • Can't maintain desired fps with ffmpeg live stream when overlay is added

    1er avril 2019, par jawsware

    I’m attempting to produce a 4K live stream for YouTube.

    I’m capturing 2160p30 frames from a BlackMagic Design DeckLink Mini Recorder. I’m passing those frames to ffmpeg in their raw 8-bit 4:2:2 format. I’m able to achieve 30 fps encoding ( 16kbits/s and q= in the high 20s to low 30s) with my current parameters which are :

    ffmpeg -threads:v 2 -threads:a 8 -filter_threads 2
    -f rawvideo -framerate 30 -pixel_format uyvy422 -video_size 3840x2160 -i \\.\pipe\videopipe
    -f s16le -ac 2 -ar 44100 -i \\.\pipe\audiopipe
    -r 30 -g 60 -c:v h264_nvenc -pix_fmt yuv420p -preset fast -profile main
    -b:v 16000K -maxrate 24000k -bufsize 6000k
    -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx"

    I’m dilemma is that once I introduce an overlay graphic, my encoding fps drops to 28 at best. Which leads me to believe I’m barley achieving the 30 fps without the overlay. I’m only adding these parameters to include the overlay :

    -i logo.png

    -filter_complex "overlay=100:100"

    I further diminish the encoding fps (20 fps max) when I introduce a dynamic overlay which I feed to ffmpeg through an additional pipe.

    My questions are 1.) is there a better set a parameters I could be using to encode the 4K stream ? 2.) is there a better way to include the overlay ?

  • avdevice/decklink_enc : Add support for compressed AC-3 output over SDI

    7 avril 2023, par Devin Heitmueller
    avdevice/decklink_enc : Add support for compressed AC-3 output over SDI
    

    Extend the decklink output to include support for compressed AC-3,
    encapsulated using the SMPTE ST 377:2015 standard.

    This functionality can be exercised by using the "copy" codec when
    the input audio stream is AC-3. For example :

    ./ffmpeg -i /foo.ts -codec:a copy -f decklink 'UltraStudio Mini Monitor'

    Note that the default behavior continues to be to do PCM output,
    which means without specifying the copy codec a stream containing
    AC-3 will be decoded and downmixed to stereo audio before output.

    Thanks to Marton Balint for providing feedback.

    Signed-off-by : Devin Heitmueller <dheitmueller@ltnglobal.com>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavdevice/decklink_enc.cpp
  • 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;