Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (108)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (12666)

  • Output filename extension in fswatch and ffmpeg

    30 juin 2020, par rr09

    I'm having issue with the file-naming extension output. My input is JPG files that needs to convert to MP4 using FFMPEG. However, when I run the code below it output as img1.jpg.mp4 including the input file extension instead of just img1.mp4.

    


    fswatch -e ".*" -i "\\.jpg$" . |xargs -n1 basename|xargs -n1 -t -I {} sh -c 'pwd;[[ -f {} ]] && ffmpeg -y -loop 1 -i "{}" -vf "fade=t=in:st=0:d=1,fade=t=out:st=2:d=1" -preset "ultrafast" -c:v libx264 -t 3 -pix_fmt yuv420p "{}.mp4"'


    


    Any help is much appreciated.

    


    Running on MAC, SH/BASH

    


    EDITED :

    


    BTW I also tried a loop to do the trick like the code below, but I'm looking to more neat solution to fix it in the same line of code above or call function after FSWATCH successful operation.

    


     for file in
     *.jpg.mp4; do
        mv "$file" "$(basename "$file" .jpg.mp4).mp4"
    done


    


  • Exoplayer FFMPEG issue. Video froze on the first frame after adding Exoplayer FFMPEG extension

    13 mai 2020, par Aravind

    I am working on adding Exoplayer and it works fine. But some of the videos were playing without audio, it plays fine in VLC medial player. So I was suggested to add Exoplayer FFMPEG. I added Exoplayer FFMPEG extension and I modified the code as below,

    



    val videoTrackSelectionFactory: TrackSelection.Factory = AdaptiveTrackSelection.Factory(BANDWIDTH_METER)
val trackSelector: TrackSelector = DefaultTrackSelector(videoTrackSelectionFactory)

val renderersFactory: RenderersFactory = DefaultRenderersFactory(mContext, null, EXTENSION_RENDERER_MODE_PREFER)
mPlayer = ExoPlayerFactory.newSimpleInstance(mContext, renderersFactory, trackSelector)
mediaSource = mMediaSourceUri?.let { createLeafMediaSource(it) }!!
mPlayer.prepare(mediaSource)


    



    After I modified the video stuck with the first frame and it keeps on loading. I checked the log and I didn't see any error.

    



    Code Sample

    



    Can anyone help me with this ? Thanks in advance !

    


  • How to build the Exoplayer ffmpeg extension with the GSM codec ?

    4 mars 2020, par MadCoconut

    I wanted to use Exoplayer to play an audio file but when I tried I got this exception :

    2019-12-13 10:08:14.827 28972-29388/com.XXX.XXX E/ExoPlayerImplInternal: Source error.
       com.google.android.exoplayer2.ParserException: Expected block alignment: 0; got: 65
           at com.google.android.exoplayer2.extractor.wav.WavHeaderReader.peek(WavHeaderReader.java:81)
           at com.google.android.exoplayer2.extractor.wav.WavExtractor.sniff(WavExtractor.java:50)
           at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractorHolder.selectExtractor(ProgressiveMediaPeriod.java:1061)
           at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:952)
           at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:394)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
           at java.lang.Thread.run(Thread.java:764)

    The audio files I have to play are wav files (GSM_MS, 13kb/s)

    I tried to build the the Exoplayer Ffmpeg extension following the tutorial :
    https://github.com/google/ExoPlayer/tree/release-v2/extensions/ffmpeg

    I cloned the Exoplayer repository and I downloaded the Android NDK version r20b.

    I modified the build script build_ffmpeg.sh to enable the libgsm :

    COMMON_OPTIONS=“

      —enable-libgsm
    "

    I defined the required environment variables :

    Then I built the library using the provided command line :

    cd "${FFMPEG_EXT_PATH}" && \
    ./build_ffmpeg.sh \
    "${FFMPEG_EXT_PATH}" "${NDK_PATH}" "${HOST_PLATFORM}" "${ENABLED_DECODERS[@]}"

    But something goes wrong during the build process :

    remote: Enumerating objects: 38, done.
    remote: Counting objects: 100% (38/38), done.
    remote: Compressing objects: 100% (26/26), done.
    remote: Total 26 (delta 20), reused 0 (delta 0)
    Unpacking objects: 100% (26/26), done.
    From git://source.ffmpeg.org/ffmpeg
     377a095dc3..bd83191271  master     -> origin/master
    Already up to date.
    Already on 'release/4.2'
    Your branch is up to date with 'origin/release/4.2'.
    ERROR: libgsm not found

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "ffbuild/config.log" produced by configure as this will help
    solve the problem.
    GEN libavutil/libavutil.version
    GEN libswresample/libswresample.version
    GEN libavresample/libavresample.version
    GEN libavcodec/libavcodec.version
    CC  libavcodec/aac_ac3_parser.o
    CC  libavcodec/aacdec.o
    CC  libavcodec/aacps_float.o
    CC  libavcodec/aacpsdsp_float.o
    CC  libavcodec/aacsbr.o
    CC  libavcodec/aactab.o
    CC  libavcodec/ac3.o
    CC  libavcodec/ac3_parser.o
    CC  libavcodec/ac3dec_data.o
    CC  libavcodec/ac3dec_float.o

    Here is a part of the content of the config.log file located in the ffmpeg checked out library (/extensions/ffmpeg/src/main/jni/ffmpeg/ffbuild/config.log :


    /Users/USER/Documents/Android/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android16-clang -march=i686 -Wl,--as-needed -Wl,-z,noexecstack -pie -fPIE -pie -o /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.o
    /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.o:test.c:function foo: error: undefined reference to 'cexp'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    check_lib libgsm gsm.h gsm_create -lgsm
    check_func_headers gsm.h gsm_create -lgsm
    test_ld cc -lgsm
    test_cc
    BEGIN /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c
       1   #include
       2   #include
       3   long check_gsm_create(void) { return (long) gsm_create; }
       4   int main(void) { int ret = 0;
       5    ret |= ((intptr_t)check_gsm_create) & 0xFFFF;
       6   return ret; }
    END /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c
    /Users/USER/Documents/Android/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android16-clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -march=i686 -std=c11 -fPIE -fomit-frame-pointer -fPIC -pthread -c -o /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.o /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c
    /var/folders/9l/trkjpc091_79vk3krfpykbsh0000gn/T//ffconf.hv2yROG1/test.c:1:10: fatal error: 'gsm.h' file not found

    The gsm.h file is located there : /extensions/ffmpeg/src/main/jni/ffmpeg/libavcodec

    I assume this path has been configured to be used by the build script.

    Any help is much appreciated.