Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (73)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (13346)

  • Ffmpeg Android - Minimum binary size to convert WAV to MP3

    22 novembre 2020, par timson

    The only thing I want to do is convert wav files to mp3 inside my Android application.

    


    I am currently using https://github.com/tanersener/mobile-ffmpeg and with audio-release everything is working fine. As the lib size is about 40 MB and I only need a single command, I'd like to build my own .aar file as described in the Wiki to reduce the application size.

    


    I edited the android-ffmpeh.sh ./configure:

    


    --disable-everything \    
--enable-pthreads \
--enable-avcodec \
--enable-avformat \
--enable-swresample \
--enable-avfilter \
--enable-libmp3lame \
--enable-parser=mpegaudio \
--enable-demuxer=mp3,wav,pcm_s16le \
--enable-muxer=mp3,wav,pcm_s16le \
--enable-decoder=pcm*,mp3*,wav,pcm_s16le \
--enable-encoder=pcm*,pcm_s16le,wav,mp3,libmp3lame \
--enable-filter=aresample \
--enable-protocol=file \


    


    and then ran ./android.sh -l --enable-lame --enable-libiconv

    


    In my Android app FFmpeg loads but the conversion doesn't succed with following error :

    


    E/mobile-ffmpeg: [AVFilterGraph @ 0x7209dfec40] No such filter: 'anull'
E/mobile-ffmpeg: Error reinitializing filters!
E/mobile-ffmpeg: Failed to inject frame into filter network: Invalid argument
E/mobile-ffmpeg: Error while processing the decoded data for stream #0:0
I/mobile-ffmpeg: Conversion failed!


    


    Does anyone know what I'm missing or another config to build a minimal size binary for this.
