Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (85)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (18436)

  • Problem while building libffmpeg.so from ffmpeg sources (undefined symbol : avcodec_version)

    10 octobre 2023, par serggt1

    I'm trying to build libffmpeg.so shared library from sources on Linux. Sources are here FFmpeg.git.

    


    I run

    


    ./configure
make -j4

gcc -shared \
    libavcodec/libavcodec.a \
    libavdevice/libavdevice.a \
    libavfilter/libavfilter.a \
    libavformat/libavformat.a \
    libavutil/libavutil.a \
    libswresample/libswresample.a \
    libswscale/libswscale.a \
    -o libffmpeg.so


    


    The problem is the resulting libffmpeg.so is only 15 KB and says

    


    dlsym fail : /opt/yandex/browser/libffmpeg.so: undefined symbol: avcodec_version


    


    What do I wrong and how to link the library in correct way ?

    


    UPD :

    


    Now trying with this :

    


    ./configure --enable-pic --disable-programs  --enable-gpl --enable-version3 --enable-nonfree

make -j4

ld \
    -rpath-link=/usr/lib \
    -L/usr/lib \
    -L/lib \
    --library=c --library=m --library=z --library=dl --library=log \
    -soname libffmpeg.so -shared -nostdlib -Bsymbolic --whole-archive --no-undefined \
    libavcodec/libavcodec.a \
    libavdevice/libavdevice.a \
    libavfilter/libavfilter.a \
    libavformat/libavformat.a \
    libavutil/libavutil.a \
    libswresample/libswresample.a \
    libswscale/libswscale.a \
    -o libffmpeg.so


    


    Error is ld: cannot find -lc: No such file or directory

    


  • Shell Script for passing multiple audio sources as arguments to a script that uses ffmpeg for recording video/audio ? [duplicate]

    29 novembre 2023, par Raul Chiarella

    I have the following Shell/Bash Script, that records video with audio in my Linux :

    


    #!/bin/bash

# Command to record audio from one microphone and video from one webcam
ffmpeg_cmd="ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f alsa -ac 1 -i hw:1,0 -acodec libmp3lame -ab 96k camera.mp4"

# Execute the command
echo "Executing: $ffmpeg_cmd"
eval $ffmpeg_cmd


    


    This one works... But now :

    


    What I want is to be able to execute this Bash/Shell script passing multiple audio sources parameters and changing if video is going to be recorded or not (Video 1 Enabled, Video 0 Disabled), for example, using ./recordVideo.sh -a "audio1,audio2" -v 1...

    


    I tried recording a video accepting multiple audio sources arguments and passing it to FFMPEG using the following script :

    


    #!/bin/bash

# Default variables
audio_sources=""
video_flag=0

# Function to display help
usage() {
    echo "Usage: $0 -a 'Microphone1,Microphone2' -v 1"
    echo "  -a : List of audio sources, separated by commas"
    echo "  -v : Video flag (1 to record video, 0 not to record)"
    exit 1
}

# Parse arguments
while getopts "a,v" opt; do
  case $opt in
    a) audio_sources=$OPTARG ;;
    v) video_flag=$OPTARG ;;
    *) usage ;;
  esac
done

# Check if audio arguments were provided
if [ -z "$audio_sources" ]; then
    echo "Error: Audio sources not specified."
    usage
fi

# Initial ffmpeg command configuration
cmd="ffmpeg"

# Counter for source mapping
source_count=0

# Audio settings
IFS=',' read -ra ADDR <<< "$audio_sources"
for source in $ADDR; do
    cmd+=" -f alsa -ac 1 -i $source"
    cmd+=" -map $source_count"
    ((source_count++))
done

# Video settings
if [ "$video_flag" -eq 1 ]; then
    cmd+=" -f video4linux2 -s 320x240 -i /dev/video0 -map $source_count"
    ((source_count++))
fi

# Audio codec configuration
cmd+=" -acodec libmp3lame -ab 96k"

# Output file name
cmd+=" recordedVideo.mp4"

# Execute command
echo "Executing: $cmd"
eval $cmd


    


    But it is throwing the following error when I execute ./recordVideo.sh -a 'Microphone1,Microphone2' -v 1 :

    


    


    Error : Audio sources not specified.
Usage : ./recordVideo.sh -a 'Microphone1,Microphone2' -v 1
-a : List of audio sources, separated by commas
-v : Video flag (1 to record video, 0 not to record)

    


    


    Can someone help me ? :(
What am I doing wrong ? Is it the Shell Syntax or FFMPEG arguments that are wrong ?

    


  • avcodec/vvcdec : bdof, do not pad sources and gradients to simplify the code

    20 août 2024, par Nuo Mi
    avcodec/vvcdec : bdof, do not pad sources and gradients to simplify the code
    
    • [DH] libavcodec/vvc/dsp.c
    • [DH] libavcodec/vvc/dsp.h
    • [DH] libavcodec/vvc/inter_template.c