
Recherche avancée
Autres articles (41)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (6446)
-
How to display live frame rate on top of video using ffmpeg ? [closed]
2 juin 2021, par walking limeI want to display live frame rate over video using ffmpeg.I am using following command to get the frame number.Is it possible to get the frame rate as well ?.Thanks.


ffmpeg -re -stream_loop -1 -i /dev/video0 -c:v libx264 -preset veryfast -tune zerolatency -profile:v baseline -pix_fmt yuv420p -bf 0 -x264-params keyint=30:scenecut=0 -vf "drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf: text='%{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" -an -f mpegts udp://localhost:4000?pkt_size=1316



-
Im failing to build .so file for android from FFMPEG
15 juillet 2020, par yejafotI tried many times with different versions of ffmpeg but failed eventually. I dont know how they wrote .sh file to configure different tools. Here are some .sh files i tried and it all failed. Either it shows only
android/share
folder instead of

- 

-
android/include


-
android/lib


-
android/share










OR


i end up in error like
no file or folder exist
,etc

I will share
build_arm64-v8a
different version of files below

VERSION 1


#!/bin/bash
export NDK=/media/sf_sharing/android-ndk
export HOST_TAG=linux-x86_64 # adjust to your building host
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/$HOST_TAG

export CC=$TOOLCHAIN/bin/aarch64-linux-android21-clang
export CXX=$TOOLCHAIN/bin/aarch64-linux-android21-clang++

function build_arm64-v8a
{
 ./configure \
 --prefix=./android/arm64-v8a \
 --enable-static \
 --enable-pic \
 --disable-asm \
 --disable-opencl \
 --disable-cli \
 --host=aarch64-linux \
 --cross-prefix=$TOOLCHAIN/bin/aarch64-linux-android- \
 --sysroot=$TOOLCHAIN/sysroot \

 make clean
 make
 make install
}

build_arm64-v8a
echo build_arm64-v8a finished



VERSION 2


#!/bin/bash

TOOLCHAIN=/media/sf_sharing/my-android-toolchain64
CROSS_PREFIX=$TOOLCHAIN/bin/aarch64-linux-android-
rm -f $(pwd)/compat/strtod.o
function build_one
{
./configure --prefix=$PREFIX --enable-shared --disable-static --enable-protocol=file --enable-pic --enable-small --disable-programs --disable-doc --disable-symver --target-os=android --enable-cross-compile --cross-prefix=$CROSS_PREFIX --extra-cflags="-Os -fpic $ADDI_CFLAGS" --extra-ldflags="$ADDI_LDFLAGS" --sysroot=$TOOLCHAIN/sysroot $ADDITIONAL_CONFIG_FLAG
make clean
make -j2
make install
}

CPU=arm64-v8a
mkdir -p $(pwd)/android/$CPU
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-march=armv8-a"
ADDI_LDFLAGS="-L$TOOLCHAIN/sysroot/usr/lib"
ADDITIONAL_CONFIG_FLAG="--arch=aarch64 --enable-yasm"
build_one



VERSION 3


#!/bin/bash
export NDK=/media/sf_sharing/android-ndk
export HOST_TAG=linux-x86_64 # adjust to your building host
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/$HOST_TAG

export CC=$TOOLCHAIN/bin/aarch64-linux-android21-clang
export CXX=$TOOLCHAIN/bin/aarch64-linux-android21-clang++

function build_arm64-v8a
{
 ./configure \
 --prefix="$HOME/ffmpeg_build" \
 --pkg-config-flags="--static" \
 --extra-cflags="-I$HOME/ffmpeg_build/include" \
 --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
 --extra-libs="-lpthread -lm" \
 --bindir="$HOME/bin" \
 --enable-gpl \
 --enable-gnutls \
 --enable-libaom \
 --enable-libass \
 --enable-libfdk-aac \
 --enable-libfreetype \
 --enable-libmp3lame \
 --enable-libopus \
 --enable-libvorbis \
 --enable-libvpx \
 --enable-libx264 \
 --enable-libx265 \
 --enable-nonfree \

 make clean
 make
 make install
}

build_arm64-v8a
echo build_arm64-v8a finished



I'm using


- 

-
ffmpeg-snapshot.tar.bz2


-
android-ndk-r21d-linux-x86_64








the only thing i know in 'ndk 21` is we need to use default toolchain (android documentation says).


How to create .sh file to build .so file to use in android ?


-
-
Trouble setting up rtmp audio streaming with ffmpeg and nginx
20 septembre 2021, par igoryonyaCan't figure out how to set up rtmp streaming with ffmpeg.
I've been trying to figure it out for about 2 weeks now.
I need to stream the default sound from my sound card over rtmp stream.
I don't need a video, only an audio.


So, i've installed nginx with rtmp module and added the following code at the end of my "/etc/nginx/nginx.conf" file :


rtmp {
 server {
 listen 1935;
 application cam1 {
 live on;
 }
 }
}



restarted my nginx installation :


sudo systemctl status nginx.service



Checked that the 1935 port is listening :


~$ sudo netstat -nlp|egrep -i 'nginx'
tcp 0 0 0.0.0.0:1935 0.0.0.0:* LISTEN 1885931/nginx: mast 
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1885931/nginx: mast 
tcp6 0 0 :::80 :::* LISTEN 1885931/nginx: mast



Launched an ffmpeg to capture my sound card, encode it into ogg format and stream it to the rtmp server (on the same computer with nginx installed) :


ffmpeg -re -f pulse -i default -c:a libvorbis -content_type 'audio/ogg' -vn -f ogg rtmp://127.0.0.1/cam1/test



And it looks like, it's streaming, by showing statistics.


Then, I try to open it with the vlc player to test the stream and the yellow bar on the progress bar just going back and forth and never starts playing.
I tried to use vlc on the same computer and on the computer on the same network.


Assuming, the computer, that is streaming rtmp has an IP : 192.168.0.1, I use the following connection URL in VLC :


rtmp://192.168.0.1/cam1/test