Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (36)

  • 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

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (4044)

  • avcodec_find_decoder() can't find AV_CODEC_ID_WMAV2 even through CLI can parse WMAs on macOS ?

    3 octobre 2023, par grendell

    I am following the decode_audio.c example from FFmpeg, but I am unable to initialize a parser for AV_CODEC_ID_WMAV2.

    


    Test code :

    


    #include &#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;&#xA;int main() {&#xA;    // codec is found successfully&#xA;    const AVCodec * codec = avcodec_find_decoder(AV_CODEC_ID_WMAV2);&#xA;    if (!codec) {&#xA;        fprintf(stderr, "codec not found\n");&#xA;        return 1;&#xA;    }&#xA;&#xA;    // parser is always NULL&#xA;    AVCodecParserContext * parser = av_parser_init(codec->id);&#xA;    if (!parser) {&#xA;        fprintf(stderr, "parser not found\n");&#xA;        return 1;&#xA;    }&#xA;&#xA;    av_parser_close(parser);&#xA;    return 0;&#xA;}&#xA;

    &#xA;

    Build commands :

    &#xA;

    clang -c -I/opt/homebrew/Cellar/ffmpeg/6.0_1/include wma2mp3.c -o obj/wma2mp3.o&#xA;clang -L/opt/homebrew/Cellar/ffmpeg/6.0_1/lib -lavcodec obj/wma2mp3.o -o wma2mp3&#xA;

    &#xA;

    I'm surprised by the fact that the FFmpeg CLI can perform this operation on the same machine :

    &#xA;

    % ffmpeg -i test.wma test.mp3&#xA;ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      58.  2.100 / 58.  2.100&#xA;  libavcodec     60.  3.100 / 60.  3.100&#xA;  libavformat    60.  3.100 / 60.  3.100&#xA;  libavdevice    60.  1.100 / 60.  1.100&#xA;  libavfilter     9.  3.100 /  9.  3.100&#xA;  libswscale      7.  1.100 /  7.  1.100&#xA;  libswresample   4. 10.100 /  4. 10.100&#xA;  libpostproc    57.  1.100 / 57.  1.100&#xA;Guessed Channel Layout for Input Stream #0.0 : mono&#xA;Input #0, asf, from &#x27;test.wma&#x27;:&#xA;  Metadata:&#xA;    ToolName        : Windows Media Encoding Utility&#xA;    ToolVersion     : 8.00.00.0343&#xA;  Duration: 00:00:00.74, start: 0.000000, bitrate: 80 kb/s&#xA;  Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 1 channels, fltp, 48 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (wmav2 (native) -> mp3 (libmp3lame))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, mp3, to &#x27;test.mp3&#x27;:&#xA;  Metadata:&#xA;    ToolName        : Windows Media Encoding Utility&#xA;    ToolVersion     : 8.00.00.0343&#xA;    TSSE            : Lavf60.3.100&#xA;  Stream #0:0: Audio: mp3, 44100 Hz, mono, fltp&#xA;    Metadata:&#xA;      encoder         : Lavc60.3.100 libmp3lame&#xA;[libmp3lame @ 0x130706320] Queue input is backward in timeed=N/A    &#xA;[mp3 @ 0x1307056e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 15668 >= 14764&#xA;size=       8kB time=00:00:00.97 bitrate=  65.8kbits/s speed= 103x    &#xA;video:0kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.048112%&#xA;

    &#xA;

    I am using an Apple M1 machine running MacOS 13.5.2 (22G91).

    &#xA;

    Is the CLI using a different mechanism than av_parser_parse2 to perform this conversion, and is there a better way to accomplish this via the C API ?

    &#xA;

  • When I use ffprobe to check a video stream,I get the error below [closed]

    21 mai 2024, par dongrixinyu

    I came across with a problem when ffprobe and decoding video stream .

    &#xA;

    Here is the log :

    &#xA;

    ffprobe version 6.1.1 Copyright (c) 2007-2023 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.2)&#xA;  configuration: --enable-gpl --enable-version3 --enable-shared --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libzvbi --enable-libwebp --enable-libx264 --enable-libx265 --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libmfx --enable-opencl --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libmysofa --enable-librubberband --enable-libsoxr&#xA;  libavutil      58. 29.100 / 58. 29.100&#xA;  libavcodec     60. 31.102 / 60. 31.102&#xA;  libavformat    60. 16.100 / 60. 16.100&#xA;  libavdevice    60.  3.100 / 60.  3.100&#xA;  libavfilter     9. 12.100 /  9. 12.100&#xA;  libswscale      7.  5.100 /  7.  5.100&#xA;  libswresample   4. 12.100 /  4. 12.100&#xA;  libpostproc    57.  3.100 / 57.  3.100&#xA;[NULL @ 0x5595d3e72040] illegal reordering_of_pic_nums_idc 7&#xA;[h264 @ 0x5595d3e72040] illegal modification_of_pic_nums_idc 7&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error&#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error&#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] reference overflow 66 > 15 or 0 > 15&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error&#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] chroma_log2_weight_denom 27 is out of range&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x5595d3e72040] Missing reference picture, default is 4&#xA;[h264 @ 0x5595d3e72040] concealing 8144 DC, 8144 AC, 8144 MV errors in P frame&#xA;[h264 @ 0x5595d3e72040] top block unavailable for requested intra mode&#xA;[h264 @ 0x5595d3e72040] error while decoding MB 4 0, bytestream 12113&#xA;[h264 @ 0x5595d3e72040] concealing 8160 DC, 8160 AC, 8160 MV errors in P frame&#xA;[h264 @ 0x5595d3e72040] illegal short term buffer state detected&#xA;[h264 @ 0x5595d3e72040] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x5595d3e72040] error while decoding MB 1 0, bytestream 9617&#xA;[h264 @ 0x5595d3e72040] concealing 8160 DC, 8160 AC, 8160 MV errors in P frame&#xA;[h264 @ 0x5595d3e72040] illegal short term buffer state detected&#xA;[h264 @ 0x5595d3e72040] luma_log2_weight_denom 15 is out of range&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x5595d3e72040] top block unavailable for requested intra mode&#xA;[h264 @ 0x5595d3e72040] error while decoding MB 4 0, bytestream 12323&#xA;[h264 @ 0x5595d3e72040] concealing 8160 DC, 8160 AC, 8160 MV errors in P frame&#xA;[h264 @ 0x5595d3e72040] illegal short term buffer state detected&#xA;[h264 @ 0x5595d3e72040] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x5595d3e72040] error while decoding MB 27 0, bytestream 12229&#xA;[h264 @ 0x5595d3e72040] concealing 8160 DC, 8160 AC, 8160 MV errors in P frame&#xA;[h264 @ 0x5595d3e72040] illegal short term buffer state detected&#xA;[h264 @ 0x5595d3e72040] illegal reordering_of_pic_nums_idc 15 &#xA;[h264 @ 0x5595d3e72040] illegal modification_of_pic_nums_idc 15&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error &#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] reference count 1 overflow&#xA;[h264 @ 0x5595d3e72040] reference count overflow&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error &#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] luma_log2_weight_denom 31 is out of range&#xA;[h264 @ 0x5595d3e72040] illegal memory management control operation 21&#xA;[h264 @ 0x5595d3e72040] luma_log2_weight_denom 31 is out of range&#xA;[h264 @ 0x5595d3e72040] illegal memory management control operation 21&#xA;[h264 @ 0x5595d3e72040] deblocking filter parameters -7 0 out of range&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error &#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] Reference 6 >= 3&#xA;[h264 @ 0x5595d3e72040] error while decoding MB 29 0, bytestream 8581&#xA;[h264 @ 0x5595d3e72040] concealing 8160 DC, 8160 AC, 8160 MV errors in P frame&#xA;[h264 @ 0x5595d3e72040] number of reference frames (0&#x2B;4) exceeds max (3; probably corrupt input), discarding one&#xA;[h264 @ 0x5595d3e72040] chroma_log2_weight_denom 15 is out of range&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x5595d3e72040] deblocking_filter_idc 13 out of range&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error &#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] deblocking_filter_idc 32 out of range&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error&#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] illegal reordering_of_pic_nums_idc 31&#xA;[h264 @ 0x5595d3e72040] illegal modification_of_pic_nums_idc 31&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error &#xA;[h264 @ 0x5595d3e72040] no frame!&#xA;[h264 @ 0x5595d3e72040] illegal reordering_of_pic_nums_idc 6&#xA;[h264 @ 0x5595d3e72040] illegal modification_of_pic_nums_idc 6&#xA;[h264 @ 0x5595d3e72040] decode_slice_header error &#xA;&#xA;

    &#xA;

    I executed both ffprobe xxxx.mp4 and avcodec receive frame functions to decode one frame. reproduced the same error log.

    &#xA;

    But when I open it using VLC or OBS it worked well. So,

    &#xA;

      &#xA;
    • does any error when I configure the options of ffmpeg ?
    • &#xA;

    • how to fix this problem ?
    • &#xA;

    &#xA;

    the mp4 file I upload a piece in mp4 link

    &#xA;

  • Can't fix this ffmpeg, NoClassDefFoundError

    15 mars 2023, par noob234

    I am trying to get the video duration with this library import org.bytedeco.javacv.FFmpegFrameGrabber;

    &#xA;

    When I upload this mp4 video (https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4), I get this error message :&#xA;java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil

    &#xA;

    It will break when trying to get the 'grabber' :

    &#xA;

    private void videoInfo(MultipartFile file) {&#xA;    try (FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(file.getInputStream())) { // on this line it will break :(&#xA;        grabber.start();&#xA;        long durationMs = grabber.getLengthInTime();&#xA;    } catch (FrameGrabber.Exception e) {&#xA;        throw new RuntimeException(e);&#xA;    } catch (IOException e) {&#xA;        throw new RuntimeException(e);&#xA;    }&#xA;}&#xA;

    &#xA;

    This is my build.gradle :

    &#xA;

    plugins {&#xA;    id &#x27;java&#x27;&#xA;    id &#x27;org.springframework.boot&#x27; version &#x27;2.7.9&#x27;&#xA;    id &#x27;io.spring.dependency-management&#x27; version &#x27;1.0.15.RELEASE&#x27;&#xA;}&#xA;&#xA;group = &#x27;com.nob234&#x27;&#xA;version = &#x27;0.0.1-SNAPSHOT&#x27;&#xA;&#xA;configurations {&#xA;    compileOnly {&#xA;        extendsFrom annotationProcessor&#xA;    }&#xA;}&#xA;&#xA;repositories {&#xA;    mavenCentral()&#xA;}&#xA;&#xA;dependencies {&#xA;    implementation &#x27;org.springframework.boot:spring-boot-starter-web&#x27;&#xA;    compileOnly &#x27;org.projectlombok:lombok&#x27;&#xA;    annotationProcessor &#x27;org.projectlombok:lombok&#x27;&#xA;    testImplementation &#x27;org.springframework.boot:spring-boot-starter-test&#x27;&#xA;    implementation &#x27;org.springdoc:springdoc-openapi-ui:1.6.9&#x27;&#xA;    implementation &#x27;org.springframework.boot:spring-boot-starter-data-jpa&#x27;&#xA;    runtimeOnly &#x27;org.postgresql:postgresql&#x27;&#xA;    // for logging&#xA;    implementation &#x27;org.slf4j:slf4j-api:1.7.30&#x27;&#xA;    implementation &#x27;org.slf4j:jcl-over-slf4j:1.7.30&#x27;&#xA;    implementation &#x27;org.slf4j:log4j-over-slf4j:1.7.30&#x27;&#xA;    implementation &#x27;ch.qos.logback:logback-classic:1.2.3&#x27;&#xA;    implementation &#x27;org.bytedeco:javacv:1.5.8&#x27;&#xA;}&#xA;&#xA;tasks.named(&#x27;test&#x27;) {&#xA;    useJUnitPlatform()&#xA;}&#xA;

    &#xA;

    This is my ffmpeg version :

    &#xA;

    ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers&#xA;built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;libavutil      58.  2.100 / 58.  2.100&#xA;libavcodec     60.  3.100 / 60.  3.100&#xA;libavformat    60.  3.100 / 60.  3.100&#xA;libavdevice    60.  1.100 / 60.  1.100&#xA;libavfilter     9.  3.100 /  9.  3.100&#xA;libswscale      7.  1.100 /  7.  1.100&#xA;libswresample   4. 10.100 /  4. 10.100&#xA;libpostproc    57.  1.100 / 57.  1.100&#xA;

    &#xA;

    Please keep in mind that I use Java 8 in this project and I hope this issue is reproducible. If you want more info please leave a comment.

    &#xA;