Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (57)

  • 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

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (11951)

  • ffmpeg via pipe : stream 1, offset 0x30 : partial file

    5 octobre 2024, par Dito Adriel

    my videodata is dynamic it can use any exension but its error when i use mp4 extension.

    


    my function :

    


    func (s *service) convertVideo(videoData []byte) ([]byte, error) {
    var buffer bytes.Buffer
    cmd := exec.Command("ffmpeg",
        "-i", "pipe:0",
        "-c:v", "libvpx-vp9",
        "-b:v", "0",
        "-f", "webm",
        "-t", "8",
        "-preset", "ultrafast",
        "pipe:1")
    cmd.Stdin = bytes.NewReader(videoData)
    cmd.Stdout = &buffer
    err := cmd.Run()
    if err != nil {
        return nil, err
    }
    return buffer.Bytes(), nil
}


    


    and got error :

    


    stream 1, offset 0x30: partial file
Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 720x1280, 773 kb/s): unspecified pixel format


    


    is it because i use stream pipe ? becuase if i use temp file its success, but its not that effective.

    


    New

    


    if i convert my mp4 to mp4 first, then it success. so the cause of problem is from my mp4, but still not found the solution in code.

    


  • How can i forcing current frame to be encoded as intra frame using libavcodec

    14 avril 2021, par pensir

    I want to change gop dynamic to adapt to player. Smaller gop help for reduce first screen cost ; Big gop help to reduce bitrate to save bandwidth.

    


    I found nvenc has a function which can solve the problem above.
https://docs.nvidia.com/video-technologies/video-codec-sdk/nvenc-video-encoder-api-prog-guide/#forcing-current-frame-to-be-encoded-as-intra-frame

    


    But I'm using ffmpeg. Is there any similar function in ffmpeg ?

    


  • Android FFmpeg build : cannot find -lavutil

    4 novembre 2016, par Jon G

    I am trying to build FFmpeg for Android JNI using the guide here (forked from appunite’s build). One difference between my build and theirs is that I am trying to use the FFmpeg master branch instead of commit 82db8ee, maybe that is relevant. I am coming across a build issue when I try to build for multiple architectures in a row.

    The code that is running is :

    ${LD} -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -L$PREFIX/lib -soname $SONAME -shared -nostdlib -Bsymbolic --whole-archive --no-undefined -o $OUT_LIBRARY -lavformat -lavcodec -lx264 -lavfilter -lavutil -lswscale -lswresample -lavresample -lfribidi -lvo-aacenc -lvo-amrwbenc -lpostproc -lc -lm -lz -ldl -llog --dynamic-linker=/system/bin/linker -zmuldefs $PREBUILT/lib/gcc/$EABIARCH/$COMPILATOR_VERSION.x/libgcc.a

    The logs that are outputted in the MIPS case are :

    ...
    FINISHED ffmpeg for mips
    + build_one
    + echo 'Starting build one for mips'
    Starting build one for mips
    + cd ffmpeg
    + /home/jon/Development/android-ndk-r10e/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-ld -rpath-link=/home/jon/Development/android-ndk-r10e/platforms/android-9/arch-mips//usr/lib -L/home/jon/Development/android-ndk-r10e/platforms/android-9/arch-mips//usr/lib -L/home/jon/workspace/kyawkyaw-AndroidFFmpeg/library-jni/jni/ffmpeg-build/mips/lib -soname libffmpeg.so -shared -nostdlib -Bsymbolic --whole-archive --no-undefined -o /home/jon/workspace/kyawkyaw-AndroidFFmpeg/library-jni/jni/ffmpeg-build/mips/libffmpeg.so -lavcodec -lavformat -lavresample -lavutil -lfdk-aac -lswresample -lx264 -lswscale -lc -lm -lz -ldl -llog --dynamic-linker=/system/bin/linker -zmuldefs /home/jon/Development/android-ndk-r10e/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/mipsel-linux-android/4.9/libgcc.a
    /home/jon/Development/android-ndk-r10e/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-ld: skipping incompatible /home/jon/workspace/kyawkyaw-AndroidFFmpeg/library-jni/jni/ffmpeg-build/mips/lib/libavutil.a when searching for -lavutil
    /home/jon/Development/android-ndk-r10e/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-ld: cannot find -lavutil

    Everything seems successful until that point. Why would libavutil.a be incompatible ?

    I find that if I revert FFmpeg to commit 82db8ee, build for MIPS (successful), change back to master, then build for MIPS again, it does not raise the error. Perhaps something is not being cleaned up properly ?