Any help is highly appreciated !

    


  • matroskaenc : implement CueRelativePosition

    23 juillet 2013, par Bernie Habermeier
    matroskaenc : implement CueRelativePosition
    

    This is a minimal change to matroskaenc that implements CueRelativePosition in the output.
    Most players will probably ignore this additional information, but it is in the
    matroska spec, and it’d be nice to be able to make use of it.

    Signed-off-by : Bernt Habermeier <bernt@wulfram.com>
    Tested-by : wm4 <nfxjfg@googlemail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/matroska.h
    • [DH] libavformat/matroskaenc.c
    • [DH] tests/ref/lavf/mkv
  • ffmpeg command exports flac with wrong 'length' metadata, works fine for mp3

    21 juillet 2023, par Martin

    I have some audio recorded in Audacity 3.2.3 that I have exported as an mp3 and a flac. Then I have this file split_by_silence.sh

    &#xA;

    Which has hardcoded input path values that take an input file, split it by detecting silence, and then finally run an ffmpeg command to split the files. If you save the below code into a file split.sh, you can call it with the command $ ./split_by_silence.sh "value1" "value2"

    &#xA;

    # ./split_by_silence.sh "full_lowq.flac" %03d_output.flac&#xA;#IN=$1&#xA;#OUT=$2&#xA;&#xA;OUT="%03d_output.flac"&#xA;IN="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/dog on fire.flac"&#xA;OUTPUT_LOCATION="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/"&#xA;&#xA;true ${SD_PARAMS:="-18dB"};&#xA;true ${MIN_FRAGMENT_DURATION:="20"};&#xA;export MIN_FRAGMENT_DURATION&#xA;if [ -z "$OUT" ]; then&#xA;    echo "Usage: split_by_silence.sh full.mp3 output_template_%03d.mp3"&#xA;    echo "Depends on FFmpeg, Bash, Awk, Perl 5. Not tested on Mac or Windows."&#xA;    echo ""&#xA;    echo "Environment variables (with their current values):"&#xA;    echo "    SD_PARAMS=$SD_PARAMS       Parameters for FFmpeg&#x27;s silencedetect filter: noise tolerance and minimal silence duration"&#xA;    echo "    MIN_FRAGMENT_DURATION=$MIN_FRAGMENT_DURATION    Minimal fragment duration"&#xA;    exit 1&#xA;fi&#xA;#&#xA;# get comma separated list of split points (use ffmpeg to determine points where audio is at SD_PARAMS [-18db] )&#xA;#&#xA;&#xA;echo "_______________________"&#xA;echo "Determining split points..." >&amp; 2&#xA;SPLITS=$(&#xA;    ffmpeg -v warning -i "$IN" -af silencedetect="$SD_PARAMS",ametadata=mode=print:file=-:key=lavfi.silence_start -vn -sn  -f s16le  -y /dev/null \&#xA;    | grep lavfi.silence_start= \&#xA;    | cut -f 2-2 -d= \&#xA;    | perl -ne &#x27;&#xA;        our $prev;&#xA;        INIT { $prev = 0.0; }&#xA;        chomp;&#xA;        if (($_ - $prev) >= $ENV{MIN_FRAGMENT_DURATION}) {&#xA;            print "$_,";&#xA;            $prev = $_;&#xA;        }&#xA;    &#x27; \&#xA;    | sed &#x27;s!,$!!&#x27;&#xA;)&#xA;echo "SPLITS= $SPLITS"&#xA;&#xA;#&#xA;# Add 5 seconds to each of the comma separated numbers&#xA;#&#xA;# Convert the comma-separated string into an array&#xA;arr=($(echo $SPLITS | tr &#x27;,&#x27; &#x27;\n&#x27;))&#xA;# Initialize a new array to store the results&#xA;new_arr=()&#xA;# Iterate through each element and add 5 seconds of padding&#xA;for i in "${arr[@]}"; do&#xA;  result=$(echo "$i &#x2B; 5" | bc -l)&#xA;  new_arr&#x2B;=("$result")&#xA;done&#xA;# Convert the array back into a comma-separated string&#xA;NEW_SPLITS=$(IFS=,; echo "${new_arr[*]}")&#xA;# Print the result&#xA;echo "NEW_SPLITS= $NEW_SPLITS"&#xA;SPLITS=$NEW_SPLITS&#xA;&#xA;#&#xA;# Print how many tracks should be exported&#xA;#&#xA;res="${SPLITS//[^,]}"&#xA;CHARCOUNT="${#res}"&#xA;num=$((CHARCOUNT &#x2B; 2))&#xA;echo "Exporting $num tracks"&#xA;echo "_______________________"&#xA;&#xA;#&#xA;# Split audio into individual tracks&#xA;#&#xA;current_directory=$(pwd)&#xA;&#xA;cd "$OUTPUT_LOCATION"&#xA;&#xA;echo "Running ffmpeg command: "&#xA;&#xA;ffmpeg -i "$IN" -c copy -map 0 -f segment -segment_times "$SPLITS" "$OUT"&#xA;#ffmpeg -i "full_lowq.flac" -c copy -map 0 -f segment -segment_times "302.825,552.017" "%03d_output.flac"&#xA;&#xA;&#xA;echo "Done."&#xA;&#xA;cd $current_directory&#xA;&#xA;echo "running flac command"&#xA;# check flac file intrgrity&#xA;

    &#xA;

    If I call this code for my flac file :

    &#xA;

    OUT="%03d_output.flac"&#xA;IN="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/dog on fire.flac"&#xA;

    &#xA;

    The outputted files have an incorrect metadata for the length. They all report as having the same length, but if i import any of them into audacity, the file has a correct length.

    &#xA;

    enter image description here

    &#xA;

    but if i run this for my mp3 file, we can see the correct length metadata :

    &#xA;

    OUT="%03d_output.mp3"&#xA;IN="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/dogs on fire.mp3"&#xA;

    &#xA;

    enter image description here

    &#xA;

    So there is something with my ffmpeg command that causes it to export flac files with wrong 'length' metadata

    &#xA;

    ffmpeg -i "$IN" -c copy -map 0 -f segment -segment_times "$SPLITS" "$OUT"&#xA;&#xA;

    &#xA;

    I've tried with the flac example to change -c copy to -c:a flac, but that just gives every output flac file a length of 00:00:00

    &#xA;

    is it a problem with my ffmpeg command ? Or my files ? https://file.io/tIFsa1l70076&#xA;it works for mp3 files just fine, why does it have this issue with flac ?

    &#xA;