Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (86)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (11025)

  • Exception thrown at 0x7C2E6005 (swscale-5.dll) in Video_playing.exe : 0xC0000005 : Access violation reading location 0xCCCCCD04 [closed]

    11 mai 2020, par jatin yadav

    Trying to play a video using GLFW and FFmpeg on visual studio 2019 on windows 10.

    



    Exception is thrown at sws_scale(sws_scaler_ctx, av_frame->data, av_frame->linesize, 0, av_frame->height, dest, dest_linesize) ; in the code. Don't know why this is occurred. Please Help !!

    



    #include "video_reader.h"
#include 

bool video_reader_read_frame(VideoReaderState* state, uint8_t* frame_buffer, int64_t* pts) {

    // Unpack members of state
    auto& width = state->width;
    auto& height = state->height;
    auto& av_format_ctx = state->av_format_ctx;
    auto& av_codec_ctx = state->av_codec_ctx;
    auto& video_stream_index = state->video_stream_index;
    auto& av_frame = state->av_frame;
    auto& av_packet = state->av_packet;
    auto& sws_scaler_ctx = state->sws_scaler_ctx;

    // Decode one frame
    int response;
    while (av_read_frame(av_format_ctx, av_packet) >= 0) {
        if (av_packet->stream_index != video_stream_index) {
            av_packet_unref(av_packet);
            continue;
        }

        response = avcodec_send_packet(av_codec_ctx, av_packet);
        if (response < 0) {
            printf("Failed to decode packet: %s\n", response);
            return false;
        }

        response = avcodec_receive_frame(av_codec_ctx, av_frame);
        if (response == AVERROR(EAGAIN) || response == AVERROR_EOF) {
            av_packet_unref(av_packet);
            continue;
        }
        else if (response < 0) {
            printf("Failed to decode packet: %s\n", response);
            return false;
        }

        av_packet_unref(av_packet);
        break;
    }

    *pts = av_frame->pts;

    // Set up sws scaler
    if (!sws_scaler_ctx) {
        sws_scaler_ctx = sws_getContext(width, height, av_codec_ctx->pix_fmt,
            width, height, AV_PIX_FMT_RGB0,
            SWS_BILINEAR, NULL, NULL, NULL);
    }
    if (!sws_scaler_ctx) {
        printf("Couldn't initialize sw scaler\n");
        return false;
    }

    uint8_t* dest[4] = { frame_buffer, NULL, NULL, NULL };
    int dest_linesize[4] = { width * 4, 0, 0, 0 };
    sws_scale(sws_scaler_ctx, av_frame->data, av_frame->linesize, 0, av_frame->height, dest, dest_linesize);

    return true;
}


    


  • Unrecognized option 'txt_format' in ffmpeg latest version

    26 novembre 2020, par RecklessSergio

    I am trying to convert subtitles from scenarist closed captions(scc) to webvtt(vtt)

    



    But I am getting some special characters, so going through ffmpeg documentation https://trac.ffmpeg.org/wiki/ExtractSubtitles
I got to know about the option -txt_format. But when I am using it, ffmpeg is throwing an error saying

    



    "Unrecognized option 'txt_format'.
Error splitting the argument list : Option not found"

    



    FFMPEG VERSION : 
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.1.1 (GCC) 20190716

    



    Below is the trace level log :

    



    

    

    ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190716
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument '223163.scc'.
Reading option 'test.vtt' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url 223163.scc.
Successfully parsed a group of options.
Opening an input file: 223163.scc.
[NULL @ 0000025d22799500] Opening '223163.scc' for reading
[file @ 0000025d2279a600] Setting default whitelist 'file,crypto'
Probing scc score:100 size:2048
[scc @ 0000025d22799500] Format scc probed with size=2048 and score=100
[scc @ 0000025d22799500] Before avformat_find_stream_info() pos: 38022 bytes read:38022 seeks:0 nb_streams:1
[scc @ 0000025d22799500] All info found
[scc @ 0000025d22799500] stream 0: start_time: -9223372036854776.000 duration: -9223372036854776.000
[scc @ 0000025d22799500] format: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s
[scc @ 0000025d22799500] After avformat_find_stream_info() pos: 38022 bytes read:38022 seeks:0 frames:0
Input #0, scc, from '223163.scc':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/1000: Subtitle: eia_608
Successfully opened the file.
Parsing a group of options: output url test.vtt.
Successfully parsed a group of options.
Opening an output file: test.vtt.
File 'test.vtt' already exists. Overwrite ? [y/N] y
[file @ 0000025d227d1c40] Setting default whitelist 'file,crypto'
Successfully opened the file.
Output #0, webvtt, to 'test.vtt':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0, 0, 1/1000: Subtitle: webvtt
    Metadata:
      encoder         : Lavc58.35.100 webvtt
Stream mapping:
  Stream #0:0 -> #0:0 (eia_608 (cc_dec) -> webvtt (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
No more output streams to write to, finishing.
size=      19kB time=00:18:28.36 bitrate=   0.1kbits/s speed=2.26e+04x
video:0kB audio:0kB subtitle:10kB other streams:0kB global headers:0kB muxing overhead: 88.647011%
Input file #0 (223163.scc):
  Input stream #0:0 (subtitle): 411 packets read (19101 bytes); 349 frames decoded;
  Total: 411 packets (19101 bytes) demuxed
Output file #0 (test.vtt):
  Output stream #0:0 (subtitle): 349 frames encoded; 349 packets muxed (10244 bytes);
  Total: 349 packets (10244 bytes) muxed
349 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0000025d22799c80] Statistics: 0 seeks, 2 writeouts
[AVIOContext @ 0000025d227a2880] Statistics: 38022 bytes read, 0 seeks

    


    


    



  • Command line ffmpeg, to insert part of a mp3 audio to another file

    14 janvier 2020, par tgkprog

    Want to copy from 3rd second of b.mp3 till 2:05 seconds of b.mp3 and append to the end of a.mp3 (its 3:23 long).

    Command :

    ffmpeg -i a.mp3 -i b.mp3

    Output :

    ffmpeg version 4.0.4-0ubuntu1 Copyright (c) 2000-2019 the FFmpeg developers   built with gcc 8 (Ubuntu 8.2.0-7ubuntu1)
     configuration: --prefix=/usr --extra-version=0ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Input #0, mp3, from 'a.mp3':
     Metadata:
       encoder         : Lavf58.12.100
     Duration: 00:02:48.00, start: 0.011021, bitrate: 144 kb/s
       Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 144 kb/s
       Metadata:
         encoder         : Lavc58.18
    Input #1, mp3, from 'b.mp3':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf58.12.100
     Duration: 00:01:33.02, start: 0.011995, bitrate: 117 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 117 kb/s
       Metadata:
         encoder         : Lavc58.18
    At least one output file must be specified